53 GUI(type+
'('+params+
')',parent),
component(type, params){}
59 return const_cast<GUI*>(static_cast<const GUI*>(
this))->operator<<(
component);
64 return const_cast<GUI*>(static_cast<const GUI*>(
this))->operator<<(g);
ContainerGUIComponent & maxSize(int w, int h)
sets the component's maximum size constraint
Definition: ContainerGUIComponent.h:153
ContainerGUIComponent & maxSize(const utils::Size &maxSize)
sets the component's maximum size constraint
Definition: ContainerGUIComponent.h:148
const ContainerGUIComponent & size(int w, int h) const
sets the component's initial size
Definition: ContainerGUIComponent.h:83
const GUIComponent & size(const utils::Size &size) const
sets the component initial size
Definition: GUIComponent.h:136
Special GUI extension, that mimics the GUIComponent interface.
Definition: ContainerGUIComponent.h:44
undocument this line if you encounter any issues!
Definition: Any.h:37
Main Class of ICL's GUI creation framework.
Definition: GUI.h:60
ContainerGUIComponent & spacing(int spacing)
sets the component's layout spacing
Definition: ContainerGUIComponent.h:163
const GUIComponent & handle(const std::string &handle) const
sets the component handle
Definition: GUIComponent.h:118
const GUIComponent & minSize(const utils::Size &minSize) const
sets the component minimum size constraint
Definition: GUIComponent.h:147
const ContainerGUIComponent & maxSize(const utils::Size &maxSize) const
sets the component's maximum size constraint
Definition: ContainerGUIComponent.h:98
ContainerGUIComponent & margin(int margin)
sets the component's layout margin
Definition: ContainerGUIComponent.h:158
GUIComponent component
we use these options to create the
Definition: ContainerGUIComponent.h:49
virtual std::string createDefinition() const
special reimplementation of the GUI::createDefinition method
Definition: ContainerGUIComponent.h:169
const GUIComponent & maxSize(const utils::Size &maxSize) const
sets the component maximum size constraint
Definition: GUIComponent.h:158
const ContainerGUIComponent & margin(int margin) const
sets the component's layout margin
Definition: ContainerGUIComponent.h:108
ContainerGUIComponent & size(int w, int h)
sets the component's initial size
Definition: ContainerGUIComponent.h:133
const ContainerGUIComponent & size(const utils::Size &size) const
sets the component's initial size
Definition: ContainerGUIComponent.h:78
ContainerGUIComponent(const std::string &type, const std::string ¶ms, QWidget *parent)
protected constructor
Definition: ContainerGUIComponent.h:52
int margin
layout margin (only for containers)
Definition: GUIComponent.h:61
ContainerGUIComponent & handle(const std::string &handle)
sets the component's handle
Definition: ContainerGUIComponent.h:118
Size class of the ICL.
Definition: Size.h:61
ContainerGUIComponent & size(const utils::Size &size)
sets the component's initial size
Definition: ContainerGUIComponent.h:128
The GUIComponent class servers as a generic interface for GUI definitions.
Definition: GUIComponent.h:44
const ContainerGUIComponent & maxSize(int w, int h) const
sets the component's maximum size constraint
Definition: ContainerGUIComponent.h:103
ContainerGUIComponent & label(const std::string &label)
sets the component's label
Definition: ContainerGUIComponent.h:123
std::string toString() const
creates a string representation of the component
Definition: GUIComponent.h:247
const ContainerGUIComponent & minSize(int w, int h) const
sets the component's minimum size constraint
Definition: ContainerGUIComponent.h:93
GUI & operator<<(const GUIComponent &component) const
hierarchical stream operator to create complex GUIs
Definition: ContainerGUIComponent.h:58
const ContainerGUIComponent & spacing(int spacing) const
sets the component's layout spacing
Definition: ContainerGUIComponent.h:113
GUI & operator<<(const GUI &g) const
hierarchical stream operator to create complex GUIs
Definition: ContainerGUIComponent.h:63
ContainerGUIComponent & minSize(int w, int h)
sets the component's minimum size constraint
Definition: ContainerGUIComponent.h:143
Options m_options
all component options (mutable for C++-reasons)
Definition: GUIComponent.h:71
const ContainerGUIComponent & minSize(const utils::Size &minSize) const
sets the component's minimum size constraint
Definition: ContainerGUIComponent.h:88
const GUIComponent & label(const std::string &label) const
sets the component label
Definition: GUIComponent.h:124
ContainerGUIComponent & minSize(const utils::Size &minSize)
sets the component's minimum size constraint
Definition: ContainerGUIComponent.h:138
const ContainerGUIComponent & label(const std::string &label) const
sets the component's label
Definition: ContainerGUIComponent.h:73
int spacing
layout spacing (onyl for containers)
Definition: GUIComponent.h:62
const ContainerGUIComponent & handle(const std::string &handle) const
sets the component's handle
Definition: ContainerGUIComponent.h:68