Omnidome
Fulldome Mapping Software Toolkit
|
Mixin for a widget that holds an editor widget. More...
#include <Editor.h>
Public Types | |
typedef WIDGET | widget_type |
Widget type. More... | |
typedef EDITOR | editor_type |
Editor widget type, e.g. QDoubleSpinBox. More... | |
Public Member Functions | |
Editor (widget_type *_widget) | |
template<typename T = editor_type> | |
T * | createEditor () |
Create editor with type. More... | |
editor_type const * | editor () const |
Return pointer editor (const version) More... | |
editor_type * | editor () |
Return pointer editor. More... | |
template<typename T > | |
T * | editorAs () |
Return editor as type T. More... | |
template<typename T > | |
T const * | editorAs () const |
Return editor as type T (const version) More... | |
virtual void | setEditorVisible (bool _visible) |
Set editor visibility and set focus. More... | |
void | showEditor () |
Show editor and set focus. More... | |
void | hideEditor () |
Hide editor. More... | |
Private Member Functions | |
virtual void | editorSetup ()=0 |
Private Attributes | |
editor_type * | editor_ = nullptr |
widget_type * | widget_ = nullptr |
Mixin for a widget that holds an editor widget.
typedef EDITOR omni::ui::mixin::Editor< WIDGET, EDITOR >::editor_type |
Editor widget type, e.g. QDoubleSpinBox.
typedef WIDGET omni::ui::mixin::Editor< WIDGET, EDITOR >::widget_type |
Widget type.
|
inline |
|
inline |
Create editor with type.
|
inline |
Return pointer editor (const version)
|
inline |
Return pointer editor.
|
inline |
Return editor as type T.
|
inline |
Return editor as type T (const version)
|
privatepure virtual |
Implemented in omni::ui::RangedFloat, omni::ui::Dial, and omni::ui::RangedInt.
|
inline |
Hide editor.
|
inlinevirtual |
Set editor visibility and set focus.
|
inline |
Show editor and set focus.
|
private |
|
private |