2003-01-06 15:54:54 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/motif/toplevel.h
|
|
|
|
// Purpose: wxTopLevelWindow Motif implementation
|
|
|
|
// Author: Mattia Barbon
|
|
|
|
// Modified by:
|
|
|
|
// Created: 12/10/2002
|
|
|
|
// Copyright: (c) Mattia Barbon
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-01-06 15:54:54 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __MOTIFTOPLEVELH__
|
|
|
|
#define __MOTIFTOPLEVELH__
|
|
|
|
|
2005-08-02 20:53:09 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxTopLevelWindowMotif : public wxTopLevelWindowBase
|
2003-01-06 15:54:54 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxTopLevelWindowMotif() { Init(); }
|
|
|
|
wxTopLevelWindowMotif( wxWindow* parent, wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
|
|
|
const wxString& name = wxFrameNameStr )
|
|
|
|
{
|
|
|
|
Init();
|
|
|
|
|
|
|
|
Create( parent, id, title, pos, size, style, name );
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create( wxWindow* parent, wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
|
|
|
const wxString& name = wxFrameNameStr );
|
|
|
|
|
|
|
|
virtual ~wxTopLevelWindowMotif();
|
|
|
|
|
|
|
|
virtual bool ShowFullScreen( bool show, long style = wxFULLSCREEN_ALL );
|
|
|
|
virtual bool IsFullScreen() const;
|
|
|
|
|
2005-02-06 12:38:33 -05:00
|
|
|
virtual void Maximize(bool maximize = true);
|
2003-01-06 15:54:54 -05:00
|
|
|
virtual void Restore();
|
2005-02-06 12:38:33 -05:00
|
|
|
virtual void Iconize(bool iconize = true);
|
2003-01-06 15:54:54 -05:00
|
|
|
virtual bool IsMaximized() const;
|
|
|
|
virtual bool IsIconized() const;
|
|
|
|
|
|
|
|
virtual void Raise();
|
|
|
|
virtual void Lower();
|
|
|
|
|
|
|
|
virtual wxString GetTitle() const { return m_title; }
|
|
|
|
virtual void SetTitle( const wxString& title ) { m_title = title; }
|
|
|
|
|
2003-04-09 12:58:33 -04:00
|
|
|
virtual bool SetShape( const wxRegion& region );
|
|
|
|
|
2003-01-06 15:54:54 -05:00
|
|
|
WXWidget GetShellWidget() const;
|
|
|
|
protected:
|
|
|
|
// common part of all constructors
|
|
|
|
void Init();
|
2003-03-26 17:22:55 -05:00
|
|
|
// common part of wxDialog/wxFrame destructors
|
|
|
|
void PreDestroy();
|
2003-01-06 15:54:54 -05:00
|
|
|
|
2003-11-16 06:28:37 -05:00
|
|
|
virtual void DoGetPosition(int* x, int* y) const;
|
2007-11-22 01:12:56 -05:00
|
|
|
virtual void DoSetSizeHints(int minW, int minH,
|
|
|
|
int maxW, int maxH,
|
|
|
|
int incW, int incH);
|
2005-09-14 10:36:02 -04:00
|
|
|
|
2003-01-06 15:54:54 -05:00
|
|
|
private:
|
2005-09-14 10:36:02 -04:00
|
|
|
// really create the Motif widget for TLW
|
2005-09-25 16:29:58 -04:00
|
|
|
virtual bool XmDoCreateTLW(wxWindow* parent,
|
2005-09-14 10:36:02 -04:00
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size,
|
|
|
|
long style,
|
|
|
|
const wxString& name) = 0;
|
2003-01-06 15:54:54 -05:00
|
|
|
|
|
|
|
|
|
|
|
wxString m_title;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __MOTIFTOPLEVELH__
|