OpenWalnut  1.5.0dev
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
WQtDataModuleInput Class Reference

Widget that handles WDataModuleInputs of WDtaModules. More...

#include <WQtDataModuleInput.h>

+ Inheritance diagram for WQtDataModuleInput:
+ Collaboration diagram for WQtDataModuleInput:

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...
 
WScaleLabelm_label
 The label. More...
 
boost::signals2::connection m_inputChangeConnection
 Stay informed about changes in the input. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ WQtDataModuleInput()

WQtDataModuleInput::WQtDataModuleInput ( WDataModule::SPtr  module,
QWidget *  parent = NULL 
)

◆ ~WQtDataModuleInput()

WQtDataModuleInput::~WQtDataModuleInput ( )
virtual

Destructor.

Definition at line 99 of file WQtDataModuleInput.cpp.

References m_inputChangeConnection.

Member Function Documentation

◆ onChange

void WQtDataModuleInput::onChange ( )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onClear

void WQtDataModuleInput::onClear ( )
slot

Clear the source.

Definition at line 175 of file WQtDataModuleInput.cpp.

References m_module.

Referenced by WQtDataModuleInput().

+ Here is the caller graph for this function:

◆ onInputChange()

void WQtDataModuleInput::onInputChange ( )
private

Called by the input change condition.

Definition at line 104 of file WQtDataModuleInput.cpp.

References WQtGui::execInGUIThreadAsync(), and onInputChangeGUI().

Referenced by WQtDataModuleInput().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onInputChangeGUI()

void WQtDataModuleInput::onInputChangeGUI ( )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onReload

void WQtDataModuleInput::onReload ( )
slot

Triggered for reload.

Definition at line 170 of file WQtDataModuleInput.cpp.

References m_module.

Referenced by WQtDataModuleInput().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_changeButton

QToolButton* WQtDataModuleInput::m_changeButton
private

The button to open the input dialog.

Definition at line 106 of file WQtDataModuleInput.h.

Referenced by WQtDataModuleInput().

◆ m_clearButton

QToolButton* WQtDataModuleInput::m_clearButton
private

The clear button.

Definition at line 116 of file WQtDataModuleInput.h.

Referenced by WQtDataModuleInput().

◆ m_container

QWidget* WQtDataModuleInput::m_container
private

Container for all.

Definition at line 86 of file WQtDataModuleInput.h.

Referenced by WQtDataModuleInput().

◆ m_inputChangeConnection

boost::signals2::connection WQtDataModuleInput::m_inputChangeConnection
private

Stay informed about changes in the input.

Definition at line 126 of file WQtDataModuleInput.h.

Referenced by WQtDataModuleInput(), and ~WQtDataModuleInput().

◆ m_label

WScaleLabel* WQtDataModuleInput::m_label
private

The label.

Definition at line 121 of file WQtDataModuleInput.h.

Referenced by onInputChangeGUI(), and WQtDataModuleInput().

◆ m_layout

QVBoxLayout* WQtDataModuleInput::m_layout
private

Layout.

Definition at line 101 of file WQtDataModuleInput.h.

Referenced by WQtDataModuleInput().

◆ m_mainLayout

QHBoxLayout* WQtDataModuleInput::m_mainLayout
private

Layout.

Definition at line 96 of file WQtDataModuleInput.h.

Referenced by WQtDataModuleInput().

◆ m_mainWidget

QWidget* WQtDataModuleInput::m_mainWidget
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().

◆ m_module

WDataModule::SPtr WQtDataModuleInput::m_module
private

The input to manage.

Definition at line 81 of file WQtDataModuleInput.h.

Referenced by onChange(), onClear(), onInputChangeGUI(), and onReload().

◆ m_reloadButton

QToolButton* WQtDataModuleInput::m_reloadButton
private

The reload button.

Definition at line 111 of file WQtDataModuleInput.h.

Referenced by WQtDataModuleInput().


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