00001 //----------------------------------------------------------------------------------------
00011 // RCS-ID: $Id: html_tip_dialog.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 _HTML_TIP_DIALOG_H_
00019 #define _HTML_TIP_DIALOG_H_
00020
00021 //----------------------------------------------------------------------------------------
00022 // GCC interface
00023 //----------------------------------------------------------------------------------------
00024
00025 #if defined(__GNUG__) && ! defined(__APPLE__)
00026 #pragma interface "html_tip_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_HTML_TIP_DIALOG )
00040
00041 //----------------------------------------------------------------------------------------
00042 // Headers
00043 //----------------------------------------------------------------------------------------
00044
00045 #include "wx/dialog.h"
00046 #include "wx/tipdlg.h"
00047 #include "wx/html/htmlwin.h"
00048
00049 //----------------------------------------------------------------------------------------
00050 // Class definition: html_tip_dialog
00051 //----------------------------------------------------------------------------------------
00052
00054
00058 class html_tip_dialog : public wxDialog
00059 {
00060
00061 public:
00062
00064
00078 html_tip_dialog( wxWindow* parent,
00079 wxTipProvider* tip_provider,
00080 bool show_at_startup,
00081 const wxString& header_html = wxEmptyString,
00082 const wxString& footer_html = wxEmptyString,
00083 bool use_system_style = TRUE,
00084 wxSize html_window_size = wxSize( plkrHTML_TIP_DIALOG_CONTENT_WIDTH,
00085 plkrHTML_TIP_DIALOG_CONTENT_HEIGHT ),
00086 int html_window_content_padding = 0,
00087 const wxString& title = _( "Tip of the day" )
00088 );
00089
00091 ~html_tip_dialog();
00092
00094
00097 bool show_tips_on_startup();
00098
00100 void set_tip_text();
00101
00103 void on_next_tip_button( wxCommandEvent& WXUNUSED( event) );
00104
00105 private:
00106
00107 wxTipProvider* m_tip_provider;
00108
00109 wxHtmlWindow* m_html_window;
00110 wxCheckBox* m_checkbox;
00111
00112 wxString m_header_html;
00113 wxString m_footer_html;
00114 bool m_use_system_style;
00115
00116 DECLARE_EVENT_TABLE()
00117
00118 };
00119
00120 //----------------------------------------------------------------------------------------
00121 // External functions
00122 //----------------------------------------------------------------------------------------
00123
00124 bool show_html_tip( wxWindow *parent,
00125 wxTipProvider *tip_provider,
00126 bool show_at_startup,
00127 const wxString& header_html = wxEmptyString,
00128 const wxString& footer_html = wxEmptyString,
00129 bool use_system_style = TRUE,
00130 wxSize html_window_size = wxSize( plkrHTML_TIP_DIALOG_CONTENT_WIDTH,
00131 plkrHTML_TIP_DIALOG_CONTENT_HEIGHT ),
00132 int html_window_content_padding = 0,
00133 const wxString& title = _( "Tip of the day" )
00134 );
00135
00136 //----------------------------------------------------------------------------------------
00137 // End feature removal condition
00138 //----------------------------------------------------------------------------------------
00139
00140 #endif // setupUSE_HTML_TIP_DIALOG
00141
00142 //----------------------------------------------------------------------------------------
00143 // End single inclusion of this .h file condition
00144 //----------------------------------------------------------------------------------------
00145
00146 #endif //_HTML_TIP_DIALOG_H_
00147