RosAna
A rosette analyzer and synthesizer tool
 All Classes Namespaces Functions Variables Properties
Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
VariableAdjustWidget Class Reference

The VariableAdjustWidget class holds the GUI for rosette parameters. More...

Signals

void rowDeleted ()
 

Public Member Functions

 VariableAdjustWidget (QWidget *parent=0)
 Constructs VariableAdjustWidget. More...
 
 ~VariableAdjustWidget ()
 Destroys VariableAdjustWidget, deletes viewDelegate.
 
void setModel (QStandardItemModel *model)
 Sets a new model for parametersTableView and mapper. More...
 

Private Slots

void addRow ()
 Is executed when addRowButton is clicked. Adds a new row to the internal model.
 
void deleteRow ()
 Is executed when deleteRowButton is clicked. Gets the selected index from parametersTableView and deletes the corresponding row in its internal model. Emits signal rowDeleted()
 

Private Attributes

VariableEditDelegateviewDelegate
 
QDataWidgetMappermapper
 
QPushButtonaddRowButton
 
QPushButtondeleteRowButton
 
QTableViewparametersTableView
 

Detailed Description

The VariableAdjustWidget class holds the GUI for rosette parameters.

The VariableAdjustWidget class inherits QWidget. Parameters are set from a model shared with DrawWidget.

Constructor & Destructor Documentation

VariableAdjustWidget::VariableAdjustWidget ( QWidget parent = 0)
explicit

Constructs VariableAdjustWidget.

Initialize all GUI elements:

Parameters
parentThe parent of VariableAdjustWidget.

Member Function Documentation

VariableAdjustWidget::rowDeleted ( )
signal

This signal is emitted when a row has been deleted from the model.

void VariableAdjustWidget::setModel ( QStandardItemModel newModel)

Sets a new model for parametersTableView and mapper.

Parameters
newModelThe new model to display

Member Data Documentation

QPushButton* VariableAdjustWidget::addRowButton
private

Adds a row to paramteresTableView and the model.

QPushButton* VariableAdjustWidget::deleteRowButton
private

Deleted a row from paramtersTableView and the model.

QDataWidgetMapper* VariableAdjustWidget::mapper
private

Maps model values to strings.

QTableView* VariableAdjustWidget::parametersTableView
private

Displays the model parameters as a editable table.

VariableEditDelegate* VariableAdjustWidget::viewDelegate
private

Provides an interface between parametersTableview and the model.


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