Documents > BPS V2 C++ API
bpsscripteditor.h
Go to the documentation of this file.
00001 
00004 #ifndef BPSSCRIPTEDITOR_H
00005 #define BPSSCRIPTEDITOR_H
00006 
00007 #include "bpsgui_global.h"
00008 #include <QWidget>
00009 
00010 class QTextCursor;
00011 
00015 class BPSGUI_EXPORT BpsScriptEditor : public QWidget
00016 {
00017     Q_OBJECT
00018     BPS_PRIVATE(BpsScriptEditor)
00019 
00020 public:
00024     BpsScriptEditor(QWidget* aParent);
00025 
00029     void clearHistory();
00030 
00035     QString text() const;
00036 
00041     void setText(const QString& aText);
00042 
00048     void setCurrentLine(int aLineNo);
00049 
00055     void setStopLine(int aLineNo);
00056 
00062     void setErrorLine(int aLineNo);
00063 
00068     int currentLine() const;
00069 
00074     int stopLine() const;
00075 
00080     int errorLine() const;
00081 
00088     QTextCursor textCursor() const;
00089 
00094     void setTextCursor(const QTextCursor& aCursor);
00095 
00100     bool canPaste() const;
00101 
00102 public slots:
00103 
00108     void undo();
00109 
00114     void redo();
00115 
00120     void cut();
00121 
00125     void copy();
00126 
00131     void paste();
00132 
00133 signals:
00134 
00144     void copyAvailable(bool aAvailable);
00145 
00146 
00151     void redoAvailable(bool aAvailable);
00152 
00153 
00158     void undoAvailable(bool aAvailable);
00159 
00163     void contentsChanged();
00164 };
00165 
00166 #endif // BPSSCRIPTEDITOR_H