Skyscraper 2.0
soundmanager.h
Go to the documentation of this file.
1/*
2 Skyscraper 2.0 Alpha - Sound Manager Dialog
3 Copyright (C)2003-2024 Ryan Thoryk
4 https://www.skyscrapersim.net
5 https://sourceforge.net/projects/skyscraper/
6 Contact - ryan@skyscrapersim.net
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 2
11 of the License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21*/
22
23#ifndef SOUNDMANAGER_H
24#define SOUNDMANAGER_H
25
26//(*Headers(SoundManager)
27#include <wx/button.h>
28#include <wx/dialog.h>
29#include <wx/listbox.h>
30#include <wx/sizer.h>
31#include <wx/stattext.h>
32#include <wx/textctrl.h>
33//*)
34
35namespace Skyscraper {
36
37class SoundManager: public wxDialog
38{
39 public:
40
41 SoundManager(DebugPanel* parent,wxWindowID id=wxID_ANY,const wxPoint& pos=wxDefaultPosition,const wxSize& size=wxDefaultSize);
42 virtual ~SoundManager();
43
44 //(*Declarations(SoundManager)
45 wxButton* bCleanup;
46 wxButton* bEnabled;
47 wxButton* bListPlaying;
48 wxButton* bListPlayingAll;
49 wxButton* bMove;
50 wxButton* bOK;
51 wxButton* bPlay;
52 wxButton* bReset;
53 wxButton* bSetLoop;
54 wxButton* bSetPause;
55 wxButton* bSetSpeed;
56 wxButton* bSetVolume;
57 wxButton* bStop;
58 wxButton* bUnload;
59 wxListBox* HandleList;
60 wxListBox* SoundList;
61 wxStaticText* StaticText10;
62 wxStaticText* StaticText11;
63 wxStaticText* StaticText12;
64 wxStaticText* StaticText13;
65 wxStaticText* StaticText1;
66 wxStaticText* StaticText2;
67 wxStaticText* StaticText3;
68 wxStaticText* StaticText4;
69 wxStaticText* StaticText5;
70 wxStaticText* StaticText6;
71 wxStaticText* StaticText7;
72 wxStaticText* StaticText8;
73 wxStaticText* StaticText9;
74 wxStaticText* lblStats;
75 wxTextCtrl* tEnabled;
76 wxTextCtrl* tLength;
77 wxTextCtrl* tLoop;
78 wxTextCtrl* tName;
79 wxTextCtrl* tParent;
80 wxTextCtrl* tPaused;
81 wxTextCtrl* tPlayPosition;
82 wxTextCtrl* tPlaying;
83 wxTextCtrl* tPosition;
84 wxTextCtrl* tSpeed;
85 wxTextCtrl* tVolume;
86 //*)
87 void Loop();
88
89 protected:
90
91 //(*Identifiers(SoundManager)
92 static const wxWindowID ID_STATICTEXT1;
93 static const wxWindowID ID_SoundList;
94 static const wxWindowID ID_STATICTEXT2;
95 static const wxWindowID ID_HandleList;
96 static const wxWindowID ID_lblStats;
97 static const wxWindowID ID_STATICTEXT4;
98 static const wxWindowID ID_tName;
99 static const wxWindowID ID_STATICTEXT3;
100 static const wxWindowID ID_tParent;
101 static const wxWindowID ID_STATICTEXT5;
102 static const wxWindowID ID_tLength;
103 static const wxWindowID ID_STATICTEXT6;
104 static const wxWindowID ID_tPlaying;
105 static const wxWindowID ID_STATICTEXT7;
106 static const wxWindowID ID_tPosition;
107 static const wxWindowID ID_bMove;
108 static const wxWindowID ID_STATICTEXT8;
109 static const wxWindowID ID_tVolume;
110 static const wxWindowID ID_bSetVolume;
111 static const wxWindowID ID_STATICTEXT9;
112 static const wxWindowID ID_tLoop;
113 static const wxWindowID ID_bSetLoop;
114 static const wxWindowID ID_STATICTEXT10;
115 static const wxWindowID ID_tPaused;
116 static const wxWindowID ID_bSetPause;
117 static const wxWindowID ID_STATICTEXT13;
118 static const wxWindowID ID_tEnabled;
119 static const wxWindowID ID_bEnabled;
120 static const wxWindowID ID_STATICTEXT11;
121 static const wxWindowID ID_tSpeed;
122 static const wxWindowID ID_bSetSpeed;
123 static const wxWindowID ID_STATICTEXT12;
124 static const wxWindowID ID_tPlayPosition;
125 static const wxWindowID ID_bPlay;
126 static const wxWindowID ID_bStop;
127 static const wxWindowID ID_bReset;
128 static const wxWindowID ID_bUnload;
129 static const wxWindowID ID_bCleanup;
130 static const wxWindowID ID_bOK;
131 static const wxWindowID ID_bListPlaying;
132 static const wxWindowID ID_bListPlayingAll;
133 //*)
134
135 private:
136
137 //(*Handlers(SoundManager)
138 void On_bOK_Click(wxCommandEvent& event);
139 void On_bListPlaying_Click(wxCommandEvent& event);
140 void On_bSetVolume_Click(wxCommandEvent& event);
141 void On_bSetLoop_Click(wxCommandEvent& event);
142 void On_bSetPause_Click(wxCommandEvent& event);
143 void On_bSetSpeed_Click(wxCommandEvent& event);
144 void On_bPlay_Click(wxCommandEvent& event);
145 void On_bStop_Click(wxCommandEvent& event);
146 void On_bReset_Click(wxCommandEvent& event);
147 void On_bUnload_Click(wxCommandEvent& event);
148 void On_bCleanup_Click(wxCommandEvent& event);
149 void On_bMove_Click(wxCommandEvent& event);
150 void On_bEnabled_Click(wxCommandEvent& event);
151 void On_bListPlayingAll_Click(wxCommandEvent& event);
152 //*)
153 void BuildSoundList();
154 void BuildHandleList();
155
165
166 DECLARE_EVENT_TABLE()
167};
168
169}
170
171#endif
static const wxWindowID ID_STATICTEXT2
static const wxWindowID ID_bEnabled
void On_bSetSpeed_Click(wxCommandEvent &event)
static const wxWindowID ID_bSetPause
static const wxWindowID ID_tPlayPosition
static const wxWindowID ID_STATICTEXT6
static const wxWindowID ID_tPosition
static const wxWindowID ID_tName
void On_bSetLoop_Click(wxCommandEvent &event)
static const wxWindowID ID_STATICTEXT10
static const wxWindowID ID_bSetLoop
static const wxWindowID ID_bListPlayingAll
static const wxWindowID ID_SoundList
wxStaticText * StaticText6
static const wxWindowID ID_lblStats
static const wxWindowID ID_bMove
static const wxWindowID ID_STATICTEXT13
static const wxWindowID ID_tPaused
static const wxWindowID ID_HandleList
static const wxWindowID ID_bPlay
static const wxWindowID ID_STATICTEXT1
static const wxWindowID ID_bListPlaying
void On_bStop_Click(wxCommandEvent &event)
void On_bOK_Click(wxCommandEvent &event)
static const wxWindowID ID_bReset
static const wxWindowID ID_tPlaying
static const wxWindowID ID_bCleanup
void On_bListPlayingAll_Click(wxCommandEvent &event)
wxStaticText * lblStats
wxStaticText * StaticText2
void On_bSetPause_Click(wxCommandEvent &event)
static const wxWindowID ID_bSetVolume
static const wxWindowID ID_STATICTEXT9
void On_bPlay_Click(wxCommandEvent &event)
void On_bUnload_Click(wxCommandEvent &event)
wxStaticText * StaticText3
wxStaticText * StaticText5
wxStaticText * StaticText10
wxStaticText * StaticText8
SoundManager(DebugPanel *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
SBS::SoundData * sound
void On_bMove_Click(wxCommandEvent &event)
void On_bCleanup_Click(wxCommandEvent &event)
static const wxWindowID ID_tLoop
static const wxWindowID ID_STATICTEXT3
void On_bReset_Click(wxCommandEvent &event)
static const wxWindowID ID_STATICTEXT8
static const wxWindowID ID_STATICTEXT4
static const wxWindowID ID_STATICTEXT11
void On_bListPlaying_Click(wxCommandEvent &event)
wxStaticText * StaticText1
static const wxWindowID ID_tEnabled
wxStaticText * StaticText4
static const wxWindowID ID_bStop
wxStaticText * StaticText9
wxStaticText * StaticText13
static const wxWindowID ID_STATICTEXT5
static const wxWindowID ID_STATICTEXT7
static const wxWindowID ID_bUnload
static const wxWindowID ID_bSetSpeed
wxStaticText * StaticText12
static const wxWindowID ID_bOK
void On_bSetVolume_Click(wxCommandEvent &event)
static const wxWindowID ID_STATICTEXT12
wxStaticText * StaticText11
static const wxWindowID ID_tVolume
void On_bEnabled_Click(wxCommandEvent &event)
wxStaticText * StaticText7
static const wxWindowID ID_tParent
static const wxWindowID ID_tSpeed
static const wxWindowID ID_tLength
Ogre::Real Real
Definition globals.h:57