-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathStatusbar.h
More file actions
55 lines (40 loc) · 1.39 KB
/
Statusbar.h
File metadata and controls
55 lines (40 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
// Copyright (c) 2026 Timothy Schoen.
// For information on usage and redistribution, and for a DISCLAIMER OF ALL
// WARRANTIES, see the file, "LICENSE.txt," in this distribution.
*/
#pragma once
#include <juce_audio_processors/juce_audio_processors.h>
#include <juce_gui_basics/juce_gui_basics.h>
#include "LookAndFeel.h"
#include "Utility/SettingsFile.h"
#include "Utility/NVGUtils.h"
#include "Components/Buttons.h"
class PluginProcessor;
class LatencyDisplayButton;
class ZoomLabel;
class StatusbarButtonGroup;
class Statusbar;
class Statusbar final : public Component
, public NVGComponent
, public AsyncUpdater {
public:
Statusbar(PluginProcessor* processor, PluginEditor* e);
~Statusbar() override;
void updateZoomLevel() { triggerAsyncUpdate(); }
void setEditButtonState(bool locked, bool present = false);
static constexpr int statusbarHeight = 30;
float currentZoomLevel = 100.0f;
private:
void handleAsyncUpdate() override;
void paint(Graphics& g) override;
void resized() override;
PluginProcessor* pd;
PluginEditor* editor;
std::unique_ptr<ZoomLabel> zoomSelector;
std::unique_ptr<StatusbarButtonGroup> gridGroup;
std::unique_ptr<StatusbarButtonGroup> overlayGroup;
std::unique_ptr<StatusbarButtonGroup> editModeGroup;
bool welcomePanelIsShown = false;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(Statusbar)
};