Main Page   Class Hierarchy   Compound List   File List   Compound Members  

dialogs.h

00001 /*
00002  * Purpose: All modal dialogs for AddressManager
00003  * Author:  Frank Buß
00004  * Created: 2002
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     // event handlers
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     // any class wishing to process wxWindows events must use this macro
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

Generated on Thu May 2 15:13:51 2002 for Wino by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001