]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dialog.h
respect GTK+'s theme tooltip colour settings
[wxWidgets.git] / include / wx / gtk / dialog.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: dialog.h
3// Purpose:
4// Author: Robert Roebling
43a18898 5// Created:
58614078
RR
6// Id: $Id$
7// Copyright: (c) 1998 Robert Roebling
65571936 8// Licence: wxWindows licence
c801d85f
KB
9/////////////////////////////////////////////////////////////////////////////
10
c801d85f
KB
11#ifndef __GTKDIALOGH__
12#define __GTKDIALOGH__
13
12028905 14#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
c801d85f
KB
15#pragma interface
16#endif
17
18#include "wx/defs.h"
c801d85f 19
c801d85f
KB
20//-----------------------------------------------------------------------------
21// classes
22//-----------------------------------------------------------------------------
23
24class wxDialog;
25
26//-----------------------------------------------------------------------------
27// global data
28//-----------------------------------------------------------------------------
29
578c2081 30extern const wxChar *wxDialogNameStr;
c801d85f
KB
31
32//-----------------------------------------------------------------------------
33// wxDialog
34//-----------------------------------------------------------------------------
35
c50f1fb9 36class wxDialog: public wxDialogBase
c801d85f 37{
43a18898 38public:
68995f26 39 wxDialog() { Init(); }
bfc6fde4 40 wxDialog( wxWindow *parent, wxWindowID id,
43a18898 41 const wxString &title,
2b854a32
VZ
42 const wxPoint &pos = wxDefaultPosition,
43 const wxSize &size = wxDefaultSize,
44 long style = wxDEFAULT_DIALOG_STYLE,
45 const wxString &name = wxDialogNameStr );
bfc6fde4
VZ
46 bool Create( wxWindow *parent, wxWindowID id,
47 const wxString &title,
48 const wxPoint &pos = wxDefaultPosition,
49 const wxSize &size = wxDefaultSize,
50 long style = wxDEFAULT_DIALOG_STYLE,
51 const wxString &name = wxDialogNameStr );
7d9f12f3 52 ~wxDialog() {}
bfc6fde4
VZ
53
54 void OnApply( wxCommandEvent &event );
55 void OnCancel( wxCommandEvent &event );
56 void OnOK( wxCommandEvent &event );
57 void OnPaint( wxPaintEvent& event );
bfc6fde4
VZ
58 void OnCloseWindow( wxCloseEvent& event );
59 /*
60 void OnCharHook( wxKeyEvent& event );
61 */
62
8db37e06 63 virtual bool Show( bool show = TRUE );
bfc6fde4
VZ
64 virtual int ShowModal();
65 virtual void EndModal( int retCode );
66 virtual bool IsModal() const;
67 void SetModal( bool modal );
68
bfc6fde4 69 // implementation
23efdd02 70 // --------------
bfc6fde4 71
bfc6fde4 72 bool m_modalShowing;
bfc6fde4
VZ
73
74protected:
68995f26
VZ
75 // common part of all ctors
76 void Init();
77
bfc6fde4
VZ
78private:
79 DECLARE_EVENT_TABLE()
20e05ffb 80 DECLARE_DYNAMIC_CLASS(wxDialog)
c801d85f
KB
81};
82
83#endif // __GTKDIALOGH__