- changing MaxInstructions to 100 for cthulhain (crazy nut) =:)
[bbkeys.git] / src / stackmenu.hh
blobd0e28f0e0497cd8d4df8f729c3e510c4650dda1b
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 "bbkeys.hh"
27 #include "Basemenu.hh"
29 class Stackmenu : public Basemenu {
30 public:
31 Stackmenu(ToolWindow *);
32 virtual ~Stackmenu();
34 void hide();
35 void show(bool forward, bool showMenu);
36 void reconfigure();
37 void key_press(int grabInt);
38 void centerPosition();
39 void setSelected(int);
40 void setMenuItems();
41 void selectFocused(bool);
43 protected:
44 void clearMenu();
45 void itemSelected(int,int);
47 private:
48 ToolWindow *bbtool;
49 int menuPosition;
52 #endif // __STACKMENU_HH