Planeshift
pawsconfigsound.h
Go to the documentation of this file.
1 /*
2  * pawsconfigsound.h - Author: Christian Svensson
3  *
4  * Copyright (C) 2004 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_SOUND_HEADER
21 #define PAWS_CONFIG_SOUND_HEADER
22 
23 // CS INCLUDES
24 #include <csutil/array.h>
25 #include <iutil/document.h>
26 
27 // PAWS INCLUDES
28 #include "paws/pawswidget.h"
29 #include "paws/pawscombo.h"
30 #include "pawsconfigwindow.h"
31 #include "util/psxmlparser.h"
32 
33 class pawsCheckBox;
34 class pawsScrollBar;
35 
37 
42 {
43 public:
45 
46  //from pawsWidget:
47  virtual bool PostSetup();
48  virtual bool OnScroll(int,pawsScrollBar*);
49  virtual bool OnButtonPressed(int, int, pawsWidget*);
50  virtual void OnListAction(pawsListBox* selected, int status);
51  virtual void Show();
52  virtual void Hide();
53 
54  // from pawsConfigSectionWindow:
55  virtual bool Initialize();
56  virtual bool LoadConfig();
57  virtual bool SaveConfig();
58  virtual void SetDefault();
59 
60 protected:
61 
70 
78 
83 
85 
86  bool loaded;
87 
90 };
91 
92 
94 
95 
96 #endif
97 
pawsCheckBox * gui
virtual bool LoadConfig()
sets content of dialog according to current configuration
pawsCheckBox * loopBGM
CREATE_PAWS_FACTORY(pawsConfigSound)
The main base widget that all other widgets should inherit from.
Definition: pawswidget.h:116
virtual bool SaveConfig()
remembers settings in-game and saves them permanently to a file also
pawsScrollBar * musicVol
A combination widget that has a check box and a text label.
Definition: pawscheckbox.h:48
virtual bool OnButtonPressed(int, int, pawsWidget *)
Called whenever a button is pressed.
pawsScrollBar * guiVol
pawsComboBox * soundLocation
pawsCheckBox * combatMusic
pawsCheckBox * voices
virtual void Show()
Makes widget visible and brings it to the front.
virtual bool OnScroll(int, pawsScrollBar *)
Called whenever a window is scrolled.
virtual void Hide()
Makes widget invisible and removes focus if widget has current focus.
pawsCheckBox * ambient
virtual void SetDefault()
sets content of dialog according to default configuration
virtual bool Initialize()
pawsScrollBar * voicesVol
pawsCheckBox * actions
virtual void OnListAction(pawsListBox *selected, int status)
Called whenever an item in a child list box is selected.
pawsScrollBar * ambientVol
A simple list box widget.
Definition: pawslistbox.h:202
A simple scroll bar widget.
Definition: pawscrollbar.h:64
configuration screen for sounds volumes, music volumes, UI volume, ambient, voices, ...
pawsScrollBar * instrumentsVol
pawsCheckBox * instruments
pawsCheckBox * effects
pawsScrollBar * generalVol
virtual bool PostSetup()
This is called after the widget and all of it&#39;s children have been created.
A basic combo box widget.
Definition: pawscombo.h:53
pawsCheckBox * chatSound
pawsScrollBar * actionsVol
pawsCheckBox * muteOnFocusLoss
pawsCheckBox * music
pawsScrollBar * effectsVol
This is a set of radio buttons and is used to control them.
Definition: pawsradio.h:131