File: SoundMenu.h

package info (click to toggle)
moagg 0.18-6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,924 kB
  • ctags: 4,059
  • sloc: cpp: 23,814; sh: 2,652; makefile: 283
file content (40 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef SOUND_MENU_H
#define SOUND_MENU_H

#include <pglineedit.h>
#include "Menu.h"

class SoundMenu : public Menu
{
    MENU_SINGLETON(Sound);

  public:
    void eventShow();
    void eventHide();

  protected:

    PARAGUI_CALLBACK(onOk);
    PARAGUI_CALLBACK(onCancel);
    PARAGUI_CALLBACK(onSoundSlider);
    PARAGUI_CALLBACK(onMusicSlider);
    PARAGUI_CALLBACK(onSoundCheck);
    PARAGUI_CALLBACK(onMusicCheck);

    void updateSoundWidgets();
    void updateMusicWidgets();

    Uint8 m_soundVolume;
    Uint8 m_musicVolume;
    bool m_soundEnabled;
    bool m_musicEnabled;
    
    Uint8 m_lastSoundVolume;
    Uint8 m_lastMusicVolume;
    bool m_lastSoundEnabled;
    bool m_lastMusicEnabled;

    bool m_autoPress;
};

#endif // SOUND_MENU