Public Member Functions |
|
| PyWidget (QWidget *parent=0, const char *name=0) |
| PyWidget (const PyWidget &p) |
| only needed for Pyhon Interface
|
| ~PyWidget () |
bool | isValid () const |
| Is full Python support available?
|
| DockWidget (QWidget *parent, const char *title=0) |
| Use this constructor!
|
virtual | ~DockWidget () |
void | setGuest (QWidget &guest) |
virtual void | setWidgetVisible (bool state) |
| For usage with Python:
|
virtual void | registerForHelpSystem (const QObject *widget, const String &url) |
QGridLayout * | getGuestLayout () |
void | setWorkingDirFromFilename_ (String filename) |
virtual void | showHelp (const String &url) |
| ModularWidget (const char *name="<ModularWidget>") |
| ModularWidget (const ModularWidget &widget) |
virtual | ~ModularWidget () |
virtual void | destroy () |
virtual void | clear () |
QAction * | insertMenuEntry (Position parent_id, const String &name, const QObject *receiver=0, const char *slot=0, const String &description="", QKeySequence accel=QKeySequence()) |
void | setMenuHint (const String &hint) |
void | setMenuHelp (const String &url) |
virtual void | addToolBarEntries (QToolBar *main_tb) |
void | setIcon (const String &filename, bool add_to_main_toolbar=true) |
bool | lockComposites () |
bool | unlockComposites () |
| Unlock the Composites.
|
MainControl * | getMainControl () const |
virtual void | setStatusbarText (const String &text, bool important=false) |
virtual void | setStatusbarText (const QString &text, bool important=false) |
|
|
String | getWorkingDir () |
| Implemented for convenience.
|
void | setWorkingDir (const String &dir) |
| Implemented for convenience.
|
FragmentDB & | getFragmentDB () const |
| Embeddable (const String &identifier="<Embeddable>") |
| Embeddable (const Embeddable &embeddable) |
virtual | ~Embeddable () |
void | setIdentifier (const String &identifier) |
const String & | getIdentifier () const |
void | unregisterThis () |
virtual void | registerThis () |
| ConnectionObject () |
virtual | ~ConnectionObject () |
void | registerConnectionObject (ConnectionObject &object) |
void | unregisterConnectionObject (ConnectionObject &object) |
bool | isConnectionObjectRegistered (const ConnectionObject &object) |
ConnectionObject * | getParent () const |
ConnectionObject * | getRoot () |
virtual void | onNotify (Message *message) |
ModularWidget related methods |
TextEditorWidget * | text_edit_ |
TextEditorWidget * | script_output_ |
MyTextEdit * | script_edit_ |
QTabWidget * | tab_widget_ |
PythonHighlighter | highlighter_1_ |
PythonHighlighter | highlighter_2_ |
PythonValidator | validator_ |
MyLineEdit * | line_edit_ |
QComboBox * | combo_box_ |
QComboBox * | editor_combo_box_ |
std::list< Hotkey > | hotkeys_ |
String | working_dir_ |
bool | valid_ |
bool | started_startup_script_ |
Preferences * | preferences_ |
Position | current_line_ |
bool | multi_line_mode_ |
Size | multi_lines_ |
String | multi_line_text_ |
vector< String > | history_ |
vector< bool > | results_ |
Position | history_position_ |
String | startup_script_ |
PythonSettings * | python_settings_ |
RunPythonThread * | thread_ |
bool | stop_script_ |
Size | complete_prefix_ |
String | class_ |
String | member_ |
Position | intend_ |
bool | running_ |
bool | silent_ |
bool | full_silent_ |
bool | script_mode_ |
String | current_script_ |
virtual void | initializeWidget (MainControl &main_control) |
virtual void | finalizeWidget (MainControl &main_control) |
void | initializePreferencesTab (Preferences &preferences) |
void | finalizePreferencesTab (Preferences &preferences) |
virtual void | applyPreferences () |
virtual void | scriptDialog (bool run=false) |
| Open a dialog to select a script.
|
bool | toAbortScript () |
void | map (String modifier, String key, String command, String comment="") |
void | unmap (String modifier, String key) |
| see above
|
void | insertHotkey (const Hotkey &hotkey) |
void | removeHotkey (const Hotkey &hotkey) |
void | reactTo (const QKeyEvent &e) |
virtual bool | canHandle (const String &fileformat) const |
virtual bool | openFile (const String &filename) |
bool | openFile (const String &filename, bool run, bool is_current=false) |
bool | runString (String command) |
String | getCurrentLine () const |
void | dump (std::ostream &s, Size depth) const |
void | showClassDocu (String classname, String member) |
virtual void | fetchPreferences (INIFile &inifile) |
virtual void | writePreferences (INIFile &inifile) |
void | checkMenu (MainControl &main_control) |
QString | getCurrentScript () |
bool | isInDirectMode () const |
void | showEditContextMenu (const QPoint &point) |
void | showContextMenu (const QPoint &point) |
void | showCompletion () |
void | clear () |
void | exportHistory () |
void | abortScript () |
void | showDocumentation () |
bool | runCurrentScript () |
void | loadScript () |
void | execScript () |
void | saveScript () |
void | clearScript () |
virtual void | hotkeyItem () |
virtual void | modifyHotkeys () |
void | appendText (const String &text, bool output=false, bool state_message=false) |
bool | getMembers (const String &classname, QStringList &sl, const String &prefix) |
virtual bool | returnPressed () |
virtual bool | completionSelected_ () |
virtual void | showHelp_ () |
virtual void | printCursorPosition_ () |
virtual void | createScript_ () |
virtual void | clearHistory_ () |
bool | getClassAndMember_ (String toc) |
void | setError_ (bool state) |
virtual void | startInterpreter () |
virtual void | paste () |
bool | parseLine_ (String line) |
| Parse a and execute a given string. If silent_ is set to true, no prompts are being printed.
|
void | appendToHistory_ (const String &line) |
void | newPrompt_ () |
bool | testMultilineStart_ (const String &line) |
const char * | getPrompt_ () const |
bool | storeScript_ () |
String | runCommand_ (const String &command, bool &state) |
void | appendText_ (TextEditorWidget *te, String text) |
void | retrieveHistoryLine_ (Position index) |
virtual void | contentsDragEnterEvent (QDragEnterEvent *e) |
virtual void | contentsDropEvent (QDropEvent *e) |
bool | keyPressed (QKeyEvent *e) |
void | createMenuHelpEntry_ (QMenu *menu, TextEditorWidget *text_edit, const QPoint &point) |
void | findError_ (String result) |
String | getCurrentWord_ (QTextCursor &text_cursor) |
QComboBox * | getCompletionBox_ () |
std::list< Hotkey >::iterator | findKey_ (Hotkey &hotkey) |
Python Widget This class is a Window for a Python interpreter interface. So it is possible to access all data in the running application in realtime with the script language. PyWidget also has the capablities to run a Python script from a file at startup, or on demand from the user.
Definition at line 142 of file pyWidget.h.