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

#include <yatishFrame.h>

Inheritance diagram for yatishFrame:
Inheritance graph
[legend]
Collaboration diagram for yatishFrame:
Collaboration graph
[legend]

Public Member Functions

 yatishFrame (wxWindow *, wxWindowID=-1)
 
 ~yatishFrame ()
 

Private Member Functions

void UpdateClock ()
 
void UpdateStatus (mysqlStatus)
 
void ResetChoices ()
 
void UpdateColumns ()
 
void UpdateRows (tableID)
 
void ResetPickers ()
 
void ToggleConnect ()
 
void ToggleLog ()
 
void Recording ()
 
void OnQuit (wxCommandEvent &event)
 
void OnAbout (wxCommandEvent &event)
 
void OnTimerTrigger (wxTimerEvent &event)
 
void OnButtonStartClick (wxCommandEvent &event)
 
void OnButtonStopClick (wxCommandEvent &event)
 
void OnClose (wxCloseEvent &event)
 
void OnChoiceTableSelect (wxCommandEvent &event)
 
void OnNotebookPageChanged (wxNotebookEvent &event)
 
void OnDatePicker1Changed (wxDateEvent &event)
 
void OnDatePicker2Changed (wxDateEvent &event)
 
void OnListColumnClick (wxListEvent &event)
 
void OnListKeyDown (wxListEvent &event)
 
void OnMenuitemEditTableSelected (wxCommandEvent &event)
 
void OnMenuitemFileConnectSelected (wxCommandEvent &event)
 
void OnMenuitemFileUpdateSelected (wxCommandEvent &event)
 
void OnMenuitemEditNewSelected (wxCommandEvent &event)
 
void OnMenuitemEditResetSelected (wxCommandEvent &event)
 
void OnMenuitemFileUploadSelected (wxCommandEvent &event)
 
void OnMenuitemFileDownloadSelected (wxCommandEvent &event)
 
void OnMenuitemEditSettingsSelected (wxCommandEvent &event)
 
void OnHelp (wxCommandEvent &event)
 
void OnMenuitemEditTodaySelected (wxCommandEvent &event)
 
void OnMenuitemEditThisweekSelected (wxCommandEvent &event)
 
void OnMenuitemEditThismonthSelected (wxCommandEvent &event)
 
void OnMenuitemEditYestedaySelected (wxCommandEvent &event)
 
void OnMenuitemEditLastweekSelected (wxCommandEvent &event)
 
void OnMenuitemEditLastmonthSelected (wxCommandEvent &event)
 
void OnMenuitemEditActivitySelected (wxCommandEvent &event)
 
void OnMenuitemEditChartSelected (wxCommandEvent &event)
 
void OnMenuitemEditActivityUpdate (wxUpdateUIEvent &)
 
void OnMenuitemEditTableUpdate (wxUpdateUIEvent &)
 
void OnMenuitemEditChartUpdate (wxUpdateUIEvent &)
 
void OnMenuitemEditNewUpdate (wxUpdateUIEvent &)
 
void OnMenuitemEditResetUpdate (wxUpdateUIEvent &)
 
void OnMenuitemEditTodayUpdate (wxUpdateUIEvent &)
 
void OnContextMenu1 (wxContextMenuEvent &)
 
void OnContextMenu2 (wxContextMenuEvent &)
 
void OnContextMenu3 (wxContextMenuEvent &)
 

Private Attributes

Settings settings
 
wxLog * defaultLog
 
wxHtmlHelpController yatishHelp
 
wxDateTime clockStart
 
yatishDBsqlite masterDB
 
yatishDBmysqlslaveDB
 
wxBoxSizer * BoxSizer1
 
wxButton * buttonPDF
 
wxButton * buttonStart
 
wxButton * buttonStop
 
wxChoice * choiceProject
 
wxChoice * choiceTable
 
wxChoice * choiceTask
 
wxChoice * choiceTool
 
wxDatePickerCtrl * datePicker1
 
wxDatePickerCtrl * datePicker2
 
