dialog.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/gtk/dialog.h
  3. // Purpose:
  4. // Author: Robert Roebling
  5. // Created:
  6. // Copyright: (c) 1998 Robert Roebling
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_GTKDIALOG_H_
  10. #define _WX_GTKDIALOG_H_
  11. class WXDLLIMPEXP_FWD_CORE wxGUIEventLoop;
  12. //-----------------------------------------------------------------------------
  13. // wxDialog
  14. //-----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxDialog: public wxDialogBase
  16. {
  17. public:
  18. wxDialog() { Init(); }
  19. wxDialog( wxWindow *parent, wxWindowID id,
  20. const wxString &title,
  21. const wxPoint &pos = wxDefaultPosition,
  22. const wxSize &size = wxDefaultSize,
  23. long style = wxDEFAULT_DIALOG_STYLE,
  24. const wxString &name = wxDialogNameStr );
  25. bool Create( wxWindow *parent, wxWindowID id,
  26. const wxString &title,
  27. const wxPoint &pos = wxDefaultPosition,
  28. const wxSize &size = wxDefaultSize,
  29. long style = wxDEFAULT_DIALOG_STYLE,
  30. const wxString &name = wxDialogNameStr );
  31. virtual ~wxDialog();
  32. virtual bool Show( bool show = true );
  33. virtual int ShowModal();
  34. virtual void EndModal( int retCode );
  35. virtual bool IsModal() const;
  36. private:
  37. // common part of all ctors
  38. void Init();
  39. bool m_modalShowing;
  40. wxGUIEventLoop *m_modalLoop;
  41. DECLARE_DYNAMIC_CLASS(wxDialog)
  42. };
  43. #endif // _WX_GTKDIALOG_H_