-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWatcherWindow.h
45 lines (34 loc) · 1018 Bytes
/
WatcherWindow.h
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
// SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2023 Chris Roberts
#include <Window.h>
class BCheckBox;
class BColorControl;
class BRadioButton;
class BSlider;
class BSpinner;
class BTextControl;
class WatcherWindow : public BWindow {
public:
WatcherWindow(BRect frame);
virtual void MessageReceived(BMessage *message);
virtual void WorkspaceActivated(int32 workspace, bool state);
virtual bool QuitRequested();
private:
status_t _RenderBitmap(int32 workspace, BBitmap& bitmap, BView* parent = NULL);
status_t _LoadSettings();
status_t _SaveSettings();
void _UpdatePreview();
void _UpdateSliderLabel();
BSlider* fTimeoutSlider;
BSpinner* fFontSizeSpinner;
BCheckBox* fAutoRunCheckBox;
BTextControl* fTitleControl;
BColorControl* fColorControl;
BRadioButton* fForegroundButton;
BRadioButton* fBackgroundButton;
BView* fBackgroundPreview;
BView* fForegroundPreview;
BView* fPreviewView;
rgb_color fBackgroundColor;
rgb_color fForegroundColor;
};