wxListCtrl * listCtrl
 
wxMenuItem * menuitemFileConnect
 
wxMenuItem * menuitemFileDownload
 
wxMenuItem * menuitemFileUpdate
 
wxMenuItem * menuitemFileUpload
 
wxNotebook * notebook
 
wxStatusBar * statusBar
 
wxTextCtrl * textCtrl
 
wxTimer timer
 

Static Private Attributes

static const long idChoiceProject = wxNewId()
 
static const long idChoiceTask = wxNewId()
 
static const long idChoiceTool = wxNewId()
 
static const long idButtonStart = wxNewId()
 
static const long idButtonStop = wxNewId()
 
static const long idPanelCurrent = wxNewId()
 
static const long idChoiceTable = wxNewId()
 
static const long idDatePicker1 = wxNewId()
 
static const long idDatePicker2 = wxNewId()
 
static const long idButtonPDF = wxNewId()
 
static const long idListCtrl = wxNewId()
 
static const long idPanelList = wxNewId()
 
static const long idPanelChart = wxNewId()
 
static const long idNotebook = wxNewId()
 
static const long idTextCtrl = wxNewId()
 
static const long idFileConnect = wxNewId()
 
static const long idFileUpdate = wxNewId()
 
static const long idFileUpload = wxNewId()
 
static const long idFileDownload = wxNewId()
 
static const long idFileQuit = wxNewId()
 
static const long idEditActivity = wxNewId()
 
static const long idEditTable = wxNewId()
 
static const long idEditChart = wxNewId()
 
static const long idEditNew = wxNewId()
 
static const long idEditReset = wxNewId()
 
static const long idEditToday = wxNewId()
 
static const long idEditThisweek = wxNewId()
 
static const long idEditThismonth = wxNewId()
 
static const long idEditYesterday = wxNewId()
 
static const long idEditLastweek = wxNewId()
 
static const long idEditLastmonth = wxNewId()
 
static const long idEditSettings = wxNewId()
 
static const long idHelpUser = wxNewId()
 
static const long idHelpAbout = wxNewId()
 
static const long idStatusBar = wxNewId()
 
static const long idTimer = wxNewId()
 

Detailed Description

Definition at line 49 of file yatishFrame.h.

Constructor & Destructor Documentation

◆ yatishFrame()

yatishFrame::yatishFrame ( wxWindow *  parent,
wxWindowID  id = -1 
)

Definition at line 73 of file yatishFrame.cpp.

◆ ~yatishFrame()

yatishFrame::~yatishFrame ( )

Definition at line 292 of file yatishFrame.cpp.

Member Function Documentation

◆ OnAbout()

void yatishFrame::OnAbout ( wxCommandEvent &  event)
private

Definition at line 654 of file yatishFrame.cpp.

◆ OnButtonStartClick()

void yatishFrame::OnButtonStartClick ( wxCommandEvent &  event)
private

Definition at line 696 of file yatishFrame.cpp.

◆ OnButtonStopClick()

void yatishFrame::OnButtonStopClick ( wxCommandEvent &  event)
private

Definition at line 716 of file yatishFrame.cpp.

◆ OnChoiceTableSelect()

void yatishFrame::OnChoiceTableSelect ( wxCommandEvent &  event)
private

Definition at line 727 of file yatishFrame.cpp.

◆ OnClose()

void yatishFrame::OnClose ( wxCloseEvent &  event)
private

Definition at line 411 of file yatishFrame.cpp.

◆ OnContextMenu1()

void yatishFrame::OnContextMenu1 ( wxContextMenuEvent &  event)
private

Definition at line 613 of file yatishFrame.cpp.

◆ OnContextMenu2()

void yatishFrame::OnContextMenu2 ( wxContextMenuEvent &  event)
private

Definition at line 621 of file yatishFrame.cpp.

◆ OnContextMenu3()

void yatishFrame::OnContextMenu3 ( wxContextMenuEvent &  event)
private

Definition at line 629 of file yatishFrame.cpp.

