1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
1999-11-16 21:31:40 +00:00
|
|
|
// Name: wx/gtk/frame.h
|
1998-05-20 14:01:55 +00:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-09-07 16:06:47 +00:00
|
|
|
#ifndef _WX_GTK_FRAME_H_
|
|
|
|
#define _WX_GTK_FRAME_H_
|
1998-05-20 14:01:55 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
2001-10-19 20:35:05 +00:00
|
|
|
// wxFrame
|
1998-05-20 14:01:55 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 22:58:06 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1999-02-22 11:01:13 +00:00
|
|
|
public:
|
1999-11-16 21:31:40 +00:00
|
|
|
// construction
|
2001-10-19 20:35:05 +00:00
|
|
|
wxFrame() { Init(); }
|
|
|
|
wxFrame(wxWindow *parent,
|
2001-06-26 20:59:19 +00:00
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
|
|
|
const wxString& name = wxFrameNameStr)
|
1999-11-16 21:31:40 +00:00
|
|
|
{
|
|
|
|
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);
|
|
|
|
|
2001-10-19 20:35:05 +00:00
|
|
|
virtual ~wxFrame();
|
1999-11-16 21:31:40 +00:00
|
|
|
|
1999-06-01 15:32:12 +00:00
|
|
|
#if wxUSE_STATUSBAR
|
2004-04-18 10:27:11 +00:00
|
|
|
void SetStatusBar(wxStatusBar *statbar);
|
1999-06-01 15:32:12 +00:00
|
|
|
#endif // wxUSE_STATUSBAR
|
1999-02-22 11:01:13 +00:00
|
|
|
|
1999-06-01 15:32:12 +00:00
|
|
|
#if wxUSE_TOOLBAR
|
1999-10-09 09:06:35 +00:00
|
|
|
void SetToolBar(wxToolBar *toolbar);
|
1999-06-01 15:32:12 +00:00
|
|
|
#endif // wxUSE_TOOLBAR
|
2007-07-12 07:01:54 +00:00
|
|
|
|
2007-05-26 18:47:53 +00:00
|
|
|
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
|
2001-09-19 22:45:14 +00:00
|
|
|
wxPoint GetClientAreaOrigin() const { return wxPoint(0, 0); }
|
1999-02-22 11:01:13 +00:00
|
|
|
|
2009-09-24 12:36:34 +00:00
|
|
|
#if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
|
2007-11-18 23:32:30 +00:00
|
|
|
// in Hildon environment all frames are always shown maximized
|
|
|
|
virtual bool IsMaximized() const { return true; }
|
2009-09-24 12:36:34 +00:00
|
|
|
#endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2
|
2007-11-18 23:32:30 +00:00
|
|
|
|
1999-11-16 21:31:40 +00:00
|
|
|
// implementation from now on
|
|
|
|
// --------------------------
|
1999-02-22 11:01:13 +00:00
|
|
|
|
1999-11-16 21:31:40 +00:00
|
|
|
// GTK callbacks
|
1999-02-22 11:01:13 +00:00
|
|
|
virtual void OnInternalIdle();
|
|
|
|
|
|
|
|
protected:
|
1999-05-30 16:20:42 +00:00
|
|
|
// common part of all ctors
|
|
|
|
void Init();
|
1999-11-16 21:31:40 +00:00
|
|
|
|
1999-12-01 15:23:56 +00:00
|
|
|
// override wxWindow methods to take into account tool/menu/statusbars
|
1999-05-11 20:41:00 +00:00
|
|
|
virtual void DoGetClientSize( int *width, int *height ) const;
|
1999-02-22 11:01:13 +00:00
|
|
|
|
2001-07-10 12:25:46 +00:00
|
|
|
#if wxUSE_MENUS_NATIVE
|
|
|
|
virtual void DetachMenuBar();
|
|
|
|
virtual void AttachMenuBar(wxMenuBar *menubar);
|
|
|
|
#endif // wxUSE_MENUS_NATIVE
|
2001-10-19 20:35:05 +00:00
|
|
|
|
2007-05-26 18:47:53 +00:00
|
|
|
private:
|
|
|
|
long m_fsSaveFlag;
|
|
|
|
|
2001-10-19 20:35:05 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxFrame)
|
1998-05-20 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
2006-09-07 16:06:47 +00:00
|
|
|
#endif // _WX_GTK_FRAME_H_
|