55 GUIDefinition(
const std::string &def, GUI *gui,
56 QLayout *parentLayout=0,
57 ProxyLayout *parentProxyLayout=0,
58 QWidget *parentWidget=0);
61 const std::string &
type()
const {
return m_sType; }
64 const std::string &
label()
const {
return m_sLabel; }
67 const std::string &
handle()
const {
return m_sHandle; }
79 int margin()
const {
return m_iMargin; }
82 int spacing()
const {
return m_iSpacing; }
94 unsigned int numParams()
const {
return m_vecParams.size(); }
97 const std::string ¶m(
unsigned int idx)
const;
100 int intParam(
unsigned int idx)
const;
103 float floatParam(
unsigned int idx)
const;
108 const std::string &input(
unsigned int idx)
const;
113 const std::string &output(
unsigned int idx)
const;
116 unsigned int numInputs()
const {
return m_vecInputs.size(); }
119 unsigned int numOutputs()
const {
return m_vecOutputs.size(); }
125 const std::string &
defString()
const {
return m_sDefinitionString; }
131 const std::vector<std::string> &
allParams()
const {
return m_vecParams; }
134 inline const std::string &
toolTip()
const {
return m_toolTip; }
137 inline bool hasToolTip()
const {
return m_toolTip.length(); }
unsigned int numInputs() const
returns the number of params
Definition: GUIDefinition.h:116
bool hasToolTip() const
returns whether the tooltip text is not ""
Definition: GUIDefinition.h:137
undocument this line if you encounter any issues!
Definition: Any.h:37
utils::Size m_oSize
Definition: GUIDefinition.h:147
const std::string & toolTip() const
returns the tooltip text
Definition: GUIDefinition.h:134
utils::Size m_oMinSize
Definition: GUIDefinition.h:148
Main Class of ICL's GUI creation framework.
Definition: GUI.h:60
const std::string & defString() const
returns the whole definition string (for debugging!)
Definition: GUIDefinition.h:125
std::vector< std::string > m_vecOutputs
Definition: GUIDefinition.h:143
int m_iSpacing
Definition: GUIDefinition.h:151
utils::Size m_oMaxSize
Definition: GUIDefinition.h:149
int m_iMargin
Definition: GUIDefinition.h:150
std::string m_toolTip
Definition: GUIDefinition.h:156
ProxyLayout * getProxyLayout() const
returns the parent widgets proxy layout
Definition: GUIDefinition.h:91
std::vector< std::string > m_vecParams
Definition: GUIDefinition.h:142
const std::string & handle() const
return the handle id string
Definition: GUIDefinition.h:67
const std::string & label() const
return the lable string
Definition: GUIDefinition.h:64
GUI * m_poGUI
Definition: GUIDefinition.h:152
std::string m_sType
Definition: GUIDefinition.h:141
just a helper class for GUI Layouting
Definition: ProxyLayout.h:43
int margin() const
returns the layout margin
Definition: GUIDefinition.h:79
int spacing() const
returns the layout spacing
Definition: GUIDefinition.h:82
const std::string & type() const
return the type string
Definition: GUIDefinition.h:61
GUI * getGUI() const
return the parent GUI
Definition: GUIDefinition.h:85
const utils::Size & maxSize() const
returns the maxinum size of the widget or size::null
Definition: GUIDefinition.h:76
QWidget * m_poParentWidget
Definition: GUIDefinition.h:154
Size class of the ICL.
Definition: Size.h:61
QWidget * parentWidget() const
returns the current parent widget (or 0 if there is non)
Definition: GUIDefinition.h:128
std::string m_sHandle
Definition: GUIDefinition.h:146
const utils::Size & minSize() const
retunrs the minimum size of the widget or size::null
Definition: GUIDefinition.h:73
const std::vector< std::string > & allParams() const
returns a list of all parameters
Definition: GUIDefinition.h:131
unsigned int numOutputs() const
returns the number of params
Definition: GUIDefinition.h:119
const utils::Size & size() const
return this size (or utils::Size::null)
Definition: GUIDefinition.h:70
#define ICLQt_API
Definition: CompatMacros.h:178
std::vector< std::string > m_vecInputs
Definition: GUIDefinition.h:144
std::string m_sLabel
Definition: GUIDefinition.h:145
QLayout * parentLayout() const
return the parent layout or null if there is nor parent
Definition: GUIDefinition.h:88
QLayout * m_poParentLayout
Definition: GUIDefinition.h:153
ProxyLayout * m_poParentProxyLayout
Definition: GUIDefinition.h:155
ICLQt_API void show(const icl::core::ImgBase &image)
shows an image using TestImages::show
unsigned int numParams() const
returns the number of params
Definition: GUIDefinition.h:94
std::string m_sDefinitionString
Definition: GUIDefinition.h:140