◆ OnDatePicker1Changed()

void yatishFrame::OnDatePicker1Changed ( wxDateEvent &  event)
private

Definition at line 739 of file yatishFrame.cpp.

◆ OnDatePicker2Changed()

void yatishFrame::OnDatePicker2Changed ( wxDateEvent &  event)
private

Definition at line 744 of file yatishFrame.cpp.

◆ OnHelp()

void yatishFrame::OnHelp ( wxCommandEvent &  event)
private

Definition at line 650 of file yatishFrame.cpp.

◆ OnListColumnClick()

void yatishFrame::OnListColumnClick ( wxListEvent &  event)
private

Definition at line 749 of file yatishFrame.cpp.

◆ OnListKeyDown()

void yatishFrame::OnListKeyDown ( wxListEvent &  event)
private

Definition at line 795 of file yatishFrame.cpp.

◆ OnMenuitemEditActivitySelected()

void yatishFrame::OnMenuitemEditActivitySelected ( wxCommandEvent &  event)
private

Definition at line 486 of file yatishFrame.cpp.

◆ OnMenuitemEditActivityUpdate()

void yatishFrame::OnMenuitemEditActivityUpdate ( wxUpdateUIEvent &  event)
private

Definition at line 489 of file yatishFrame.cpp.

◆ OnMenuitemEditChartSelected()

void yatishFrame::OnMenuitemEditChartSelected ( wxCommandEvent &  event)
private

Definition at line 498 of file yatishFrame.cpp.

◆ OnMenuitemEditChartUpdate()

void yatishFrame::OnMenuitemEditChartUpdate ( wxUpdateUIEvent &  event)
private

Definition at line 501 of file yatishFrame.cpp.

◆ OnMenuitemEditLastmonthSelected()

void yatishFrame::OnMenuitemEditLastmonthSelected ( wxCommandEvent &  event)
private

Definition at line 601 of file yatishFrame.cpp.

◆ OnMenuitemEditLastweekSelected()

void yatishFrame::OnMenuitemEditLastweekSelected ( wxCommandEvent &  event)
private

Definition at line 589 of file yatishFrame.cpp.

◆ OnMenuitemEditNewSelected()

void yatishFrame::OnMenuitemEditNewSelected ( wxCommandEvent &  event)
private

Definition at line 506 of file yatishFrame.cpp.

◆ OnMenuitemEditNewUpdate()

void yatishFrame::OnMenuitemEditNewUpdate ( wxUpdateUIEvent &  event)
private

Definition at line 529 of file yatishFrame.cpp.

◆ OnMenuitemEditResetSelected()

void yatishFrame::OnMenuitemEditResetSelected ( wxCommandEvent &  event)
private

Definition at line 533 of file yatishFrame.cpp.

◆ OnMenuitemEditResetUpdate()

void yatishFrame::OnMenuitemEditResetUpdate ( wxUpdateUIEvent &  event)
private

Definition at line 539 of file yatishFrame.cpp.

◆ OnMenuitemEditSettingsSelected()

void yatishFrame::OnMenuitemEditSettingsSelected ( wxCommandEvent &  event)
private

Definition at line 638 of file yatishFrame.cpp.

◆ OnMenuitemEditTableSelected()

void yatishFrame::OnMenuitemEditTableSelected ( wxCommandEvent &  event)
private

Definition at line 492 of file yatishFrame.cpp.

◆ OnMenuitemEditTableUpdate()

void yatishFrame::OnMenuitemEditTableUpdate ( wxUpdateUIEvent &  event)
private

Definition at line 495 of file yatishFrame.cpp.

◆ OnMenuitemEditThismonthSelected()

void yatishFrame::OnMenuitemEditThismonthSelected ( wxCommandEvent &  event)
private

Definition at line 569 of file yatishFrame.cpp.

◆ OnMenuitemEditThisweekSelected()

void yatishFrame::OnMenuitemEditThisweekSelected ( wxCommandEvent &  event)
private

Definition at line 559 of file yatishFrame.cpp.

