Remove unnecessary files
This commit is contained in:
parent
0235f8ba77
commit
b7c8486d2d
10 changed files with 0 additions and 2005 deletions
|
|
@ -1,33 +0,0 @@
|
||||||
#ifndef _WX_GENERIC_PANELG_H_EXT_
|
|
||||||
#define _WX_GENERIC_PANELG_H_EXT_
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
#include <wx/vidmode.h>
|
|
||||||
|
|
||||||
class wxPanelExt;
|
|
||||||
typedef wxClassInfo* (*wxPanelExtGetClassInfoFunc)(const wxPanelExt* self);
|
|
||||||
|
|
||||||
class wxPanelExt: public wxPanel
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxPanelExt(): wxPanel() { }
|
|
||||||
wxPanelExt(wxWindow* parent, wxWindowID winid = wxID_ANY, wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = 0x00080000 | wxBORDER_NONE, wxString const& name = wxString::FromAscii(wxPanelNameStr)): wxPanel(parent, winid, pos, size, style, name) { }
|
|
||||||
wxPanelExtGetClassInfoFunc m_wxPanelExtGetClassInfo = NULL;
|
|
||||||
virtual wxClassInfo* GetClassInfo() const override
|
|
||||||
{
|
|
||||||
wxClassInfo* res = wxPanel::GetClassInfo();
|
|
||||||
if (*m_wxPanelExtGetClassInfo != NULL){
|
|
||||||
return m_wxPanelExtGetClassInfo(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxPanelExt(wxPanelExtGetClassInfoFunc a_GetClassInfo): wxPanel() {
|
|
||||||
m_wxPanelExtGetClassInfo = a_GetClassInfo;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,19 +0,0 @@
|
||||||
#ifndef _WX_INIT_H_EXT_
|
|
||||||
#define _WX_INIT_H_EXT_
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
#include <wx/vidmode.h>
|
|
||||||
|
|
||||||
class wxInitializerExt;
|
|
||||||
|
|
||||||
class wxInitializerExt: public wxInitializer
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxInitializerExt(): wxInitializer() { }
|
|
||||||
wxInitializerExt(int& argc, wxChar** argv): wxInitializer(argc, argv) { }
|
|
||||||
wxInitializerExt(int& argc, char** argv): wxInitializer(argc, argv) { }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,121 +0,0 @@
|
||||||
#ifndef _WX_OSX_ANYBUTTON_H_EXT_
|
|
||||||
#define _WX_OSX_ANYBUTTON_H_EXT_
|
|
||||||
|
|
||||||
class wxAnyButtonExt;
|
|
||||||
typedef void (*wxAnyButtonExtSetLabelFunc)(const wxAnyButtonExt* self, wxString const& label);
|
|
||||||
typedef wxSize (*wxAnyButtonExtDoGetBestSizeFunc)(const wxAnyButtonExt* self);
|
|
||||||
typedef wxBitmap (*wxAnyButtonExtDoGetBitmapFunc)(const wxAnyButtonExt* self, wxAnyButtonBase::State which);
|
|
||||||
typedef void (*wxAnyButtonExtDoSetBitmapFunc)(const wxAnyButtonExt* self, wxBitmapBundle const& bitmapBundle, wxAnyButtonBase::State which);
|
|
||||||
typedef void (*wxAnyButtonExtDoSetBitmapPositionFunc)(const wxAnyButtonExt* self, wxDirection dir);
|
|
||||||
typedef void (*wxAnyButtonExtDoSetBitmapMarginsFunc)(const wxAnyButtonExt* self, int x, int y);
|
|
||||||
typedef bool (*wxAnyButtonExtDoSetLabelMarkupFunc)(const wxAnyButtonExt* self, wxString const& markup);
|
|
||||||
typedef wxEventTable const* (*wxAnyButtonExtGetEventTableFunc)(const wxAnyButtonExt* self);
|
|
||||||
typedef wxEventHashTable& (*wxAnyButtonExtGetEventHashTableFunc)(const wxAnyButtonExt* self);
|
|
||||||
|
|
||||||
class wxAnyButtonExt: public wxAnyButton
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxAnyButtonExt(): wxAnyButton() { }
|
|
||||||
wxAnyButtonExtSetLabelFunc m_wxAnyButtonExtSetLabel = NULL;
|
|
||||||
virtual void SetLabel(wxString const& label) override
|
|
||||||
{
|
|
||||||
wxAnyButton::SetLabel(label);
|
|
||||||
if (*m_wxAnyButtonExtSetLabel != NULL){
|
|
||||||
return m_wxAnyButtonExtSetLabel(this, label);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExtDoGetBestSizeFunc m_wxAnyButtonExtDoGetBestSize = NULL;
|
|
||||||
virtual wxSize DoGetBestSize() const override
|
|
||||||
{
|
|
||||||
wxSize res = wxAnyButton::DoGetBestSize();
|
|
||||||
if (*m_wxAnyButtonExtDoGetBestSize != NULL){
|
|
||||||
return m_wxAnyButtonExtDoGetBestSize(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExtDoGetBitmapFunc m_wxAnyButtonExtDoGetBitmap = NULL;
|
|
||||||
virtual wxBitmap DoGetBitmap(wxAnyButtonBase::State which) const override
|
|
||||||
{
|
|
||||||
wxBitmap res = wxAnyButton::DoGetBitmap(which);
|
|
||||||
if (*m_wxAnyButtonExtDoGetBitmap != NULL){
|
|
||||||
return m_wxAnyButtonExtDoGetBitmap(this, which);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExtDoSetBitmapFunc m_wxAnyButtonExtDoSetBitmap = NULL;
|
|
||||||
virtual void DoSetBitmap(wxBitmapBundle const& bitmapBundle, wxAnyButtonBase::State which) override
|
|
||||||
{
|
|
||||||
wxAnyButton::DoSetBitmap(bitmapBundle, which);
|
|
||||||
if (*m_wxAnyButtonExtDoSetBitmap != NULL){
|
|
||||||
return m_wxAnyButtonExtDoSetBitmap(this, bitmapBundle, which);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExtDoSetBitmapPositionFunc m_wxAnyButtonExtDoSetBitmapPosition = NULL;
|
|
||||||
virtual void DoSetBitmapPosition(wxDirection dir) override
|
|
||||||
{
|
|
||||||
wxAnyButton::DoSetBitmapPosition(dir);
|
|
||||||
if (*m_wxAnyButtonExtDoSetBitmapPosition != NULL){
|
|
||||||
return m_wxAnyButtonExtDoSetBitmapPosition(this, dir);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExtDoSetBitmapMarginsFunc m_wxAnyButtonExtDoSetBitmapMargins = NULL;
|
|
||||||
virtual void DoSetBitmapMargins(int x, int y) override
|
|
||||||
{
|
|
||||||
wxAnyButton::DoSetBitmapMargins(x, y);
|
|
||||||
if (*m_wxAnyButtonExtDoSetBitmapMargins != NULL){
|
|
||||||
return m_wxAnyButtonExtDoSetBitmapMargins(this, x, y);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExtDoSetLabelMarkupFunc m_wxAnyButtonExtDoSetLabelMarkup = NULL;
|
|
||||||
virtual bool DoSetLabelMarkup(wxString const& markup) override
|
|
||||||
{
|
|
||||||
bool res = wxAnyButton::DoSetLabelMarkup(markup);
|
|
||||||
if (*m_wxAnyButtonExtDoSetLabelMarkup != NULL){
|
|
||||||
return m_wxAnyButtonExtDoSetLabelMarkup(this, markup);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExtGetEventTableFunc m_wxAnyButtonExtGetEventTable = NULL;
|
|
||||||
virtual wxEventTable const* GetEventTable() const override
|
|
||||||
{
|
|
||||||
wxEventTable const* res = wxAnyButton::GetEventTable();
|
|
||||||
if (*m_wxAnyButtonExtGetEventTable != NULL){
|
|
||||||
return m_wxAnyButtonExtGetEventTable(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExtGetEventHashTableFunc m_wxAnyButtonExtGetEventHashTable = NULL;
|
|
||||||
virtual wxEventHashTable& GetEventHashTable() const override
|
|
||||||
{
|
|
||||||
wxEventHashTable& res = wxAnyButton::GetEventHashTable();
|
|
||||||
if (*m_wxAnyButtonExtGetEventHashTable != NULL){
|
|
||||||
return m_wxAnyButtonExtGetEventHashTable(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxAnyButtonExt(wxAnyButtonExtSetLabelFunc a_SetLabel, wxAnyButtonExtDoGetBestSizeFunc a_DoGetBestSize, wxAnyButtonExtDoGetBitmapFunc a_DoGetBitmap, wxAnyButtonExtDoSetBitmapFunc a_DoSetBitmap, wxAnyButtonExtDoSetBitmapPositionFunc a_DoSetBitmapPosition, wxAnyButtonExtDoSetBitmapMarginsFunc a_DoSetBitmapMargins, wxAnyButtonExtDoSetLabelMarkupFunc a_DoSetLabelMarkup, wxAnyButtonExtGetEventTableFunc a_GetEventTable, wxAnyButtonExtGetEventHashTableFunc a_GetEventHashTable): wxAnyButton() {
|
|
||||||
m_wxAnyButtonExtSetLabel = a_SetLabel;
|
|
||||||
m_wxAnyButtonExtDoGetBestSize = a_DoGetBestSize;
|
|
||||||
m_wxAnyButtonExtDoGetBitmap = a_DoGetBitmap;
|
|
||||||
m_wxAnyButtonExtDoSetBitmap = a_DoSetBitmap;
|
|
||||||
m_wxAnyButtonExtDoSetBitmapPosition = a_DoSetBitmapPosition;
|
|
||||||
m_wxAnyButtonExtDoSetBitmapMargins = a_DoSetBitmapMargins;
|
|
||||||
m_wxAnyButtonExtDoSetLabelMarkup = a_DoSetLabelMarkup;
|
|
||||||
m_wxAnyButtonExtGetEventTable = a_GetEventTable;
|
|
||||||
m_wxAnyButtonExtGetEventHashTable = a_GetEventHashTable;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,79 +0,0 @@
|
||||||
#ifndef _WX_OSX_BUTTON_H_EXT_
|
|
||||||
#define _WX_OSX_BUTTON_H_EXT_
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
#include <wx/vidmode.h>
|
|
||||||
|
|
||||||
class wxButtonExt;
|
|
||||||
typedef void (*wxButtonExtSetLabelFunc)(const wxButtonExt* self, wxString const& label);
|
|
||||||
typedef wxWindow* (*wxButtonExtSetDefaultFunc)(const wxButtonExt* self);
|
|
||||||
typedef void (*wxButtonExtCommandFunc)(const wxButtonExt* self, wxCommandEvent& event);
|
|
||||||
typedef bool (*wxButtonExtOSXHandleClickedFunc)(const wxButtonExt* self, double timestampsec);
|
|
||||||
typedef wxClassInfo* (*wxButtonExtGetClassInfoFunc)(const wxButtonExt* self);
|
|
||||||
|
|
||||||
class wxButtonExt: public wxButton
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxButtonExt(): wxButton() { }
|
|
||||||
wxButtonExt(wxWindow* parent, wxWindowID id, wxString const& label = wxEmptyString, wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = 0, wxValidator const& validator = wxDefaultValidator, wxString const& name = wxASCII_STR(wxButtonNameStr)): wxButton(parent, id, label, pos, size, style, validator, name) { }
|
|
||||||
wxButtonExtSetLabelFunc m_wxButtonExtSetLabel = NULL;
|
|
||||||
virtual void SetLabel(wxString const& label) override
|
|
||||||
{
|
|
||||||
wxButton::SetLabel(label);
|
|
||||||
if (*m_wxButtonExtSetLabel != NULL){
|
|
||||||
return m_wxButtonExtSetLabel(this, label);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxButtonExtSetDefaultFunc m_wxButtonExtSetDefault = NULL;
|
|
||||||
virtual wxWindow* SetDefault() override
|
|
||||||
{
|
|
||||||
wxWindow* res = wxButton::SetDefault();
|
|
||||||
if (*m_wxButtonExtSetDefault != NULL){
|
|
||||||
return m_wxButtonExtSetDefault(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxButtonExtCommandFunc m_wxButtonExtCommand = NULL;
|
|
||||||
virtual void Command(wxCommandEvent& event) override
|
|
||||||
{
|
|
||||||
wxButton::Command(event);
|
|
||||||
if (*m_wxButtonExtCommand != NULL){
|
|
||||||
return m_wxButtonExtCommand(this, event);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxButtonExtOSXHandleClickedFunc m_wxButtonExtOSXHandleClicked = NULL;
|
|
||||||
virtual bool OSXHandleClicked(double timestampsec) override
|
|
||||||
{
|
|
||||||
bool res = wxButton::OSXHandleClicked(timestampsec);
|
|
||||||
if (*m_wxButtonExtOSXHandleClicked != NULL){
|
|
||||||
return m_wxButtonExtOSXHandleClicked(this, timestampsec);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxButtonExtGetClassInfoFunc m_wxButtonExtGetClassInfo = NULL;
|
|
||||||
virtual wxClassInfo* GetClassInfo() const override
|
|
||||||
{
|
|
||||||
wxClassInfo* res = wxButton::GetClassInfo();
|
|
||||||
if (*m_wxButtonExtGetClassInfo != NULL){
|
|
||||||
return m_wxButtonExtGetClassInfo(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxButtonExt(wxButtonExtSetLabelFunc a_SetLabel, wxButtonExtSetDefaultFunc a_SetDefault, wxButtonExtCommandFunc a_Command, wxButtonExtOSXHandleClickedFunc a_OSXHandleClicked, wxButtonExtGetClassInfoFunc a_GetClassInfo): wxButton() {
|
|
||||||
m_wxButtonExtSetLabel = a_SetLabel;
|
|
||||||
m_wxButtonExtSetDefault = a_SetDefault;
|
|
||||||
m_wxButtonExtCommand = a_Command;
|
|
||||||
m_wxButtonExtOSXHandleClicked = a_OSXHandleClicked;
|
|
||||||
m_wxButtonExtGetClassInfo = a_GetClassInfo;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
#ifndef _WX_OSX_CONTROL_H_EXT_
|
|
||||||
#define _WX_OSX_CONTROL_H_EXT_
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
#include <wx/vidmode.h>
|
|
||||||
|
|
||||||
class wxControlExt;
|
|
||||||
typedef wxClassInfo* (*wxControlExtGetClassInfoFunc)(const wxControlExt* self);
|
|
||||||
|
|
||||||
class wxControlExt: public wxControl
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxControlExtGetClassInfoFunc m_wxControlExtGetClassInfo = NULL;
|
|
||||||
virtual wxClassInfo* GetClassInfo() const override
|
|
||||||
{
|
|
||||||
wxClassInfo* res = wxControl::GetClassInfo();
|
|
||||||
if (*m_wxControlExtGetClassInfo != NULL){
|
|
||||||
return m_wxControlExtGetClassInfo(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxControlExt(): wxControl() { }
|
|
||||||
wxControlExt(wxWindow* parent, wxWindowID winid, wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = 0, wxValidator const& validator = wxDefaultValidator, wxString const& name = wxString::FromAscii(wxControlNameStr)): wxControl(parent, winid, pos, size, style, validator, name) { }
|
|
||||||
wxControlExt(wxControlExtGetClassInfoFunc a_GetClassInfo): wxControl() {
|
|
||||||
m_wxControlExtGetClassInfo = a_GetClassInfo;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,192 +0,0 @@
|
||||||
#ifndef _WX_OSX_FRAME_H_EXT_
|
|
||||||
#define _WX_OSX_FRAME_H_EXT_
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
#include <wx/vidmode.h>
|
|
||||||
|
|
||||||
class wxFrameExt;
|
|
||||||
typedef wxPoint (*wxFrameExtGetClientAreaOriginFunc)(const wxFrameExt* self);
|
|
||||||
typedef bool (*wxFrameExtShowFunc)(const wxFrameExt* self, bool show);
|
|
||||||
typedef bool (*wxFrameExtEnableFunc)(const wxFrameExt* self, bool enable);
|
|
||||||
typedef wxToolBar* (*wxFrameExtCreateToolBarFunc)(const wxFrameExt* self, long style, wxWindowID id, wxString const& name);
|
|
||||||
typedef void (*wxFrameExtSetToolBarFunc)(const wxFrameExt* self, wxToolBar* toolbar);
|
|
||||||
typedef wxStatusBar* (*wxFrameExtOnCreateStatusBarFunc)(const wxFrameExt* self, int number, long style, wxWindowID id, wxString const& name);
|
|
||||||
typedef void (*wxFrameExtSetStatusBarFunc)(const wxFrameExt* self, wxStatusBar* statbar);
|
|
||||||
typedef void (*wxFrameExtPositionToolBarFunc)(const wxFrameExt* self);
|
|
||||||
typedef void (*wxFrameExtPositionStatusBarFunc)(const wxFrameExt* self);
|
|
||||||
typedef void (*wxFrameExtDoGetClientSizeFunc)(const wxFrameExt* self, int* width, int* height);
|
|
||||||
typedef void (*wxFrameExtDoSetClientSizeFunc)(const wxFrameExt* self, int width, int height);
|
|
||||||
typedef void (*wxFrameExtDetachMenuBarFunc)(const wxFrameExt* self);
|
|
||||||
typedef void (*wxFrameExtAttachMenuBarFunc)(const wxFrameExt* self, wxMenuBar* menubar);
|
|
||||||
typedef bool (*wxFrameExtMacIsChildOfClientAreaFunc)(const wxFrameExt* self, wxWindow const* child);
|
|
||||||
typedef wxClassInfo* (*wxFrameExtGetClassInfoFunc)(const wxFrameExt* self);
|
|
||||||
|
|
||||||
class wxFrameExt: public wxFrame
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxFrameExt(): wxFrame() { }
|
|
||||||
wxFrameExt(wxWindow* parent, wxWindowID id, wxString const& title, wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, wxString const& name = wxASCII_STR(wxFrameNameStr)): wxFrame(parent, id, title, pos, size, style, name) {
|
|
||||||
}
|
|
||||||
wxFrameExtGetClientAreaOriginFunc m_wxFrameExtGetClientAreaOrigin = NULL;
|
|
||||||
virtual wxPoint GetClientAreaOrigin() const override
|
|
||||||
{
|
|
||||||
wxPoint res = wxFrame::GetClientAreaOrigin();
|
|
||||||
if (*m_wxFrameExtGetClientAreaOrigin != NULL){
|
|
||||||
return m_wxFrameExtGetClientAreaOrigin(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtShowFunc m_wxFrameExtShow = NULL;
|
|
||||||
virtual bool Show(bool show = true) override
|
|
||||||
{
|
|
||||||
bool res = wxFrame::Show(show);
|
|
||||||
if (*m_wxFrameExtShow != NULL){
|
|
||||||
return m_wxFrameExtShow(this, show);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtEnableFunc m_wxFrameExtEnable = NULL;
|
|
||||||
virtual bool Enable(bool enable = true) override
|
|
||||||
{
|
|
||||||
bool res = wxFrame::Enable(enable);
|
|
||||||
if (*m_wxFrameExtEnable != NULL){
|
|
||||||
return m_wxFrameExtEnable(this, enable);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtCreateToolBarFunc m_wxFrameExtCreateToolBar = NULL;
|
|
||||||
virtual wxToolBar* CreateToolBar(long style = -1, wxWindowID id = -1, wxString const& name = wxString::FromAscii(wxToolBarNameStr)) override
|
|
||||||
{
|
|
||||||
wxToolBar* res = wxFrame::CreateToolBar(style, id, name);
|
|
||||||
if (*m_wxFrameExtCreateToolBar != NULL){
|
|
||||||
return m_wxFrameExtCreateToolBar(this, style, id, name);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtSetToolBarFunc m_wxFrameExtSetToolBar = NULL;
|
|
||||||
virtual void SetToolBar(wxToolBar* toolbar) override
|
|
||||||
{
|
|
||||||
wxFrame::SetToolBar(toolbar);
|
|
||||||
if (*m_wxFrameExtSetToolBar != NULL){
|
|
||||||
return m_wxFrameExtSetToolBar(this, toolbar);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtOnCreateStatusBarFunc m_wxFrameExtOnCreateStatusBar = NULL;
|
|
||||||
virtual wxStatusBar* OnCreateStatusBar(int number = 1, long style = wxSTB_DEFAULT_STYLE, wxWindowID id = 0, wxString const& name = wxASCII_STR(wxStatusLineNameStr)) override
|
|
||||||
{
|
|
||||||
wxStatusBar* res = wxFrame::OnCreateStatusBar(number, style, id, name);
|
|
||||||
if (*m_wxFrameExtOnCreateStatusBar != NULL){
|
|
||||||
return m_wxFrameExtOnCreateStatusBar(this, number, style, id, name);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtSetStatusBarFunc m_wxFrameExtSetStatusBar = NULL;
|
|
||||||
virtual void SetStatusBar(wxStatusBar* statbar) override
|
|
||||||
{
|
|
||||||
wxFrame::SetStatusBar(statbar);
|
|
||||||
if (*m_wxFrameExtSetStatusBar != NULL){
|
|
||||||
return m_wxFrameExtSetStatusBar(this, statbar);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtPositionToolBarFunc m_wxFrameExtPositionToolBar = NULL;
|
|
||||||
virtual void PositionToolBar() override
|
|
||||||
{
|
|
||||||
wxFrame::PositionToolBar();
|
|
||||||
if (*m_wxFrameExtPositionToolBar != NULL){
|
|
||||||
return m_wxFrameExtPositionToolBar(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtPositionStatusBarFunc m_wxFrameExtPositionStatusBar = NULL;
|
|
||||||
virtual void PositionStatusBar() override
|
|
||||||
{
|
|
||||||
wxFrame::PositionStatusBar();
|
|
||||||
if (*m_wxFrameExtPositionStatusBar != NULL){
|
|
||||||
return m_wxFrameExtPositionStatusBar(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtDoGetClientSizeFunc m_wxFrameExtDoGetClientSize = NULL;
|
|
||||||
virtual void DoGetClientSize(int* width, int* height) const override
|
|
||||||
{
|
|
||||||
wxFrame::DoGetClientSize(width, height);
|
|
||||||
if (*m_wxFrameExtDoGetClientSize != NULL){
|
|
||||||
return m_wxFrameExtDoGetClientSize(this, width, height);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtDoSetClientSizeFunc m_wxFrameExtDoSetClientSize = NULL;
|
|
||||||
virtual void DoSetClientSize(int width, int height) override
|
|
||||||
{
|
|
||||||
wxFrame::DoSetClientSize(width, height);
|
|
||||||
if (*m_wxFrameExtDoSetClientSize != NULL){
|
|
||||||
return m_wxFrameExtDoSetClientSize(this, width, height);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtDetachMenuBarFunc m_wxFrameExtDetachMenuBar = NULL;
|
|
||||||
virtual void DetachMenuBar() override
|
|
||||||
{
|
|
||||||
wxFrame::DetachMenuBar();
|
|
||||||
if (*m_wxFrameExtDetachMenuBar != NULL){
|
|
||||||
return m_wxFrameExtDetachMenuBar(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtAttachMenuBarFunc m_wxFrameExtAttachMenuBar = NULL;
|
|
||||||
virtual void AttachMenuBar(wxMenuBar* menubar) override
|
|
||||||
{
|
|
||||||
wxFrame::AttachMenuBar(menubar);
|
|
||||||
if (*m_wxFrameExtAttachMenuBar != NULL){
|
|
||||||
return m_wxFrameExtAttachMenuBar(this, menubar);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtMacIsChildOfClientAreaFunc m_wxFrameExtMacIsChildOfClientArea = NULL;
|
|
||||||
virtual bool MacIsChildOfClientArea(wxWindow const* child) const override
|
|
||||||
{
|
|
||||||
bool res = wxFrame::MacIsChildOfClientArea(child);
|
|
||||||
if (*m_wxFrameExtMacIsChildOfClientArea != NULL){
|
|
||||||
return m_wxFrameExtMacIsChildOfClientArea(this, child);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExtGetClassInfoFunc m_wxFrameExtGetClassInfo = NULL;
|
|
||||||
virtual wxClassInfo* GetClassInfo() const override
|
|
||||||
{
|
|
||||||
wxClassInfo* res = wxFrame::GetClassInfo();
|
|
||||||
if (*m_wxFrameExtGetClassInfo != NULL){
|
|
||||||
return m_wxFrameExtGetClassInfo(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxFrameExt(wxFrameExtGetClientAreaOriginFunc a_GetClientAreaOrigin, wxFrameExtShowFunc a_Show, wxFrameExtEnableFunc a_Enable, wxFrameExtCreateToolBarFunc a_CreateToolBar, wxFrameExtSetToolBarFunc a_SetToolBar, wxFrameExtOnCreateStatusBarFunc a_OnCreateStatusBar, wxFrameExtSetStatusBarFunc a_SetStatusBar, wxFrameExtPositionToolBarFunc a_PositionToolBar, wxFrameExtPositionStatusBarFunc a_PositionStatusBar, wxFrameExtDoGetClientSizeFunc a_DoGetClientSize, wxFrameExtDoSetClientSizeFunc a_DoSetClientSize, wxFrameExtDetachMenuBarFunc a_DetachMenuBar, wxFrameExtAttachMenuBarFunc a_AttachMenuBar, wxFrameExtMacIsChildOfClientAreaFunc a_MacIsChildOfClientArea, wxFrameExtGetClassInfoFunc a_GetClassInfo): wxFrame() {
|
|
||||||
m_wxFrameExtGetClientAreaOrigin = a_GetClientAreaOrigin;
|
|
||||||
m_wxFrameExtShow = a_Show;
|
|
||||||
m_wxFrameExtEnable = a_Enable;
|
|
||||||
m_wxFrameExtCreateToolBar = a_CreateToolBar;
|
|
||||||
m_wxFrameExtSetToolBar = a_SetToolBar;
|
|
||||||
m_wxFrameExtOnCreateStatusBar = a_OnCreateStatusBar;
|
|
||||||
m_wxFrameExtSetStatusBar = a_SetStatusBar;
|
|
||||||
m_wxFrameExtPositionToolBar = a_PositionToolBar;
|
|
||||||
m_wxFrameExtPositionStatusBar = a_PositionStatusBar;
|
|
||||||
m_wxFrameExtDoGetClientSize = a_DoGetClientSize;
|
|
||||||
m_wxFrameExtDoSetClientSize = a_DoSetClientSize;
|
|
||||||
m_wxFrameExtDetachMenuBar = a_DetachMenuBar;
|
|
||||||
m_wxFrameExtAttachMenuBar = a_AttachMenuBar;
|
|
||||||
m_wxFrameExtMacIsChildOfClientArea = a_MacIsChildOfClientArea;
|
|
||||||
m_wxFrameExtGetClassInfo = a_GetClassInfo;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,345 +0,0 @@
|
||||||
#ifndef _WX_OSX_TOPLEVEL_H_EXT_
|
|
||||||
#define _WX_OSX_TOPLEVEL_H_EXT_
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
#include <wx/vidmode.h>
|
|
||||||
|
|
||||||
class wxTopLevelWindowMacExt;
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtDestroyFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef wxPoint (*wxTopLevelWindowMacExtGetClientAreaOriginFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtRequestUserAttentionFunc)(const wxTopLevelWindowMacExt* self, int flags);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtMaximizeFunc)(const wxTopLevelWindowMacExt* self, bool maximize);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtIsMaximizedFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtIconizeFunc)(const wxTopLevelWindowMacExt* self, bool iconize);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtIsIconizedFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtRestoreFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtIsActiveFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtShowWithoutActivatingFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtEnableFullScreenViewFunc)(const wxTopLevelWindowMacExt* self, bool enable, long style);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtShowFullScreenFunc)(const wxTopLevelWindowMacExt* self, bool show, long style);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtIsFullScreenFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef wxContentProtection (*wxTopLevelWindowMacExtGetContentProtectionFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtSetContentProtectionFunc)(const wxTopLevelWindowMacExt* self, wxContentProtection contentProtection);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtSetTitleFunc)(const wxTopLevelWindowMacExt* self, wxString const& title);
|
|
||||||
typedef wxString (*wxTopLevelWindowMacExtGetTitleFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtEnableCloseButtonFunc)(const wxTopLevelWindowMacExt* self, bool enable);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtEnableMaximizeButtonFunc)(const wxTopLevelWindowMacExt* self, bool enable);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtEnableMinimizeButtonFunc)(const wxTopLevelWindowMacExt* self, bool enable);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtSetLabelFunc)(const wxTopLevelWindowMacExt* self, wxString const& label);
|
|
||||||
typedef wxString (*wxTopLevelWindowMacExtGetLabelFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtOSXSetModifiedFunc)(const wxTopLevelWindowMacExt* self, bool modified);
|
|
||||||
typedef bool (*wxTopLevelWindowMacExtOSXIsModifiedFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef void (*wxTopLevelWindowMacExtSetRepresentedFilenameFunc)(const wxTopLevelWindowMacExt* self, wxString const& filename);
|
|
||||||
typedef wxEventTable const* (*wxTopLevelWindowMacExtGetEventTableFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
typedef wxEventHashTable& (*wxTopLevelWindowMacExtGetEventHashTableFunc)(const wxTopLevelWindowMacExt* self);
|
|
||||||
|
|
||||||
class wxTopLevelWindowMacExt: public wxTopLevelWindowMac
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxTopLevelWindowMacExt(): wxTopLevelWindowMac() { }
|
|
||||||
wxTopLevelWindowMacExt(wxWindow* parent, wxWindowID id, wxString const& title, wxPoint const& pos = wxDefaultPosition, wxSize const& size = wxDefaultSize, long style = (0x0800 | 0x0040 | 0x0400 | 0x0200 | 0x1000 | 0x20000000 | 0x00400000), wxString const& name = wxString::FromAscii(wxFrameNameStr)): wxTopLevelWindowMac(parent, id, title, pos, size, style, name) { }
|
|
||||||
virtual ~wxTopLevelWindowMacExt() override { }
|
|
||||||
wxTopLevelWindowMacExtDestroyFunc m_wxTopLevelWindowMacExtDestroy = NULL;
|
|
||||||
virtual bool Destroy() override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::Destroy();
|
|
||||||
if (*m_wxTopLevelWindowMacExtDestroy != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtDestroy(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtGetClientAreaOriginFunc m_wxTopLevelWindowMacExtGetClientAreaOrigin = NULL;
|
|
||||||
virtual wxPoint GetClientAreaOrigin() const override
|
|
||||||
{
|
|
||||||
wxPoint res = wxTopLevelWindowMac::GetClientAreaOrigin();
|
|
||||||
if (*m_wxTopLevelWindowMacExtGetClientAreaOrigin != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtGetClientAreaOrigin(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtRequestUserAttentionFunc m_wxTopLevelWindowMacExtRequestUserAttention = NULL;
|
|
||||||
virtual void RequestUserAttention(int flags = wxUSER_ATTENTION_INFO) override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::RequestUserAttention(flags);
|
|
||||||
if (*m_wxTopLevelWindowMacExtRequestUserAttention != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtRequestUserAttention(this, flags);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtMaximizeFunc m_wxTopLevelWindowMacExtMaximize = NULL;
|
|
||||||
virtual void Maximize(bool maximize = true) override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::Maximize(maximize);
|
|
||||||
if (*m_wxTopLevelWindowMacExtMaximize != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtMaximize(this, maximize);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtIsMaximizedFunc m_wxTopLevelWindowMacExtIsMaximized = NULL;
|
|
||||||
virtual bool IsMaximized() const override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::IsMaximized();
|
|
||||||
if (*m_wxTopLevelWindowMacExtIsMaximized != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtIsMaximized(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtIconizeFunc m_wxTopLevelWindowMacExtIconize = NULL;
|
|
||||||
virtual void Iconize(bool iconize = true) override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::Iconize(iconize);
|
|
||||||
if (*m_wxTopLevelWindowMacExtIconize != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtIconize(this, iconize);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtIsIconizedFunc m_wxTopLevelWindowMacExtIsIconized = NULL;
|
|
||||||
virtual bool IsIconized() const override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::IsIconized();
|
|
||||||
if (*m_wxTopLevelWindowMacExtIsIconized != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtIsIconized(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtRestoreFunc m_wxTopLevelWindowMacExtRestore = NULL;
|
|
||||||
virtual void Restore() override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::Restore();
|
|
||||||
if (*m_wxTopLevelWindowMacExtRestore != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtRestore(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtIsActiveFunc m_wxTopLevelWindowMacExtIsActive = NULL;
|
|
||||||
virtual bool IsActive() override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::IsActive();
|
|
||||||
if (*m_wxTopLevelWindowMacExtIsActive != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtIsActive(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtShowWithoutActivatingFunc m_wxTopLevelWindowMacExtShowWithoutActivating = NULL;
|
|
||||||
virtual void ShowWithoutActivating() override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::ShowWithoutActivating();
|
|
||||||
if (*m_wxTopLevelWindowMacExtShowWithoutActivating != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtShowWithoutActivating(this);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtEnableFullScreenViewFunc m_wxTopLevelWindowMacExtEnableFullScreenView = NULL;
|
|
||||||
virtual bool EnableFullScreenView(bool enable = true, long style = wxFULLSCREEN_ALL) override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::EnableFullScreenView(enable, style);
|
|
||||||
if (*m_wxTopLevelWindowMacExtEnableFullScreenView != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtEnableFullScreenView(this, enable, style);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtShowFullScreenFunc m_wxTopLevelWindowMacExtShowFullScreen = NULL;
|
|
||||||
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL) override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::ShowFullScreen(show, style);
|
|
||||||
if (*m_wxTopLevelWindowMacExtShowFullScreen != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtShowFullScreen(this, show, style);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtIsFullScreenFunc m_wxTopLevelWindowMacExtIsFullScreen = NULL;
|
|
||||||
virtual bool IsFullScreen() const override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::IsFullScreen();
|
|
||||||
if (*m_wxTopLevelWindowMacExtIsFullScreen != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtIsFullScreen(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtGetContentProtectionFunc m_wxTopLevelWindowMacExtGetContentProtection = NULL;
|
|
||||||
virtual wxContentProtection GetContentProtection() const override
|
|
||||||
{
|
|
||||||
wxContentProtection res = wxTopLevelWindowMac::GetContentProtection();
|
|
||||||
if (*m_wxTopLevelWindowMacExtGetContentProtection != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtGetContentProtection(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtSetContentProtectionFunc m_wxTopLevelWindowMacExtSetContentProtection = NULL;
|
|
||||||
virtual bool SetContentProtection(wxContentProtection contentProtection) override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::SetContentProtection(contentProtection);
|
|
||||||
if (*m_wxTopLevelWindowMacExtSetContentProtection != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtSetContentProtection(this, contentProtection);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtSetTitleFunc m_wxTopLevelWindowMacExtSetTitle = NULL;
|
|
||||||
virtual void SetTitle(wxString const& title) override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::SetTitle(title);
|
|
||||||
if (*m_wxTopLevelWindowMacExtSetTitle != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtSetTitle(this, title);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtGetTitleFunc m_wxTopLevelWindowMacExtGetTitle = NULL;
|
|
||||||
virtual wxString GetTitle() const override
|
|
||||||
{
|
|
||||||
wxString res = wxTopLevelWindowMac::GetTitle();
|
|
||||||
if (*m_wxTopLevelWindowMacExtGetTitle != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtGetTitle(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtEnableCloseButtonFunc m_wxTopLevelWindowMacExtEnableCloseButton = NULL;
|
|
||||||
virtual bool EnableCloseButton(bool enable = true) override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::EnableCloseButton(enable);
|
|
||||||
if (*m_wxTopLevelWindowMacExtEnableCloseButton != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtEnableCloseButton(this, enable);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtEnableMaximizeButtonFunc m_wxTopLevelWindowMacExtEnableMaximizeButton = NULL;
|
|
||||||
virtual bool EnableMaximizeButton(bool enable = true) override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::EnableMaximizeButton(enable);
|
|
||||||
if (*m_wxTopLevelWindowMacExtEnableMaximizeButton != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtEnableMaximizeButton(this, enable);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtEnableMinimizeButtonFunc m_wxTopLevelWindowMacExtEnableMinimizeButton = NULL;
|
|
||||||
virtual bool EnableMinimizeButton(bool enable = true) override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::EnableMinimizeButton(enable);
|
|
||||||
if (*m_wxTopLevelWindowMacExtEnableMinimizeButton != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtEnableMinimizeButton(this, enable);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtSetLabelFunc m_wxTopLevelWindowMacExtSetLabel = NULL;
|
|
||||||
virtual void SetLabel(wxString const& label) override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::SetLabel(label);
|
|
||||||
if (*m_wxTopLevelWindowMacExtSetLabel != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtSetLabel(this, label);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtGetLabelFunc m_wxTopLevelWindowMacExtGetLabel = NULL;
|
|
||||||
virtual wxString GetLabel() const override
|
|
||||||
{
|
|
||||||
wxString res = wxTopLevelWindowMac::GetLabel();
|
|
||||||
if (*m_wxTopLevelWindowMacExtGetLabel != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtGetLabel(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtOSXSetModifiedFunc m_wxTopLevelWindowMacExtOSXSetModified = NULL;
|
|
||||||
virtual void OSXSetModified(bool modified) override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::OSXSetModified(modified);
|
|
||||||
if (*m_wxTopLevelWindowMacExtOSXSetModified != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtOSXSetModified(this, modified);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtOSXIsModifiedFunc m_wxTopLevelWindowMacExtOSXIsModified = NULL;
|
|
||||||
virtual bool OSXIsModified() const override
|
|
||||||
{
|
|
||||||
bool res = wxTopLevelWindowMac::OSXIsModified();
|
|
||||||
if (*m_wxTopLevelWindowMacExtOSXIsModified != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtOSXIsModified(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtSetRepresentedFilenameFunc m_wxTopLevelWindowMacExtSetRepresentedFilename = NULL;
|
|
||||||
virtual void SetRepresentedFilename(wxString const& filename) override
|
|
||||||
{
|
|
||||||
wxTopLevelWindowMac::SetRepresentedFilename(filename);
|
|
||||||
if (*m_wxTopLevelWindowMacExtSetRepresentedFilename != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtSetRepresentedFilename(this, filename);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtGetEventTableFunc m_wxTopLevelWindowMacExtGetEventTable = NULL;
|
|
||||||
virtual wxEventTable const* GetEventTable() const override
|
|
||||||
{
|
|
||||||
wxEventTable const* res = wxTopLevelWindowMac::GetEventTable();
|
|
||||||
if (*m_wxTopLevelWindowMacExtGetEventTable != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtGetEventTable(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExtGetEventHashTableFunc m_wxTopLevelWindowMacExtGetEventHashTable = NULL;
|
|
||||||
virtual wxEventHashTable& GetEventHashTable() const override
|
|
||||||
{
|
|
||||||
wxEventHashTable& res = wxTopLevelWindowMac::GetEventHashTable();
|
|
||||||
if (*m_wxTopLevelWindowMacExtGetEventHashTable != NULL){
|
|
||||||
return m_wxTopLevelWindowMacExtGetEventHashTable(this);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
wxTopLevelWindowMacExt(wxTopLevelWindowMacExtDestroyFunc a_Destroy, wxTopLevelWindowMacExtGetClientAreaOriginFunc a_GetClientAreaOrigin, wxTopLevelWindowMacExtRequestUserAttentionFunc a_RequestUserAttention, wxTopLevelWindowMacExtMaximizeFunc a_Maximize, wxTopLevelWindowMacExtIsMaximizedFunc a_IsMaximized, wxTopLevelWindowMacExtIconizeFunc a_Iconize, wxTopLevelWindowMacExtIsIconizedFunc a_IsIconized, wxTopLevelWindowMacExtRestoreFunc a_Restore, wxTopLevelWindowMacExtIsActiveFunc a_IsActive, wxTopLevelWindowMacExtShowWithoutActivatingFunc a_ShowWithoutActivating, wxTopLevelWindowMacExtEnableFullScreenViewFunc a_EnableFullScreenView, wxTopLevelWindowMacExtShowFullScreenFunc a_ShowFullScreen, wxTopLevelWindowMacExtIsFullScreenFunc a_IsFullScreen, wxTopLevelWindowMacExtGetContentProtectionFunc a_GetContentProtection, wxTopLevelWindowMacExtSetContentProtectionFunc a_SetContentProtection, wxTopLevelWindowMacExtSetTitleFunc a_SetTitle, wxTopLevelWindowMacExtGetTitleFunc a_GetTitle, wxTopLevelWindowMacExtEnableCloseButtonFunc a_EnableCloseButton, wxTopLevelWindowMacExtEnableMaximizeButtonFunc a_EnableMaximizeButton, wxTopLevelWindowMacExtEnableMinimizeButtonFunc a_EnableMinimizeButton, wxTopLevelWindowMacExtSetLabelFunc a_SetLabel, wxTopLevelWindowMacExtGetLabelFunc a_GetLabel, wxTopLevelWindowMacExtOSXSetModifiedFunc a_OSXSetModified, wxTopLevelWindowMacExtOSXIsModifiedFunc a_OSXIsModified, wxTopLevelWindowMacExtSetRepresentedFilenameFunc a_SetRepresentedFilename, wxTopLevelWindowMacExtGetEventTableFunc a_GetEventTable, wxTopLevelWindowMacExtGetEventHashTableFunc a_GetEventHashTable): wxTopLevelWindowMac() {
|
|
||||||
m_wxTopLevelWindowMacExtDestroy = a_Destroy;
|
|
||||||
m_wxTopLevelWindowMacExtGetClientAreaOrigin = a_GetClientAreaOrigin;
|
|
||||||
m_wxTopLevelWindowMacExtRequestUserAttention = a_RequestUserAttention;
|
|
||||||
m_wxTopLevelWindowMacExtMaximize = a_Maximize;
|
|
||||||
m_wxTopLevelWindowMacExtIsMaximized = a_IsMaximized;
|
|
||||||
m_wxTopLevelWindowMacExtIconize = a_Iconize;
|
|
||||||
m_wxTopLevelWindowMacExtIsIconized = a_IsIconized;
|
|
||||||
m_wxTopLevelWindowMacExtRestore = a_Restore;
|
|
||||||
m_wxTopLevelWindowMacExtIsActive = a_IsActive;
|
|
||||||
m_wxTopLevelWindowMacExtShowWithoutActivating = a_ShowWithoutActivating;
|
|
||||||
m_wxTopLevelWindowMacExtEnableFullScreenView = a_EnableFullScreenView;
|
|
||||||
m_wxTopLevelWindowMacExtShowFullScreen = a_ShowFullScreen;
|
|
||||||
m_wxTopLevelWindowMacExtIsFullScreen = a_IsFullScreen;
|
|
||||||
m_wxTopLevelWindowMacExtGetContentProtection = a_GetContentProtection;
|
|
||||||
m_wxTopLevelWindowMacExtSetContentProtection = a_SetContentProtection;
|
|
||||||
m_wxTopLevelWindowMacExtSetTitle = a_SetTitle;
|
|
||||||
m_wxTopLevelWindowMacExtGetTitle = a_GetTitle;
|
|
||||||
m_wxTopLevelWindowMacExtEnableCloseButton = a_EnableCloseButton;
|
|
||||||
m_wxTopLevelWindowMacExtEnableMaximizeButton = a_EnableMaximizeButton;
|
|
||||||
m_wxTopLevelWindowMacExtEnableMinimizeButton = a_EnableMinimizeButton;
|
|
||||||
m_wxTopLevelWindowMacExtSetLabel = a_SetLabel;
|
|
||||||
m_wxTopLevelWindowMacExtGetLabel = a_GetLabel;
|
|
||||||
m_wxTopLevelWindowMacExtOSXSetModified = a_OSXSetModified;
|
|
||||||
m_wxTopLevelWindowMacExtOSXIsModified = a_OSXIsModified;
|
|
||||||
m_wxTopLevelWindowMacExtSetRepresentedFilename = a_SetRepresentedFilename;
|
|
||||||
m_wxTopLevelWindowMacExtGetEventTable = a_GetEventTable;
|
|
||||||
m_wxTopLevelWindowMacExtGetEventHashTable = a_GetEventHashTable;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,17 +0,0 @@
|
||||||
#ifndef _WX_RTTI_H_EXT_
|
|
||||||
#define _WX_RTTI_H_EXT_
|
|
||||||
|
|
||||||
#include <wx/wx.h>
|
|
||||||
#include <wx/vidmode.h>
|
|
||||||
|
|
||||||
class wxClassInfoExt;
|
|
||||||
|
|
||||||
class wxClassInfoExt: public wxClassInfo
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
wxClassInfoExt(wxChar const* className, wxClassInfo const* baseInfo1, wxClassInfo const* baseInfo2, int size, wxObjectConstructorFn ctor): wxClassInfo(className, baseInfo1, baseInfo2, size, ctor) { }
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
#if defined(__WXMSW__)
|
|
||||||
#ifdef __WXUNIVERSAL__
|
|
||||||
#define wxWindowNative wxWindowMSW
|
|
||||||
#else // !wxUniv
|
|
||||||
#define wxWindowMSW wxWindowExt
|
|
||||||
#endif // wxUniv/!wxUniv
|
|
||||||
#include "wxext/msw/window_ext.h"
|
|
||||||
#elif defined(__WXMOTIF__)
|
|
||||||
#include "wxext/motif/window_ext.h"
|
|
||||||
#elif defined(__WXGTK20__)
|
|
||||||
#ifdef __WXUNIVERSAL__
|
|
||||||
#define wxWindowNative wxWindowGTK
|
|
||||||
#else // !wxUniv
|
|
||||||
#define wxWindowGTK wxWindowExt
|
|
||||||
#endif // wxUniv
|
|
||||||
#include "wxext/gtk/window_ext.h"
|
|
||||||
#elif defined(__WXGTK__)
|
|
||||||
#ifdef __WXUNIVERSAL__
|
|
||||||
#define wxWindowNative wxWindowGTK
|
|
||||||
#else // !wxUniv
|
|
||||||
#define wxWindowGTK wxWindowExt
|
|
||||||
#endif // wxUniv
|
|
||||||
#include "wxext/gtk1/window_ext.h"
|
|
||||||
#elif defined(__WXX11__)
|
|
||||||
#ifdef __WXUNIVERSAL__
|
|
||||||
#define wxWindowNative wxWindowX11
|
|
||||||
#else // !wxUniv
|
|
||||||
#define wxWindowX11 wxWindowExt
|
|
||||||
#endif // wxUniv
|
|
||||||
#include "wxext/x11/window_ext.h"
|
|
||||||
#elif defined(__WXDFB__)
|
|
||||||
#define wxWindowNative wxWindowDFB
|
|
||||||
#include "wxext/dfb/window_ext.h"
|
|
||||||
#elif defined(__WXMAC__)
|
|
||||||
#ifdef __WXUNIVERSAL__
|
|
||||||
#define wxWindowNative wxWindowMac
|
|
||||||
#else // !wxUniv
|
|
||||||
#define wxWindowMacExt wxWindowExt
|
|
||||||
#endif // wxUniv
|
|
||||||
#include "wxext/osx/window_ext.h"
|
|
||||||
#elif defined(__WXQT__)
|
|
||||||
#ifdef __WXUNIVERSAL__
|
|
||||||
#define wxWindowNative wxWindowQt
|
|
||||||
#else // !wxUniv
|
|
||||||
#define wxWindowQt wxWindowExt
|
|
||||||
#endif // wxUniv
|
|
||||||
#include "wxext/qt/window_ext.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// for wxUniversal, we now derive the real wxWindow from wxWindow<platform>,
|
|
||||||
// for the native ports we already have defined it above
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
|
||||||
#ifndef wxWindowNative
|
|
||||||
#error "wxWindowNative must be defined above!"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "wxext/univ/window_ext.h"
|
|
||||||
#endif // wxUniv
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue