|
SciDAVis
1.D4
|
Notes window class. More...
#include <Note.h>
Public Slots | |
| bool | autoexec () const |
| void | evaluate () |
| void | execute () |
| void | executeAll () |
| QString | exportASCII (const QString &file=QString::null) |
| void | exportPDF (const QString &fileName) |
| QString | importASCII (const QString &file=QString::null) |
| void | modifiedNote () |
| void | print () |
| void | restore (const QStringList &) |
| Not implemented yet. | |
| QString | saveToString (const QString &info) |
| void | setAutoexec (bool) |
| void | setText (const QString &s) |
| QString | text () |
| QTextEdit * | textWidget () |
Public Member Functions | |
| void | init (ScriptingEnv *env) |
| Note (ScriptingEnv *env, const QString &label, QWidget *parent=0, const char *name=0, Qt::WFlags f=0) | |
| ~Note () | |
Public Member Functions inherited from MyWidget | |
| void | askOnCloseEvent (bool ask) |
| Toggle the "ask on close" flag. | |
| QString | aspect () |
| Return the window status as a string. | |
| virtual QString | birthDate () |
| Return the creation date. | |
| virtual 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) | |
| Folder * | folder () |
| Returns the pointer to the parent folder of the window. | |
| MyWidget (const QString &label=QString(), QWidget *parent=0, const QString name=0, Qt::WFlags f=0) | |
| Constructor. | |
| virtual QString | name () |
| Return the window name. | |
| void | notifyChanges () |
| Notifies the main application that the window has been modified. | |
| virtual QString | saveAsTemplate (const QString &) |
| virtual void | setBirthDate (const QString &s) |
| Set the creation date. | |
| virtual 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 () |
| virtual 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) | |
| virtual void | setWindowLabel (const QString &s) |
| Set the window label. | |
| Status | status () |
| Return the window status flag (hidden, normal, minimized or maximized) | |
| virtual QString | windowLabel () |
| Return the window label. | |
Private Attributes | |
| bool | autoExec |
| ScriptEdit * | te |
Additional Inherited Members | |
Public Types inherited from MyWidget | |
| enum | CaptionPolicy { Name = 0, Label = 1, Both = 2 } |
| Possible window captions. More... | |
| enum | Status { Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2 } |
Signals inherited from MyWidget | |
| 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. | |
Protected Slots inherited from MyWidget | |
| void | updateCaption () |
| Set caption according to current CaptionPolicy, name and label. | |
Protected Member Functions inherited from MyWidget | |
| virtual void | changeEvent (QEvent *event) |
| Catches parent changes (in order to gain access to the title bar) | |
Protected Attributes inherited from MyWidget | |
| 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. | |
| QWidget * | titleBar |
| Title bar of this MDI window if it currently belongs to a QWorkspace, NULL else. | |
| QString | w_label |
| The window label. | |
| Status | w_status |
| The window status. | |
| Note::Note | ( | ScriptingEnv * | env, |
| const QString & | label, | ||
| QWidget * | parent = 0, |
||
| const char * | name = 0, |
||
| Qt::WFlags | f = 0 |
||
| ) |
References init().
|
inline |
|
inlineslot |
References autoExec.
Referenced by ScriptEdit::contextMenuEvent().
|
inlineslot |
|
inlineslot |
References ScriptEdit::execute(), and te.
|
inlineslot |
References ScriptEdit::executeAll(), and te.
Referenced by ApplicationWindow::loadScript().
|
inlineslot |
References ScriptEdit::exportASCII(), and te.
Referenced by ApplicationWindow::saveNoteAs().
|
inlinevirtualslot |
Reimplemented from MyWidget.
References ScriptEdit::exportPDF(), and te.
|
inlineslot |
References ScriptEdit::importASCII(), and te.
Referenced by ApplicationWindow::loadScript().
| void Note::init | ( | ScriptingEnv * | env | ) |
References autoExec, modifiedNote(), MyWidget::name(), MyWidget::setBirthDate(), and te.
Referenced by Note().
|
slot |
References MyWidget::modifiedWindow().
Referenced by init().
|
inlinevirtualslot |
Reimplemented from MyWidget.
References ScriptEdit::print(), and te.
|
virtualslot |
Not implemented yet.
Reimplemented from MyWidget.
References setAutoexec(), and te.
Referenced by ApplicationWindow::appendProject(), and ApplicationWindow::openProject().
|
virtualslot |
Reimplemented from MyWidget.
References autoExec, MyWidget::birthDate(), MyWidget::captionPolicy(), MyWidget::name(), te, and MyWidget::windowLabel().
|
inlineslot |
References te.
Referenced by ImportOPJ::importNotes().
|
inlineslot |
References te.
|
inlineslot |
References te.
|
private |
Referenced by autoexec(), init(), saveToString(), and setAutoexec().
|
private |
Referenced by execute(), executeAll(), exportASCII(), exportPDF(), importASCII(), init(), print(), restore(), saveToString(), setAutoexec(), setText(), text(), and textWidget().
1.8.1