summaryrefslogtreecommitdiff
path: root/include/Menu.h
diff options
context:
space:
mode:
authorPixel <Pixel>2001-09-20 23:27:01 +0000
committerPixel <Pixel>2001-09-20 23:27:01 +0000
commit8346d0774d2d1e076038db27f65f1d082a460f16 (patch)
tree132f84cf1ef45d5006a2b1d52d4d40b1e8e51abc /include/Menu.h
Initial revision
Diffstat (limited to 'include/Menu.h')
-rw-r--r--include/Menu.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/Menu.h b/include/Menu.h
new file mode 100644
index 0000000..67bc54e
--- /dev/null
+++ b/include/Menu.h
@@ -0,0 +1,35 @@
+#ifndef __MENU_H__
+#define __MENU_H__
+#ifdef __cplusplus
+
+#include "Exceptions.h"
+#include "Action.h"
+#include "String.h"
+
+/*
+ * Cette classe permet d'afficher un menu.
+ * Constructeur:
+ * - titre = titre de la page
+ * - url = url de la page
+ * - labels = labels de items du menu
+ * - listac = liste des pointeurs sur les actions
+ * - nb = nombre d'items
+ */
+
+class Menu : public Action {
+ public:
+ Menu(const String & titre, const String & url, String * labels, Action ** listac, int nb);
+ virtual ~Menu() {}
+ virtual String GetTitle();
+ virtual void Do(Variables *, Handle *);
+ private:
+ String tit;
+ String * lt;
+ Action ** la;
+ int nba;
+};
+
+#else
+#error This only works with a C++ compiler
+#endif
+#endif