#include <qgu.h>

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. | |
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
| QguWindow::QguWindow | ( | QWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
Constructor of the QguWindow class.
| parent | of type QWidget * | |
| name | of type const char * |
| None |
| QguWindow::~QguWindow | ( | ) |
| QguWindow::QguWindow | ( | QWidget * | parent = 0, |
|
| const char * | name = 0 | |||
| ) |
| QguWindow::~QguWindow | ( | ) |
| void QguWindow::bringToFront | ( | ) | [slot] |
| void QguWindow::bringToFront | ( | ) | [slot] |
Method that brings the current main window to the foreground and activates it.
| None |
| 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.
| event | of type QDragEnterEvent * |
| 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.
| str | of const QString& type |
| None |
Reimplemented in QpWindow.
| virtual void QguWindow::restore | ( | bool | replace = true |
) | [virtual, slot] |
| virtual void QguWindow::restore | ( | Vistream & | , | |
| bool | replace = true | |||
| ) | [pure virtual] |
Implemented in QcalcWindow, QjuiWindow, qplugWindow, qwuiWindow, DataSelectorWindow, DataSelectorWindow, and QpWindow.
| 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).
| bool | replace |
| None |
| virtual void QguWindow::restore | ( | Vistream & | , | |
| bool | replace = true | |||
| ) | [pure virtual] |
Implemented in QcalcWindow, QjuiWindow, qplugWindow, qwuiWindow, DataSelectorWindow, DataSelectorWindow, and QpWindow.
| 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.
| folder | of type QString |
| None |
| virtual void QguWindow::save | ( | ) | [virtual, slot] |
Reimplemented in QcalcWindow, QjuiWindow, qplugWindow, DataSelectorWindow, and DataSelectorWindow.
| virtual void QguWindow::save | ( | Vostream & | ) | [pure virtual] |
Implemented in QcalcWindow, QjuiWindow, qplugWindow, qwuiWindow, DataSelectorWindow, DataSelectorWindow, and QpWindow.
| 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.
| None |
| 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.
| Vostream& |
| None |
Implemented in QcalcWindow, QjuiWindow, qplugWindow, qwuiWindow, DataSelectorWindow, DataSelectorWindow, and QpWindow.
| virtual void QguWindow::saveAs | ( | ) | [virtual, slot] |
Reimplemented in QcalcWindow, QjuiWindow, qplugWindow, DataSelectorWindow, and DataSelectorWindow.
| 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.
| None |
| None |
Reimplemented in QcalcWindow, QjuiWindow, qplugWindow, DataSelectorWindow, and DataSelectorWindow.
| virtual void QguWindow::saveSession | ( | QString | ) | [virtual, slot] |
Reimplemented in QcalcWindow, QjuiWindow, qplugWindow, DataSelectorWindow, and DataSelectorWindow.
| void QguWindow::saveSession | ( | QString | folder | ) | [virtual, slot] |
Method that saves the content of this window when saving the current QSAS session.
| folder | of type QString |
| 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.
| None |
| 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.
| None |
| 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.
| str | of const QString& type |
| None |
Reimplemented in QpWindow.
| void QguWindow::status | ( | const QString & | str, | |
| int | ms | |||
| ) |
Function that displays the message str within the current window message bar.
| str | of const QString& type | |
| ms | of int type |
| None |
| void QguWindow::status | ( | const QString & | str | ) |
Function that displays the message str within the current window message bar.
| str | of const QString& type |
| 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.
| None |
| None |
| QString QguWindow::_filename |
Filename used to save the current session or working list content.
| QMenuBar * QguWindow::_menu_bar |
static DataNamesTable_var QguWindow::_restored_objects = new DataNamesTable() [static] |
Map associating item names to QD object pointers for objects being restored.
static DataNamesTable_var QguWindow::_saved_objects = new DataNamesTable() [static] |
Map associating item names to QD object pointers for objects being saved.
| QString QguWindow::_saveset_filter |
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).
| QString QguWindow::SAVE_EXTENSION |
File extension used to save the current session or working list content.
| int QguWindow::with |
Public member defining how main window is being saved (saved with/without data).
1.5.7