QguWindow Class Reference

This is the QguWLinput class. More...

#include <qgu.h>

Inheritance diagram for QguWindow:

DataSelectorWindow DataSelectorWindow QcalcWindow QjuiWindow qplugWindow QpWindow qwuiWindow

List of all members.

Public Slots

virtual void save ()
 Method saves the content of the window to a local file. Last used save file name is used if it exists, or default.
virtual void saveWithOut ()
 Method that saves the content of the current main window without the data using the previously provided filename.
virtual void saveAs ()
 Method saves the content of the working list within a local file using the filename as provided by the user.
virtual void saveWithOutAs ()
 Method that saves the content of the current main window without the data prompting the user to enter a filename.
virtual void include ()
virtual void restore (bool replace=true)
 Method that restores the content of the current window using the file selected by the user (or from session restore).
virtual void saveSession (QString)
 Method that saves the content of this window when saving the current QSAS session.
virtual void restoreSession (QString)
 Method that restores the content of this window when restoring a session.
void bringToFront ()
 Method that brings the current main window to the foreground and activates it.
virtual void save ()
virtual void saveWithOut ()
virtual void saveAs ()
virtual void saveWithOutAs ()
virtual void include ()
virtual void restore (bool replace=true)
virtual void saveSession (QString)
virtual void restoreSession (QString)
void bringToFront ()

Public Member Functions

 QguWindow (QWidget *parent=0, const char *name=0)
 Constructor of the QguWindow class.
 ~QguWindow ()
 Destructor of the QguWindow class.
virtual void save (Vostream &)=0
 Pure virtual fuction to save the contents of this window (session/working list). Overridden in sub-classes.
virtual void restore (Vistream &, bool replace=true)=0
void status (const QString &str)
 Function that displays the message str within the current window message bar.
void status (const QString &str, int ms)
 Function that displays the message str within the current window message bar.
QMenuBar * menu_bar ()
 Function that displays the message str within the current window message bar for ms milli-seconds.
QStatusBar * status_bar ()
 Function that returns the status bar pointer of the current main window object.
 QguWindow (QWidget *parent=0, const char *name=0)
 ~QguWindow ()
virtual void save (Vostream &)=0
virtual void restore (Vistream &, bool replace=true)=0
void status (const QString &str)
 Function that displays the message str within the current window message bar.
void status (const QString &str, int ms)
QMenuBar * menu_bar ()
QStatusBar * status_bar ()

Public Attributes

QMenuBar * _menu_bar
 Menu bar of the current main window object.
QStatusBar * msgBar
 Message bar of the current main window object (also qsas window).
QString _filename
 Filename used to save the current session or working list content.
QString SAVE_EXTENSION
 File extension used to save the current session or working list content.
bool fromSession
 Flag set to denote that this window save was initiated by a 'save session'.
int with
 Public member defining how main window is being saved (saved with/without data).
QString _saveset_filter

Static Public Attributes

static DataNamesTable_var _saved_objects = new DataNamesTable()
 Map associating item names to QD object pointers for objects being saved.
static DataNamesTable_var _restored_objects = new DataNamesTable()
 Map associating item names to QD object pointers for objects being restored.

Protected Member Functions

virtual void dragEnterEvent (QDragEnterEvent *event)
 This event handler is called when a drag is in progress and the mouse enters this widget. Method re-implemented from QWidget class (QT3 built-in class). Brings window to front to assist drops on partially hidden windows.


Detailed Description

This is the QguWLinput class.

This class specialises the QMainWindow class which provies a main application window.

Main windows are most often used to provide menus, toolbars and a status bar around a large central widget.

It inherits QMainWindow which is a built-in QT3 class

