|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Bundles several parameters to describe a UI window's style. Use in parameter classes. More...
#include <Module.h>
Public Types | |
| enum | WindowStateType { Normal , Minimized , Maximized } |
| Indicates the window state for showing it. More... | |
| enum | WindowDockingStateType { Docked , Undocked } |
| Indicates the window docking state. More... | |
Public Member Functions | |
| WindowStyleParamsExtension (ParamsBase &Owner, const std::string &Prefix="") | |
Constructs a WindowStyleParamsExtension instance. | |
| void | ApplyTo (QWidget &Widget, bool Show=true) const |
Applies the bundled style parameters to Widget. | |
| void | FromWidget (const QWidget &Widget) |
Assigns styles applied to Widget to the bundled parameters. | |
Public Attributes | |
| ParamsBase::Param< int > | WindowPosX |
| Window x coordinate. | |
| ParamsBase::Param< int > | WindowPosY |
| Window y coordinate. | |
| ParamsBase::Param< unsigned int > | WindowWidth |
| Window width. | |
| ParamsBase::Param< unsigned int > | WindowHeight |
| Window height. | |
| ParamsBase::Param< WindowStateType > | WindowState |
| Window show state. | |
| ParamsBase::Param< WindowDockingStateType > | WindowDockingState |
| Window docking state. | |
Bundles several parameters to describe a UI window's style. Use in parameter classes.
|
inline |
Constructs a WindowStyleParamsExtension instance.
| Owner | Parameter class owning the parameters bundled by this instance. |
| Prefix | String to prepend to the bundled parameters' names in case Owner owns multiple WindowStyleParamsExtension instances. |
| void DynExp::WindowStyleParamsExtension::ApplyTo | ( | QWidget & | Widget, |
| bool | Show = true |
||
| ) | const |
Applies the bundled style parameters to Widget.
| Widget | Widget to apply the style parameters to. |
| Show | Pass true to show Widget, false not to affect the Widget's show state. |
Definition at line 508 of file Module.cpp.
| void DynExp::WindowStyleParamsExtension::FromWidget | ( | const QWidget & | Widget | ) |
Assigns styles applied to Widget to the bundled parameters.
| Widget | Widget to retrieve the style from. |
Definition at line 532 of file Module.cpp.
| ParamsBase::Param<WindowDockingStateType> DynExp::WindowStyleParamsExtension::WindowDockingState |
| ParamsBase::Param<unsigned int> DynExp::WindowStyleParamsExtension::WindowHeight |
| ParamsBase::Param<int> DynExp::WindowStyleParamsExtension::WindowPosX |
| ParamsBase::Param<int> DynExp::WindowStyleParamsExtension::WindowPosY |
| ParamsBase::Param<WindowStateType> DynExp::WindowStyleParamsExtension::WindowState |
| ParamsBase::Param<unsigned int> DynExp::WindowStyleParamsExtension::WindowWidth |