#include <SoundDialog.h>

Public Member Functions | |
| virtual void | buttonDown (unsigned int id) |
| virtual void | display () |
Static Public Member Functions | |
| static SoundDialog * | instance () |
Protected Attributes | |
| unsigned int | okId_ |
| unsigned int | cancelId_ |
| unsigned int | applyId_ |
| GLWCheckBoxText * | noSoundBox_ |
| GLWCheckBoxText * | noMusicBox_ |
| GLWSlider * | soundVolume_ |
| GLWSlider * | ambientSoundVolume_ |
| GLWSlider * | musicVolume_ |
Static Protected Attributes | |
| static SoundDialog * | instance_ = 0 |
Private Member Functions | |
| SoundDialog () | |
| virtual | ~SoundDialog () |
Definition at line 29 of file SoundDialog.h.
| SoundDialog::SoundDialog | ( | ) | [private] |
Definition at line 39 of file SoundDialog.cpp.
References GLWPanel::addWidget(), GLWPanel::AlignCenterLeftRight, ambientSoundVolume_, applyId_, GLWButton::ButtonFlagCancel, GLWButton::ButtonFlagCenterX, GLWButton::ButtonFlagOk, cancelId_, GLWidget::getId(), GLWPanel::GLWPanel(), LANG_RESOURCE, GLWPanel::layout(), GLWPanel::LayoutHorizontal, GLWPanel::LayoutVerticle, musicVolume_, GLWWindow::needCentered_, noMusicBox_, noSoundBox_, okId_, GLWPanel::setLayout(), soundVolume_, GLWPanel::SpaceAll, GLWPanel::SpaceLeft, GLWPanel::SpaceRight, and GLWPanel::SpaceTop.
| SoundDialog::~SoundDialog | ( | ) | [private, virtual] |
Definition at line 100 of file SoundDialog.cpp.
| SoundDialog * SoundDialog::instance | ( | ) | [static] |
Definition at line 30 of file SoundDialog.cpp.
References instance_.
Referenced by ClientWindowSetup::addCommonComponents(), HelpButtonDialog::VolumeMenu::menuOpened(), ClientWindowSetup::setupGameWindows(), and ClientWindowSetup::setupStartWindows().
| void SoundDialog::buttonDown | ( | unsigned int | id | ) | [virtual] |
Implements GLWButtonI.
Definition at line 120 of file SoundDialog.cpp.
References ambientSoundVolume_, applyId_, OptionsDisplay::getAmbientSoundVolumeEntry(), GLWCheckBoxText::getCheckBox(), GLWSlider::getCurrent(), Sound::getDefaultListener(), GLWidget::getId(), OptionsDisplay::getMusicVolumeEntry(), OptionsDisplay::getNoMusicEntry(), OptionsDisplay::getNoSoundEntry(), OptionsDisplay::getSoundVolumeEntry(), GLWCheckBox::getState(), GLWWindowManager::hideWindow(), GLWWindowManager::instance(), Sound::instance(), OptionsDisplay::instance(), int(), musicVolume_, noMusicBox_, noSoundBox_, okId_, SoundListener::setGain(), OptionEntryInt::setValue(), OptionEntryBool::setValue(), and soundVolume_.
| void SoundDialog::display | ( | ) | [virtual] |
Reimplemented from GLWPanel.
Definition at line 104 of file SoundDialog.cpp.
References ambientSoundVolume_, GLWPanel::display(), GLWCheckBoxText::getCheckBox(), OptionsDisplay::instance(), musicVolume_, noMusicBox_, noSoundBox_, GLWSlider::setCurrent(), GLWCheckBox::setState(), and soundVolume_.
SoundDialog * SoundDialog::instance_ = 0 [static, protected] |
unsigned int SoundDialog::okId_ [protected] |
unsigned int SoundDialog::cancelId_ [protected] |
unsigned int SoundDialog::applyId_ [protected] |
GLWCheckBoxText* SoundDialog::noSoundBox_ [protected] |
Definition at line 44 of file SoundDialog.h.
Referenced by buttonDown(), display(), and SoundDialog().
GLWCheckBoxText* SoundDialog::noMusicBox_ [protected] |
Definition at line 45 of file SoundDialog.h.
Referenced by buttonDown(), display(), and SoundDialog().
GLWSlider* SoundDialog::soundVolume_ [protected] |
Definition at line 46 of file SoundDialog.h.
Referenced by buttonDown(), display(), and SoundDialog().
GLWSlider* SoundDialog::ambientSoundVolume_ [protected] |
Definition at line 47 of file SoundDialog.h.
Referenced by buttonDown(), display(), and SoundDialog().
GLWSlider* SoundDialog::musicVolume_ [protected] |
Definition at line 48 of file SoundDialog.h.
Referenced by buttonDown(), display(), and SoundDialog().
1.5.3