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

StelMainWindow Class Reference

Reimplement a QMainWindow for Stellarium. More...

#include <StelMainWindow.hpp>

List of all members.

Public Slots

void toggleFullScreen ()
 Alternate fullscreen mode/windowed mode if possible.
bool getFullScreen () const
 Get whether fullscreen is activated or not.
void setFullScreen (bool)
 Set whether fullscreen is activated or not.

Public Member Functions

void init (QSettings *settings)
 Performs various initialization including the init of the StelMainGraphicsView instance.
void deinit ()
void initTitleI18n ()
 Set the application title for the current language.

Static Public Member Functions

static StelMainWindowgetInstance ()
 Get the StelMainWindow singleton instance.

Protected Member Functions

virtual void closeEvent (QCloseEvent *event)
 Reimplemented to delete openGL textures before the GLContext disappears.

Detailed Description

Reimplement a QMainWindow for Stellarium.

It is the class in charge of switching betwee fullscreen or windowed mode.


Member Function Documentation

virtual void StelMainWindow::closeEvent ( QCloseEvent *  event  )  [protected, virtual]

Reimplemented to delete openGL textures before the GLContext disappears.

bool StelMainWindow::getFullScreen (  )  const [slot]

Get whether fullscreen is activated or not.

static StelMainWindow& StelMainWindow::getInstance (  )  [inline, static]

Get the StelMainWindow singleton instance.

Returns:
the StelMainWindow singleton instance
void StelMainWindow::init ( QSettings *  settings  ) 

Performs various initialization including the init of the StelMainGraphicsView instance.

void StelMainWindow::initTitleI18n (  ) 

Set the application title for the current language.

This is useful for e.g. chinese.

void StelMainWindow::setFullScreen ( bool   )  [slot]

Set whether fullscreen is activated or not.

void StelMainWindow::toggleFullScreen (  )  [slot]

Alternate fullscreen mode/windowed mode if possible.

Generated on Sat Aug 25 22:13:33 2012 for Stellarium by  doxygen 1.6.3