MainWindow Class Reference
[GUI]

The GUI for the main window of imedgine. More...

#include <main_window.h>

Inherits QMainWindow.

Collaboration diagram for MainWindow:

Collaboration graph
[legend]
List of all members.

Public Slots

void openOverview (dataset_key_type const &dataset)
void newDatasetsAdded (std::vector< std::pair< dataset_key_type, dataset_type > > const &dataset_keys_and_types)
void openNewWorkspace (const std::vector< view_pointer_type > &view_vector)

Signals

void newDatasetLoaded (dataset_key_type const &dataset_name)
void closeDatasetSignal (dataset_key_type const &dataset)

Public Member Functions

 MainWindow ()
virtual ~MainWindow ()
void openOverview (dataset_key_type const &dataset, dataset_type type)

Detailed Description

The GUI for the main window of imedgine.

This class is called by the main function. It creates the GUI, sets up actions, connects signals and slots. All GUI flow control is handled by it.

Author:
Tobias Gross (tobias.gross@imedgine.org)

Christian Koerner (christian.koerner@imedgine.org)

Alexander Lex (alexander.lex@imedgine.org)

Marc Streit (marc.streit@imedgine.org)

Martin Reininger (martin.reininger@imedgine.org)

Definition at line 68 of file main_window.h.


Constructor & Destructor Documentation

MainWindow  ) 
 

Constructor

Definition at line 49 of file main_window.cpp.

~MainWindow  )  [virtual]
 

Destructor

Definition at line 63 of file main_window.cpp.


Member Function Documentation

void closeDatasetSignal dataset_key_type const &  dataset  )  [signal]
 

Signal which is emitted when a dataset is being closed

Parameters:
dataset id of the dataset

void newDatasetLoaded dataset_key_type const &  dataset_name  )  [signal]
 

signal which is emitted when a new dataset was loaded into the system

Parameters:
dataset id of the dataset

void newDatasetsAdded std::vector< std::pair< dataset_key_type, dataset_type > > const &  dataset_keys_and_types  )  [slot]
 

Slot which reacts to the addition of new datasets. It opens an overview tab for these datasets and adds their keys into the dataset viewer

Parameters:
dataset_keys_and_types The keys and the types of the new datasets

Definition at line 71 of file main_window.cpp.

References DatasetsViewer::addDataset(), and MainWindow::openOverview().

void openNewWorkspace const std::vector< view_pointer_type > &  view_vector  )  [slot]
 

slot which opens a new workspace with a number of views which are specified in a vector

Parameters:
view_vector a vector containing the selected views

Definition at line 125 of file main_window.cpp.

References TabOrganizer::addTab().

void openOverview dataset_key_type const &  dataset  )  [slot]
 

slot which opens a new overview of a specified dataset into the central taborganizer

Parameters:
dataset the wanted dataset

Definition at line 113 of file main_window.cpp.

void openOverview dataset_key_type const &  dataset,
dataset_type  type
 

Opens a new overview of the specified dataset into the central taborganizer

Parameters:
dataset The key of the dataset
type The type of the dataset

Definition at line 87 of file main_window.cpp.

References TabOrganizer::openOverviewForImage(), and TabOrganizer::openOverviewForVolume().

Referenced by MainWindow::newDatasetsAdded().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Aug 13 18:20:04 2006 for iMEDgine by  doxygen 1.4.6