X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPyConsole%2FPyConsole_Editor.h;h=c939ef1b7da3e9fd78f947738427b11222426a42;hb=e2a96fd9d3d88f2c3ab6cf63a08befb6d5957fbf;hp=c3e5ca1dd59e43ac0f8031ff8fc97611ee26510f;hpb=627194285d9b5354291d3a442b68b8740f114eda;p=modules%2Fgui.git diff --git a/src/PyConsole/PyConsole_Editor.h b/src/PyConsole/PyConsole_Editor.h index c3e5ca1dd..c939ef1b7 100644 --- a/src/PyConsole/PyConsole_Editor.h +++ b/src/PyConsole/PyConsole_Editor.h @@ -58,6 +58,8 @@ public: bool isShowBanner() const; void setIsShowBanner( const bool ); + bool isLogging() const; + virtual QSize sizeHint() const; public slots: @@ -67,6 +69,10 @@ public slots: void handleReturn(); void onPyInterpChanged( PyConsole_Interp* ); void dump(); + bool startLog( const QString& ); + void startLog(); + void stopLog(); + void putLog( const QString& ); protected: virtual void dropEvent( QDropEvent* event ); @@ -85,6 +91,7 @@ protected: QString myCurrentCommand; //!< currently being printed command QString myPrompt; //!< current command line prompt int myCmdInHistory; //!< current history command index + QString myLogFile; //!< current output log QStringList myHistory; //!< commands history buffer QEventLoop* myEventLoop; //!< internal event loop QString myBanner; //!< current banner