OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::MainMenu Class Reference

#include <mainmenu.hpp>

Inheritance diagram for MWGui::MainMenu:
Collaboration diagram for MWGui::MainMenu:

Public Member Functions

 MainMenu (int w, int h, const VFS::Manager *vfs, const std::string &versionDescription)
 
 ~MainMenu ()
 
void onResChange (int w, int h)
 Called when GUI viewport changes size. More...
 
virtual void setVisible (bool visible)
 Sets the visibility of the window. More...
 
void onFrame (float dt)
 Called every frame if the window is in an active GUI mode. More...
 
bool exit ()
 Gracefully exits the window. More...
 
- Public Member Functions inherited from MWGui::WindowBase
 WindowBase (const std::string &parLayout)
 
virtual MyGUI::Widget * getDefaultKeyFocus ()
 
virtual void setPtr (const MWWorld::Ptr &ptr)
 Open this object in the GUI, for windows that support it. More...
 
virtual void onOpen ()
 Notify that window has been made visible. More...
 
virtual void onClose ()
 Notify that window has been hidden. More...
 
bool isVisible ()
 Returns the visibility state of the window. More...
 
void center ()
 
virtual void clear ()
 Clear any state specific to the running game. More...
 
- Public Member Functions inherited from MWGui::Layout
 Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr)
 
virtual ~Layout ()
 
MyGUI::Widget * getWidget (const std::string &_name)
 
template<typename T >
void getWidget (T *&_widget, const std::string &_name)
 
void setCoord (int x, int y, int w, int h)
 
void setText (const std::string &name, const std::string &caption)
 
void setTitle (const std::string &title)
 

Private Member Functions

void onButtonClicked (MyGUI::Widget *sender)
 
void onNewGameConfirmed ()
 
void onExitConfirmed ()
 
void showBackground (bool show)
 
void updateMenu ()
 

Private Attributes

int mWidth
 
int mHeight
 
bool mHasAnimatedMenu
 
const VFS::ManagermVFS
 
MyGUI::Widget * mButtonBox
 
MyGUI::TextBox * mVersionText
 
BackgroundImagemBackground
 
MyGUI::ImageBox * mVideoBackground
 
VideoWidgetmVideo
 
std::map< std::string,
Gui::ImageButton * > 
mButtons
 
SaveGameDialogmSaveGameDialog
 

Additional Inherited Members

- Public Types inherited from MWGui::WindowBase
typedef
MyGUI::delegates::CMultiDelegate1
< WindowBase * > 
EventHandle_WindowBase
 
- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 
- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Constructor & Destructor Documentation

MWGui::MainMenu::MainMenu ( int  w,
int  h,
const VFS::Manager vfs,
const std::string &  versionDescription 
)

Here is the call graph for this function:

MWGui::MainMenu::~MainMenu ( )

Member Function Documentation

bool MWGui::MainMenu::exit ( )
virtual

Gracefully exits the window.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::MainMenu::onButtonClicked ( MyGUI::Widget *  sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::onExitConfirmed ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::onFrame ( float  duration)
virtual

Called every frame if the window is in an active GUI mode.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::MainMenu::onNewGameConfirmed ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::onResChange ( int  width,
int  height 
)
virtual

Called when GUI viewport changes size.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::MainMenu::setVisible ( bool  visible)
virtual

Sets the visibility of the window.

Reimplemented from MWGui::WindowBase.

Here is the call graph for this function:

void MWGui::MainMenu::showBackground ( bool  show)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::updateMenu ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

BackgroundImage* MWGui::MainMenu::mBackground
private
MyGUI::Widget* MWGui::MainMenu::mButtonBox
private
std::map<std::string, Gui::ImageButton*> MWGui::MainMenu::mButtons
private
bool MWGui::MainMenu::mHasAnimatedMenu
private
int MWGui::MainMenu::mHeight
private
SaveGameDialog* MWGui::MainMenu::mSaveGameDialog
private
MyGUI::TextBox* MWGui::MainMenu::mVersionText
private
const VFS::Manager* MWGui::MainMenu::mVFS
private
VideoWidget* MWGui::MainMenu::mVideo
private
MyGUI::ImageBox* MWGui::MainMenu::mVideoBackground
private
int MWGui::MainMenu::mWidth
private

The documentation for this class was generated from the following files: