]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/dialog.h
wxApp::Get/SetVendorName functions added
[wxWidgets.git] / include / wx / gtk1 / dialog.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: dialog.h
3// Purpose:
4// Author: Robert Roebling
5// Created: 01/02/97
6// Id:
7// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11
12#ifndef __GTKDIALOGH__
13#define __GTKDIALOGH__
14
15#ifdef __GNUG__
16#pragma interface
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/string.h"
22#include "wx/event.h"
23#include "wx/window.h"
24
25//-----------------------------------------------------------------------------
26// forward decls
27//-----------------------------------------------------------------------------
28
29class wxRadioBox;
30
31//-----------------------------------------------------------------------------
32// classes
33//-----------------------------------------------------------------------------
34
35class wxDialog;
36
37//-----------------------------------------------------------------------------
38// global data
39//-----------------------------------------------------------------------------
40
41extern const char *wxDialogNameStr;
42
43//-----------------------------------------------------------------------------
44// wxDialog
45//-----------------------------------------------------------------------------
46
47class wxDialog: public wxWindow
48{
49 DECLARE_DYNAMIC_CLASS(wxDialog)
50
51 public:
52
53 wxDialog(void);
54 wxDialog( wxWindow *parent, wxWindowID id, const wxString &title,
55 const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
debe6624 56 long style = wxDEFAULT_DIALOG_STYLE, const wxString &name = wxDialogNameStr );
c801d85f
KB
57 bool Create( wxWindow *parent, wxWindowID id, const wxString &title,
58 const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
debe6624 59 long style = wxDEFAULT_DIALOG_STYLE, const wxString &name = wxDialogNameStr );
c801d85f
KB
60 ~wxDialog(void);
61 void SetTitle(const wxString& title);
62 wxString GetTitle(void) const;
63 bool OnClose(void);
64 void OnApply( wxCommandEvent &event );
65 void OnCancel( wxCommandEvent &event );
66 void OnOk( wxCommandEvent &event );
67 void OnPaint(wxPaintEvent& event);
e2414cbe 68 bool Destroy(void);
c801d85f
KB
69 void OnCloseWindow(wxCloseEvent& event);
70/*
71 void OnCharHook(wxKeyEvent& event);
72*/
debe6624 73 virtual bool Show( bool show );
c801d85f
KB
74 virtual int ShowModal(void);
75 virtual void EndModal(int retCode);
76 virtual bool IsModal(void) const { return ((GetWindowStyleFlag() & wxDIALOG_MODAL) == wxDIALOG_MODAL); }
77 virtual void InitDialog(void);
c801d85f
KB
78
79 private:
80
81 friend wxWindow;
82 friend wxDC;
83 friend wxRadioBox;
84 bool m_modalShowing;
85 wxString m_title;
86
87 DECLARE_EVENT_TABLE()
88
89};
90
91#endif // __GTKDIALOGH__