◆ OnMenuitemEditTodaySelected()

void yatishFrame::OnMenuitemEditTodaySelected ( wxCommandEvent &  event)
private

Definition at line 545 of file yatishFrame.cpp.

◆ OnMenuitemEditTodayUpdate()

void yatishFrame::OnMenuitemEditTodayUpdate ( wxUpdateUIEvent &  event)
private

Definition at line 554 of file yatishFrame.cpp.

◆ OnMenuitemEditYestedaySelected()

void yatishFrame::OnMenuitemEditYestedaySelected ( wxCommandEvent &  event)
private

Definition at line 579 of file yatishFrame.cpp.

◆ OnMenuitemFileConnectSelected()

void yatishFrame::OnMenuitemFileConnectSelected ( wxCommandEvent &  event)
private

Definition at line 424 of file yatishFrame.cpp.

◆ OnMenuitemFileDownloadSelected()

void yatishFrame::OnMenuitemFileDownloadSelected ( wxCommandEvent &  event)
private

Definition at line 463 of file yatishFrame.cpp.

◆ OnMenuitemFileUpdateSelected()

void yatishFrame::OnMenuitemFileUpdateSelected ( wxCommandEvent &  event)
private

Definition at line 434 of file yatishFrame.cpp.

◆ OnMenuitemFileUploadSelected()

void yatishFrame::OnMenuitemFileUploadSelected ( wxCommandEvent &  event)
private

Definition at line 448 of file yatishFrame.cpp.

◆ OnNotebookPageChanged()

void yatishFrame::OnNotebookPageChanged ( wxNotebookEvent &  event)
private

Definition at line 684 of file yatishFrame.cpp.

◆ OnQuit()

void yatishFrame::OnQuit ( wxCommandEvent &  event)
private

Definition at line 407 of file yatishFrame.cpp.

◆ OnTimerTrigger()

void yatishFrame::OnTimerTrigger ( wxTimerEvent &  event)
private

Definition at line 418 of file yatishFrame.cpp.

◆ Recording()

void yatishFrame::Recording ( )
private
Todo:
SetIcon() not applied when yatish.desktop is installed

Definition at line 707 of file yatishFrame.cpp.

◆ ResetChoices()

void yatishFrame::ResetChoices ( )
private

Definition at line 316 of file yatishFrame.cpp.

◆ ResetPickers()

void yatishFrame::ResetPickers ( )
private

Definition at line 380 of file yatishFrame.cpp.

◆ ToggleConnect()

void yatishFrame::ToggleConnect ( )
private

Definition at line 387 of file yatishFrame.cpp.

◆ ToggleLog()

void yatishFrame::ToggleLog ( )
private

Definition at line 395 of file yatishFrame.cpp.

◆ UpdateClock()

void yatishFrame::UpdateClock ( )
private

Definition at line 297 of file yatishFrame.cpp.

◆ UpdateColumns()

void yatishFrame::UpdateColumns ( )
private

Definition at line 338 of file yatishFrame.cpp.

◆ UpdateRows()

void yatishFrame::UpdateRows ( tableID  tid)
private

Definition at line 369 of file yatishFrame.cpp.

◆ UpdateStatus()

void yatishFrame::UpdateStatus ( mysqlStatus  status)
private

Definition at line 303 of file yatishFrame.cpp.

Member Data Documentation

◆ BoxSizer1

wxBoxSizer* yatishFrame::BoxSizer1
private

Definition at line 148 of file yatishFrame.h.

◆ buttonPDF

wxButton* yatishFrame::buttonPDF
private

Definition at line 149 of file yatishFrame.h.

◆ buttonStart

wxButton* yatishFrame::buttonStart
private

Definition at line 150 of file yatishFrame.h.

◆ buttonStop

wxButton* yatishFrame::buttonStop
private

Definition at line 151 of file yatishFrame.h.

◆ choiceProject

wxChoice* yatishFrame::choiceProject
private

Definition at line 152 of file yatishFrame.h.

◆ choiceTable

