Debian Codegraph @

src/option/MenuOptions.h

raw
1 #ifndef HEADER_MENUOPTIONS_H
2 #define HEADER_MENUOPTIONS_H
3
4 class Picture;
5 class MouseStroke;
6 class IWidget;
7 class WiStatusBar;
8 class Labels;
9
10 #include "GameState.h"
11 #include "Drawable.h"
12
13 /**
14 * Options menu which allow to set lang and tune volume.
15 */
16 class MenuOptions : public GameState, public Drawable {
17 private:
18 IWidget *m_container;
19 WiStatusBar *m_statusBar;
20 bool m_needRefresh;
21 private:
22 void prepareMenu();
23 IWidget *createSoundPanel(const Labels &labels);
24 IWidget *createMusicPanel(const Labels &labels);
25 IWidget *createLangPanel(const Labels &labels);
26 IWidget *createSpeechPanel(const Labels &labels);
27 IWidget *createSubtitlesPanel(const Labels &labels);
28 IWidget *createBackButton(const Labels &labels);
29 WiStatusBar *createStatusBar(int width);
30 protected:
31 virtual void own_initState();
32 virtual void own_updateState();
33 virtual void own_pauseState() {}
34 virtual void own_resumeState();
35 virtual void own_cleanState() {}
36 public:
37 MenuOptions();
38 virtual ~MenuOptions();
39 virtual const char *getName() const { return "state_options"; };
40 virtual bool allowBg() const { return true; }
41
42 void mouseButton(const MouseStroke &stroke);
43 virtual void drawOn(SDL_Surface *screen);
44
45 void receiveString(const StringMsg *msg);
46 };
47
48 #endif