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

The MainWindow class is the main window of RosAna. More...

Public Member Functions

 MainWindow (QWidget *parent=0)
 Contructs MainWindow. Sets up Gui and interactions. More...
 
 ~MainWindow ()
 Destroys MainWindow. Deletes exampleValues.
 

Private Slots

void helpDialog ()
 Executes HelpDialogWidget.
 
void loadDialog ()
 Executes LoadExampleDialog.
 
void setModels (int index)
 Gets the selected model from exampleValues and sets the new model for drawGraphWidget and variableAdjustmentWidget. More...
 
void tracedModel (QStandardItemModel *model)
 Is executed when a new model has been generated from Fourier analysis. More...
 
void setStatusBar (QString text)
 Is executed when a signal is triggered with a message for the status bar. More...
 
void clearStatusBar ()
 Is executed when a signal is triggered to clear the status bar.
 
void openImage ()
 Is executed when openImageAction is triggered. Opens an open file dialog.
 
void saveImage ()
 Is executed when saveImageAction is executed. Opens a save file dialog. More...
 
void updateActionBar (int index)
 Updates the action bar icons. Is executed when the active tab is changed. More...
 

Private Member Functions

void setupToolbar ()
 Sets up the main toolbar, adds actions and shortcuts.
 
void setShortcuts ()
 Adds extra shortcuts to MainWindow.
 

Private Attributes

DrawWidgetdrawGraphWidget
 
HelpDialogWidgethelpWidget
 
LoadExampleDialogloadExampleDialog
 
ProcessWidgetprocessImage
 
ReadExampleFileexampleValues
 
VariableAdjustWidgetvariableAdjustmentWidget
 

Detailed Description

The MainWindow class is the main window of RosAna.

Setup of Gui, interactions and connections is done in this class.

QTabWidget:

QDockWidget:

Dialogs:

Helpers:

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget parent = 0)
explicit

Contructs MainWindow. Sets up Gui and interactions.

Parameters
parentThe parent widget.

Member Function Documentation

void MainWindow::saveImage ( )
privateslot

Is executed when saveImageAction is executed. Opens a save file dialog.

Detects the current mode and forwards the save trigger to either ProcessWidget or DrawWidget

void MainWindow::setModels ( int  index)
privateslot

Gets the selected model from exampleValues and sets the new model for drawGraphWidget and variableAdjustmentWidget.

Parameters
indexThe selected index
void MainWindow::setStatusBar ( QString  text)
privateslot

Is executed when a signal is triggered with a message for the status bar.

Parameters
textThe text to display.
void MainWindow::tracedModel ( QStandardItemModel model)
privateslot

Is executed when a new model has been generated from Fourier analysis.

Sets the new model for DrawWidget and VariableAdjustWidget. Sets the current mode to synthesize.

Parameters
modelThe model resulting from Fourier analysis.
void MainWindow::updateActionBar ( int  index)
privateslot

Updates the action bar icons. Is executed when the active tab is changed.

Parameters
indexThe current tab index.

Member Data Documentation

DrawWidget* MainWindow::drawGraphWidget
private

The widget for synthesis mode.

ReadExampleFile* MainWindow::exampleValues
private

Class for reading example file.

HelpDialogWidget* MainWindow::helpWidget
private

Dialog for user guide and about.

LoadExampleDialog* MainWindow::loadExampleDialog
private

Dialog for selecting which example rosette to load.

ProcessWidget* MainWindow::processImage
private

The widget for process mode.

VariableAdjustWidget* MainWindow::variableAdjustmentWidget
private

Widget for editing of rosette parameters.


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