class PyInterp_Request;
class QEventLoop;
-typedef struct {
- QString command, output;
-} PyCommand;
-
class PYCONSOLE_EXPORT PyConsole_Editor : public QTextEdit
{
Q_OBJECT;
bool isShowBanner() const;
void setIsShowBanner( const bool );
+ bool isLogging() const;
+
virtual QSize sizeHint() const;
public slots:
void handleReturn();
void onPyInterpChanged( PyConsole_Interp* );
void dump();
- void saveLog();
+ bool startLog( const QString& );
+ void startLog();
+ void stopLog();
+ void putLog( const QString& );
protected:
virtual void dropEvent( QDropEvent* event );
QString myCurrentCommand; //!< currently being printed command
QString myPrompt; //!< current command line prompt
int myCmdInHistory; //!< current history command index
- QList<PyCommand> myHistory; //!< commands history buffer
+ QString myLogFile; //!< current output log
+ QStringList myHistory; //!< commands history buffer
QEventLoop* myEventLoop; //!< internal event loop
QString myBanner; //!< current banner
bool myShowBanner; //!< 'show banner' flag