YATiSh
Yet Another TIme SHeet
yatishDlgTimeslot.h
Go to the documentation of this file.
1 #ifndef YATISHDLGTIMESLOT_H
2 #define YATISHDLGTIMESLOT_H
3 
4 #ifndef WX_PRECOMP
5  //(*HeadersPCH(yatishDlgTimeslot)
6  #include <wx/button.h>
7  #include <wx/choice.h>
8  #include <wx/dialog.h>
9  #include <wx/sizer.h>
10  #include <wx/stattext.h>
11  //*)
12 #endif
13 //(*Headers(yatishDlgTimeslot)
14 #include <wx/datectrl.h>
15 #include <wx/dateevt.h>
16 #include <wx/timectrl.h>
17 //*)
18 
19 #include "yatishDBsqlite.h"
20 
21 class yatishDlgTimeslot: public wxDialog {
22  public:
26  private:
27  //(*Identifiers(yatishDlgTimeslot)
28  static const long idDatePicker1;
29  static const long idTimePicker1;
30  static const long idDatePicker2;
31  static const long idTimePicker2;
32  static const long idChoiceProject;
33  static const long idChoiceTask;
34  static const long idChoiceTool;
35  //*)
36  //(*Declarations(yatishDlgTimeslot)
37  wxButton* buttonNew;
38  wxButton* buttonSave;
39  wxChoice* choiceProject;
40  wxChoice* choiceTask;
41  wxChoice* choiceTool;
42  wxDatePickerCtrl* datePicker1;
43  wxDatePickerCtrl* datePicker2;
44  wxStaticBoxSizer* staticBoxSizer;
45  wxTimePickerCtrl* timePicker1;
46  wxTimePickerCtrl* timePicker2;
47  //*)
49  long id;
50  int project, task, tool;
51  wxDateTime date1, date2, time1, time2;
52  void BuildContent ();
53  //(*Handlers(yatishDlgTimeslot)
54  void OnButtonSaveClick(wxCommandEvent& event);
55  void OnButtonNewClick(wxCommandEvent& event);
56  //*)
57  DECLARE_EVENT_TABLE()
58 };
59 
60 #endif
Interacts with yatish tables in a SQLite database.
wxDatePickerCtrl * datePicker2
static const long idChoiceProject
static const long idChoiceTask
static const long idTimePicker1
yatishDlgTimeslot(yatishDBsqlite *, long)
This constructor initializes the dialog box with data from the SQL record identified by sql_id.
wxDatePickerCtrl * datePicker1
void OnButtonSaveClick(wxCommandEvent &event)
wxStaticBoxSizer * staticBoxSizer
wxTimePickerCtrl * timePicker1
static const long idDatePicker2
wxChoice * choiceProject
void OnButtonNewClick(wxCommandEvent &event)
yatishDBsqlite * pdb
wxTimePickerCtrl * timePicker2
static const long idDatePicker1
static const long idChoiceTool
static const long idTimePicker2