-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.h
56 lines (43 loc) · 1.41 KB
/
MainWindow.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
46
47
48
49
50
51
52
53
54
55
56
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <Window.h>
#include <StringView.h>
#include <Dragger.h>
// Globals
#define appSignature "application/x-vnd.pnkp-HugeClock"
// Finally stuff that actually belongs here
class MainView : public BView
{
public:
MainView(BMessage* data);
MainView();
~MainView();
void MessageReceived(BMessage *msg);
void AllAttached();
void FrameResized(float width, float height);
void Pulse();
status_t Archive(BMessage* data, bool deep) const;
static BArchivable* Instantiate(BMessage* data);
private:
BDragger* rplDragger;
BStringView* lblTime;
BStringView* lblDate;
BFont* bigFont;
BFont* smallFont;
// BMessageRunner* tmrTicky;
bool isReplicant;
void Initialize(float bigSize, float smallSize);
void SetLabelColors();
void SetTimeFont();
void Tick();
void ShowAbout();
};
class MainWindow : public BWindow
{
public:
MainWindow(void);
MainView* mainView;
bool QuitRequested(void);
private:
};
#endif