1
- #include " PresetSelectionGui .h"
1
+ #include " PresetSelection .h"
2
2
3
- #include " AnonymousProFont.h"
4
3
#include " ProjectMWrapper.h"
5
4
#include " SDLRenderingWindow.h"
5
+ #include " AnonymousProFont.h"
6
6
7
7
#include " imgui.h"
8
8
#include " imgui_impl_opengl3.h"
12
12
13
13
#include < cmath>
14
14
15
- const char * PresetSelectionGui ::name () const
15
+ const char * PresetSelection ::name () const
16
16
{
17
17
return " Preset Selection GUI" ;
18
18
}
19
19
20
- void PresetSelectionGui ::initialize (Poco::Util::Application& app)
20
+ void PresetSelection ::initialize (Poco::Util::Application& app)
21
21
{
22
22
IMGUI_CHECKVERSION ();
23
23
ImGui::CreateContext ();
@@ -41,7 +41,7 @@ void PresetSelectionGui::initialize(Poco::Util::Application& app)
41
41
UpdateFontSize ();
42
42
}
43
43
44
- void PresetSelectionGui ::uninitialize ()
44
+ void PresetSelection ::uninitialize ()
45
45
{
46
46
ImGui_ImplOpenGL3_Shutdown ();
47
47
ImGui_ImplSDL2_Shutdown ();
@@ -53,7 +53,7 @@ void PresetSelectionGui::uninitialize()
53
53
_glContext = nullptr ;
54
54
}
55
55
56
- void PresetSelectionGui ::UpdateFontSize ()
56
+ void PresetSelection ::UpdateFontSize ()
57
57
{
58
58
ImGuiIO& io = ImGui::GetIO ();
59
59
@@ -88,7 +88,7 @@ void PresetSelectionGui::UpdateFontSize()
88
88
ImGui::GetStyle ().ScaleAllSizes (1.0 );
89
89
}
90
90
91
- void PresetSelectionGui ::ProcessInput (const SDL_Event& event)
91
+ void PresetSelection ::ProcessInput (const SDL_Event& event)
92
92
{
93
93
ImGui_ImplSDL2_ProcessEvent (&event);
94
94
unsigned int position;
@@ -97,7 +97,7 @@ void PresetSelectionGui::ProcessInput(const SDL_Event& event)
97
97
_playlistSize = projectm_get_playlist_size (_projectMWrapper->ProjectM ());
98
98
}
99
99
100
- void PresetSelectionGui ::Draw ()
100
+ void PresetSelection ::Draw ()
101
101
{
102
102
ImGui_ImplSDL2_NewFrame ();
103
103
ImGui_ImplOpenGL3_NewFrame ();
@@ -134,19 +134,19 @@ void PresetSelectionGui::Draw()
134
134
ImGui_ImplOpenGL3_RenderDrawData (ImGui::GetDrawData ());
135
135
}
136
136
137
- bool PresetSelectionGui ::WantsKeyboardInput ()
137
+ bool PresetSelection ::WantsKeyboardInput ()
138
138
{
139
139
auto & io = ImGui::GetIO ();
140
140
return io.WantCaptureKeyboard ;
141
141
}
142
142
143
- bool PresetSelectionGui ::WantsMouseInput ()
143
+ bool PresetSelection ::WantsMouseInput ()
144
144
{
145
145
auto & io = ImGui::GetIO ();
146
146
return io.WantCaptureMouse ;
147
147
}
148
148
149
- void PresetSelectionGui ::DrawSettingsWindow ()
149
+ void PresetSelection ::DrawSettingsWindow ()
150
150
{
151
151
if (ImGui::Begin (" projectM Settings" , &_settingsVisible))
152
152
{
@@ -164,7 +164,6 @@ void PresetSelectionGui::DrawSettingsWindow()
164
164
projectm_select_preset (_projectMWrapper->ProjectM (), _playlistPosition, true );
165
165
}
166
166
167
-
168
167
ImGui::Text (" Application average %.3f ms/frame (%.1f FPS)" , 1000 .0f / ImGui::GetIO ().Framerate , ImGui::GetIO ().Framerate );
169
168
170
169
if (ImGui::Button (" Toggle Fullscreen" ))
0 commit comments