Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

StelGuiBase Class Reference

Abstract class defining the base interface for all GUIs. More...

#include <StelGuiBase.hpp>

Inherited by StelGui, and StelNoGui.

List of all members.

Public Member Functions

virtual void init (QGraphicsWidget *topLevelGraphicsWidget, class StelAppGraphicsWidget *stelAppGraphicsWidget)
virtual void updateI18n ()
virtual void setStelStyle (const StelStyle &style)=0
virtual void setInfoTextFilters (const StelObject::InfoStringGroup &aflags)=0
virtual const
StelObject::InfoStringGroup
getInfoTextFilters () const =0
virtual class QProgressBar * addProgressBar ()=0
virtual QAction * addGuiActions (const QString &actionName, const QString &text, const QString &shortCut, const QString &helpGroup, bool checkable=true, bool autoRepeat=false)
virtual QAction * getGuiActions (const QString &actionName)
virtual void forceRefreshGui ()
virtual void setVisible (bool b)=0
virtual bool getVisible () const =0
virtual bool isCurrentlyUsed () const =0

Protected Attributes

class StelAppGraphicsWidgetstelAppGraphicsWidget


Detailed Description

Abstract class defining the base interface for all GUIs.


Member Function Documentation

virtual void StelGuiBase::updateI18n (  )  [virtual]

Translate all texts to the new Locale.

Reimplemented in StelGui, and StelNoGui.

virtual void StelGuiBase::setStelStyle ( const StelStyle style  )  [pure virtual]

Load color scheme from the given ini file and section name.

Implemented in StelGui, and StelNoGui.

virtual void StelGuiBase::setInfoTextFilters ( const StelObject::InfoStringGroup aflags  )  [pure virtual]

Get a pointer on the info panel used to display selected object info.

Implemented in StelGui, and StelNoGui.

virtual class QProgressBar* StelGuiBase::addProgressBar (  )  [pure virtual]

Add a new progress bar in the lower right corner of the screen.

When the progress bar is deleted the layout is automatically rearranged.

Returns:
a pointer to the progress bar.

Implemented in StelGui, and StelNoGui.

virtual QAction* StelGuiBase::addGuiActions ( const QString &  actionName,
const QString &  text,
const QString &  shortCut,
const QString &  helpGroup,
bool  checkable = true,
bool  autoRepeat = false 
) [virtual]

Add a new action managed by the GUI.

This method should be used to add new shortcuts to the program

Parameters:
actionName qt object name. Used as a reference for later uses
text the text to display when hovering, or in the help window
shortCut the qt shortcut to use
helpGroup hint on how to group the text in the help window
checkable whether the action should be checkable
autoRepeat whether the action should be autorepeated

Reimplemented in StelGui, and StelNoGui.

virtual QAction* StelGuiBase::getGuiActions ( const QString &  actionName  )  [virtual]

Get a pointer on an action managed by the GUI.

Parameters:
actionName qt object name for this action
Returns:
a pointer on the QAction object or NULL if don't exist

Reimplemented in StelNoGui.

virtual void StelGuiBase::setVisible ( bool  b  )  [pure virtual]

Show whether the GUI is visible.

Parameters:
b when true, GUI will be shown, else it will be hidden.

Implemented in StelGui, and StelNoGui.

virtual bool StelGuiBase::getVisible (  )  const [pure virtual]

Get the current visible status of the GUI.

Implemented in StelGui, and StelNoGui.

virtual bool StelGuiBase::isCurrentlyUsed (  )  const [pure virtual]

Show wether the Gui is currently used.

This can then be used to optimize the rendering to increase reactivity.

Implemented in StelGui, and StelNoGui.


Generated on Mon Mar 22 09:55:38 2010 for Stellarium by  doxygen 1.5.5