HatchKeeper  0.90
The Free Open-Source Egg Incubation Software
BatchDialog Class Reference

A Dialog For Adding A New Batch. More...

Inheritance diagram for BatchDialog:

Public Member Functions

bool WasCanceled ()
 Returns True If The Cancel Button Was Clicked. More...
 
 BatchDialog (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxT("New Batch"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxCLOSE_BOX|wxCAPTION|wxSYSTEM_MENU)
 Constructor. More...
 

Protected Member Functions

void OnBirdChoice (wxCommandEvent &)
 Fired When Type Changes. More...
 
void OnSaveButton (wxCommandEvent &)
 Saves The New Batch To The Database. More...
 
void OnCancelButton (wxCommandEvent &)
 Cancels Add Batch And Closes Dialog. More...
 
void OnHatchChoice (wxCommandEvent &)
 Fired When The Hatch Date Dropdown Changes. More...
 
void OnBatchName (wxCommandEvent &)
 Fired When Batch Name Changes. More...
 
int GetIncubationDays (int TypeSelect, string BreedName)
 Returns Incubation Days, Returns Default Days From The Selected Type If Breed Days Unavailible. More...
 

Protected Attributes

wxChoice * birdChoice
 
wxChoice * breedChoice
 
wxChoice * groupChoice
 
wxChoice * IncubatorChoice
 
wxTextCtrl * batchText
 
wxStaticText * batchNameStat
 
wxSpinCtrl * eggNumSpinner
 
wxStaticText * NumberOfEggs
 
wxChoice * candleChoice
 
wxStaticText * showCandleText
 
wxDatePickerCtrl * StartDatePicker
 
wxStaticText * showStartText
 
wxChoice * hatchChoice
 
wxStaticText * showHatchText
 
wxButton * cancelButton
 
wxButton * saveButton
 
bool isCancel = true
 

Detailed Description

A Dialog For Adding A New Batch.

Definition at line 22 of file BatchDialog.cpp.

Constructor & Destructor Documentation

◆ BatchDialog()

BatchDialog::BatchDialog ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxString &  title = wxT("New Batch"),
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = wxCLOSE_BOX|wxCAPTION|wxSYSTEM_MENU 
)

Constructor.

Definition at line 55 of file BatchDialog.cpp.

Member Function Documentation

◆ GetIncubationDays()

int BatchDialog::GetIncubationDays ( int  TypeSelect,
string  BreedName 
)
protected

Returns Incubation Days, Returns Default Days From The Selected Type If Breed Days Unavailible.

Definition at line 353 of file BatchDialog.cpp.

◆ OnBatchName()

void BatchDialog::OnBatchName ( wxCommandEvent &  )
protected

Fired When Batch Name Changes.

Definition at line 274 of file BatchDialog.cpp.

◆ OnBirdChoice()

void BatchDialog::OnBirdChoice ( wxCommandEvent &  )
protected

Fired When Type Changes.

Definition at line 282 of file BatchDialog.cpp.

◆ OnCancelButton()

void BatchDialog::OnCancelButton ( wxCommandEvent &  )
protected

Cancels Add Batch And Closes Dialog.

Definition at line 267 of file BatchDialog.cpp.

◆ OnHatchChoice()

void BatchDialog::OnHatchChoice ( wxCommandEvent &  )
protected

Fired When The Hatch Date Dropdown Changes.

Definition at line 309 of file BatchDialog.cpp.

◆ OnSaveButton()

void BatchDialog::OnSaveButton ( wxCommandEvent &  )
protected

Saves The New Batch To The Database.

Definition at line 192 of file BatchDialog.cpp.

◆ WasCanceled()

bool BatchDialog::WasCanceled ( )

Returns True If The Cancel Button Was Clicked.

Definition at line 363 of file BatchDialog.cpp.

Member Data Documentation

◆ batchNameStat

wxStaticText* BatchDialog::batchNameStat
protected

Definition at line 30 of file BatchDialog.cpp.

◆ batchText

wxTextCtrl* BatchDialog::batchText
protected

Definition at line 29 of file BatchDialog.cpp.

◆ birdChoice

wxChoice* BatchDialog::birdChoice
protected

Definition at line 25 of file BatchDialog.cpp.

◆ breedChoice

wxChoice* BatchDialog::breedChoice
protected

Definition at line 26 of file BatchDialog.cpp.

◆ cancelButton

wxButton* BatchDialog::cancelButton
protected

Definition at line 39 of file BatchDialog.cpp.

◆ candleChoice

wxChoice* BatchDialog::candleChoice
protected

Definition at line 33 of file BatchDialog.cpp.

◆ eggNumSpinner

wxSpinCtrl* BatchDialog::eggNumSpinner
protected

Definition at line 31 of file BatchDialog.cpp.

◆ groupChoice

wxChoice* BatchDialog::groupChoice
protected

Definition at line 27 of file BatchDialog.cpp.

◆ hatchChoice

wxChoice* BatchDialog::hatchChoice
protected

Definition at line 37 of file BatchDialog.cpp.

◆ IncubatorChoice

wxChoice* BatchDialog::IncubatorChoice
protected

Definition at line 28 of file BatchDialog.cpp.

◆ isCancel

bool BatchDialog::isCancel = true
protected

Definition at line 41 of file BatchDialog.cpp.

◆ NumberOfEggs

wxStaticText* BatchDialog::NumberOfEggs
protected

Definition at line 32 of file BatchDialog.cpp.

◆ saveButton

wxButton* BatchDialog::saveButton
protected

Definition at line 40 of file BatchDialog.cpp.

◆ showCandleText

wxStaticText* BatchDialog::showCandleText
protected

Definition at line 34 of file BatchDialog.cpp.

◆ showHatchText

wxStaticText* BatchDialog::showHatchText
protected

Definition at line 38 of file BatchDialog.cpp.

◆ showStartText

wxStaticText* BatchDialog::showStartText
protected

Definition at line 36 of file BatchDialog.cpp.

◆ StartDatePicker

wxDatePickerCtrl* BatchDialog::StartDatePicker
protected

Definition at line 35 of file BatchDialog.cpp.


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