summaryrefslogtreecommitdiffstats
path: root/part/kxecommand.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2016-03-26 13:50:43 +0100
committerSlávek Banko <[email protected]>2016-03-26 13:50:43 +0100
commitd62c8c002c51fb7c36487839eeeb4ac89f044dee (patch)
treebb4d1f5c631ab1f22a3018ba39e6a806035f80fd /part/kxecommand.h
downloadkxmleditor-d62c8c002c51fb7c36487839eeeb4ac89f044dee.tar.gz
kxmleditor-d62c8c002c51fb7c36487839eeeb4ac89f044dee.zip
Initial import of kxmleditor 1.1.4
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 <[email protected]>, (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