-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettingsWindow.h
More file actions
38 lines (32 loc) · 914 Bytes
/
SettingsWindow.h
File metadata and controls
38 lines (32 loc) · 914 Bytes
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
/*
* Copyright 2025, Johan Wagenheim <johan@dospuntos.no>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef SETTINGS_WINDOW_H
#define SETTINGS_WINDOW_H
#include <Box.h>
#include <Button.h>
#include <CheckBox.h>
#include <MenuField.h>
#include <PopUpMenu.h>
#include <Slider.h>
#include <String.h>
#include <Window.h>
class SettingsWindow : public BWindow {
public:
SettingsWindow(bool saveText, bool saveSettings, bool clipboard, bool clearSettings,
int32 fontSize, BString fontFamily);
virtual void MessageReceived(BMessage* message);
bool QuitRequested();
private:
BCheckBox* fSaveTextCheck;
BCheckBox* fSaveFieldsCheck;
BCheckBox* fInsertClipboard;
BCheckBox* fClearSettingsAfterUse;
BMenuField* fFontFamilyField;
BString fFontFamily;
BSlider* fFontSizeSlider;
BButton* fApplyButton;
void PopulateFontMenu(BPopUpMenu* menu);
};
#endif // SETTINGS_WINDOW_H