]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk1/dialog.h
typedef unsigned int bool (instead of int) for consistency with defs.h
[wxWidgets.git] / include / wx / gtk1 / dialog.h
index 002c3e1beddd9b8c4c1a63ae7505772e3e51001c..cc3cbcac1a95744ae52768c6f2666ccbf3489472 100644 (file)
@@ -29,18 +29,18 @@ class wxDialog;
 // global data
 //-----------------------------------------------------------------------------
 
-extern const char *wxDialogNameStr;
+extern const wxChar *wxDialogNameStr;
 
 //-----------------------------------------------------------------------------
 // wxDialog
 //-----------------------------------------------------------------------------
 
-class wxDialog: public wxPanel
+class wxDialog: public wxDialogBase
 {
     DECLARE_DYNAMIC_CLASS(wxDialog)
 
 public:
-    wxDialog();
+    wxDialog() { Init(); }
     wxDialog( wxWindow *parent, wxWindowID id,
             const wxString &title,
             const wxPoint &pos = wxDefaultPosition,
@@ -97,6 +97,9 @@ public:
     wxIcon     m_icon;
 
 protected:
+    // common part of all ctors
+    void Init();
+
     virtual void DoSetSize(int x, int y,
                            int width, int height,
                            int sizeFlags = wxSIZE_AUTO);