fixing parse error in execcommand
[bbkeys.git] / src / stackmenu.hh
blob7506ceb8bfa7000913fa9fa4e05d5d8217cb9ff4
1 // stackmenu.hh for bbkeys
2 //
3 // Copyright (c) 2001 by Ben Jansens <xor@orodu.net>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 // (See the included file COPYING / GPL-2.0)
21 // $Id$
23 #ifndef __STACKMENU_HH
24 #define __STACKMENU_HH
26 #include "Basemenu.hh"
28 class ToolWindow;
30 class Stackmenu : public Basemenu {
31 public:
32 Stackmenu(ToolWindow *);
33 virtual ~Stackmenu();
35 void hide();
36 void show();
37 void show(bool forward, bool showMenu);
38 void reconfigure();
39 void key_press(int grabInt);
40 void centerPosition();
41 void setSelected(int);
42 void setMenuItems();
43 void selectFocused(bool);
45 protected:
46 void clearMenu();
47 void itemSelected(int,int);
49 private:
50 ToolWindow *bbtool;
51 int menuPosition;
54 #endif // __STACKMENU_HH