-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyFrame.h
52 lines (40 loc) · 1.17 KB
/
MyFrame.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
//
// Created by Niccolò Caselli on 14/06/23.
//
#include <wx/wxprec.h>
#include <wx/timectrl.h>
#include <wx/dateevt.h>
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "ActivityManager.h"
#include "Form.h"
#ifndef ACTIVITYJOURNAL_MYFRAME_H
#define ACTIVITYJOURNAL_MYFRAME_H
class MyFrame: public wxFrame {
public:
MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
private:
ActivityManager activityManager;
Form myForm;
wxTextCtrl* textInput;
// eventi:
void OnExit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnSubmitButtonClicked(wxCommandEvent& event);
void OnTextInputChanged(wxCommandEvent& event);
void OnStartTimeSelected(wxDateEvent& event);
void OnEndTimeSelected(wxDateEvent& event);
void OnDateSelected(wxDateEvent& event);
void OnSearchDateChanged(wxDateEvent& event);
wxDECLARE_EVENT_TABLE();
};
enum IDs {
SUBMIT_BUTTON_ID = 2,
TEXT_INPUT_ID = 3,
TIME_START_CTRL_ID = 4,
TIME_END_CTRL_ID = 5,
DATE_CTRL_ID = 6,
SEARCH_DATE_CTRL_ID = 7
};
#endif //ACTIVITYJOURNAL_MYFRAME_H