Planeshift
bartender.h
Go to the documentation of this file.
1 /*
2 * bartender.h - Author: Andrew Dai
3 *
4 * Copyright (C) 2003 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5 *
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation (version 2 of the License)
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.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 *
18 */
19 
20 #ifndef PAWS_BARTENDER_WINDOW
21 #define PAWS_BARTENDER_WINDOW
22 
23 //=============================================================================
24 // Library Includes
25 //=============================================================================
26 #include "paws/pawswidget.h"
27 #include "gui/pawscontrolwindow.h"
28 
29 //=============================================================================
30 // Forward Declarations
31 //=============================================================================
32 
33 //=============================================================================
34 // Defines
35 //=============================================================================
36 
37 
38 //=============================================================================
39 // Classes
40 //=============================================================================
41 
46 {
47 public:
51  bool PostSetup();
53  virtual ~pawsBartenderWindow();
54 
55  bool OnButtonPressed( int mouseButton, int keyModifier, pawsWidget* widget );
56 
57  bool GetLock() { return locked; };
58  void SetLock( bool state );
59 protected:
60  bool locked;
61 };
63 #endif
This is a window that is controlled by a button on the control bar.
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
bool PostSetup()
Prepares the widget by loading the commands.
CREATE_PAWS_FACTORY(pawsBartenderWindow)
void SetLock(bool state)
bool OnButtonPressed(int mouseButton, int keyModifier, pawsWidget *widget)
Called whenever a button is pressed.
virtual ~pawsBartenderWindow()
Destructor. Saves the widget commands.
Used in the past for quick spell hot bar, then substituted by activemagicwindow.
Definition: bartender.h:45
pawsBartenderWindow()
Constructor.