Scribus
Open source desktop publishing at your fingertips
PythonConsole Class Reference

This is simple "IDE"/python console for interactive commands execution. It's used e.g. like Tora (SQLnavigator) console. Sample: highlight some code, press F9, then see the results. More...

#include <pconsole.h>

Inheritance diagram for PythonConsole:
Collaboration diagram for PythonConsole:

Public Slots

virtual void slot_runScript ()
 menu operations
 
virtual void slot_runScriptAsConsole ()
 
virtual void slot_open ()
 
virtual void slot_save ()
 
virtual void slot_saveAs ()
 
virtual void slot_saveOutput ()
 
virtual void slot_quit ()
 
virtual void commandEdit_cursorPositionChanged ()
 Slot processed after user change cursor postion in "programmer's editor".
 

Signals

void paletteShown (bool)
 Menu indication trigger.
 
void runCommand ()
 Scripter Core launcher.
 

Public Member Functions

 PythonConsole (QWidget *parent=0)
 
void setFonts ()
 
QString command ()
 The command string. More...
 
void closeEvent (QCloseEvent *)
 Close event for turning the action off.
 
void updateSyntaxHighlighter ()
 

Public Attributes

QString filename
 File name for saving the contents.
 

Protected Slots

virtual void languageChange ()
 
void documentChanged (bool state)
 

Protected Member Functions

void parsePythonString ()
 prepare Python "script" from GUI widget
 

Protected Attributes

QString m_command
 String with the script to run (part of the all text)
 
QLabel * changedLabel
 
QLabel * cursorLabel
 
QString cursorTemplate
 

Detailed Description

This is simple "IDE"/python console for interactive commands execution. It's used e.g. like Tora (SQLnavigator) console. Sample: highlight some code, press F9, then see the results.

Author
Petr Vanek petr@.nosp@m.yarp.nosp@m.en.cz

Member Function Documentation

QString PythonConsole::command ( )
inline

The command string.

Return values
QStringwith prepared Python commands

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