Skip to content

Commit

Permalink
Class stubs for refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
kcoul committed Dec 2, 2023
1 parent de37c8f commit f71711f
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ juce_add_gui_app(AudioGridderServer
juce_generate_juce_header(AudioGridderServer)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/Source AG_SOURCES_SERVER)
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/Source/ServerSettings AG_SOURCES_SERVER_SETTINGS)

if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
list(REMOVE_ITEM AG_SOURCES_SERVER "${CMAKE_CURRENT_SOURCE_DIR}/Source/Screen.mm")
Expand All @@ -31,7 +32,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
list(REMOVE_ITEM AG_SOURCES_SERVER "${CMAKE_CURRENT_SOURCE_DIR}/Source/ScreenHelper_linux.cpp")
endif()

target_sources(AudioGridderServer PRIVATE ${AG_SOURCES_SERVER} ${AG_SOURCES_COMMON})
target_sources(AudioGridderServer PRIVATE ${AG_SOURCES_SERVER} ${AG_SOURCES_SERVER_SETTINGS} ${AG_SOURCES_COMMON})

set(AG_PLUGINHOST_VST 0)
if(AG_SDKS_ROOT)
Expand Down
8 changes: 8 additions & 0 deletions Server/Source/ServerSettings/DiagnosticsTab.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#include "DiagnosticsTab.hpp"
16 changes: 16 additions & 0 deletions Server/Source/ServerSettings/DiagnosticsTab.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#pragma once

class DiagnosticsTab
{
public:
private:
};


8 changes: 8 additions & 0 deletions Server/Source/ServerSettings/MainTab.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#include "MainTab.hpp"
16 changes: 16 additions & 0 deletions Server/Source/ServerSettings/MainTab.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#pragma once

class MainTab
{
public:
private:
};


8 changes: 8 additions & 0 deletions Server/Source/ServerSettings/PluginFormatsTab.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#include "PluginFormatsTab.hpp"
14 changes: 14 additions & 0 deletions Server/Source/ServerSettings/PluginFormatsTab.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#pragma once

class PluginFormatsTab
{
public:
private:
};
8 changes: 8 additions & 0 deletions Server/Source/ServerSettings/ScreenCapturingTab.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#include "ScreenCapturingTab.hpp"
16 changes: 16 additions & 0 deletions Server/Source/ServerSettings/ScreenCapturingTab.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#pragma once

class ScreenCapturingTab
{
public:
private:
};


8 changes: 8 additions & 0 deletions Server/Source/ServerSettings/StartupTab.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#include "StartupTab.hpp"
16 changes: 16 additions & 0 deletions Server/Source/ServerSettings/StartupTab.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* Copyright (c) 2024 Andreas Pohl
* Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING)
*
* Author: Kieran Coulter
*/

#pragma once

class StartupTab
{
public:
private:
};


3 changes: 2 additions & 1 deletion Server/Source/ServerSettingsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ ServerSettingsWindow::ServerSettingsWindow(App* app)
LookAndFeel::getDefaultLookAndFeel().findColour(ResizableWindow::backgroundColourId),
DocumentWindow::closeButton),
LogTag("settings"),
m_app(app) {
m_app(app),
m_tabbedComponent(TabbedButtonBar::TabsAtTop) {
traceScope();
setUsingNativeTitleBar(true);

Expand Down
7 changes: 7 additions & 0 deletions Server/Source/ServerSettingsWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
#include <JuceHeader.h>

#include "Utils.hpp"
#include "ServerSettings/MainTab.hpp"
#include "ServerSettings/PluginFormatsTab.hpp"
#include "ServerSettings/ScreenCapturingTab.hpp"
#include "ServerSettings/StartupTab.hpp"
#include "ServerSettings/DiagnosticsTab.hpp"

namespace e47 {

Expand All @@ -35,6 +40,8 @@ class ServerSettingsWindow : public DocumentWindow, public LogTag {
ComboBox m_screenCapturingMode, m_screenCapturingQuality, m_sandboxMode;
TooltipWindow m_tooltipWindow;

TabbedComponent m_tabbedComponent;

JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ServerSettingsWindow)
};

Expand Down

0 comments on commit f71711f

Please sign in to comment.