Notes window class. More...
#include <Note.h>
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 (QPrinter *printer) |
void | print () |
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 () |
Signals | |
void | currentEditorChanged () |
void | dirPathChanged (const QString &path) |
Public Member Functions | |
ScriptEdit * | currentEditor () |
ScriptEdit * | editor (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 () | |
Private Member Functions | |
void | saveTab (int index, const QString &fn) |
Private Attributes | |
bool | autoExec |
ScriptingEnv * | d_env |
QWidget * | d_frame |
bool | d_line_number_enabled |
QTabWidget * | d_tab_widget |
Notes window class.
Note::Note | ( | ScriptingEnv * | env, | |
const QString & | label, | |||
ApplicationWindow * | parent, | |||
const QString & | name = QString() , |
|||
Qt::WFlags | f = 0 | |||
) |
References init().
Note::~Note | ( | ) | [inline] |
void Note::addTab | ( | ) | [slot] |
References MdiSubWindow::applicationWindow(), ApplicationWindow::completer(), currentEditorChanged(), d_env, d_line_number_enabled, ApplicationWindow::d_notes_font, ApplicationWindow::d_notes_tab_length, d_tab_widget, dirPathChanged(), editor(), modifiedNote(), MdiSubWindow::name(), ApplicationWindow::scriptsDirPath, ScriptEdit::setCompleter(), ScriptEdit::setContext(), and ScriptEdit::setDirPath().
Referenced by ApplicationWindow::addNoteTab(), init(), and restore().
bool Note::autoexec | ( | ) | const [inline, slot] |
References autoExec.
Referenced by ScriptEdit::contextMenuEvent().
ScriptEdit * Note::currentEditor | ( | ) |
References d_tab_widget, and editor().
Referenced by ApplicationWindow::decreaseNoteIndent(), evaluate(), execute(), executeAll(), exportASCII(), exportPDF(), importASCII(), ApplicationWindow::increaseNoteIndent(), ApplicationWindow::newStemPlot(), ApplicationWindow::noteFindDialogue(), ApplicationWindow::noteFindNext(), ApplicationWindow::noteFindPrev(), ApplicationWindow::noteReplaceDialogue(), print(), restore(), setAutoexec(), setDirPath(), setName(), setText(), and text().
void Note::dirPathChanged | ( | const QString & | path | ) | [signal] |
Referenced by addTab().
ScriptEdit * Note::editor | ( | int | index | ) |
References d_tab_widget.
Referenced by addTab(), currentEditor(), ConfigDialog::rehighlight(), saveTab(), and setFont().
void Note::evaluate | ( | ) | [inline, slot] |
References currentEditor(), and ScriptEdit::evaluate().
Referenced by ApplicationWindow::evaluate().
void Note::execute | ( | ) | [inline, slot] |
References currentEditor(), and ScriptEdit::execute().
Referenced by ApplicationWindow::execute().
void Note::executeAll | ( | ) | [inline, slot] |
References currentEditor(), and ScriptEdit::executeAll().
Referenced by ApplicationWindow::executeAll().
QString Note::exportASCII | ( | const QString & | file = QString::null |
) | [inline, slot] |
References currentEditor(), and ScriptEdit::exportASCII().
Referenced by ApplicationWindow::saveNoteAs().
void Note::exportPDF | ( | const QString & | fileName | ) | [inline, virtual, slot] |
Reimplemented from MdiSubWindow.
References currentEditor(), and ScriptEdit::exportPDF().
bool Note::hasLineNumbers | ( | ) | [inline, slot] |
References d_line_number_enabled.
Referenced by ApplicationWindow::scriptingMenuAboutToShow().
QString Note::importASCII | ( | const QString & | file = QString::null |
) | [inline, slot] |
References currentEditor(), and ScriptEdit::importASCII().
int Note::indexOf | ( | ScriptEdit * | editor | ) |
References d_tab_widget.
Referenced by ScriptEdit::setFileName().
void Note::init | ( | ScriptingEnv * | env | ) |
References addTab(), autoExec, currentEditorChanged(), d_tab_widget, MdiSubWindow::notifyChanges(), and removeTab().
Referenced by Note().
void Note::modifiedNote | ( | ) | [slot] |
References MdiSubWindow::modifiedWindow().
Referenced by addTab().
void Note::print | ( | QPrinter * | printer | ) | [inline, virtual, slot] |
Reimplemented from MdiSubWindow.
References currentEditor(), and ScriptEdit::print().
void Note::print | ( | ) | [inline, virtual, slot] |
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] |
References d_tab_widget.
Referenced by ApplicationWindow::renameCurrentNoteTab().
void Note::renameTab | ( | int | index, | |
const QString & | title | |||
) |
References d_tab_widget.
Referenced by ScriptEdit::setFileName().
void Note::restore | ( | const QStringList & | ) | [virtual] |
Not implemented yet.
Reimplemented from MdiSubWindow.
References addTab(), currentEditor(), d_tab_widget, setAutoexec(), and showLineNumbers().
Referenced by ApplicationWindow::appendProject(), and ApplicationWindow::openProject().
void Note::save | ( | const QString & | fn, | |
const QString & | info, | |||
bool | = false | |||
) | [virtual] |
Reimplemented from MdiSubWindow.
References autoExec, MdiSubWindow::birthDate(), MdiSubWindow::captionPolicy(), d_line_number_enabled, MdiSubWindow::name(), saveTab(), tabs(), and MdiSubWindow::windowLabel().
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 | ) | [inline, slot] |
References currentEditor(), and ScriptEdit::setDirPath().
void Note::setFont | ( | const QFont & | f | ) | [slot] |
void Note::setName | ( | const QString & | s | ) |
Set the window name.
Reimplemented from MdiSubWindow.
References currentEditor().
Referenced by ImportOPJ::importNotes(), and ApplicationWindow::newNote().
void Note::setTabStopWidth | ( | int | length | ) |
References d_tab_widget.
Referenced by ConfigDialog::customizeNotes(), ApplicationWindow::decreaseNoteIndent(), and ApplicationWindow::increaseNoteIndent().
void Note::setText | ( | const QString & | s | ) | [inline, slot] |
References currentEditor().
Referenced by ImportOPJ::importNotes().
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] |
References d_tab_widget.
Referenced by ScriptEdit::contextMenuEvent(), ConfigDialog::rehighlight(), save(), and ApplicationWindow::scriptingMenuAboutToShow().
QString Note::text | ( | ) | [inline, slot] |
References currentEditor().
Referenced by ApplicationWindow::scriptingMenuAboutToShow().
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] |
Referenced by addTab(), hasLineNumbers(), save(), and showLineNumbers().
QTabWidget* Note::d_tab_widget [private] |
Referenced by addTab(), currentEditor(), editor(), indexOf(), init(), removeTab(), renameCurrentTab(), renameTab(), restore(), saveTab(), setFont(), setTabStopWidth(), showLineNumbers(), and tabs().