API Documentation
Loading...
Searching...
No Matches
GenericOptionsWidget Class Reference

Automatically creates a widget based on a GenericOption. More...

#include <GenericOptionsWidgets.h>

Inheritance diagram for GenericOptionsWidget:
[legend]
Collaboration diagram for GenericOptionsWidget:
[legend]

Signals

void edited ()
 
void editingFinished ()
 

Public Member Functions

 GenericOptionsWidget (const GenericOption &option, QWidget *parent=nullptr)
 
 GenericOptionsWidget (QWidget *parent=nullptr)
 
GenericOptionoption ()
 
const GenericOptionoption () const
 
void refreshFileChooser ()
 
void refreshResetToDefault ()
 
void refreshWidget ()
 
void setOption (const GenericOption &option)
 

Protected Member Functions

void init ()
 
void refreshColorWidget ()
 
void refreshComboWidget ()
 
void refreshLineEditWidget ()
 
void refreshToggleWidget ()
 
void refreshVectorWidget ()
 

Protected Attributes

Buttonm_browse_button = nullptr
 
FileChooserDialogm_chooser_dialog = nullptr
 
GenericOption m_option
 
Buttonm_reset_button = nullptr
 
QWidget * m_widget = nullptr
 

Detailed Description

Automatically creates a widget based on a GenericOption.


Constructor & Destructor Documentation

◆ GenericOptionsWidget() [1/2]

GenericOptionsWidget ( const GenericOption & option,
QWidget * parent = nullptr )

◆ GenericOptionsWidget() [2/2]

GenericOptionsWidget ( QWidget * parent = nullptr)

Member Function Documentation

◆ edited

void edited ( )
signal

◆ editingFinished

void editingFinished ( )
signal

◆ init()

void init ( )
protected

◆ option() [1/2]

GenericOption & option ( )
inline

◆ option() [2/2]

const GenericOption & option ( ) const
inline

◆ refreshColorWidget()

void refreshColorWidget ( )
protected

◆ refreshComboWidget()

void refreshComboWidget ( )
protected

◆ refreshFileChooser()

void refreshFileChooser ( )

◆ refreshLineEditWidget()

void refreshLineEditWidget ( )
protected

◆ refreshResetToDefault()

void refreshResetToDefault ( )

◆ refreshToggleWidget()

void refreshToggleWidget ( )
protected

◆ refreshVectorWidget()

void refreshVectorWidget ( )
inlineprotected

◆ refreshWidget()

void refreshWidget ( )

◆ setOption()

void setOption ( const GenericOption & option)

Member Data Documentation

◆ m_browse_button

Button* m_browse_button = nullptr
protected

◆ m_chooser_dialog

FileChooserDialog* m_chooser_dialog = nullptr
protected

◆ m_option

GenericOption m_option
protected

◆ m_reset_button

Button* m_reset_button = nullptr
protected

◆ m_widget

QWidget* m_widget = nullptr
protected

The documentation for this class was generated from the following file: