1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
1999-11-16 16:31:40 -05:00
|
|
|
// Name: wx/gtk/frame.h
|
1998-05-20 10:01:55 -04:00
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 13:03:18 -05:00
|
|
|
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2006-09-07 12:06:47 -04:00
|
|
|
#ifndef _WX_GTK_FRAME_H_
|
|
|
|
#define _WX_GTK_FRAME_H_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
2001-10-19 16:35:05 -04:00
|
|
|
// wxFrame
|
1998-05-20 10:01:55 -04:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxFrame : public wxFrameBase
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-02-22 06:01:13 -05:00
|
|
|
public:
|
1999-11-16 16:31:40 -05:00
|
|
|
// construction
|
2001-10-19 16:35:05 -04:00
|
|
|
wxFrame() { Init(); }
|
|
|
|
wxFrame(wxWindow *parent,
|
2001-06-26 16:59:19 -04:00
|
|
|
wxWindowID id,
|
|
|
|
const wxString& title,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize,
|
|
|
|
long style = wxDEFAULT_FRAME_STYLE,
|
2019-10-22 06:34:29 -04:00
|
|
|
const wxString& name = wxASCII_STR(wxFrameNameStr))
|
1999-11-16 16:31:40 -05: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,
|
2019-10-22 06:34:29 -04:00
|
|
|
const wxString& name = wxASCII_STR(wxFrameNameStr));
|
1999-11-16 16:31:40 -05:00
|
|
|
|
1999-06-01 11:32:12 -04:00
|
|
|
#if wxUSE_STATUSBAR
|
2014-03-29 20:02:23 -04:00
|
|
|
void SetStatusBar(wxStatusBar *statbar) wxOVERRIDE;
|
1999-06-01 11:32:12 -04:00
|
|
|
#endif // wxUSE_STATUSBAR
|
1999-02-22 06:01:13 -05:00
|
|
|
|
1999-06-01 11:32:12 -04:00
|
|
|
#if wxUSE_TOOLBAR
|
2014-03-29 20:02:23 -04:00
|
|
|
void SetToolBar(wxToolBar *toolbar) wxOVERRIDE;
|
1999-06-01 11:32:12 -04:00
|
|
|
#endif // wxUSE_TOOLBAR
|
2007-07-12 03:01:54 -04:00
|
|
|
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) wxOVERRIDE;
|
|
|
|
wxPoint GetClientAreaOrigin() const wxOVERRIDE { return wxPoint(0, 0); }
|
1999-02-22 06:01:13 -05:00
|
|
|
|
1999-11-16 16:31:40 -05:00
|
|
|
// implementation from now on
|
|
|
|
// --------------------------
|
1999-02-22 06:01:13 -05:00
|
|
|
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual bool SendIdleEvents(wxIdleEvent& event) wxOVERRIDE;
|
1999-02-22 06:01:13 -05:00
|
|
|
|
|
|
|
protected:
|
1999-12-01 10:23:56 -05:00
|
|
|
// override wxWindow methods to take into account tool/menu/statusbars
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual void DoGetClientSize( int *width, int *height ) const wxOVERRIDE;
|
1999-02-22 06:01:13 -05:00
|
|
|
|
2001-07-10 08:25:46 -04:00
|
|
|
#if wxUSE_MENUS_NATIVE
|
2014-03-29 20:02:23 -04:00
|
|
|
virtual void DetachMenuBar() wxOVERRIDE;
|
|
|
|
virtual void AttachMenuBar(wxMenuBar *menubar) wxOVERRIDE;
|
2001-07-10 08:25:46 -04:00
|
|
|
#endif // wxUSE_MENUS_NATIVE
|
2001-10-19 16:35:05 -04:00
|
|
|
|
2007-05-26 14:47:53 -04:00
|
|
|
private:
|
2012-10-02 11:57:03 -04:00
|
|
|
void Init();
|
|
|
|
|
2007-05-26 14:47:53 -04:00
|
|
|
long m_fsSaveFlag;
|
|
|
|
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS(wxFrame);
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
2006-09-07 12:06:47 -04:00
|
|
|
#endif // _WX_GTK_FRAME_H_
|