OpenWalnut
1.5.0dev
|
Widget that handles WDataModuleInputs of WDtaModules. More...
#include <WQtDataModuleInput.h>
Public Slots | |
void | onChange () |
Called when the user presses the change button. More... | |
void | onReload () |
Triggered for reload. More... | |
void | onClear () |
Clear the source. More... | |
Public Member Functions | |
WQtDataModuleInput (WDataModule::SPtr module, QWidget *parent=NULL) | |
Constructor. More... | |
virtual | ~WQtDataModuleInput () |
Destructor. More... | |
Private Member Functions | |
void | onInputChange () |
Called by the input change condition. More... | |
void | onInputChangeGUI () |
Called by input change condition in GUI thread. More... | |
Private Attributes | |
WDataModule::SPtr | m_module |
The input to manage. More... | |
QWidget * | m_container |
Container for all. More... | |
QWidget * | m_mainWidget |
This is the main widget containing the reload button, label and the change button it is nested in the container. More... | |
QHBoxLayout * | m_mainLayout |
Layout. More... | |
QVBoxLayout * | m_layout |
Layout. More... | |
QToolButton * | m_changeButton |
The button to open the input dialog. More... | |
QToolButton * | m_reloadButton |
The reload button. More... | |
QToolButton * | m_clearButton |
The clear button. More... | |
WScaleLabel * | m_label |
The label. More... | |
boost::signals2::connection | m_inputChangeConnection |
Stay informed about changes in the input. More... | |
Widget that handles WDataModuleInputs of WDtaModules.
Right now it only handles WDataModuleInputFile. See #32 for details on how this will be changed.
Definition at line 43 of file WQtDataModuleInput.h.
WQtDataModuleInput::WQtDataModuleInput | ( | WDataModule::SPtr | module, |
QWidget * | parent = NULL |
||
) |
Constructor.
module | the data module to handle |
parent | the parent widget |
Definition at line 40 of file WQtDataModuleInput.cpp.
References WQtPropertyGroupWidget::createPropertyGroupBox(), WIconManager::getIcon(), WQtGui::getIconManager(), m_changeButton, m_clearButton, m_container, m_inputChangeConnection, m_label, m_layout, m_mainLayout, m_mainWidget, m_reloadButton, onChange(), onClear(), onInputChange(), onInputChangeGUI(), onReload(), and WScaleLabel::setText().
|
virtual |
Destructor.
Definition at line 99 of file WQtDataModuleInput.cpp.
References m_inputChangeConnection.
|
slot |
Called when the user presses the change button.
Definition at line 122 of file WQtDataModuleInput.cpp.
References WDataModuleInputFile::getFilename(), WQtGui::getSettings(), and m_module.
Referenced by WQtDataModuleInput().
|
slot |
Clear the source.
Definition at line 175 of file WQtDataModuleInput.cpp.
References m_module.
Referenced by WQtDataModuleInput().
|
private |
Called by the input change condition.
Definition at line 104 of file WQtDataModuleInput.cpp.
References WQtGui::execInGUIThreadAsync(), and onInputChangeGUI().
Referenced by WQtDataModuleInput().
|
private |
Called by input change condition in GUI thread.
Definition at line 109 of file WQtDataModuleInput.cpp.
References m_label, m_module, and WScaleLabel::setText().
Referenced by onInputChange(), and WQtDataModuleInput().
|
slot |
Triggered for reload.
Definition at line 170 of file WQtDataModuleInput.cpp.
References m_module.
Referenced by WQtDataModuleInput().
|
private |
The button to open the input dialog.
Definition at line 106 of file WQtDataModuleInput.h.
Referenced by WQtDataModuleInput().
|
private |
The clear button.
Definition at line 116 of file WQtDataModuleInput.h.
Referenced by WQtDataModuleInput().
|
private |
Container for all.
Definition at line 86 of file WQtDataModuleInput.h.
Referenced by WQtDataModuleInput().
|
private |
Stay informed about changes in the input.
Definition at line 126 of file WQtDataModuleInput.h.
Referenced by WQtDataModuleInput(), and ~WQtDataModuleInput().
|
private |
The label.
Definition at line 121 of file WQtDataModuleInput.h.
Referenced by onInputChangeGUI(), and WQtDataModuleInput().
|
private |
|
private |
|
private |
This is the main widget containing the reload button, label and the change button it is nested in the container.
Definition at line 91 of file WQtDataModuleInput.h.
Referenced by WQtDataModuleInput().
|
private |
The input to manage.
Definition at line 81 of file WQtDataModuleInput.h.
Referenced by onChange(), onClear(), onInputChangeGUI(), and onReload().
|
private |
The reload button.
Definition at line 111 of file WQtDataModuleInput.h.
Referenced by WQtDataModuleInput().