Skip to content

Commit

Permalink
Includes cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pdesaulniers committed Jan 3, 2025
1 parent b218896 commit 28c9081
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 24 deletions.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ ColumnLimit: 0
AccessModifierOffset: -4
DeriveLineEnding: false
UseCRLF: false
FixNamespaceComments: false
4 changes: 3 additions & 1 deletion src/Config.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// SPDX-FileCopyrightText: © 2023 Patrick Desaulniers
// SPDX-License-Identifier: GPL-3.0-or-later

#include "Color.hpp"

#ifndef WOLF_SPECTRUM_CONFIG_H_INCLUDED
#define WOLF_SPECTRUM_CONFIG_H_INCLUDED

Expand All @@ -21,7 +23,7 @@ static const Color color_ramp_9 = Color(11, 1, 48);
static const Color color_ramp_10 = Color(0, 0, 0);

static const Color right_click_menu_border_color = Color(10, 10, 10, 255);
} // namespace CONFIG_NAMESPACE
}

END_NAMESPACE_DISTRHO

Expand Down
1 change: 0 additions & 1 deletion src/Widgets/ScrollingTexture.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#define TEXTURE_ROLL_HPP_INCLUDED

#include "NanoVG.hpp"
#include "src/nanovg/nanovg.h"

START_NAMESPACE_DISTRHO

Expand Down
1 change: 0 additions & 1 deletion src/Widgets/Spectrogram.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#ifndef SPECTROGRAM_HPP_INCLUDED
#define SPECTROGRAM_HPP_INCLUDED

#include "DistrhoPluginInfo.h"
#include "NanoVG.hpp"
#include "PeakFallSmooth.hpp"
#include "Ringbuffer.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/Widgets/StatusBar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#ifndef STATUSBAR_HPP
#define STATUSBAR_HPP

#include "DistrhoPluginInfo.h"
#include "NanoVG.hpp"
#include <string>

Expand Down
1 change: 0 additions & 1 deletion src/Widgets/src/ResizeHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later

#include "ResizeHandle.hpp"
#include "Window.hpp"

#include <cmath>

Expand Down
13 changes: 5 additions & 8 deletions src/Widgets/src/ScrollingTexture.cpp
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
// SPDX-FileCopyrightText: © 2023 Patrick Desaulniers
// SPDX-License-Identifier: GPL-3.0-or-later

#include "DistrhoUI.hpp"
#include "Spectrogram.hpp"

#include "Mathf.hpp"
#include "Window.hpp"

#include <iostream>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <cmath>
#include <cstdlib>

#include "ScrollingTexture.hpp"
#include "src/nanovg/nanovg.h"

START_NAMESPACE_DISTRHO

Expand Down
4 changes: 0 additions & 4 deletions src/WolfSpectrumPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <sstream>

#include "Ringbuffer.hpp"
#include "WolfSpectrumPlugin.hpp"

START_NAMESPACE_DISTRHO
Expand Down
3 changes: 0 additions & 3 deletions src/WolfSpectrumPlugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <sstream>

#include "WolfSpectrumParameters.hpp"

Expand Down
3 changes: 0 additions & 3 deletions src/WolfSpectrumUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@

#include "DistrhoUI.hpp"

#include "Config.hpp"
#include "Window.hpp"
#include "WolfSpectrumParameters.hpp"
#include "WolfSpectrumUI.hpp"

#include <string>

START_NAMESPACE_DISTRHO

Expand Down
2 changes: 1 addition & 1 deletion src/WolfSpectrumUI.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class WolfSpectrumUI : public UI,
void tryRememberSize();
void positionWidgets(uint width, uint height);

void resizeHandleMoved(int width, int height);
void resizeHandleMoved(int width, int height) override;

void onNanoDisplay() override;
void uiIdle() override;
Expand Down

0 comments on commit 28c9081

Please sign in to comment.