summaryrefslogtreecommitdiff
path: root/muse2/muse/widgets/action.h
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/widgets/action.h')
-rw-r--r--muse2/muse/widgets/action.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/muse2/muse/widgets/action.h b/muse2/muse/widgets/action.h
new file mode 100644
index 00000000..74635f0a
--- /dev/null
+++ b/muse2/muse/widgets/action.h
@@ -0,0 +1,32 @@
+//=========================================================
+// MusE
+// Linux Music Editor
+// $Id: action.h,v 1.1.1.1.2.1 2008/01/19 13:33:46 wschweer Exp $
+// (C) Copyright 2001 Werner Schweer (ws@seh.de)
+//=========================================================
+
+#ifndef __ACTION_H__
+#define __ACTION_H__
+
+#include <Qt3Support>
+
+//---------------------------------------------------------
+// Action
+//---------------------------------------------------------
+
+class Action : public Q3Action {
+ Q_OBJECT
+ int _id;
+
+ public:
+ Action(QObject* parent, int i, const char* name = 0, bool toggle = false)
+ : Q3Action(parent, name, toggle) {
+ _id = i;
+ }
+ void setId(int i) { _id = i; }
+ int id() const { return _id; }
+ };
+
+
+#endif
+