Vespucci  1.0.0
DataViewer Class Reference

The DataViewer class Window that displays dataset elements in a QTableView widget inside a QTabWidget. More...

#include <dataviewer.h>

Inheritance diagram for DataViewer:

Public Slots

void RemoveTab (int index)
 
void DatasetToBeRemoved (QString name)
 DataViewer::DatasetRemoved. More...
 
void MatrixToBeRemoved (QStringList keys)
 DataViewer::MatrixToBeRemoved. More...
 

Signals

void SetActionChecked (bool checked)
 

Public Member Functions

 DataViewer (MainWindow *parent, QSharedPointer< VespucciWorkspace > ws)
 DataViewer::DataViewer. More...
 
 ~DataViewer ()
 
void AddTab (QStringList keys)
 

Protected Member Functions

void closeEvent (QCloseEvent *ev)
 

Detailed Description

The DataViewer class Window that displays dataset elements in a QTableView widget inside a QTabWidget.

Definition at line 41 of file dataviewer.h.

Constructor & Destructor Documentation

DataViewer::DataViewer ( MainWindow parent,
QSharedPointer< VespucciWorkspace ws 
)
explicit

DataViewer::DataViewer.

Parameters
parentthe main window
wsThe "global" workspace, provides access to the data model.

Definition at line 29 of file dataviewer.cpp.

DataViewer::~DataViewer ( )

Definition at line 39 of file dataviewer.cpp.

Member Function Documentation

void DataViewer::AddTab ( QStringList  keys)

Definition at line 87 of file dataviewer.cpp.

void DataViewer::closeEvent ( QCloseEvent *  ev)
protected

Definition at line 97 of file dataviewer.cpp.

void DataViewer::DatasetToBeRemoved ( QString  name)
slot

DataViewer::DatasetRemoved.

Parameters
nameThe signal that triggers this slot must be issued BEFORE a dataset is removed from the model, or else a segfault could occur with open tabs containing the data (because the table model holds a reference and the reference becomes invalid when the dataset is removed)

Definition at line 59 of file dataviewer.cpp.

void DataViewer::MatrixToBeRemoved ( QStringList  keys)
slot

DataViewer::MatrixToBeRemoved.

Parameters
keysThe signal that triggers this slot must be emitted BEFORE the matrix is removed if not, bad things will happen.

Definition at line 76 of file dataviewer.cpp.

void DataViewer::RemoveTab ( int  index)
slot

Definition at line 44 of file dataviewer.cpp.

void DataViewer::SetActionChecked ( bool  checked)
signal

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