]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/os2/fontdlg.h
Additional configuration check.
[wxWidgets.git] / include / wx / os2 / fontdlg.h
index 6fb9d30bf85585ba947e6b7a6a3ca24b4c0cfd16..4dff23ca4b07043c963629b5f112751977759c38 100644 (file)
 
 class WXDLLEXPORT wxFontDialog: public wxFontDialogBase
 {
 
 class WXDLLEXPORT wxFontDialog: public wxFontDialogBase
 {
-DECLARE_DYNAMIC_CLASS(wxFontDialog)
 public:
 public:
-    wxFontDialog();
-    wxFontDialog(wxWindow *parent, const wxFontData& rData);
-
-    bool Create(wxWindow *parent, const wxFontData& rData);
-
-    int ShowModal();
-    wxFontData& GetFontData() { return m_fontData; }
-
-//EK protected:
-    wxWindow*   m_dialogParent;
-    wxFontData  m_fontData;
-};
+    wxFontDialog() : wxFontDialogBase() { /* must be Create()d later */ }
+    wxFontDialog (wxWindow* pParent) : wxFontDialogBase(pParent) { Create(pParent); }
+    wxFontDialog( wxWindow*         pParent
+                 ,const wxFontData& rData
+                )
+                : wxFontDialogBase( pParent
+                                   ,rData
+                                  )
+    {
+        Create( pParent
+               ,rData
+              );
+    }
+
+    virtual int ShowModal();
+
+    //
+    // Deprecated interface, don't use
+    //
+    wxFontDialog( wxWindow*         pParent
+                 ,const wxFontData* pData
+                )
+                : wxFontDialogBase( pParent
+                                   ,pData
+                                  )
+    {
+        Create( pParent
+               ,pData
+              );
+    }
+protected:
+    DECLARE_DYNAMIC_CLASS(wxFontDialog)
+}; // end of CLASS wxFontDialog
 
 #endif
     // _WX_FONTDLG_H_
 
 #endif
     // _WX_FONTDLG_H_