Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / motif / toplevel.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/toplevel.h
3 // Purpose: wxTopLevelWindow Motif implementation
4 // Author: Mattia Barbon
5 // Modified by:
6 // Created: 12/10/2002
7 // Copyright: (c) Mattia Barbon
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __MOTIFTOPLEVELH__
12 #define __MOTIFTOPLEVELH__
13
14 class WXDLLIMPEXP_CORE wxTopLevelWindowMotif : public wxTopLevelWindowBase
15 {
16 public:
17 wxTopLevelWindowMotif() { Init(); }
18 wxTopLevelWindowMotif( wxWindow* parent, wxWindowID id,
19 const wxString& title,
20 const wxPoint& pos = wxDefaultPosition,
21 const wxSize& size = wxDefaultSize,
22 long style = wxDEFAULT_FRAME_STYLE,
23 const wxString& name = wxFrameNameStr )
24 {
25 Init();
26
27 Create( parent, id, title, pos, size, style, name );
28 }
29
30 bool Create( wxWindow* parent, wxWindowID id,
31 const wxString& title,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxDefaultSize,
34 long style = wxDEFAULT_FRAME_STYLE,
35 const wxString& name = wxFrameNameStr );
36
37 virtual ~wxTopLevelWindowMotif();
38
39 virtual bool ShowFullScreen( bool show, long style = wxFULLSCREEN_ALL );
40 virtual bool IsFullScreen() const;
41
42 virtual void Maximize(bool maximize = true);
43 virtual void Restore();
44 virtual void Iconize(bool iconize = true);
45 virtual bool IsMaximized() const;
46 virtual bool IsIconized() const;
47
48 virtual void Raise();
49 virtual void Lower();
50
51 virtual wxString GetTitle() const { return m_title; }
52 virtual void SetTitle( const wxString& title ) { m_title = title; }
53
54 virtual bool SetShape( const wxRegion& region );
55
56 WXWidget GetShellWidget() const;
57 protected:
58 // common part of all constructors
59 void Init();
60 // common part of wxDialog/wxFrame destructors
61 void PreDestroy();
62
63 virtual void DoGetPosition(int* x, int* y) const;
64 virtual void DoSetSizeHints(int minW, int minH,
65 int maxW, int maxH,
66 int incW, int incH);
67
68 private:
69 // really create the Motif widget for TLW
70 virtual bool XmDoCreateTLW(wxWindow* parent,
71 wxWindowID id,
72 const wxString& title,
73 const wxPoint& pos,
74 const wxSize& size,
75 long style,
76 const wxString& name) = 0;
77
78
79 wxString m_title;
80 };
81
82 #endif // __MOTIFTOPLEVELH__