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

checkbox_message_dialog.h

Go to the documentation of this file.
      00001 
      00010 // RCS-ID:      $Id: checkbox_message_dialog.h,v 1.5 2002/09/10 18:07:56 robertoconnor Exp $
      00011 //----------------------------------------------------------------------------------------
      00012 
      00013 //----------------------------------------------------------------------------------------
      00014 // Begin single inclusion of this .h file condition
      00015 //----------------------------------------------------------------------------------------
      00016 
      00017 #ifndef _CHECKBOX_MESSAGE_DIALOG_H_
      00018 #define _CHECKBOX_MESSAGE_DIALOG_H_
      00019 
      00020 //----------------------------------------------------------------------------------------
      00021 // GCC interface
      00022 //----------------------------------------------------------------------------------------
      00023 
      00024 #if defined(__GNUG__) && ! defined(__APPLE__)
      00025     #pragma interface "checkbox_message_dialog.h"
      00026 #endif
      00027 
      00028 //----------------------------------------------------------------------------------------
      00029 // Shared defines
      00030 //----------------------------------------------------------------------------------------
      00031 
      00032 #include "plucker_defines.h"
      00033 
      00034 //----------------------------------------------------------------------------------------
      00035 // Begin feature removal condition
      00036 //----------------------------------------------------------------------------------------
      00037 
      00038 #if ( setupUSE_CHECKBOX_MESSAGE_DIALOG )
      00039 
      00040 // ---------------------------------------------------------------------------------------
      00041 // Headers
      00042 // ---------------------------------------------------------------------------------------
      00043 
      00044 #include "wx/dialog.h"
      00045 #include "wx/checkbox.h"
      00046 
      00047 //----------------------------------------------------------------------------------------
      00048 // Class definition: checkbox_message_dialog
      00049 //----------------------------------------------------------------------------------------
      00050 
      00052 
      00059 class checkbox_message_dialog : public wxDialog
00060 {
00061  
00062 public:
00063 
00065 
00076     checkbox_message_dialog( wxWindow *parent,
00077                              const wxString& message,
00078                              const wxString& caption = _( "Message" ),
00079                              long style = wxOK | wxCENTRE,
00080                              const wxPoint& pos = wxDefaultPosition,
00081                              const wxString& checkbox_caption = _( "Don't remind me again" ),
00082                              const wxString& config_path_to_show_key = "/",
00083                              bool default_check_checkbox_if_key_not_found_in_config = TRUE
00084                             );
00085     
00086     // Unused constructor: solely for usage of RTTI (DYNAMIC_CLASS) macros.
00087     checkbox_message_dialog() {};        
00088              
00090     void        OnYes( wxCommandEvent& event );
00091     
00093     void        OnNo( wxCommandEvent& event );
00094     
00096     void        OnCancel( wxCommandEvent& event );
00097     
00099     void        OnOK( wxCommandEvent& event );
00100     
00101 protected:
00102 
00104     void        save_checkbox_value_to_config();
00105     
00107     wxString    m_config_path_to_show_key;
00108     
00110     wxCheckBox* m_checkbox;
00111         
00112 private:
00113 
00114     long        m_dialogStyle;
00115 
00116     DECLARE_DYNAMIC_CLASS( checkbox_message_dialog )
00117     DECLARE_EVENT_TABLE()    
00118 };
00119 
00120 //----------------------------------------------------------------------------------------
00121 // End feature removal condition
00122 //----------------------------------------------------------------------------------------
00123 
00124 #endif  // setupUSE_CHECKBOX_MESSAGE_DIALOG
00125 
00126 //----------------------------------------------------------------------------------------
00127 // End single inclusion of this .h file condition
00128 //----------------------------------------------------------------------------------------
00129 
00130 #endif  // _CHECKBOX_MESSAGE_DIALOG_H_