OpenStructure
Public Slots | Public Member Functions
Perspective Class Reference

#include <perspective.hh>

Inherits QObject.

Public Slots

void StatusMessage (const String &m)
 

Public Member Functions

 Perspective (QMainWindow *parent)
 
 ~Perspective ()
 
QMenuBar * GetMenuBar ()
 
QMenu * GetMenu (const QString &name)
 
PanelManagerGetPanels ()
 
MainAreaGetMainArea ()
 
void HideAllBars ()
 
bool Restore ()
 
bool Save ()
 
void ChangeVerbositySlider (int value)
 

Detailed Description

The perspective manages the layout of the widgets inside the main window. It contains important classes which itself manages again a sub part of the whole layout.

Definition at line 50 of file perspective.hh.

Constructor & Destructor Documentation

◆ Perspective()

Perspective ( QMainWindow *  parent)

◆ ~Perspective()

Member Function Documentation

◆ ChangeVerbositySlider()

void ChangeVerbositySlider ( int  value)

◆ GetMainArea()

MainArea* GetMainArea ( )

Returns the MainArea.

Returns
The main area which is used in this perspective.

◆ GetMenu()

QMenu* GetMenu ( const QString &  name)

get QMenu that corresponds to the given name

Returns
The menu with the given name. If it does not exist, it will be created and returned.

◆ GetMenuBar()

QMenuBar* GetMenuBar ( )

Returns Menubar.

Returns
The Menubar of the Application. Can be used to add some menupoints.

◆ GetPanels()

PanelManager* GetPanels ( )

The PanelManager class organizes all the widgets in the side panels.

Returns
The PanelManager instance which is used in this perspective.

◆ HideAllBars()

void HideAllBars ( )

hide all bars Hides all side bars. Can be used if the MainArea should be expanded to full size.

◆ Restore()

bool Restore ( )

read last perspective from QSettings

Returns
Returns true if it was successful. Otherwise false

◆ Save()

bool Save ( )

save settings (internal use)

Returns
Returns true if it was successful. Otherwise false

◆ StatusMessage

void StatusMessage ( const String m)
slot

set status message

Parameters
mThe message that will be displayed in the status bar.

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