1 #ifndef OPENMW_MWGUI_LAYOUT_H
2 #define OPENMW_MWGUI_LAYOUT_H
5 #include <MyGUI_WidgetDefines.h>
6 #include <MyGUI_Widget.h>
16 Layout(
const std::string & _layout, MyGUI::Widget* _parent =
nullptr)
21 MyGUI::Widget*
getWidget(
const std::string& _name);
24 void getWidget(T * & _widget,
const std::string & _name)
27 T* cast = w->castType<T>(
false);
30 MYGUI_EXCEPT(
"Error cast : dest type = '" << T::getClassTypeName()
31 <<
"' source name = '" << w->getName()
32 <<
"' source type = '" << w->getTypeName() <<
"' in layout '" <<
mLayoutName <<
"'");
40 MyGUI::Widget* _parent =
nullptr);
45 void setCoord(
int x,
int y,
int w,
int h);
49 void setText(
const std::string&
name,
const std::string& caption);
52 void setTitle(
const std::string& title);
void getWidget(T *&_widget, const std::string &_name)
Definition: layout.hpp:24
Layout(const std::string &_layout, MyGUI::Widget *_parent=nullptr)
Definition: layout.hpp:16
void setText(const std::string &name, const std::string &caption)
Definition: layout.cpp:52
virtual ~Layout()
Definition: layout.hpp:19
MyGUI::Widget * mMainWidget
Definition: layout.hpp:54
MyGUI::Widget * getWidget(const std::string &_name)
Definition: layout.cpp:64
std::string mLayoutName
Definition: layout.hpp:59
void shutdown()
Definition: layout.cpp:36
void initialise(const std::string &_layout, MyGUI::Widget *_parent=nullptr)
Definition: layout.cpp:11
std::string mPrefix
Definition: layout.hpp:58
MyGUI::VectorWidgetPtr mListWindowRoot
Definition: layout.hpp:60
Definition: layout.hpp:13
virtual void setVisible(bool b)
Definition: layout.cpp:47
void setTitle(const std::string &title)
Definition: layout.cpp:59
void setCoord(int x, int y, int w, int h)
Definition: layout.cpp:42
const char * name
Definition: crashcatcher.cpp:59