00001
00002
00003
00004
00005
00006
00007 #ifndef ADDRESS_MANAGER_DIALOGS_H
00008 #define ADDRESS_MANAGER_DIALOGS_H
00009
00010
00011 #include <wx/wx.h>
00012
00013 #include "AddressManager.h"
00014
00018 class ColumnDialog : public wxDialog
00019 {
00020 public:
00026 ColumnDialog(wxWindow* parent, ColumnFieldArray& columns);
00027
00031 ~ColumnDialog();
00032
00033
00034 void OnListBox(wxCommandEvent &event);
00035 void OnNewButton(wxCommandEvent &event);
00036 void OnRenameButton(wxCommandEvent &event);
00037 void OnUpButton(wxCommandEvent &event);
00038 void OnRemoveButton(wxCommandEvent &event);
00039 void OnDownButton(wxCommandEvent &event);
00040
00048 ColumnFieldArray getNewColumns();
00049
00050 private:
00051
00052 DECLARE_EVENT_TABLE()
00053
00054 wxListBox* m_listBox;
00055 wxTextCtrl* m_newColumnTextCtrl;
00056 wxTextCtrl* m_editColumnTextCtrl;
00057 wxButton* m_editButton;
00058
00059 ColumnFieldArray m_columns;
00060 };
00061
00065 class SortDialog : public wxDialog
00066 {
00067 public:
00073 SortDialog(wxWindow* parent, ColumnFieldArray& columns);
00074
00081 ColumnFieldArray getSortOrder();
00082
00086 void OnOK(wxCommandEvent& event);
00087
00088 private:
00089 DECLARE_EVENT_TABLE()
00090
00091 wxChoice* m_sort1Choice;
00092 wxChoice* m_sort2Choice;
00093 wxChoice* m_sort3Choice;
00094 wxRadioButton* m_sort1CheckboxUp;
00095 wxRadioButton* m_sort1CheckboxDown;
00096 wxRadioButton* m_sort2CheckboxUp;
00097 wxRadioButton* m_sort2CheckboxDown;
00098 wxRadioButton* m_sort3CheckboxUp;
00099 wxRadioButton* m_sort3CheckboxDown;
00100
00101 ColumnFieldArray m_columns;
00102 };
00103
00104
00105
00109 class AddressManagerAboutDialog : public wxDialog
00110 {
00111 public:
00112 AddressManagerAboutDialog(wxWindow *parent);
00113 };
00114
00115
00116 #endif // ADDRESS_MANAGER_DIALOGS