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