-
Notifications
You must be signed in to change notification settings - Fork 0
/
CalendarDialog.h
38 lines (29 loc) · 897 Bytes
/
CalendarDialog.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
/*
* Copyright 2013, Kacper Kasper, kacperkasper@gmail.com
* Copyright 2010, Milos Pejovic
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef CALENDAR_DIALOG_H
#define CALENDAR_DIALOG_H
#include "Dialog.h"
class MonthWindowView;
class CalendarDialog : public Dialog
{
public:
CalendarDialog(BString const & title, float width, float height,
BString const & text, int day, int month, int year, BString const & format,
BString const & windowIcon);
void MessageReceived(BMessage* msg);
void CreateViews();
void InitControls();
void SetDate(int day, int month, int year, bool initial = false);
private:
BString fText;
struct tm* timeinfo;
int fDay;
int fMonth;
int fYear;
BString fFormat;
MonthWindowView* fmonthView;
};
#endif // CALENDAR_DIALOG_H