// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "tipdlg.h"
#endif
// constants
// ----------------------------------------------------------------------------
-static const int wxID_NEXT_TIP = -100; // whatever
+static const int wxID_NEXT_TIP = 32000; // whatever
// ----------------------------------------------------------------------------
// private classes
// an implementation which takes the tips from the text file - each line
// represents a tip
-class WXDLLEXPORT wxFileTipProvider : public wxTipProvider
+class WXDLLIMPEXP_ADV wxFileTipProvider : public wxTipProvider
{
public:
wxFileTipProvider(const wxString& filename, size_t currentTip);
private:
wxTextFile m_textfile;
+
+ DECLARE_NO_COPY_CLASS(wxFileTipProvider)
};
#ifdef __WIN32__
// TODO an implementation which takes the tips from the given registry key
-class WXDLLEXPORT wxRegTipProvider : public wxTipProvider
+class WXDLLIMPEXP_ADV wxRegTipProvider : public wxTipProvider
{
public:
wxRegTipProvider(const wxString& keyname);
#endif // __WIN32__
// the dialog we show in wxShowTip()
-class WXDLLEXPORT wxTipDialog : public wxDialog
+class WXDLLIMPEXP_ADV wxTipDialog : public wxDialog
{
public:
wxTipDialog(wxWindow *parent,
wxCheckBox *m_checkbox;
DECLARE_EVENT_TABLE()
+ DECLARE_NO_COPY_CLASS(wxTipDialog)
};
// ============================================================================
m_text->SetFont(wxFont(14, wxSWISS, wxNORMAL, wxNORMAL));
#endif
-#if defined(__WXPM__)
+//#if defined(__WXPM__)
//
// The only way to get icons into an OS/2 static bitmap control
//
- wxBitmap vBitmap;
-
- vBitmap.SetId(wxICON_TIP); // OS/2 specific bitmap method--OS/2 wxBitmaps all have an ID.
- // and for StatBmp's under OS/2 it MUST be a valid resource ID.
+// wxBitmap vBitmap;
- wxStaticBitmap* bmp = new wxStaticBitmap(this, -1, vBitmap);
-
-#else
+// vBitmap.SetId(wxICON_TIP); // OS/2 specific bitmap method--OS/2 wxBitmaps all have an ID.
+// // and for StatBmp's under OS/2 it MUST be a valid resource ID.
+//
+// wxStaticBitmap* bmp = new wxStaticBitmap(this, -1, vBitmap);
+//
+//#else
wxIcon icon = wxArtProvider::GetIcon(wxART_TIP, wxART_CMN_DIALOG);
wxStaticBitmap *bmp = new wxStaticBitmap(this, -1, icon);
-#endif
+//#endif
// 2) put them in boxes