27 #ifndef _SELECTCROPASPECTRATIODIALOG_H
28 #define _SELECTCROPASPECTRATIODIALOG_H
30 #include <wx/dialog.h>
31 #include <wx/listbox.h>
32 #include <wx/filename.h>
46 void OnOk(wxCommandEvent& e);
73 #endif //_SELECTCROPASPECTRATIODIALOG_H
std::vector< double > m_aspectRatios
vector with values of all aspect ratios, ratio=width/height
void OnListBoxSelect(wxCommandEvent &e)
event handler for activation/deactivation of buttons if necessary
void OnOk(wxCommandEvent &e)
handler for Ok, check for valid inputs
wxArrayString m_aspectRatioStrings
array with names of all aspect ratios
void LoadAspectRatios()
load aspect ratios from file
void SaveAspectRatios()
save the aspect ratios to the file
double GetSelectedAspectRatio() const
returns the selected aspect ratio
void OnRemoveAspectRatio(wxCommandEvent &e)
handler for removing selected aspect ratio
void OnAddAspectRatio(wxCommandEvent &e)
handler for adding new aspect ratio setting
wxListBox * m_aspectList
pointer to wxListBox of aspect ratios
wxFileName GetAspectRatioFilename() const
returns the file name for the list of aspect ratios
~SelectAspectRatioDialog()
destructor, save position and list of aspect ratios
SelectAspectRatioDialog(wxWindow *parent)
constructor, build dialog and load settings from file
void FillListBox()
read the settings from the file and add them to the list box if the file does not exist...
void ListBoxSelectionChanged()
implementation of activation/deactivation of buttons if necessary