X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=inline;f=src%2FPyConsole%2FPyConsole_Console.h;h=b32b078e40f0eeb789ceda5da7cc3e975e20093b;hb=6b5646865f62cac73f4f423e16871b1cdf16aeb5;hp=75163a9ae1e4b877d34412f3e82f31ae4a0c1f95;hpb=627194285d9b5354291d3a442b68b8740f114eda;p=modules%2Fgui.git diff --git a/src/PyConsole/PyConsole_Console.h b/src/PyConsole/PyConsole_Console.h index 75163a9ae..b32b078e4 100644 --- a/src/PyConsole/PyConsole_Console.h +++ b/src/PyConsole/PyConsole_Console.h @@ -34,7 +34,6 @@ class PyConsole_Interp; class PyConsole_Editor; -class PyConsole_EnhInterp; class PYCONSOLE_EXPORT PyConsole_Console : public QWidget, public SUIT_PopupClient { @@ -44,12 +43,14 @@ public: //! Context popup menu actions flags enum { - CopyId = 0x01, //!< "Copy" menu action - PasteId = 0x02, //!< "Paste" menu action - ClearId = 0x04, //!< "Clear" menu action - SelectAllId = 0x08, //!< "Select All" menu action - DumpCommandsId = 0x16, //!< "DumpCommands" menu action - All = CopyId | PasteId | ClearId | SelectAllId | DumpCommandsId //!< all menu actions + CopyId = 0x01, //!< "Copy" menu action + PasteId = 0x02, //!< "Paste" menu action + ClearId = 0x04, //!< "Clear" menu action + SelectAllId = 0x08, //!< "Select All" menu action + DumpCommandsId = 0x10, //!< "DumpCommands" menu action + StartLogId = 0x20, //!< "Start log" menu action + StopLogId = 0x40, //!< "Stop log" menu action + All = 0xFF, //!< all menu actions }; public: @@ -57,7 +58,7 @@ public: virtual ~PyConsole_Console(); //! \brief Get python interperter - PyConsole_Interp* getInterp() { return myInterp; } + PyConsole_Interp* getInterp() const; QFont font() const; virtual void setFont( const QFont& ); @@ -82,14 +83,15 @@ public: void setMenuActions( const int ); int menuActions() const; + void startLog( const QString& ); + void stopLog(); + protected: void createActions(); void updateActions(); PyConsole_Console( QWidget* parent, PyConsole_Interp*, PyConsole_Editor*); - - PyConsole_Interp* myInterp; //!< python interpreter PyConsole_Editor* myEditor; //!< python console editor widget QMap myActions; //!< menu actions list }; @@ -104,7 +106,7 @@ class PYCONSOLE_EXPORT PyConsole_EnhConsole: public PyConsole_Console Q_OBJECT public: - PyConsole_EnhConsole( QWidget* parent, PyConsole_EnhInterp* interp = 0); + PyConsole_EnhConsole( QWidget* parent, PyConsole_Interp* interp = 0 ); virtual ~PyConsole_EnhConsole() {} };