QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qtscriptshell_QUndoCommand.h
Go to the documentation of this file.
1 #ifndef QTSCRIPTSHELL_QUNDOCOMMAND_H
2 #define QTSCRIPTSHELL_QUNDOCOMMAND_H
3 
4 #include <qundostack.h>
5 
6 #include <QtScript/qscriptvalue.h>
7 
8 class QtScriptShell_QUndoCommand : public QUndoCommand
9 {
10 public:
11  QtScriptShell_QUndoCommand(QUndoCommand* parent = 0);
12  QtScriptShell_QUndoCommand(const QString& text, QUndoCommand* parent = 0);
14 
15  int id() const;
16  bool mergeWith(const QUndoCommand* other);
17  void redo();
18  void undo();
19 
20  QScriptValue __qtscript_self;
21 };
22 
23 #endif // QTSCRIPTSHELL_QUNDOCOMMAND_H