Vespucci  1.0.0
MainWindow Class Reference

The MainWindow class The main window of the program, this is where the user performs most operations. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:

Public Slots

void RangeDialogAccepted (double min, double max)
 
void SetPlotViewerActionChecked (bool checked)
 
void SetDataViewerActionChecked (bool checked)
 
void SetStatsViewerActionChecked (bool checked)
 
void SetSpectrumEditorActionChecked (bool checked)
 
void SetMacroEditorActionChecked (bool checked)
 
void SetPythonShellActionChecked (bool checked)
 
void SetHistoryDialogActionChecked (bool checked)
 
void SpectrumRequested (QString dataset_key, QString map_name, size_t index)
 
void HeldSpectrumRequested (QString dataset_key, QString map_name, size_t index)
 
void ItemSelected (TreeItem *item)
 

Signals

void DatasetSelectionChanged (QString dataset_key)
 
void MatrixSelectionChanged (QStringList matrix_keys)
 
void DatasetToBeRemoved (QString name)
 
void MatrixToBeRemoved (QStringList keys)
 

Public Member Functions

 MainWindow (QWidget *parent, QSharedPointer< VespucciWorkspace > ws)
 MainWindow::MainWindow. More...
 
 ~MainWindow ()
 
void RefreshTreeModel (const DataModel *data_model)
 MainWindow::RefreshTreeModel. More...
 
QCPRangeglobal_data_range ()
 
QCPColorGradientglobal_gradient ()
 
void RecalculateGlobalDataRange (QCPRange *new_data_range)
 
void RefreshGlobalColorGradient (QCPColorGradient new_gradient)
 
void SetGlobalDataRange (QCPRange *new_data_range)
 
QSharedPointer< VespucciWorkspaceworkspace_ptr ()
 MainWindow::workspace_ptr. More...
 
void DisplayExceptionWarning (std::exception e)
 MainWindow::DisplayExceptionWarning. More...
 
void DisplayExceptionWarning (std::string where, std::exception e)
 
QListView * map_list_view ()
 
void SetActiveDatasetListRow (const QModelIndex &index)
 
void SetActiveDatasetTreeIndex (const QModelIndex &index)
 
void DisplayWarning (const QString &title, const QString &text)
 
void DisplayInformation (const QString &title, const QString &text)
 
void SetDatasetTreeModel (DatasetTreeModel *new_model)
 
DatasetTreeModeldataset_tree_model ()
 
PlotViewerplot_viewer ()
 
DataViewerdata_viewer ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 MainWindow::closeEvent. More...
 

Detailed Description

The MainWindow class The main window of the program, this is where the user performs most operations.

Definition at line 58 of file mainwindow.h.

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent,
QSharedPointer< VespucciWorkspace ws 
)
explicit

MainWindow::MainWindow.

Parameters
parentusually 0
wsthe workspace of this instance of Vespucci Default constructor

Definition at line 67 of file mainwindow.cpp.

MainWindow::~MainWindow ( )

Definition at line 140 of file mainwindow.cpp.

Member Function Documentation

void MainWindow::closeEvent ( QCloseEvent *  event)
protected

MainWindow::closeEvent.

Parameters
eventExits the program

Definition at line 162 of file mainwindow.cpp.

DataViewer * MainWindow::data_viewer ( )

Definition at line 895 of file mainwindow.cpp.

DatasetTreeModel * MainWindow::dataset_tree_model ( )

Definition at line 885 of file mainwindow.cpp.

void MainWindow::DatasetSelectionChanged ( QString  dataset_key)
signal
void MainWindow::DatasetToBeRemoved ( QString  name)
signal
void MainWindow::DisplayExceptionWarning ( std::exception  e)

MainWindow::DisplayExceptionWarning.

Parameters
eUsed to handle exceptions arising from dialogs. Displays a pop-up box describing the nature of the error. Most exceptions are not critical, but will result in the action that caused the exception being canceled.

Definition at line 845 of file mainwindow.cpp.

void MainWindow::DisplayExceptionWarning ( std::string  where,
std::exception  e 
)
void MainWindow::DisplayInformation ( const QString &  title,
const QString &  text 
)

Definition at line 875 of file mainwindow.cpp.

void MainWindow::DisplayWarning ( const QString &  title,
const QString &  text 
)

Definition at line 867 of file mainwindow.cpp.

QCPRange* MainWindow::global_data_range ( )
QCPColorGradient* MainWindow::global_gradient ( )
void MainWindow::HeldSpectrumRequested ( QString  dataset_key,
QString  map_name,
size_t  index 
)
slot

Definition at line 1002 of file mainwindow.cpp.

void MainWindow::ItemSelected ( TreeItem item)
slot

Definition at line 1011 of file mainwindow.cpp.

QListView* MainWindow::map_list_view ( )
void MainWindow::MatrixSelectionChanged ( QStringList  matrix_keys)
signal
void MainWindow::MatrixToBeRemoved ( QStringList  keys)
signal
PlotViewer * MainWindow::plot_viewer ( )

Definition at line 890 of file mainwindow.cpp.

void MainWindow::RangeDialogAccepted ( double  min,
double  max 
)
slot

Definition at line 941 of file mainwindow.cpp.

void MainWindow::RecalculateGlobalDataRange ( QCPRange new_data_range)
void MainWindow::RefreshGlobalColorGradient ( QCPColorGradient  new_gradient)
void MainWindow::RefreshTreeModel ( const DataModel data_model)

MainWindow::RefreshTreeModel.

Parameters
data_modelCreates a new DatasetTreeModel and changes the tree view to the new model

Definition at line 149 of file mainwindow.cpp.

void MainWindow::SetActiveDatasetListRow ( const QModelIndex &  index)
void MainWindow::SetActiveDatasetTreeIndex ( const QModelIndex &  index)

Definition at line 861 of file mainwindow.cpp.

void MainWindow::SetDatasetTreeModel ( DatasetTreeModel new_model)

Definition at line 880 of file mainwindow.cpp.

void MainWindow::SetDataViewerActionChecked ( bool  checked)
slot

Definition at line 963 of file mainwindow.cpp.

void MainWindow::SetGlobalDataRange ( QCPRange new_data_range)
void MainWindow::SetHistoryDialogActionChecked ( bool  checked)
slot

Definition at line 988 of file mainwindow.cpp.

void MainWindow::SetMacroEditorActionChecked ( bool  checked)
slot

Definition at line 978 of file mainwindow.cpp.

void MainWindow::SetPlotViewerActionChecked ( bool  checked)
slot

Definition at line 958 of file mainwindow.cpp.

void MainWindow::SetPythonShellActionChecked ( bool  checked)
slot

Definition at line 983 of file mainwindow.cpp.

void MainWindow::SetSpectrumEditorActionChecked ( bool  checked)
slot

Definition at line 973 of file mainwindow.cpp.

void MainWindow::SetStatsViewerActionChecked ( bool  checked)
slot

Definition at line 968 of file mainwindow.cpp.

void MainWindow::SpectrumRequested ( QString  dataset_key,
QString  map_name,
size_t  index 
)
slot

Definition at line 993 of file mainwindow.cpp.

QSharedPointer< VespucciWorkspace > MainWindow::workspace_ptr ( )

MainWindow::workspace_ptr.

Returns
Very kludgy way of getting the workspace variable to window variables.

Definition at line 794 of file mainwindow.cpp.


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