#include <MyWidget.h>

These are the main objects of every Qtiplot project. All content (apart from the directory structure) is managed by subclasses of MyWidget.
Public Types | |
| enum | CaptionPolicy { Name = 0, Label = 1, Both = 2 } |
| enum | Status { Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2 } |
Signals | |
| void | closedWindow (MyWidget *) |
| Emitted when the window was closed. | |
| void | hiddenWindow (MyWidget *) |
| Emitted when the window was hidden. | |
| void | modifiedWindow (QWidget *) |
| void | resizedWindow (QWidget *) |
| void | showTitleBarMenu () |
| Emitted when the title bar recieves a QContextMenuEvent. | |
| void | statusChanged (MyWidget *) |
| Emitted when the window status changed. | |
Public Member Functions | |
| void | askOnCloseEvent (bool ask) |
| Toggle the "ask on close" flag. | |
| QString | aspect () |
| Return the window status as a string. | |
| QString | birthDate () |
| Return the creation date. | |
| CaptionPolicy | captionPolicy () |
| Return the caption policy. | |
| void | closeEvent (QCloseEvent *) |
| Close event handler. | |
| bool | eventFilter (QObject *object, QEvent *e) |
| Filters other object's events (customizes title bar's context menu). | |
| virtual void | exportPDF (const QString &) |
| Folder * | folder () |
| Returns the pointer to the parent folder of the window. | |
| MyWidget (const QString &label=QString(), QWidget *parent=0, const char *name=0, Qt::WFlags f=0) | |
| Constructor. | |
| QString | name () |
| Return the window name. | |
| void | notifyChanges () |
| Notifies the main application that the window has been modified. | |
| virtual void | print () |
| virtual void | restore (const QStringList &) |
| Not implemented yet. | |
| virtual QString | saveAsTemplate (const QString &) |
| virtual QString | saveToString (const QString &) |
| void | setBirthDate (const QString &s) |
| Set the creation date. | |
| void | setCaptionPolicy (CaptionPolicy policy) |
| Set the caption policy. | |
| void | setFolder (Folder *f) |
| Initializes the pointer to the parent folder of the window. | |
| virtual void | setHidden () |
| Notifies that a window was hidden by a direct user action. | |
| void | setMaximized () |
| void | setMinimized () |
| void | setName (const char *newname) |
| Set the widget's name. | |
| void | setName (const QString &s) |
| Set the window name. | |
| void | setNormal () |
| void | setStatus (Status s) |
| Set the window status flag (hidden, normal, minimized or maximized). | |
| void | setWindowLabel (const QString &s) |
| Set the window label. | |
| virtual QString | sizeToString () |
| Size of the widget as a string. | |
| Status | status () |
| Return the window status flag (hidden, normal, minimized or maximized). | |
| QString | windowLabel () |
| Return the window label. | |
Static Public Member Functions | |
| static double | stringToDouble (const QString &s) |
Protected Member Functions | |
| virtual void | changeEvent (QEvent *event) |
| Catches parent changes (in order to gain access to the title bar). | |
Protected Attributes | |
| QWidget * | titleBar |
| Title bar of this MDI window if it currently belongs to a QWorkspace, NULL else. | |
Private Member Functions | |
| void | updateCaption () |
| Set caption according to current CaptionPolicy, name and label. | |
Private Attributes | |
| bool | askOnClose |
| Toggle on/off: Ask the user "delete, hide, or cancel?" on a close event. | |
| QString | birthdate |
| The creation date. | |
| CaptionPolicy | caption_policy |
| The caption policy. | |
| Folder * | parentFolder |
| Pointer to the parent folder of the window. | |
| QString | w_label |
| The window label. | |
| Status | w_status |
| The window status. | |
| enum MyWidget::Status |
| MyWidget::MyWidget | ( | const QString & | label = QString(), |
|
| QWidget * | parent = 0, |
|||
| const char * | name = 0, |
|||
| Qt::WFlags | f = 0 | |||
| ) |
Constructor.
| label | window label | |
| parent | parent widget | |
| name | window name | |
| f | window flags |
| void MyWidget::askOnCloseEvent | ( | bool | ask | ) | [inline] |
Toggle the "ask on close" flag.
| QString MyWidget::aspect | ( | ) |
Return the window status as a string.
| QString MyWidget::birthDate | ( | ) | [inline] |
Return the creation date.
| CaptionPolicy MyWidget::captionPolicy | ( | ) | [inline] |
Return the caption policy.
| void MyWidget::changeEvent | ( | QEvent * | event | ) | [protected, virtual] |
| void MyWidget::closedWindow | ( | MyWidget * | ) | [signal] |
Emitted when the window was closed.
| void MyWidget::closeEvent | ( | QCloseEvent * | e | ) |
Close event handler.
Ask the user "delete, hide, or cancel?" if the "ask on close" flag is set.
| bool MyWidget::eventFilter | ( | QObject * | object, | |
| QEvent * | e | |||
| ) |
Filters other object's events (customizes title bar's context menu).
Reimplemented in Graph3D, Matrix, MultiLayer, and Table.
| virtual void MyWidget::exportPDF | ( | const QString & | ) | [inline, virtual] |
Reimplemented in Graph3D, Matrix, MultiLayer, Note, and Table.
| Folder* MyWidget::folder | ( | ) | [inline] |
Returns the pointer to the parent folder of the window.
| void MyWidget::hiddenWindow | ( | MyWidget * | ) | [signal] |
Emitted when the window was hidden.
| void MyWidget::modifiedWindow | ( | QWidget * | ) | [signal] |
| QString MyWidget::name | ( | ) | [inline] |
Return the window name.
| void MyWidget::notifyChanges | ( | ) | [inline] |
| virtual void MyWidget::print | ( | ) | [inline, virtual] |
Reimplemented in Graph3D, Matrix, MultiLayer, Note, and Table.
| void MyWidget::resizedWindow | ( | QWidget * | ) | [signal] |
| virtual void MyWidget::restore | ( | const QStringList & | ) | [inline, virtual] |
| virtual QString MyWidget::saveAsTemplate | ( | const QString & | ) | [inline, virtual] |
Reimplemented in Graph3D, Matrix, MultiLayer, and Table.
| virtual QString MyWidget::saveToString | ( | const QString & | ) | [inline, virtual] |
Reimplemented in Graph3D, Matrix, MultiLayer, Note, Table, and TableStatistics.
| void MyWidget::setBirthDate | ( | const QString & | s | ) | [inline] |
Set the creation date.
| void MyWidget::setCaptionPolicy | ( | CaptionPolicy | policy | ) | [inline] |
Set the caption policy.
The caption policy can be Name -> caption determined by the window name Label -> caption detemined by the window label Both -> caption = "name - label"
| void MyWidget::setFolder | ( | Folder * | f | ) | [inline] |
Initializes the pointer to the parent folder of the window.
| void MyWidget::setHidden | ( | ) | [virtual] |
| void MyWidget::setMaximized | ( | ) |
| void MyWidget::setMinimized | ( | ) |
| void MyWidget::setName | ( | const char * | newname | ) | [inline] |
| void MyWidget::setName | ( | const QString & | s | ) | [inline] |
Set the window name.
| void MyWidget::setNormal | ( | ) |
| void MyWidget::setStatus | ( | Status | s | ) |
Set the window status flag (hidden, normal, minimized or maximized).
| void MyWidget::setWindowLabel | ( | const QString & | s | ) | [inline] |
Set the window label.
| void MyWidget::showTitleBarMenu | ( | ) | [signal] |
Emitted when the title bar recieves a QContextMenuEvent.
| QString MyWidget::sizeToString | ( | ) | [virtual] |
Size of the widget as a string.
| Status MyWidget::status | ( | ) | [inline] |
Return the window status flag (hidden, normal, minimized or maximized).
| void MyWidget::statusChanged | ( | MyWidget * | ) | [signal] |
Emitted when the window status changed.
| double MyWidget::stringToDouble | ( | const QString & | s | ) | [static] |
| void MyWidget::updateCaption | ( | ) | [private] |
Set caption according to current CaptionPolicy, name and label.
| QString MyWidget::windowLabel | ( | ) | [inline] |
Return the window label.
bool MyWidget::askOnClose [private] |
Toggle on/off: Ask the user "delete, hide, or cancel?" on a close event.
QString MyWidget::birthdate [private] |
The creation date.
CaptionPolicy MyWidget::caption_policy [private] |
Folder* MyWidget::parentFolder [private] |
Pointer to the parent folder of the window.
QWidget* MyWidget::titleBar [protected] |
Title bar of this MDI window if it currently belongs to a QWorkspace, NULL else.
QString MyWidget::w_label [private] |
Status MyWidget::w_status [private] |
The window status.
1.5.3