SoundDialog Class Reference

#include <SoundDialog.h>

Inheritance diagram for SoundDialog:

GLWWindow GLWButtonI GLWPanel GLWidget MetaClass

List of all members.

Public Member Functions

virtual void buttonDown (unsigned int id)
virtual void display ()

Static Public Member Functions

static SoundDialoginstance ()

Protected Attributes

unsigned int okId_
unsigned int cancelId_
unsigned int applyId_
GLWCheckBoxTextnoSoundBox_
GLWCheckBoxTextnoMusicBox_
GLWSlidersoundVolume_
GLWSliderambientSoundVolume_
GLWSlidermusicVolume_

Static Protected Attributes

static SoundDialoginstance_ = 0

Private Member Functions

 SoundDialog ()
virtual ~SoundDialog ()


Detailed Description

Definition at line 29 of file SoundDialog.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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_.


Member Data Documentation

SoundDialog * SoundDialog::instance_ = 0 [static, protected]

Definition at line 42 of file SoundDialog.h.

Referenced by instance().

unsigned int SoundDialog::okId_ [protected]

Definition at line 43 of file SoundDialog.h.

Referenced by buttonDown(), and SoundDialog().

unsigned int SoundDialog::cancelId_ [protected]

Definition at line 43 of file SoundDialog.h.

Referenced by SoundDialog().

unsigned int SoundDialog::applyId_ [protected]

Definition at line 43 of file SoundDialog.h.

Referenced by buttonDown(), and SoundDialog().

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().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:06 2009 for Scorched3D by  doxygen 1.5.3