summaryrefslogtreecommitdiffstats
path: root/part/kxecommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'part/kxecommand.h')
-rw-r--r--part/kxecommand.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/part/kxecommand.h b/part/kxecommand.h
new file mode 100644
index 0000000..8d05ebd
--- /dev/null
+++ b/part/kxecommand.h
@@ -0,0 +1,37 @@
+//
+// C++ Interface: kxecommand
+//
+// Description:
+//
+//
+// Author: Adam Charytoniuk <achary@poczta.onet.pl>, (C) 2003
+//
+// Copyright: See COPYING file that comes with this distribution
+//
+//
+#ifndef KXECOMMAND_H
+#define KXECOMMAND_H
+
+#include <kcommand.h>
+#include "kxedocument.h"
+
+/**
+This is a base class for undoable commands in our application
+
+@author Adam Charytoniuk
+*/
+class KXECommand : public KCommand
+{
+public:
+ /** Constructor. Commands refer only to KXEDocument, not parts or views.
+ The KXEDocument is a class that owns KCommandHistory objcect.
+ */
+ KXECommand(KXEDocument* pDocument);
+
+ ~KXECommand();
+
+protected:
+ KXEDocument* m_pDocument;
+};
+
+#endif