QtiPlot  0.9.8.2
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
Note Class Reference

Notes window class. More...

#include <Note.h>

Inheritance diagram for Note:
MdiSubWindow

List of all members.

Public Slots

void addTab ()
bool autoexec () const
void evaluate ()
void execute ()
void executeAll ()
QString exportASCII (const QString &file=QString::null)
void exportPDF (const QString &fileName)
bool hasLineNumbers ()
QString importASCII (const QString &file=QString::null)
void modifiedNote ()
void print ()
void print (QPrinter *printer)
void removeTab (int=-1)
void renameCurrentTab ()
void setAutoexec (bool)
void setDirPath (const QString &path)
void setFont (const QFont &f)
void setText (const QString &s)
void showLineNumbers (bool show=true)
 Enables/Disables the line number display.
QString text ()
- Public Slots inherited from MdiSubWindow
void notifyChanges ()
 Notifies the main application that the window has been modified.

Signals

void currentEditorChanged ()
void dirPathChanged (const QString &path)
- Signals inherited from MdiSubWindow
void closedWindow (MdiSubWindow *)
 Emitted when the window was closed.
void hiddenWindow (MdiSubWindow *)
 Emitted when the window was hidden.
void modifiedWindow (MdiSubWindow *)
void resizedWindow (MdiSubWindow *)
void showContextMenu ()
 Show the context menu.
void statusChanged (MdiSubWindow *)
 Emitted when the window status changed.

Public Member Functions

ScriptEditcurrentEditor ()
ScriptEditeditor (int index)
int indexOf (ScriptEdit *editor)
void init (ScriptingEnv *env)
 Note (ScriptingEnv *env, const QString &label, ApplicationWindow *parent, const QString &name=QString(), Qt::WFlags f=0)
void renameTab (int, const QString &)
void restore (const QStringList &)
 Not implemented yet.
void save (const QString &fn, const QString &info, bool=false)
void setName (const QString &name)
 Set the window name.
void setTabStopWidth (int length)
int tabs ()
 ~Note ()
- Public Member Functions inherited from MdiSubWindow
ApplicationWindowapplicationWindow ()
 Returns a pointer to the parent application.
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)
Folderfolder ()
 Returns the pointer to the parent folder of the window.
 MdiSubWindow (const QString &label=QString(), ApplicationWindow *app=0, const QString &name=QString(), Qt::WFlags f=0)
 Constructor.
QSize minRestoreSize ()
 Returns the size the window had before a change state event to minimized.
QString name ()
 Return the window name.
void resizeEvent (QResizeEvent *)
void restoreWindow ()
 Show window making sure that layers in MultiLayer windows are not resized.
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 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.

Private Member Functions

void saveTab (int index, const QString &fn)

Private Attributes

bool autoExec
ScriptingEnvd_env
QWidget * d_frame
bool d_line_number_enabled
QTabWidget * d_tab_widget

Additional Inherited Members

- Public Types inherited from MdiSubWindow
enum  CaptionPolicy { Name = 0, Label = 1, Both = 2 }
 Possible window captions. More...
enum  Status { Hidden = -1, Normal = 0, Minimized = 1, Maximized = 2 }
- Static Public Member Functions inherited from MdiSubWindow
static QString parseAsciiFile (const QString &fname, const QString &commentString, int endLine, int ignoreFirstLines, int maxRows, int &rows)
 Static function used as a workaround for ASCII files having end line char != '
'.
- Protected Member Functions inherited from MdiSubWindow
virtual void changeEvent (QEvent *event)
 Catches status changes.

Detailed Description

Notes window class.


Constructor & Destructor Documentation

Note::Note ( ScriptingEnv env,
const QString &  label,
ApplicationWindow parent,
const QString &  name = QString(),
Qt::WFlags  f = 0 
)

References init().

Note::~Note ( )
inline

Member Function Documentation

void Note::addTab ( )
slot
bool Note::autoexec ( ) const
inlineslot

References autoExec.

Referenced by ScriptEdit::contextMenuEvent().

ScriptEdit * Note::currentEditor ( )
void Note::currentEditorChanged ( )
signal

Referenced by addTab(), and init().

void Note::dirPathChanged ( const QString &  path)
signal

Referenced by addTab().

ScriptEdit * Note::editor ( int  index)
void Note::evaluate ( )
inlineslot
void Note::execute ( )
inlineslot
void Note::executeAll ( )
inlineslot
QString Note::exportASCII ( const QString &  file = QString::null)
inlineslot
void Note::exportPDF ( const QString &  fileName)
inlinevirtualslot

Reimplemented from MdiSubWindow.

References currentEditor(), and ScriptEdit::exportPDF().

bool Note::hasLineNumbers ( )
inlineslot
QString Note::importASCII ( const QString &  file = QString::null)
inlineslot
int Note::indexOf ( ScriptEdit editor)

References d_tab_widget.

Referenced by ScriptEdit::setFileName().

void Note::init ( ScriptingEnv env)
void Note::modifiedNote ( )
slot

References MdiSubWindow::modifiedWindow().

Referenced by addTab().

void Note::print ( )
inlinevirtualslot

Reimplemented from MdiSubWindow.

References currentEditor(), and ScriptEdit::print().

void Note::print ( QPrinter *  printer)
inlinevirtualslot

Reimplemented from MdiSubWindow.

References currentEditor(), and ScriptEdit::print().

void Note::removeTab ( int  index = -1)
slot

References d_tab_widget.

Referenced by ApplicationWindow::closeNoteTab(), and init().

void Note::renameCurrentTab ( )
slot
void Note::renameTab ( int  index,
const QString &  title 
)

References d_tab_widget.

Referenced by ScriptEdit::setFileName().

void Note::restore ( const QStringList &  )
virtual
void Note::save ( const QString &  fn,
const QString &  info,
bool  = false 
)
virtual
void Note::saveTab ( int  index,
const QString &  fn 
)
private

References d_tab_widget, and editor().

Referenced by save().

void Note::setAutoexec ( bool  exec)
slot

References autoExec, and currentEditor().

Referenced by restore().

void Note::setDirPath ( const QString &  path)
inlineslot
void Note::setFont ( const QFont &  f)
slot
void Note::setName ( const QString &  s)

Set the window name.

Reimplemented from MdiSubWindow.

References currentEditor().

Referenced by ApplicationWindow::newNote().

void Note::setTabStopWidth ( int  length)
void Note::setText ( const QString &  s)
inlineslot
void Note::showLineNumbers ( bool  show = true)
slot

Enables/Disables the line number display.

References d_line_number_enabled, and d_tab_widget.

Referenced by ConfigDialog::customizeNotes(), restore(), and ApplicationWindow::showNoteLineNumbers().

int Note::tabs ( )
inline
QString Note::text ( )
inlineslot

Member Data Documentation

bool Note::autoExec
private

Referenced by autoexec(), init(), save(), and setAutoexec().

ScriptingEnv* Note::d_env
private

Referenced by addTab().

QWidget* Note::d_frame
private
bool Note::d_line_number_enabled
private
QTabWidget* Note::d_tab_widget
private

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