diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-14 19:28:34 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-14 19:28:34 +0000 |
| commit | 1b1efab489353734f0047f97fe5fef7f96d0ee68 (patch) | |
| tree | c5aef6771f1634f9fe0add5d8f07c71b9358be9d /src/Basemenu.h | |
| parent | f00ed578baacb73a36227fed1419e9d451ee7bb0 (diff) | |
compile with -Wall -W -pendantic when --enable-debug is set.
Diffstat (limited to 'src/Basemenu.h')
| -rw-r--r-- | src/Basemenu.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/Basemenu.h b/src/Basemenu.h index 83ea3567..35a9791b 100644 --- a/src/Basemenu.h +++ b/src/Basemenu.h @@ -91,15 +91,14 @@ public: int insert(const char *, Basemenu *, int = -1); int remove(int); - inline const int &getX(void) const { return menu.x; } - inline const int &getY(void) const { return menu.y; } - inline int getCount(void) { return menuitems.size(); } - inline const int &getCurrentSubmenu(void) const { return which_sub; } + inline int getX(void) const { return menu.x; } + inline int getY(void) const { return menu.y; } + inline unsigned int getCount(void) { return menuitems.size(); } + inline int getCurrentSubmenu(void) const { return which_sub; } - inline const unsigned int &getWidth(void) const { return menu.width; } - inline const unsigned int &getHeight(void) const { return menu.height; } - inline const unsigned int &getTitleHeight(void) const - { return menu.title_h; } + inline unsigned int getWidth(void) const { return menu.width; } + inline unsigned int getHeight(void) const { return menu.height; } + inline unsigned int getTitleHeight(void) const { return menu.title_h; } inline void setInternalMenu(void) { internal_menu = True; } inline void setAlignment(int a) { alignment = a; } @@ -107,9 +106,9 @@ public: inline void removeParent(void) { if (internal_menu) parent = (Basemenu *) 0; } - Bool hasSubmenu(int); - Bool isItemSelected(int); - Bool isItemEnabled(int); + bool hasSubmenu(int); + bool isItemSelected(int); + bool isItemEnabled(int); void buttonPressEvent(XButtonEvent *); void buttonReleaseEvent(XButtonEvent *); @@ -121,8 +120,8 @@ public: void setLabel(const char *n); void move(int, int); void update(void); - void setItemSelected(int, Bool); - void setItemEnabled(int, Bool); + void setItemSelected(int, bool); + void setItemEnabled(int, bool); virtual void drawSubmenu(int); virtual void show(void); |
