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

details_progress_listbox.h

Go to the documentation of this file.
      00001 //----------------------------------------------------------------------------------------
      00011 //  RCS-ID:     $Id: details_progress_listbox.h,v 1.1 2002/08/27 05:06:04 robertoconnor Exp $
      00012 //----------------------------------------------------------------------------------------
      00013 
      00014 //----------------------------------------------------------------------------------------
      00015 // Begin single inclusion of this .h file condition
      00016 //----------------------------------------------------------------------------------------
      00017 
      00018 #ifndef _DETAILS_PROGRESS_LISTBOX_H_
      00019 #define _DETAILS_PROGRESS_LISTBOX_H_
      00020 
      00021 //----------------------------------------------------------------------------------------
      00022 // GCC interface
      00023 //----------------------------------------------------------------------------------------
      00024 
      00025 #if defined(__GNUG__) && ! defined(__APPLE__)
      00026     #pragma interface "details_progress_listbox.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_ENHANCED_PROGRESS_DIALOG )
      00040 
      00041 //----------------------------------------------------------------------------------------
      00042 // Headers
      00043 //----------------------------------------------------------------------------------------
      00044 
      00045 #include "wx/listbox.h"
      00046 
      00047 //----------------------------------------------------------------------------------------
      00048 // Class option flags
      00049 //----------------------------------------------------------------------------------------
      00050 
      00051 // Sent to the progress listbox constructor. Not this classes job.
      00052 enum {
      00054     optionDETAILS_PROGRESS_LISTBOX_RECOMMENDED_SCROLL_HISTORY            = -1,
      00056     optionDETAILS_PROGRESS_LISTBOX_INFINITE_SCROLL_HISTORY               = -2
      00057 };
      00058 
      00059 //----------------------------------------------------------------------------------------
      00060 // Class definition: progress_dialog
      00061 //----------------------------------------------------------------------------------------
      00062 
      00064 
      00067 class details_progress_listbox : public wxListBox
00068 {
00069 
00070     DECLARE_DYNAMIC_CLASS( details_progress_listbox )
00071 
00072 public:
00073 
00075 
00097     details_progress_listbox( wxWindow* parent,
00098                       wxWindowID id = -1,
00099                       const wxString& log_filename = wxEmptyString,
00100                       const wxString& log_path = wxEmptyString,    
00101                       long  scroll_history = optionDETAILS_PROGRESS_LISTBOX_RECOMMENDED_SCROLL_HISTORY,                              
00102                       const wxPoint& pos = wxDefaultPosition,
00103                       const wxSize& size = wxDefaultSize,
00104                       int n = 0, 
00105                       const wxString choices[] = NULL,
00106                       long style = wxLB_EXTENDED | wxLB_HSCROLL | wxLB_ALWAYS_SB, 
00107                       const wxValidator& validator = wxDefaultValidator, 
00108                       const wxString& name = "a_details_progress_listbox" );           
00109 
00110     // Unused constructor: solely for usage of RTTI (DYNAMIC_CLASS) macros.
00111     details_progress_listbox() {};
00112 
00114     ~details_progress_listbox();   
00115      
00117 
00120     void append_using_scroll_history( const wxString& item );
00121 
00122     
00124 
00129     bool            export_to_file();
00130 
00131 protected:      
00132     
00134     void            popup_menu( wxMouseEvent& event );       
00135     
00137     void            on_copy_menu_event( wxCommandEvent& event );
00138     
00140     void            on_clear_menu_event( wxCommandEvent& event );
00141     
00143     void            on_select_all_menu_event( wxCommandEvent& event );
00144 
00146     wxWindow        *m_parent;    
00147     
00149     wxArrayInt      m_selected_row_numbers_array;  
00150 
00152     wxString        m_log_filename;
00153     
00155     wxString        m_log_path;
00156     
00158     long            m_scroll_history;
00159 
00160 private:
00161 
00162     DECLARE_EVENT_TABLE()
00163     
00164 };
00165 
00166 //----------------------------------------------------------------------------------------
00167 // End feature removal condition
00168 //----------------------------------------------------------------------------------------
00169 
00170 #endif  // setupUSE_ENHANCED_PROGRESS_DIALOG
00171 
00172 //----------------------------------------------------------------------------------------
00173 // End single inclusion of this .h file condition
00174 //----------------------------------------------------------------------------------------
00175 
00176 #endif  //_DETAILS_PROGRESS_LISTBOX_H_
00177