SciDAVis  1.D4
Public Slots | Public Member Functions | Private Attributes
Note Class Reference

Notes window class. More...

#include <Note.h>

Inheritance diagram for Note:

List of all members.

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)
Folderfolder ()
 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)
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

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.
 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.

Detailed Description

Notes window class.

Future Plans

Constructor & Destructor Documentation

Note::Note ( ScriptingEnv env,
const QString &  label,
QWidget *  parent = 0,
const char *  name = 0,
Qt::WFlags  f = 0 

References init().

Note::~Note ( )

Member Function Documentation

bool Note::autoexec ( ) const

References autoExec.

Referenced by ScriptEdit::contextMenuEvent().

void Note::evaluate ( )
void Note::execute ( )

References ScriptEdit::execute(), and te.

void Note::executeAll ( )
QString Note::exportASCII ( const QString &  file = QString::null)
void Note::exportPDF ( const QString &  fileName)

Reimplemented from MyWidget.

References ScriptEdit::exportPDF(), and te.

QString Note::importASCII ( const QString &  file = QString::null)
void Note::init ( ScriptingEnv env)
void Note::modifiedNote ( )

References MyWidget::modifiedWindow().

Referenced by init().

void Note::print ( )

Reimplemented from MyWidget.

References ScriptEdit::print(), and te.

void Note::restore ( const QStringList &  )

Not implemented yet.

Reimplemented from MyWidget.

References setAutoexec(), and te.

Referenced by ApplicationWindow::appendProject(), and ApplicationWindow::openProject().

QString Note::saveToString ( const QString &  info)
void Note::setAutoexec ( bool  exec)

References autoExec, and te.

Referenced by restore().

void Note::setText ( const QString &  s)

References te.

Referenced by ImportOPJ::importNotes().

QString Note::text ( )

References te.

QTextEdit* Note::textWidget ( )

References te.

Member Data Documentation

bool Note::autoExec
ScriptEdit* Note::te

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