The GUIComponent class servers as a generic interface for GUI definitions.
More...
#include <GUIComponent.h>
|
| GUIComponent (const std::string &type, const std::string ¶ms="") |
| creates a component with given type and optionally given parameters More...
|
|
|
template<class A , class B , class C > |
static std::string | form_args_3 (const A &a, const B &b, const C &c) |
| utility method to concatenate 3 values More...
|
|
template<class A , class B , class C , class D > |
static std::string | form_args_4 (const A &a, const B &b, const C &c, const D &d) |
| utility method to concatenate 4 values More...
|
|
template<class A , class B , class C , class D , class E > |
static std::string | form_args_5 (const A &a, const B &b, const C &c, const D &d, const E &e) |
| utility method to concatenate 5 values More...
|
|
template<class A , class B , class C , class D , class E , class F > |
static std::string | form_args_6 (const A &a, const B &b, const C &c, const D &d, const E &e, const F &f) |
| utility method to concatenate 5 values More...
|
|
The GUIComponent class servers as a generic interface for GUI definitions.
Please refer to the ICL-manual for an introduction to the GUI toolkit
◆ GUIComponent()
icl::qt::GUIComponent::GUIComponent |
( |
const std::string & |
type, |
|
|
const std::string & |
params = "" |
|
) |
| |
|
inlineprotected |
creates a component with given type and optionally given parameters
the params parameter is a comma-separated list of single entries
◆ form_args_3()
template<class A , class B , class C >
static std::string icl::qt::GUIComponent::form_args_3 |
( |
const A & |
a, |
|
|
const B & |
b, |
|
|
const C & |
c |
|
) |
| |
|
inlinestaticprotected |
utility method to concatenate 3 values
◆ form_args_4()
template<class A , class B , class C , class D >
static std::string icl::qt::GUIComponent::form_args_4 |
( |
const A & |
a, |
|
|
const B & |
b, |
|
|
const C & |
c, |
|
|
const D & |
d |
|
) |
| |
|
inlinestaticprotected |
utility method to concatenate 4 values
◆ form_args_5()
template<class A , class B , class C , class D , class E >
static std::string icl::qt::GUIComponent::form_args_5 |
( |
const A & |
a, |
|
|
const B & |
b, |
|
|
const C & |
c, |
|
|
const D & |
d, |
|
|
const E & |
e |
|
) |
| |
|
inlinestaticprotected |
utility method to concatenate 5 values
◆ form_args_6()
template<class A , class B , class C , class D , class E , class F >
static std::string icl::qt::GUIComponent::form_args_6 |
( |
const A & |
a, |
|
|
const B & |
b, |
|
|
const C & |
c, |
|
|
const D & |
d, |
|
|
const E & |
e, |
|
|
const F & |
f |
|
) |
| |
|
inlinestaticprotected |
utility method to concatenate 5 values
◆ handle() [1/2]
const GUIComponent& icl::qt::GUIComponent::handle |
( |
const std::string & |
handle | ) |
const |
|
inline |
sets the component handle
◆ handle() [2/2]
GUIComponent& icl::qt::GUIComponent::handle |
( |
std::string & |
handle | ) |
|
|
inline |
sets the component handle
◆ hideIf() [1/2]
const GUIComponent& icl::qt::GUIComponent::hideIf |
( |
bool |
flag | ) |
const |
|
inline |
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 << (flag ? Image() : Dummy()).
handle(
"image");
◆ hideIf() [2/2]
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 << (flag ? Image() : Dummy()).
handle(
"image");
◆ label() [1/2]
const GUIComponent& icl::qt::GUIComponent::label |
( |
const std::string & |
label | ) |
const |
|
inline |
◆ label() [2/2]
GUIComponent& icl::qt::GUIComponent::label |
( |
std::string & |
label | ) |
|
|
inline |
◆ maxSize() [1/4]
sets the component maximum size constraint
◆ maxSize() [2/4]
const GUIComponent& icl::qt::GUIComponent::maxSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| const |
|
inline |
sets the component maximum size constraint
◆ maxSize() [3/4]
sets the component maximum size constraint
◆ maxSize() [4/4]
GUIComponent& icl::qt::GUIComponent::maxSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
inline |
sets the component maximum size constraint
◆ minSize() [1/4]
sets the component minimum size constraint
◆ minSize() [2/4]
const GUIComponent& icl::qt::GUIComponent::minSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| const |
|
inline |
sets the component minimum size constraint
◆ minSize() [3/4]
sets the component minimum size constraint
◆ minSize() [4/4]
GUIComponent& icl::qt::GUIComponent::minSize |
( |
int |
w, |
|
|
int |
h |
|
) |
| |
|
inline |
sets the component minimum size constraint
◆ size() [1/4]
sets the component initial size
◆ size() [2/4]
const GUIComponent& icl::qt::GUIComponent::size |
( |
int |
w, |
|
|
int |
h |
|
) |
| const |
|
inline |
sets the component initial size
◆ size() [3/4]
sets the component initial size
◆ size() [4/4]
sets the component initial size
◆ tooltip() [1/2]
const GUIComponent& icl::qt::GUIComponent::tooltip |
( |
const std::string & |
tooltip | ) |
const |
|
inline |
sets the component tooltip
◆ tooltip() [2/2]
GUIComponent& icl::qt::GUIComponent::tooltip |
( |
std::string & |
tooltip | ) |
|
|
inline |
sets the component tooltip
◆ toString()
std::string icl::qt::GUIComponent::toString |
( |
| ) |
const |
|
inline |
creates a string representation of the component
◆ ContainerGUIComponent
◆ GUI
◆ m_options
Options icl::qt::GUIComponent::m_options |
|
mutableprotected |
all component options (mutable for C++-reasons)
◆ m_params
std::string icl::qt::GUIComponent::m_params |
|
protected |
◆ m_type
std::string icl::qt::GUIComponent::m_type |
|
protected |
The documentation for this class was generated from the following file: