// 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,
virtual void InitDialog(void);
- virtual void Centre( int direction = wxHORIZONTAL );
-
virtual void SetIcon( const wxIcon &icon );
virtual void Iconize( bool WXUNUSED(iconize)) { }
virtual bool IsIconized() const { return FALSE; }
virtual void Maximize() { }
virtual void Restore() { }
+ virtual bool IsTopLevel() const { return TRUE; }
+
// implementation
virtual void GtkOnSize( int x, int y, int width, int height );
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);