Image Component Library (ICL)
|
#include <GUIComponentWithOutput.h>
Public Member Functions | |
GUIComponentWithOutput (const std::string &type, const std::string ¶ms) | |
const GUIComponentWithOutput & | handle (const std::string &handle) const |
sets the component handle | |
const GUIComponentWithOutput & | label (const std::string &label) const |
sets the component label | |
const GUIComponentWithOutput & | tooltip (const std::string &tooltip) const |
sets the component tooltip | |
const GUIComponentWithOutput & | size (const utils::Size &size) const |
sets the component initial size | |
const GUIComponentWithOutput & | size (int w, int h) const |
sets the component initial size | |
const GUIComponentWithOutput & | minSize (const utils::Size &minSize) const |
sets the component minimum size constraint | |
const GUIComponentWithOutput & | minSize (int w, int h) const |
sets the component minimum size constraint | |
const GUIComponentWithOutput & | maxSize (const utils::Size &maxSize) const |
sets the component maximum size constraint | |
const GUIComponentWithOutput & | maxSize (int w, int h) const |
sets the component maximum size constraint | |
const GUIComponentWithOutput & | hideIf (bool flag) const |
hides the component if the given flag is true | |
const GUIComponentWithOutput & | out (const std::string &name) const |
sets the component output id | |
GUIComponentWithOutput & | handle (std::string &handle) |
sets the component handle | |
GUIComponentWithOutput & | label (std::string &label) |
sets the component label | |
GUIComponentWithOutput & | tooltip (std::string &tooltip) |
sets the component tooltip | |
GUIComponentWithOutput & | size (utils::Size &size) |
sets the component initial size | |
GUIComponentWithOutput & | size (int w, int h) |
sets the component initial size | |
GUIComponentWithOutput & | minSize (utils::Size &minSize) |
sets the component minimum size constraint | |
GUIComponentWithOutput & | minSize (int w, int h) |
sets the component minimum size constraint | |
GUIComponentWithOutput & | maxSize (utils::Size &maxSize) |
sets the component maximum size constraint | |
GUIComponentWithOutput & | maxSize (int w, int h) |
sets the component maximum size constraint | |
GUIComponentWithOutput & | hideIf (bool flag) |
hides the component if the given flag is true | |
GUIComponentWithOutput & | out (const std::string &name) |
sets the component output id |
icl::qt::GUIComponentWithOutput::GUIComponentWithOutput | ( | const std::string & | type, |
const std::string & | params | ||
) | [inline] |
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::handle | ( | const std::string & | handle | ) | const [inline] |
sets the component handle
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::handle | ( | std::string & | handle | ) | [inline] |
sets the component handle
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::hideIf | ( | bool | flag | ) | const [inline] |
hides the component if the given flag is true
hides the component if the given flag is true
this can be used to circumvent C++-language issues when creating GUI components optionally, e.g.
bool flag = ....; GUI gui; gui << (flag ? Image() : Dummy()).handle("image"); // does not work gui << Image().hideIf(!flag).handle("image"); // works
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::hideIf | ( | bool | flag | ) | [inline] |
hides the component if the given flag is true
hides the component if the given flag is true
this can be used to circumvent C++-language issues when creating GUI components optionally, e.g.
bool flag = ....; GUI gui; gui << (flag ? Image() : Dummy()).handle("image"); // does not work gui << Image().hideIf(!flag).handle("image"); // works
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::label | ( | const std::string & | label | ) | const [inline] |
sets the component label
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::label | ( | std::string & | label | ) | [inline] |
sets the component label
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::maxSize | ( | const utils::Size & | maxSize | ) | const [inline] |
sets the component maximum size constraint
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::maxSize | ( | int | w, |
int | h | ||
) | const [inline] |
sets the component maximum size constraint
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::maxSize | ( | utils::Size & | maxSize | ) | [inline] |
sets the component maximum size constraint
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::maxSize | ( | int | w, |
int | h | ||
) | [inline] |
sets the component maximum size constraint
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::minSize | ( | const utils::Size & | minSize | ) | const [inline] |
sets the component minimum size constraint
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::minSize | ( | int | w, |
int | h | ||
) | const [inline] |
sets the component minimum size constraint
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::minSize | ( | utils::Size & | minSize | ) | [inline] |
sets the component minimum size constraint
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::minSize | ( | int | w, |
int | h | ||
) | [inline] |
sets the component minimum size constraint
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::out | ( | const std::string & | name | ) | const [inline] |
sets the component output id
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::out | ( | const std::string & | name | ) | [inline] |
sets the component output id
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::size | ( | const utils::Size & | size | ) | const [inline] |
sets the component initial size
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::size | ( | int | w, |
int | h | ||
) | const [inline] |
sets the component initial size
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::size | ( | utils::Size & | size | ) | [inline] |
sets the component initial size
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::size | ( | int | w, |
int | h | ||
) | [inline] |
sets the component initial size
Reimplemented from icl::qt::GUIComponent.
const GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::tooltip | ( | const std::string & | tooltip | ) | const [inline] |
sets the component tooltip
Reimplemented from icl::qt::GUIComponent.
GUIComponentWithOutput& icl::qt::GUIComponentWithOutput::tooltip | ( | std::string & | tooltip | ) | [inline] |
sets the component tooltip
Reimplemented from icl::qt::GUIComponent.