YATISH
Yet Another TIme SHeet
/home/nicolas/sources/yatish/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/dialog.h>
7  #include <wx/sizer.h>
8  #include <wx/button.h>
9  #include <wx/stattext.h>
10  #include <wx/choice.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 <wx/valgen.h>
20 #include "yatishDBsqlite.h"
21 
22 class yatishDlgTimeslot: public wxDialog {
23  public:
27  private:
28  //(*Identifiers(yatishDlgTimeslot)
29  static const long idDatePicker1;
30  static const long idTimePicker1;
31  static const long idDatePicker2;
32  static const long idTimePicker2;
33  static const long idChoiceProject;
34  static const long idChoiceTask;
35  static const long idChoiceTool;
36  //*)
37  //(*Declarations(yatishDlgTimeslot)
38  wxDatePickerCtrl* datePicker1;
39  wxChoice* choiceProject;
40  wxChoice* choiceTask;
41  wxStaticBoxSizer* staticBoxSizer;
42  wxTimePickerCtrl* timePicker1;
43  wxTimePickerCtrl* timePicker2;
44  wxChoice* choiceTool;
45  wxButton* buttonSave;
46  wxDatePickerCtrl* datePicker2;
47  wxButton* buttonNew;
48  //*)
50  long id;
51  int project, task, tool;
52  wxDateTime date1, date2, time1, time2;
53  void BuildContent ();
54  //(*Handlers(yatishDlgTimeslot)
55  void OnButtonSaveClick(wxCommandEvent& event);
56  void OnButtonNewClick(wxCommandEvent& event);
57  //*)
58  DECLARE_EVENT_TABLE()
59 };
60 
61 #endif
static const long idDatePicker1
void OnButtonSaveClick(wxCommandEvent &event)
static const long idDatePicker2
wxDatePickerCtrl * datePicker2
void OnButtonNewClick(wxCommandEvent &event)
wxDatePickerCtrl * datePicker1
static const long idChoiceTask
wxStaticBoxSizer * staticBoxSizer
wxChoice * choiceProject
Interacts with yatish tables in a SQLite database.
wxTimePickerCtrl * timePicker1
static const long idChoiceProject
static const long idTimePicker2
static const long idTimePicker1
wxTimePickerCtrl * timePicker2
yatishDBsqlite * pdb
yatishDlgTimeslot(yatishDBsqlite *, long)
This constructor initializes the dialog box with data from the SQL record identified by sql_id...
static const long idChoiceTool