Planeshift
pawsconfigactivemagic.h
Go to the documentation of this file.
1 /*
2  * pawsconfigactivemagic.h - Author: Joe Lyon
3  *
4  * Copyright (C) 2013 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_CONFIG_ACTIVEMAGICHEADER
21 #define PAWS_CONFIG_ACTIVEMAGICHEADER
22 
23 
24 // PAWS INCLUDES
25 #include "paws/pawswidget.h"
26 #include "paws/pawscombo.h"
27 #include "pawsconfigwindow.h"
28 #include "util/psxmlparser.h"
29 #include "pawsactivemagicwindow.h"
30 
31 
32 class pawsCheckBox;
34 
35 
36 /*
37  * class pawsConfigActiveMagic is options screen for configuration of Active Magic Bar
38  */
40 {
41 public:
43 
44  //from pawsWidget:
45  virtual bool PostSetup();
46  virtual bool OnScroll(int, pawsScrollBar*);
47  virtual bool OnButtonPressed(int, int, pawsWidget*);
48  virtual void OnListAction(pawsListBox* selected, int status);
49 
50 
51  // from pawsConfigSectionWindow:
52  virtual bool Initialize();
53  virtual bool LoadConfig();
54  virtual bool SaveConfig();
55  virtual void SetDefault();
56 
57  void PickText( const char * fontName, int size );
58  void SetMainWindowVisible( bool status );
59 
60  void UpdateWarnLevel( );
61  void UpdateDangerLevel( );
62  void UpdateFlashLevel( );
63 
64 protected:
65 
67 
69 
73 
77 
78 // pawsRadioButtonGroup* leftScroll;
79 // pawsRadioButtonGroup* rightScroll;
80 
84 
88 
92 
99 
102 
103  bool loaded;
104 
105 };
106 
107 
109 
110 
111 #endif
112 
CREATE_PAWS_FACTORY(pawsConfigActiveMagic)
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
csString fontName
Name of currently selected font.
Definition: pawswidget.h:305
void SetMainWindowVisible(bool status)
virtual void SetDefault()
sets content of dialog according to default configuration
A combination widget that has a check box and a text label.
Definition: pawscheckbox.h:48
void PickText(const char *fontName, int size)
virtual bool LoadConfig()
sets content of dialog according to current configuration
A scrolling list of buttons, each with an icon and which accepts drag-n-drop.
pawsRadioButtonGroup * buttonWidthMode
A simple list box widget.
Definition: pawslistbox.h:202
virtual void OnListAction(pawsListBox *selected, int status)
Called whenever an item in a child list box is selected.
A simple scroll bar widget.
Definition: pawscrollbar.h:64
pawsRadioButtonGroup * showEffects
virtual bool Initialize()
A basic combo box widget.
Definition: pawscombo.h:53
pawsRadioButtonGroup * dangerMode
Window with current buffs and spells active on the character, and timer for buff to go away...
virtual bool PostSetup()
This is called after the widget and all of it's children have been created.
pawsActiveMagicWindow * ActiveMagicWindow
virtual bool SaveConfig()
remembers settings in-game and saves them permanently to a file also
virtual bool OnScroll(int, pawsScrollBar *)
Called whenever a window is scrolled.
A basic text box widget.
Definition: pawstextbox.h:42
pawsRadioButtonGroup * warnMode
virtual bool OnButtonPressed(int, int, pawsWidget *)
Called whenever a button is pressed.
pawsRadioButtonGroup * flashMode
This is a set of radio buttons and is used to control them.
Definition: pawsradio.h:131