Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

exclusion_listctrl.h

Go to the documentation of this file.
      00001 //----------------------------------------------------------------------------------------
      00011 // RCS-ID:      $Id: exclusion_listctrl.h,v 1.6 2003/02/06 21:47:30 robertoconnor Exp $
      00012 //----------------------------------------------------------------------------------------
      00013 
      00014 //----------------------------------------------------------------------------------------
      00015 // Begin single inclusion of this .h file condition
      00016 //----------------------------------------------------------------------------------------
      00017 
      00018 #ifndef _EXCLUSION_LISTCTRL_H_
      00019 #define _EXCLUSION_LISTCTRL_H_
      00020 
      00021 //----------------------------------------------------------------------------------------
      00022 // GCC interface
      00023 //----------------------------------------------------------------------------------------
      00024 
      00025 #if defined(__GNUG__) && ! defined(__APPLE__)
      00026     #pragma interface "exclusion_listctrl.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/listctrl.h"
      00046 
      00047 //----------------------------------------------------------------------------------------
      00048 // Class definition: exclusion_listctrl
      00049 //----------------------------------------------------------------------------------------
      00050 
      00052 class exclusion_listctrl : public wxListCtrl
00053 {
00054     DECLARE_DYNAMIC_CLASS( exclusion_listctrl )
00055 
00056 public:
00057 
00059 
00071     exclusion_listctrl( wxWindow* parent,
00072                    wxWindowID id = -1,
00073                    const wxPoint& pos = wxDefaultPosition,
00074                    const wxSize& size = wxDefaultSize,
00075                    long style = wxLC_REPORT,
00076                    const wxValidator& validator = wxDefaultValidator,
00077                    const wxString& name = "the_exclusion_listctrl",
00078                    const wxString& exclusion_column_caption = "URL" );                   
00079     
00080     // Unused constructor: solely for usage of RTTI (DYNAMIC_CLASS) macros.
00081     exclusion_listctrl() {};
00082 
00084     ~exclusion_listctrl();    
00085 
00087 
00090     bool get_is_listctrl_dirty();
00091     
00093     void on_add_command();
00094     
00096     void on_edit_command();
00097     
00099     void on_delete_command();
00100 
00101 protected:        
00102 
00103     long get_selected_item_id();
00104     long add_empty_row();
00105     void edit_row( long row ) ;
00106     void delete_selected_row();        
00107     
00108     // Override base class functions
00109     void OnOK( wxCommandEvent& event );
00110     void on_help_button( wxCommandEvent& event ); 
00111 
00112     void popup_menu( wxMouseEvent& event );       
00113     void OnSize( wxSizeEvent& event );
00114     void set_column_widths();    
00115     
00116     wxWindow* m_parent;    
00117     bool      m_listctrl_is_dirty; 
00118 
00119 private:
00120 
00121     DECLARE_EVENT_TABLE()
00122     
00123 };
00124 
00125 //----------------------------------------------------------------------------------------
00126 // Global functions and variables
00127 //----------------------------------------------------------------------------------------
00128 
00130 
00135 enum {
00136     EXCLUSION_COLUMN    = 0,
00137     ACTION_COLUMN,
00138     PRIORITY_COLUMN
00139 };
00140 
00141 //----------------------------------------------------------------------------------------
00142 // End feature removal condition
00143 //----------------------------------------------------------------------------------------
00144 
00145 #endif // setupUSE_INTEGRATED_EXCLUSION_LIST_EDITOR
00146 
00147 //----------------------------------------------------------------------------------------
00148 // End single inclusion of this .h file condition
00149 //----------------------------------------------------------------------------------------
00150 
00151 #endif  //_EXCLUSION_LISTCTRL_H_
00152