wxChoice* yatishFrame::choiceTable
private

Definition at line 153 of file yatishFrame.h.

◆ choiceTask

wxChoice* yatishFrame::choiceTask
private

Definition at line 154 of file yatishFrame.h.

◆ choiceTool

wxChoice* yatishFrame::choiceTool
private

Definition at line 155 of file yatishFrame.h.

◆ clockStart

wxDateTime yatishFrame::clockStart
private

Definition at line 57 of file yatishFrame.h.

◆ datePicker1

wxDatePickerCtrl* yatishFrame::datePicker1
private

Definition at line 156 of file yatishFrame.h.

◆ datePicker2

wxDatePickerCtrl* yatishFrame::datePicker2
private

Definition at line 157 of file yatishFrame.h.

◆ defaultLog

wxLog* yatishFrame::defaultLog
private

Definition at line 55 of file yatishFrame.h.

◆ idButtonPDF

const long yatishFrame::idButtonPDF = wxNewId()
staticprivate

Definition at line 119 of file yatishFrame.h.

◆ idButtonStart

const long yatishFrame::idButtonStart = wxNewId()
staticprivate

Definition at line 113 of file yatishFrame.h.

◆ idButtonStop

const long yatishFrame::idButtonStop = wxNewId()
staticprivate

Definition at line 114 of file yatishFrame.h.

◆ idChoiceProject

const long yatishFrame::idChoiceProject = wxNewId()
staticprivate

Definition at line 110 of file yatishFrame.h.

◆ idChoiceTable

const long yatishFrame::idChoiceTable = wxNewId()
staticprivate

Definition at line 116 of file yatishFrame.h.

◆ idChoiceTask

const long yatishFrame::idChoiceTask = wxNewId()
staticprivate

Definition at line 111 of file yatishFrame.h.

◆ idChoiceTool

const long yatishFrame::idChoiceTool = wxNewId()
staticprivate

Definition at line 112 of file yatishFrame.h.

◆ idDatePicker1

const long yatishFrame::idDatePicker1 = wxNewId()
staticprivate

Definition at line 117 of file yatishFrame.h.

◆ idDatePicker2

const long yatishFrame::idDatePicker2 = wxNewId()
staticprivate

Definition at line 118 of file yatishFrame.h.

◆ idEditActivity

const long yatishFrame::idEditActivity = wxNewId()
staticprivate

Definition at line 130 of file yatishFrame.h.

◆ idEditChart

const long yatishFrame::idEditChart = wxNewId()
staticprivate

Definition at line 132 of file yatishFrame.h.

◆ idEditLastmonth

const long yatishFrame::idEditLastmonth = wxNewId()
staticprivate

Definition at line 140 of file yatishFrame.h.

◆ idEditLastweek

const long yatishFrame::idEditLastweek = wxNewId()
staticprivate

Definition at line 139 of file yatishFrame.h.

◆ idEditNew

const long yatishFrame::idEditNew = wxNewId()
staticprivate

Definition at line 133 of file yatishFrame.h.

◆ idEditReset

const long yatishFrame::idEditReset = wxNewId()
staticprivate

Definition at line 134 of file yatishFrame.h.

◆ idEditSettings

const long yatishFrame::idEditSettings = wxNewId()
staticprivate

Definition at line 141 of file yatishFrame.h.

◆ idEditTable

const long yatishFrame::idEditTable = wxNewId()
staticprivate

Definition at line 131 of file yatishFrame.h.

◆ idEditThismonth

const long yatishFrame::idEditThismonth = wxNewId()
staticprivate

Definition at line 137 of file yatishFrame.h.

◆ idEditThisweek

const long yatishFrame::idEditThisweek = wxNewId()
staticprivate

Definition at line 136 of file yatishFrame.h.

◆ idEditToday

const long yatishFrame::idEditToday = wxNewId()
staticprivate

Definition at line 135 of file yatishFrame.h.

◆ idEditYesterday

const long yatishFrame::idEditYesterday = wxNewId()
staticprivate

