YATiSh
Yet Another TIme SHeet
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
yatishDlgTimeslot Class Reference

#include <yatishDlgTimeslot.h>

Collaboration diagram for yatishDlgTimeslot:
Collaboration graph
[legend]

Public Member Functions

 yatishDlgTimeslot (yatishDBsqlite *, long)
 This constructor initializes the dialog box with data from the SQL record identified by sql_id. More...
 
 yatishDlgTimeslot (yatishDBsqlite *)
 The dialog box is initially empty and only writes NEW records (the SAVE button is cancelled). More...
 
 ~yatishDlgTimeslot ()
 

Private Member Functions

void BuildContent ()
 
void OnButtonSaveClick (wxCommandEvent &event)
 
void OnButtonNewClick (wxCommandEvent &event)
 

Private Attributes

wxButton * buttonNew
 
wxButton * buttonSave
 
wxChoice * choiceProject
 
wxChoice * choiceTask
 
wxChoice * choiceTool
 
wxDatePickerCtrl * datePicker1
 
wxDatePickerCtrl * datePicker2
 
wxStaticBoxSizer * staticBoxSizer
 
wxTimePickerCtrl * timePicker1
 
wxTimePickerCtrl * timePicker2
 
yatishDBsqlitepdb
 
long id
 
int project
 
int task
 
int tool
 
wxDateTime date1
 
wxDateTime date2
 
wxDateTime time1
 
wxDateTime time2
 

Static Private Attributes

static const long idDatePicker1 = wxNewId()
 
static const long idTimePicker1 = wxNewId()
 
static const long idDatePicker2 = wxNewId()
 
static const long idTimePicker2 = wxNewId()
 
static const long idChoiceProject = wxNewId()
 
static const long idChoiceTask = wxNewId()
 
static const long idChoiceTool = wxNewId()
 

Detailed Description

Definition at line 21 of file yatishDlgTimeslot.h.

Constructor & Destructor Documentation

◆ yatishDlgTimeslot() [1/2]

yatishDlgTimeslot::yatishDlgTimeslot ( yatishDBsqlite p_db,
long  sql_id 
)

This constructor initializes the dialog box with data from the SQL record identified by sql_id.

Todo:
TAB traversal broken by wx[Date|Time]PickerCtrl (idem panels #2 and #3) [no problem on Windows]

Definition at line 92 of file yatishDlgTimeslot.cpp.

◆ yatishDlgTimeslot() [2/2]

yatishDlgTimeslot::yatishDlgTimeslot ( yatishDBsqlite p_db)

The dialog box is initially empty and only writes NEW records (the SAVE button is cancelled).

Definition at line 120 of file yatishDlgTimeslot.cpp.

◆ ~yatishDlgTimeslot()

yatishDlgTimeslot::~yatishDlgTimeslot ( )

Definition at line 198 of file yatishDlgTimeslot.cpp.

Member Function Documentation

◆ BuildContent()

void yatishDlgTimeslot::BuildContent ( )
private
Note
wxSmith has no button for wxTimePickerCtrl hence a custom control was set up there.

Definition at line 148 of file yatishDlgTimeslot.cpp.

◆ OnButtonNewClick()

void yatishDlgTimeslot::OnButtonNewClick ( wxCommandEvent &  event)
private

Definition at line 213 of file yatishDlgTimeslot.cpp.

◆ OnButtonSaveClick()

void yatishDlgTimeslot::OnButtonSaveClick ( wxCommandEvent &  event)
private

Definition at line 203 of file yatishDlgTimeslot.cpp.

Member Data Documentation

◆ buttonNew

wxButton* yatishDlgTimeslot::buttonNew
private

Definition at line 37 of file yatishDlgTimeslot.h.

◆ buttonSave

wxButton* yatishDlgTimeslot::buttonSave
private

Definition at line 38 of file yatishDlgTimeslot.h.

◆ choiceProject

wxChoice* yatishDlgTimeslot::choiceProject
private

Definition at line 39 of file yatishDlgTimeslot.h.

◆ choiceTask

wxChoice* yatishDlgTimeslot::choiceTask
private

Definition at line 40 of file yatishDlgTimeslot.h.

◆ choiceTool

wxChoice* yatishDlgTimeslot::choiceTool
private

Definition at line 41 of file yatishDlgTimeslot.h.

◆ date1

wxDateTime yatishDlgTimeslot::date1
private

Definition at line 51 of file yatishDlgTimeslot.h.

◆ date2

wxDateTime yatishDlgTimeslot::date2
private

Definition at line 51 of file yatishDlgTimeslot.h.

◆ datePicker1

wxDatePickerCtrl* yatishDlgTimeslot::datePicker1
private

Definition at line 42 of file yatishDlgTimeslot.h.

◆ datePicker2

wxDatePickerCtrl* yatishDlgTimeslot::datePicker2
private

Definition at line 43 of file yatishDlgTimeslot.h.

◆ id

long yatishDlgTimeslot::id
private

Definition at line 49 of file yatishDlgTimeslot.h.

◆ idChoiceProject

const long yatishDlgTimeslot::idChoiceProject = wxNewId()
staticprivate

Definition at line 32 of file yatishDlgTimeslot.h.

◆ idChoiceTask

const long yatishDlgTimeslot::idChoiceTask = wxNewId()
staticprivate

Definition at line 33 of file yatishDlgTimeslot.h.

◆ idChoiceTool

const long yatishDlgTimeslot::idChoiceTool = wxNewId()
staticprivate

Definition at line 34 of file yatishDlgTimeslot.h.

◆ idDatePicker1

const long yatishDlgTimeslot::idDatePicker1 = wxNewId()
staticprivate

Definition at line 28 of file yatishDlgTimeslot.h.

◆ idDatePicker2

const long yatishDlgTimeslot::idDatePicker2 = wxNewId()
staticprivate

Definition at line 30 of file yatishDlgTimeslot.h.

◆ idTimePicker1

const long yatishDlgTimeslot::idTimePicker1 = wxNewId()
staticprivate

Definition at line 29 of file yatishDlgTimeslot.h.

◆ idTimePicker2

const long yatishDlgTimeslot::idTimePicker2 = wxNewId()
staticprivate

Definition at line 31 of file yatishDlgTimeslot.h.

◆ pdb

yatishDBsqlite* yatishDlgTimeslot::pdb
private

Definition at line 48 of file yatishDlgTimeslot.h.

◆ project

int yatishDlgTimeslot::project
private

Definition at line 50 of file yatishDlgTimeslot.h.

◆ staticBoxSizer

wxStaticBoxSizer* yatishDlgTimeslot::staticBoxSizer
private

Definition at line 44 of file yatishDlgTimeslot.h.

◆ task

int yatishDlgTimeslot::task
private

Definition at line 50 of file yatishDlgTimeslot.h.

◆ time1

wxDateTime yatishDlgTimeslot::time1
private

Definition at line 51 of file yatishDlgTimeslot.h.

◆ time2

wxDateTime yatishDlgTimeslot::time2
private

Definition at line 51 of file yatishDlgTimeslot.h.

◆ timePicker1

wxTimePickerCtrl* yatishDlgTimeslot::timePicker1
private

Definition at line 45 of file yatishDlgTimeslot.h.

◆ timePicker2

wxTimePickerCtrl* yatishDlgTimeslot::timePicker2
private

Definition at line 46 of file yatishDlgTimeslot.h.

◆ tool

int yatishDlgTimeslot::tool
private

Definition at line 50 of file yatishDlgTimeslot.h.


The documentation for this class was generated from the following files: