-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSettingsWindow.h
More file actions
36 lines (30 loc) · 786 Bytes
/
Copy pathSettingsWindow.h
File metadata and controls
36 lines (30 loc) · 786 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
#pragma once
#include "MainWindow.h"
#include <Messenger.h>
#include <Window.h>
class BTextControl;
class BButton;
class BStringView;
class BMenuField;
class BPopUpMenu;
class BCheckBox;
const uint32 kMsgSaveAPIKey = 'SvAK';
const uint32 kMsgLogReadingsChanged = 'LogR';
// Rename the constant to avoid conflict
const uint32 kMsgSettingsFontSizeChanged = 'FnSz';
class SettingsWindow : public BWindow {
public:
SettingsWindow(BWindow* owner);
virtual ~SettingsWindow();
void MessageReceived(BMessage* msg);
void AttachedToWindow();
private:
BTextControl* fAPIKeyInput;
BTextControl* fFontSizeInput;
BButton* fSaveButton;
BStringView* fInstructions;
BMenuField* fSpreadMenuField;
BPopUpMenu* fSpreadMenu;
BCheckBox* fLogReadingsCheckbox;
BMessenger fOwnerMessenger;
};