Definition at line 138 of file yatishFrame.h.

◆ idFileConnect

const long yatishFrame::idFileConnect = wxNewId()
staticprivate

Definition at line 125 of file yatishFrame.h.

◆ idFileDownload

const long yatishFrame::idFileDownload = wxNewId()
staticprivate

Definition at line 128 of file yatishFrame.h.

◆ idFileQuit

const long yatishFrame::idFileQuit = wxNewId()
staticprivate

Definition at line 129 of file yatishFrame.h.

◆ idFileUpdate

const long yatishFrame::idFileUpdate = wxNewId()
staticprivate

Definition at line 126 of file yatishFrame.h.

◆ idFileUpload

const long yatishFrame::idFileUpload = wxNewId()
staticprivate

Definition at line 127 of file yatishFrame.h.

◆ idHelpAbout

const long yatishFrame::idHelpAbout = wxNewId()
staticprivate

Definition at line 143 of file yatishFrame.h.

◆ idHelpUser

const long yatishFrame::idHelpUser = wxNewId()
staticprivate

Definition at line 142 of file yatishFrame.h.

◆ idListCtrl

const long yatishFrame::idListCtrl = wxNewId()
staticprivate

Definition at line 120 of file yatishFrame.h.

◆ idNotebook

const long yatishFrame::idNotebook = wxNewId()
staticprivate

Definition at line 123 of file yatishFrame.h.

◆ idPanelChart

const long yatishFrame::idPanelChart = wxNewId()
staticprivate

Definition at line 122 of file yatishFrame.h.

◆ idPanelCurrent

const long yatishFrame::idPanelCurrent = wxNewId()
staticprivate

Definition at line 115 of file yatishFrame.h.

◆ idPanelList

const long yatishFrame::idPanelList = wxNewId()
staticprivate

Definition at line 121 of file yatishFrame.h.

◆ idStatusBar

const long yatishFrame::idStatusBar = wxNewId()
staticprivate

Definition at line 144 of file yatishFrame.h.

◆ idTextCtrl

const long yatishFrame::idTextCtrl = wxNewId()
staticprivate

Definition at line 124 of file yatishFrame.h.

◆ idTimer

const long yatishFrame::idTimer = wxNewId()
staticprivate

Definition at line 145 of file yatishFrame.h.

◆ listCtrl

wxListCtrl* yatishFrame::listCtrl
private

Definition at line 158 of file yatishFrame.h.

◆ masterDB

yatishDBsqlite yatishFrame::masterDB
private

Definition at line 58 of file yatishFrame.h.

◆ menuitemFileConnect

wxMenuItem* yatishFrame::menuitemFileConnect
private

Definition at line 159 of file yatishFrame.h.

◆ menuitemFileDownload

wxMenuItem* yatishFrame::menuitemFileDownload
private

Definition at line 160 of file yatishFrame.h.

◆ menuitemFileUpdate

wxMenuItem* yatishFrame::menuitemFileUpdate
private

Definition at line 161 of file yatishFrame.h.

◆ menuitemFileUpload

wxMenuItem* yatishFrame::menuitemFileUpload
private

Definition at line 162 of file yatishFrame.h.

◆ notebook

wxNotebook* yatishFrame::notebook
private

Definition at line 163 of file yatishFrame.h.

◆ settings

Settings yatishFrame::settings
private

Definition at line 54 of file yatishFrame.h.

◆ slaveDB

yatishDBmysql* yatishFrame::slaveDB
private

Definition at line 59 of file yatishFrame.h.

◆ statusBar

wxStatusBar* yatishFrame::statusBar
private

Definition at line 164 of file yatishFrame.h.

◆ textCtrl

wxTextCtrl* yatishFrame::textCtrl
private

Definition at line 165 of file yatishFrame.h.

◆ timer

wxTimer yatishFrame::timer
private

Definition at line 166 of file yatishFrame.h.

◆ yatishHelp

wxHtmlHelpController yatishFrame::yatishHelp
private

Definition at line 56 of file yatishFrame.h.


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