]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dialog.h
distribution things
[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
2b854a32 8// Licence: wxWindows licence
c801d85f
KB
9/////////////////////////////////////////////////////////////////////////////
10
c801d85f
KB
11#ifndef __GTKDIALOGH__
12#define __GTKDIALOGH__
13
14#ifdef __GNUG__
15#pragma interface
16#endif
17
18#include "wx/defs.h"
a60c99e6 19#include "wx/panel.h"
c33c4050 20#include "wx/icon.h"
c801d85f 21
c801d85f
KB
22//-----------------------------------------------------------------------------
23// classes
24//-----------------------------------------------------------------------------
25
26class wxDialog;
27
28//-----------------------------------------------------------------------------
29// global data
30//-----------------------------------------------------------------------------
31
32extern const char *wxDialogNameStr;
33
34//-----------------------------------------------------------------------------
35// wxDialog
36//-----------------------------------------------------------------------------
37
a60c99e6 38class wxDialog: public wxPanel
c801d85f
KB
39{
40 DECLARE_DYNAMIC_CLASS(wxDialog)
41
43a18898
RR
42public:
43 wxDialog();
2b854a32 44 wxDialog( wxWindow *parent, wxWindowID id,
43a18898 45 const wxString &title,
2b854a32
VZ
46 const wxPoint &pos = wxDefaultPosition,
47 const wxSize &size = wxDefaultSize,
48 long style = wxDEFAULT_DIALOG_STYLE,
49 const wxString &name = wxDialogNameStr );
50 bool Create( wxWindow *parent, wxWindowID id,
43a18898 51 const wxString &title,
2b854a32
VZ
52 const wxPoint &pos = wxDefaultPosition,
53 const wxSize &size = wxDefaultSize,
54 long style = wxDEFAULT_DIALOG_STYLE,
55 const wxString &name = wxDialogNameStr );
43a18898 56 ~wxDialog();
2b854a32 57
43a18898
RR
58 void SetTitle(const wxString& title);
59 wxString GetTitle() const;
2b854a32 60
43a18898
RR
61 void OnApply( wxCommandEvent &event );
62 void OnCancel( wxCommandEvent &event );
63 void OnOK( wxCommandEvent &event );
e52f60e6
RR
64 void OnPaint( wxPaintEvent& event );
65 void OnSize( wxSizeEvent &event );
fe4e9e6c 66 void OnCloseWindow( wxCloseEvent& event );
c801d85f 67/*
43a18898 68 void OnCharHook( wxKeyEvent& event );
c801d85f 69*/
2b854a32 70
43a18898 71 bool Destroy();
2b854a32 72
43a18898 73 virtual void SetSize( int x, int y, int width, int height,
fb1585ae 74 int sizeFlags = wxSIZE_AUTO );
43a18898 75 virtual void SetSize( int width, int height );
2b854a32 76
43a18898
RR
77 virtual bool Show( bool show );
78 virtual int ShowModal();
79 virtual void EndModal( int retCode );
80 virtual bool IsModal() const;
81 void SetModal( bool modal );
2b854a32 82
43a18898 83 virtual void InitDialog(void);
2b854a32 84
43a18898 85 virtual void Centre( int direction = wxHORIZONTAL );
2b854a32 86
43a18898
RR
87 virtual void SetIcon( const wxIcon &icon );
88 virtual void Iconize( bool WXUNUSED(iconize)) { }
89 virtual bool IsIconized() const { return FALSE; }
90 bool Iconized() const { return IsIconized(); }
91 virtual void Maximize() { }
92 virtual void Restore() { }
2b854a32 93
43a18898 94// implementation
2b854a32 95
e52f60e6 96 virtual void GtkOnSize( int x, int y, int width, int height );
2b854a32 97
43a18898
RR
98 bool m_modalShowing;
99 wxString m_title;
100 wxIcon m_icon;
2b854a32 101
c801d85f 102 DECLARE_EVENT_TABLE()
c801d85f
KB
103};
104
105#endif // __GTKDIALOGH__