1 ///////////////////////////////////////////////////////////////////////////// 
   2 // Name:        wx/gtk1/dialog.h 
   4 // Author:      Robert Roebling 
   7 // Copyright:   (c) 1998 Robert Roebling 
   8 // Licence:           wxWindows licence 
   9 ///////////////////////////////////////////////////////////////////////////// 
  11 #ifndef __GTKDIALOGH__ 
  12 #define __GTKDIALOGH__ 
  16 //----------------------------------------------------------------------------- 
  18 //----------------------------------------------------------------------------- 
  20 class WXDLLIMPEXP_CORE wxDialog
; 
  22 //----------------------------------------------------------------------------- 
  24 //----------------------------------------------------------------------------- 
  26 extern WXDLLIMPEXP_CORE 
const wxChar wxDialogNameStr
[]; 
  28 //----------------------------------------------------------------------------- 
  30 //----------------------------------------------------------------------------- 
  32 class WXDLLIMPEXP_CORE wxDialog
: public wxDialogBase
 
  35     wxDialog() { Init(); } 
  36     wxDialog( wxWindow 
*parent
, wxWindowID id
, 
  37             const wxString 
&title
, 
  38             const wxPoint 
&pos 
= wxDefaultPosition
, 
  39             const wxSize 
&size 
= wxDefaultSize
, 
  40             long style 
= wxDEFAULT_DIALOG_STYLE
, 
  41             const wxString 
&name 
= wxDialogNameStr 
); 
  42     bool Create( wxWindow 
*parent
, wxWindowID id
, 
  43             const wxString 
&title
, 
  44             const wxPoint 
&pos 
= wxDefaultPosition
, 
  45             const wxSize 
&size 
= wxDefaultSize
, 
  46             long style 
= wxDEFAULT_DIALOG_STYLE
, 
  47             const wxString 
&name 
= wxDialogNameStr 
); 
  48     virtual ~wxDialog() {} 
  50     void OnApply( wxCommandEvent 
&event 
); 
  51     void OnCancel( wxCommandEvent 
&event 
); 
  52     void OnOK( wxCommandEvent 
&event 
); 
  53     void OnPaint( wxPaintEvent
& event 
); 
  54     void OnCloseWindow( wxCloseEvent
& event 
); 
  56        void OnCharHook( wxKeyEvent& event ); 
  59     virtual bool Show( bool show 
= TRUE 
); 
  60     virtual int ShowModal(); 
  61     virtual void EndModal( int retCode 
); 
  62     virtual bool IsModal() const; 
  63     void SetModal( bool modal 
); 
  71     // common part of all ctors 
  76     DECLARE_DYNAMIC_CLASS(wxDialog
) 
  79 #endif // __GTKDIALOGH__