Remarks:
{ This class includes Q_OBJECT which is a QT3 macro that is used in all sub-classes of QObject in order to benefit from the QT's Meta object system which are signals and slots mechanisms for inter-object communication, runtime type information and the dynamic property system }

Constructor & Destructor Documentation

QguWindow::QguWindow ( QWidget *  parent = 0,
const char *  name = 0 
)

Constructor of the QguWindow class.

Parameters:
parent of type QWidget *
name of type const char *
Exceptions:
None 
Returns:
None

QguWindow::~QguWindow (  ) 

Destructor of the QguWindow class.

Parameters:
None 
Exceptions:
None 
Returns:
None

QguWindow::QguWindow ( QWidget *  parent = 0,
const char *  name = 0 
)

QguWindow::~QguWindow (  ) 


Member Function Documentation

void QguWindow::bringToFront (  )  [slot]

void QguWindow::bringToFront (  )  [slot]

Method that brings the current main window to the foreground and activates it.

Parameters:
None 
Exceptions:
None 
Returns:
None

void QguWindow::dragEnterEvent ( QDragEnterEvent *  event  )  [protected, virtual]

This event handler is called when a drag is in progress and the mouse enters this widget. Method re-implemented from QWidget class (QT3 built-in class). Brings window to front to assist drops on partially hidden windows.

Parameters:
event of type QDragEnterEvent *
Exceptions:
None 
Returns:
None

Reimplemented in QcalcWindow, and QjuiWindow.

virtual void QguWindow::include (  )  [virtual, slot]

void QguWindow::include (  )  [virtual, slot]

QMenuBar* QguWindow::menu_bar (  )  [inline]

Reimplemented in QpWindow.

QMenuBar * QguWindow::menu_bar (  )  [inline]

Function that displays the message str within the current window message bar for ms milli-seconds.

Parameters:
str of const QString& type
Exceptions:
None 
Returns:
None

Reimplemented in QpWindow.

virtual void QguWindow::restore ( bool  replace = true  )  [virtual, slot]

virtual void QguWindow::restore ( Vistream ,
bool  replace = true 
) [pure virtual]

void QguWindow::restore ( bool  replace = true  )  [virtual, slot]

Method that restores the content of the current window using the file selected by the user (or from session restore).

Parameters:
bool replace
Exceptions:
None 
Returns:
None

virtual void QguWindow::restore ( Vistream ,
bool  replace = true 
) [pure virtual]

virtual void QguWindow::restoreSession ( QString   )  [virtual, slot]

void QguWindow::restoreSession ( QString  folder  )  [virtual, slot]

Method that restores the content of this window when restoring a session.

Parameters:
folder of type QString
Exceptions:
None 
Returns:
None

virtual void QguWindow::save (  )  [virtual, slot]

virtual void QguWindow::save ( Vostream  )  [pure virtual]

void QguWindow::save (  )  [virtual, slot]

Method saves the content of the window to a local file. Last used save file name is used if it exists, or default.

Parameters:
None 
Exceptions:
None 
Returns:
None

Reimplemented in QcalcWindow, QjuiWindow, qplugWindow, DataSelectorWindow, and DataSelectorWindow.

void QguWindow::save ( Vostream  )  [pure virtual]

Pure virtual fuction to save the contents of this window (session/working list). Overridden in sub-classes.

Parameters:
Vostream& 
Exceptions:
None 
Returns:
None

Implemented in QcalcWindow, QjuiWindow, qplugWindow, qwuiWindow, DataSelectorWindow, DataSelectorWindow, and QpWindow.

virtual void QguWindow::saveAs (  )  [virtual, slot]

void QguWindow::saveAs (  )  [virtual, slot]

Method saves the content of the working list within a local file using the filename as provided by the user.

Parameters:
None 
Exceptions:
None 
Returns:
None

Reimplemented in QcalcWindow, QjuiWindow, qplugWindow, DataSelectorWindow, and DataSelectorWindow.

virtual void QguWindow::saveSession ( QString   )  [virtual, slot]

void QguWindow::saveSession ( QString  folder  )  [virtual, slot]

Method that saves the content of this window when saving the current QSAS session.

Parameters:
folder of type QString
Exceptions:
None 
Returns:
None

Reimplemented in QcalcWindow, QjuiWindow, qplugWindow, DataSelectorWindow, and DataSelectorWindow.

virtual void QguWindow::saveWithOut (  )  [virtual, slot]

void QguWindow::saveWithOut (  )  [virtual, slot]

Method that saves the content of the current main window without the data using the previously provided filename.

Parameters:
None 
Exceptions:
None 
Returns:
None

virtual void QguWindow::saveWithOutAs (  )  [virtual, slot]

void QguWindow::saveWithOutAs (  )  [virtual, slot]

Method that saves the content of the current main window without the data prompting the user to enter a filename.

Parameters:
None 
Exceptions:
None 
Returns:
None

void QguWindow::status ( const QString &  str,
int  ms 
)

void QguWindow::status ( const QString &  str  ) 

Function that displays the message str within the current window message bar.

Parameters:
str of const QString& type
Exceptions:
None 
Returns:
None

Reimplemented in QpWindow.

void QguWindow::status ( const QString &  str,
int  ms 
)

Function that displays the message str within the current window message bar.

Parameters:
str of const QString& type
ms of int type
Exceptions:
None 
Returns:
None

void QguWindow::status ( const QString &  str  ) 

Function that displays the message str within the current window message bar.

Parameters:
str of const QString& type
Exceptions:
None 
Returns:
None

Reimplemented in QpWindow.

QStatusBar* QguWindow::status_bar (  )  [inline]

QStatusBar * QguWindow::status_bar (  )  [inline]

Function that returns the status bar pointer of the current main window object.

Parameters:
None 
Exceptions:
None 
Returns:
None


Member Data Documentation

Filename used to save the current session or working list content.

Menu bar of the current main window object.

Reimplemented in QpWindow.

Map associating item names to QD object pointers for objects being restored.

Map associating item names to QD object pointers for objects being saved.

Flag set to denote that this window save was initiated by a 'save session'.

QStatusBar * QguWindow::msgBar

Message bar of the current main window object (also qsas window).

File extension used to save the current session or working list content.

Public member defining how main window is being saved (saved with/without data).


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

Generated on Tue Dec 9 16:55:37 2008 for QSAS by  doxygen 1.5.7