00001 //---------------------------------------------------------------------------------------- // RCS-ID: $Id: exclusion_dialog.h,v 1.16 2003/02/16 16:06:56 robertoconnor Exp $
00011 //----------------------------------------------------------------------------------------
00012
00013 //----------------------------------------------------------------------------------------
00014 // Begin single inclusion of this .h file condition
00015 //----------------------------------------------------------------------------------------
00016
00017 #ifndef _EXCLUSION_DIALOG_H_
00018 #define _EXCLUSION_DIALOG_H_
00019
00020 //----------------------------------------------------------------------------------------
00021 // GCC interface
00022 //----------------------------------------------------------------------------------------
00023
00025 #if defined(__GNUG__) && ! defined(__APPLE__)
00026 #pragma interface "exclusion_dialog.h"
00027 #endif
00028
00029 //----------------------------------------------------------------------------------------
00030 // Shared defines
00031 //----------------------------------------------------------------------------------------
00032
00033 #include "plucker_defines.h"
00034
00035 //----------------------------------------------------------------------------------------
00036 // Begin feature removal condition
00037 //----------------------------------------------------------------------------------------
00038
00039 #if ( setupUSE_INTEGRATED_EXCLUSION_LIST_EDITOR )
00040
00041 //----------------------------------------------------------------------------------------
00042 // Headers
00043 //----------------------------------------------------------------------------------------
00044
00045 #include "wx/dialog.h"
00046 #include "wx/listctrl.h" // wxListCtrl
00047 #include "wx/textfile.h" // wxTextFile
00048 #include "wx/notebook.h" // wxNotebook
00049 // ---------------------------------------------------------------------------------------
00050 #include "exclusion_listctrl.h"
00051
00052 //----------------------------------------------------------------------------------------
00053 // Class definition: exclusion_dialog
00054 //----------------------------------------------------------------------------------------
00055
00057
00062 class exclusion_dialog : public wxDialog
00063 {
00064
00065 public:
00066
00068
00074 exclusion_dialog( wxWindow* parent,
00075 wxString configuration_section
00076 );
00077
00079 ~exclusion_dialog();
00080
00081 protected:
00082
00083 void listctrl_init();
00084 void listctrl_load_rows();
00085
00090 void listctrl_parse_single_loaded_row( wxString string_to_parse );
00091
00092 void listctrl_save_rows( exclusion_listctrl* listctrl );
00093 void save_exclusion_file();
00094
00095 void on_extensions_tab_add_button( wxCommandEvent& event );
00096 void on_extensions_tab_edit_button( wxCommandEvent& event );
00097 void on_extensions_tab_delete_button( wxCommandEvent& event );
00098
00099 void on_urls_tab_add_button( wxCommandEvent& event );
00100 void on_urls_tab_edit_button( wxCommandEvent& event );
00101 void on_urls_tab_delete_button( wxCommandEvent& event );
00102
00103 #if ( setupUSE_PARENT_WINDOW_CATCH_UPDATE_UI_EVENT_FROM_DERIVED_LISTCTRL_HACK )
00104 void on_update_ui_all_listctrls( wxUpdateUIEvent& event );
00105 #endif
00106 void on_update_ui_extensions_tab_listctrl( wxUpdateUIEvent& event );
00107 void on_update_ui_urls_tab_listctrl( wxUpdateUIEvent& event );
00108
00109 // Override base class functions
00110 void OnOK( wxCommandEvent& event );
00111 void on_help_button( wxCommandEvent& event );
00112
00113 exclusion_listctrl* m_extensions_exclusion_listctrl;
00114 exclusion_listctrl* m_urls_exclusion_listctrl;
00115 wxString m_configuration_section;
00116 wxString m_exclusion_filename;
00117 wxTextFile m_textfile;
00118
00119 private:
00120
00121 DECLARE_EVENT_TABLE()
00122
00123 };
00124
00125 //----------------------------------------------------------------------------------------
00126 // End feature removal condition
00127 //----------------------------------------------------------------------------------------
00128
00129 #endif // setupUSE_INTEGRATED_EXCLUSION_LIST_EDITOR
00130
00131 //----------------------------------------------------------------------------------------
00132 // End single inclusion of this .h file condition
00133 //----------------------------------------------------------------------------------------
00134
00135 #endif //_EXCLUSION_DIALOG_H_