#include <ScriptWindow.h>
Public Slots | |
| ScriptEdit * | editor () |
| void | executeAll () |
| void | languageChange () |
| void | newScript () |
| void | open (const QString &fn=QString()) |
| void | save () |
| void | saveAs () |
| virtual void | setVisible (bool visible) |
| void | showLineNumbers (bool show=true) |
| Enables/Disables the line number display. | |
Signals | |
| void | visibilityChanged (bool visible) |
Public Member Functions | |
| ScriptWindow (ScriptingEnv *env, ApplicationWindow *app) | |
| ~ScriptWindow () | |
Private Slots | |
| void | setAlwaysOnTop (bool on) |
Private Member Functions | |
| void | initActions () |
| void | initMenu () |
| void | moveEvent (QMoveEvent *) |
| void | resizeEvent (QResizeEvent *) |
Private Attributes | |
| QAction * | actionAlwaysOnTop |
| QAction * | actionCopy |
| QAction * | actionCut |
| QAction * | actionEval |
| QAction * | actionExecute |
| QAction * | actionExecuteAll |
| QAction * | actionHide |
| QAction * | actionNew |
| QAction * | actionOpen |
| QAction * | actionPaste |
| QAction * | actionPrint |
| QAction * | actionRedo |
| QAction * | actionSave |
| QAction * | actionSaveAs |
| QAction * | actionShowLineNumbers |
| QAction * | actionUndo |
| ApplicationWindow * | d_app |
| QWidget * | d_frame |
| LineNumberDisplay * | d_line_number |
| QMenu * | edit |
| QMenu * | file |
| QString | fileName |
| QMenu * | run |
| ScriptEdit * | te |
| QMenu * | windowMenu |
| ScriptWindow::ScriptWindow | ( | ScriptingEnv * | env, | |
| ApplicationWindow * | app | |||
| ) |
| ScriptWindow::~ScriptWindow | ( | ) | [inline] |
| ScriptEdit* ScriptWindow::editor | ( | ) | [inline, slot] |
References te.
Referenced by ApplicationWindow::enableCompletion(), ApplicationWindow::loadScript(), and ApplicationWindow::showScriptWindow().
| void ScriptWindow::executeAll | ( | ) | [inline, slot] |
References ScriptEdit::executeAll(), and te.
Referenced by initActions(), and ApplicationWindow::loadScript().
| void ScriptWindow::initActions | ( | ) | [private] |
References actionAlwaysOnTop, actionCopy, actionCut, actionEval, actionExecute, actionExecuteAll, actionHide, actionNew, actionOpen, actionPaste, actionPrint, actionRedo, actionSave, actionSaveAs, actionShowLineNumbers, actionUndo, copy_xpm, cut_xpm, d_app, d_line_number, ApplicationWindow::d_note_line_numbers, ApplicationWindow::d_script_win_on_top, edit, executeAll(), file, fileopen_xpm, fileprint_xpm, filesave_xpm, new_xpm, newScript(), open(), paste_xpm, redo_xpm, run, save(), saveAs(), setAlwaysOnTop(), setVisible(), te, undo_xpm, and windowMenu.
Referenced by ScriptWindow().
| void ScriptWindow::initMenu | ( | ) | [private] |
| void ScriptWindow::languageChange | ( | ) | [slot] |
References actionCopy, actionCut, actionEval, actionExecute, actionExecuteAll, actionNew, actionOpen, actionPaste, actionPrint, actionRedo, actionSave, actionSaveAs, actionUndo, edit, file, and run.
| void ScriptWindow::moveEvent | ( | QMoveEvent * | e | ) | [private] |
References d_app, and ApplicationWindow::d_script_win_rect.
| void ScriptWindow::newScript | ( | ) | [slot] |
| void ScriptWindow::open | ( | const QString & | fn = QString() |
) | [slot] |
References fileName, ScriptEdit::importASCII(), and te.
Referenced by initActions(), and ApplicationWindow::loadScript().
| void ScriptWindow::resizeEvent | ( | QResizeEvent * | e | ) | [private] |
References d_app, and ApplicationWindow::d_script_win_rect.
| void ScriptWindow::save | ( | ) | [slot] |
| void ScriptWindow::saveAs | ( | ) | [slot] |
| void ScriptWindow::setAlwaysOnTop | ( | bool | on | ) | [private, slot] |
| void ScriptWindow::setVisible | ( | bool | visible | ) | [virtual, slot] |
| void ScriptWindow::showLineNumbers | ( | bool | show = true |
) | [slot] |
Enables/Disables the line number display.
References d_line_number, and LineNumberDisplay::updateLineNumbers().
Referenced by ApplicationWindow::showScriptWindow().
| void ScriptWindow::visibilityChanged | ( | bool | visible | ) | [signal] |
Referenced by setVisible().
QAction* ScriptWindow::actionAlwaysOnTop [private] |
Referenced by initActions().
QAction * ScriptWindow::actionCopy [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionCut [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionEval [private] |
Referenced by initActions(), and languageChange().
QAction* ScriptWindow::actionExecute [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionExecuteAll [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionHide [private] |
Referenced by initActions().
QAction* ScriptWindow::actionNew [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionOpen [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionPaste [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionPrint [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionRedo [private] |
Referenced by initActions(), and languageChange().
QAction* ScriptWindow::actionSave [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionSaveAs [private] |
Referenced by initActions(), and languageChange().
QAction * ScriptWindow::actionShowLineNumbers [private] |
Referenced by initActions().
QAction * ScriptWindow::actionUndo [private] |
Referenced by initActions(), and languageChange().
ApplicationWindow* ScriptWindow::d_app [private] |
Referenced by initActions(), moveEvent(), resizeEvent(), ScriptWindow(), and setAlwaysOnTop().
QWidget* ScriptWindow::d_frame [private] |
Referenced by ScriptWindow().
LineNumberDisplay* ScriptWindow::d_line_number [private] |
Referenced by initActions(), ScriptWindow(), and showLineNumbers().
QMenu * ScriptWindow::edit [private] |
Referenced by initActions(), initMenu(), and languageChange().
QMenu* ScriptWindow::file [private] |
Referenced by initActions(), initMenu(), and languageChange().
QString ScriptWindow::fileName [private] |
Referenced by newScript(), open(), save(), saveAs(), and ScriptWindow().
QMenu * ScriptWindow::run [private] |
Referenced by initActions(), initMenu(), and languageChange().
ScriptEdit* ScriptWindow::te [private] |
Referenced by editor(), executeAll(), initActions(), newScript(), open(), save(), saveAs(), and ScriptWindow().
QMenu * ScriptWindow::windowMenu [private] |
Referenced by initActions(), and initMenu().
1.5.6