aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-05-20 15:08:14 (GMT)
committersimonb <simonb>2006-05-20 15:08:14 (GMT)
commit0861f3a9073ccd016302af26ff992fa19331a02d (patch)
treef1a2276449a5fc9b27f2d1afa5ffff4410141345 /src/FbTk/Menu.hh
parent5ddabb0f390f69db793b5a6e40be9f94b8f83136 (diff)
downloadfluxbox_pavel-0861f3a9073ccd016302af26ff992fa19331a02d.zip
fluxbox_pavel-0861f3a9073ccd016302af26ff992fa19331a02d.tar.bz2
improve native language handling, move messages and menu labels to
FbTk::FbString
Diffstat (limited to 'src/FbTk/Menu.hh')
-rw-r--r--src/FbTk/Menu.hh9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh
index 2f098d7..26262f2 100644
--- a/src/FbTk/Menu.hh
+++ b/src/FbTk/Menu.hh
@@ -40,6 +40,7 @@
40#include "FbPixmap.hh" 40#include "FbPixmap.hh"
41#include "MenuTheme.hh" 41#include "MenuTheme.hh"
42#include "Timer.hh" 42#include "Timer.hh"
43#include "FbString.hh"
43 44
44namespace FbTk { 45namespace FbTk {
45 46
@@ -65,11 +66,11 @@ public:
65 */ 66 */
66 //@{ 67 //@{
67 /// add a menu item with a label and a command 68 /// add a menu item with a label and a command
68 int insert(const char *label, RefCount<Command> &cmd, int pos=-1); 69 int insert(const FbString &label, RefCount<Command> &cmd, int pos=-1);
69 /// add empty menu item 70 /// add empty menu item
70 int insert(const char *label, int pos=-1); 71 int insert(const FbString &label, int pos=-1);
71 /// add submenu 72 /// add submenu
72 int insert(const char *label, Menu *submenu, int pos= -1); 73 int insert(const FbString &label, Menu *submenu, int pos= -1);
73 /// add menu item 74 /// add menu item
74 int insert(MenuItem *item, int pos=-1); 75 int insert(MenuItem *item, int pos=-1);
75 /// remove an item 76 /// remove an item
@@ -113,7 +114,7 @@ public:
113 void grabInputFocus(); 114 void grabInputFocus();
114 virtual void reconfigure(); 115 virtual void reconfigure();
115 /// set label string 116 /// set label string
116 void setLabel(const char *labelstr); 117 void setLabel(const FbString &labelstr);
117 /// move menu to x,y 118 /// move menu to x,y
118 void move(int x, int y); 119 void move(int x, int y);
119 virtual void updateMenu(int active_index = -1); 120 virtual void updateMenu(int active_index = -1);