diff options
Diffstat (limited to 'src/FbTk/MenuItem.hh')
-rw-r--r-- | src/FbTk/MenuItem.hh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/FbTk/MenuItem.hh b/src/FbTk/MenuItem.hh index 2149559..320d065 100644 --- a/src/FbTk/MenuItem.hh +++ b/src/FbTk/MenuItem.hh | |||
@@ -47,8 +47,10 @@ public: | |||
47 | m_enabled(true), | 47 | m_enabled(true), |
48 | m_selected(false), | 48 | m_selected(false), |
49 | m_close_on_click(true), | 49 | m_close_on_click(true), |
50 | m_toggle_item(false) | 50 | m_toggle_item(false), |
51 | m_index(0) | ||
51 | { } | 52 | { } |
53 | |||
52 | explicit MenuItem(const BiDiString &label) | 54 | explicit MenuItem(const BiDiString &label) |
53 | : m_label(label), | 55 | : m_label(label), |
54 | m_menu(0), | 56 | m_menu(0), |
@@ -56,7 +58,8 @@ public: | |||
56 | m_enabled(true), | 58 | m_enabled(true), |
57 | m_selected(false), | 59 | m_selected(false), |
58 | m_close_on_click(true), | 60 | m_close_on_click(true), |
59 | m_toggle_item(false) | 61 | m_toggle_item(false), |
62 | m_index(0) | ||
60 | { } | 63 | { } |
61 | 64 | ||
62 | MenuItem(const BiDiString &label, Menu &host_menu) | 65 | MenuItem(const BiDiString &label, Menu &host_menu) |
@@ -66,7 +69,8 @@ public: | |||
66 | m_enabled(true), | 69 | m_enabled(true), |
67 | m_selected(false), | 70 | m_selected(false), |
68 | m_close_on_click(true), | 71 | m_close_on_click(true), |
69 | m_toggle_item(false) | 72 | m_toggle_item(false), |
73 | m_index(0) | ||
70 | { } | 74 | { } |
71 | /// create a menu item with a specific command to be executed on click | 75 | /// create a menu item with a specific command to be executed on click |
72 | MenuItem(const BiDiString &label, RefCount<Command<void> > &cmd, Menu *menu = 0) | 76 | MenuItem(const BiDiString &label, RefCount<Command<void> > &cmd, Menu *menu = 0) |
@@ -77,7 +81,8 @@ public: | |||
77 | m_enabled(true), | 81 | m_enabled(true), |
78 | m_selected(false), | 82 | m_selected(false), |
79 | m_close_on_click(true), | 83 | m_close_on_click(true), |
80 | m_toggle_item(false) | 84 | m_toggle_item(false), |
85 | m_index(0) | ||
81 | { } | 86 | { } |
82 | 87 | ||
83 | MenuItem(const BiDiString &label, Menu *submenu, Menu *host_menu = 0) | 88 | MenuItem(const BiDiString &label, Menu *submenu, Menu *host_menu = 0) |
@@ -87,7 +92,8 @@ public: | |||
87 | m_enabled(true), | 92 | m_enabled(true), |
88 | m_selected(false), | 93 | m_selected(false), |
89 | m_close_on_click(true), | 94 | m_close_on_click(true), |
90 | m_toggle_item(false) | 95 | m_toggle_item(false), |
96 | m_index(0) | ||
91 | { } | 97 | { } |
92 | virtual ~MenuItem() { } | 98 | virtual ~MenuItem() { } |
93 | 99 | ||