NCL Composer  0.1.5
 All Classes Functions Variables Pages
composer::gui::PerspectiveManager Class Reference

A dialog that allows the user to choose or save one perspective. More...

#include <PerspectiveManager.h>

Inheritance diagram for composer::gui::PerspectiveManager:
Collaboration diagram for composer::gui::PerspectiveManager:

Public Slots

void accept ()
 Called when the user clicks OK button.
 

Public Member Functions

 PerspectiveManager (QWidget *parent=0)
 Constructor. More...
 
virtual ~PerspectiveManager ()
 Destructor.
 
QString getSelectedName ()
 Get the name of the perspective the user has selected. More...
 
QString getDefaultPerspective ()
 Get the name of the default perspective the user has selected. More...
 
void setBehavior (PERSPEC_BEHAVIOR behavior)
 Set the current behavior of the PerpectiveManager. More...
 

Protected Member Functions

void showEvent (QShowEvent *)
 Reimplemented to update the dialog with the information of.
 
void deletePerspective (QString name)
 Removes the perspective with name: name. More...
 

Detailed Description

A dialog that allows the user to choose or save one perspective.

Definition at line 34 of file PerspectiveManager.h.

Constructor & Destructor Documentation

composer::gui::PerspectiveManager::PerspectiveManager ( QWidget *  parent = 0)

Constructor.

Parameters
parentThe parent of this class.

Definition at line 23 of file PerspectiveManager.cpp.

Member Function Documentation

void composer::gui::PerspectiveManager::deletePerspective ( QString  name)
protected

Removes the perspective with name: name.

Parameters
nameThe name of the perspective to be removed.

Definition at line 164 of file PerspectiveManager.cpp.

QString composer::gui::PerspectiveManager::getDefaultPerspective ( )

Get the name of the default perspective the user has selected.

Returns
QString The name of the default perspective selected.

Definition at line 159 of file PerspectiveManager.cpp.

QString composer::gui::PerspectiveManager::getSelectedName ( )

Get the name of the perspective the user has selected.

Returns
QString The name of the perspective selected.

Definition at line 154 of file PerspectiveManager.cpp.

void composer::gui::PerspectiveManager::setBehavior ( PERSPEC_BEHAVIOR  behavior)

Set the current behavior of the PerpectiveManager.

This function must be called before the show event to have effect.

Parameters
behavior

Definition at line 47 of file PerspectiveManager.cpp.


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