Virtual progress
This commit is contained in:
parent
30cb0f8f63
commit
3923e84090
14 changed files with 944 additions and 14 deletions
81
swigtemplates/anybutton.i
Normal file
81
swigtemplates/anybutton.i
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
%module anybutton
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
#include "wxext/anybutton_ext.h"
|
||||
%}
|
||||
|
||||
%import "window.i"
|
||||
%import "validate.i"
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/cpp.h"
|
||||
%import "wx/types.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/debug.h"
|
||||
%import "wx/chartype.h"
|
||||
%import "wx/unichar.h"
|
||||
%import "wx/wxcrtbase.h"
|
||||
%import "wx/buffer.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/strconv.h"
|
||||
%import "wx/strvararg.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/rtti.h"
|
||||
%import "wx/fontenc.h"
|
||||
%import "wx/hashmap.h"
|
||||
%import "wx/math.h"
|
||||
%import "wx/localedefs.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/dataobj.h"
|
||||
%import "wx/cursor.h"
|
||||
%import "wx/dnd.h"
|
||||
%import "wx/tooltip.h"
|
||||
%import "wx/palette.h"
|
||||
%import "wx/variant.h"
|
||||
%import "wx/colour.h"
|
||||
%import "wx/font.h"
|
||||
%import "wx/scrolwin.h"
|
||||
%import "wx/sizer.h"
|
||||
%import "wx/layout.h"
|
||||
%import "wx/accel.h"
|
||||
%import "wx/intl.h"
|
||||
%import "wx/utils.h"
|
||||
%import "wx/textentry.h"
|
||||
%import "wx/gdicmn.h"
|
||||
%import "wx/vidmode.h"
|
||||
%import "wx/cmdargs.h"
|
||||
%import "wx/string.h"
|
||||
%import "wx/toplevel.h"
|
||||
%import "wx/frame.h"
|
||||
%import "wx/window.h"
|
||||
%import "wx/control.h"
|
||||
%include "wx/anybutton.h"
|
||||
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
%include "wx/univ/anybutton.h"
|
||||
#elif defined(__WXMSW__)
|
||||
%include "wx/msw/anybutton.h"
|
||||
//#elif defined(__WXMOTIF__)
|
||||
// %include "wx/motif/anybutton.h"
|
||||
#elif defined(__WXGTK20__)
|
||||
%include "wx/gtk/anybutton.h"
|
||||
//#elif defined(__WXGTK__)
|
||||
// %include "wx/gtk1/anybutton.h"
|
||||
#elif defined(__WXMAC__)
|
||||
%include "wx/osx/anybutton.h"
|
||||
#elif defined(__WXQT__)
|
||||
%include "wx/qt/anybutton.h"
|
||||
#else
|
||||
class wxAnyButtonBase: public wxAnyButton{};
|
||||
#endif
|
||||
|
||||
%include "wxext/anybutton_ext.h"
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
%module window
|
||||
%module button
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
#include "wxext/button_ext.h"
|
||||
%}
|
||||
|
||||
%import "anybutton.i"
|
||||
%import "window.i"
|
||||
%import "validate.i"
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
|
|
@ -56,7 +59,6 @@
|
|||
%import "wx/frame.h"
|
||||
%import "wx/window.h"
|
||||
%import "wx/control.h"
|
||||
%import "wx/anybutton.h"
|
||||
%include "wx/button.h"
|
||||
|
||||
#if defined(__WXUNIVERSAL__)
|
||||
|
|
|
|||
49
swigtemplates/colour.i
Normal file
49
swigtemplates/colour.i
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
%module colour
|
||||
%{
|
||||
#include <wx/wx.h>
|
||||
|
||||
#include "wx/colour.h"
|
||||
#include "wxext/colour_ext.h"
|
||||
#if defined(__WXMAC__)
|
||||
#include <objc/runtime.h>
|
||||
#endif
|
||||
|
||||
%}
|
||||
|
||||
%include <common.i>
|
||||
%import "object.i"
|
||||
%import "string.i"
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/variant.h"
|
||||
%include "wx/colour.h"
|
||||
|
||||
#if defined(__WXMSW__)
|
||||
%include "wx/msw/colour.h"
|
||||
#elif defined(__WXMOTIF__)
|
||||
%include "wx/motif/colour.h"
|
||||
#elif defined(__WXGTK20__)
|
||||
%include "wx/gtk/colour.h"
|
||||
#elif defined(__WXGTK__)
|
||||
%include "wx/gtk1/colour.h"
|
||||
#elif defined(__WXDFB__)
|
||||
%include "wx/generic/colour.h"
|
||||
#elif defined(__WXX11__)
|
||||
%include "wx/x11/colour.h"
|
||||
#elif defined(__WXMAC__)
|
||||
%include "wx/osx/core/colour.h"
|
||||
#elif defined(__WXQT__)
|
||||
%include "wx/qt/colour.h"
|
||||
#endif
|
||||
|
||||
%include "wxext/colour_ext.h"
|
||||
|
|
@ -18,6 +18,8 @@
|
|||
%ignore wxEvtHandlerArray::wxEvtHandlerArray(size_t n, Base::const_reference v);
|
||||
|
||||
|
||||
%rename(toEventType) operator const wxEventType&;
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
|
|
@ -39,6 +41,50 @@
|
|||
%include "wxext/event_ext.h"
|
||||
%include "wxext/eventfilter_ext.h"
|
||||
|
||||
%template(wxEventTypeTagwxCommandEvent) wxEventTypeTag<wxCommandEvent>;
|
||||
%template(wxEventTypeTagwxScrollEvent) wxEventTypeTag<wxScrollEvent>;
|
||||
%template(wxEventTypeTagwxScrollWinEvent) wxEventTypeTag<wxScrollWinEvent>;
|
||||
%template(wxEventTypeTagwxSizeEvent) wxEventTypeTag<wxSizeEvent>;
|
||||
%template(wxEventTypeTagwxMoveEvent) wxEventTypeTag<wxMoveEvent>;
|
||||
%template(wxEventTypeTagwxPaintEvent) wxEventTypeTag<wxPaintEvent>;
|
||||
%template(wxEventTypeTagwxNcPaintEvent) wxEventTypeTag<wxNcPaintEvent>;
|
||||
%template(wxEventTypeTagwxEraseEvent) wxEventTypeTag<wxEraseEvent>;
|
||||
%template(wxEventTypeTagwxMouseEvent) wxEventTypeTag<wxMouseEvent>;
|
||||
%template(wxEventTypeTagwxKeyEvent) wxEventTypeTag<wxKeyEvent>;
|
||||
%template(wxEventTypeTagwxFocusEvent) wxEventTypeTag<wxFocusEvent>;
|
||||
%template(wxEventTypeTagwxChildFocusEvent) wxEventTypeTag<wxChildFocusEvent>;
|
||||
%template(wxEventTypeTagwxActivateEvent) wxEventTypeTag<wxActivateEvent>;
|
||||
%template(wxEventTypeTagwxMenuEvent) wxEventTypeTag<wxMenuEvent>;
|
||||
%template(wxEventTypeTagwxJoystickEvent) wxEventTypeTag<wxJoystickEvent>;
|
||||
%template(wxEventTypeTagwxDropFilesEvent) wxEventTypeTag<wxDropFilesEvent>;
|
||||
%template(wxEventTypeTagwxInitDialogEvent) wxEventTypeTag<wxInitDialogEvent>;
|
||||
%template(wxEventTypeTagwxSysColourChangedEvent) wxEventTypeTag<wxSysColourChangedEvent>;
|
||||
%template(wxEventTypeTagwxDisplayChangedEvent) wxEventTypeTag<wxDisplayChangedEvent>;
|
||||
%template(wxEventTypeTagwxDPIChangedEvent) wxEventTypeTag<wxDPIChangedEvent>;
|
||||
%template(wxEventTypeTagwxUpdateUIEvent) wxEventTypeTag<wxUpdateUIEvent>;
|
||||
%template(wxEventTypeTagwxCloseEvent) wxEventTypeTag<wxCloseEvent>;
|
||||
%template(wxEventTypeTagwxShowEvent) wxEventTypeTag<wxShowEvent>;
|
||||
%template(wxEventTypeTagwxIconizeEvent) wxEventTypeTag<wxIconizeEvent>;
|
||||
%template(wxEventTypeTagwxMaximizeEvent) wxEventTypeTag<wxMaximizeEvent>;
|
||||
%template(wxEventTypeTagwxNavigationKeyEvent) wxEventTypeTag<wxNavigationKeyEvent>;
|
||||
%template(wxEventTypeTagwxPaletteChangedEvent) wxEventTypeTag<wxPaletteChangedEvent>;
|
||||
%template(wxEventTypeTagwxQueryNewPaletteEvent) wxEventTypeTag<wxQueryNewPaletteEvent>;
|
||||
%template(wxEventTypeTagwxWindowCreateEvent) wxEventTypeTag<wxWindowCreateEvent>;
|
||||
%template(wxEventTypeTagwxWindowDestroyEvent) wxEventTypeTag<wxWindowDestroyEvent>;
|
||||
%template(wxEventTypeTagwxSetCursorEvent) wxEventTypeTag<wxSetCursorEvent>;
|
||||
%template(wxEventTypeTagwxNotifyEvent) wxEventTypeTag<wxNotifyEvent>;
|
||||
%template(wxEventTypeTagwxHelpEvent) wxEventTypeTag<wxHelpEvent>;
|
||||
%template(wxEventTypeTagwxContextMenuEvent) wxEventTypeTag<wxContextMenuEvent>;
|
||||
%template(wxEventTypeTagwxMouseCaptureChangedEvent) wxEventTypeTag<wxMouseCaptureChangedEvent>;
|
||||
%template(wxEventTypeTagwxMouseCaptureLostEvent) wxEventTypeTag<wxMouseCaptureLostEvent>;
|
||||
%template(wxEventTypeTagwxClipboardTextEvent) wxEventTypeTag<wxClipboardTextEvent>;
|
||||
%template(wxEventTypeTagwxPanGestureEvent) wxEventTypeTag<wxPanGestureEvent>;
|
||||
%template(wxEventTypeTagwxZoomGestureEvent) wxEventTypeTag<wxZoomGestureEvent>;
|
||||
%template(wxEventTypeTagwxRotateGestureEvent) wxEventTypeTag<wxRotateGestureEvent>;
|
||||
%template(wxEventTypeTagwxTwoFingerTapEvent) wxEventTypeTag<wxTwoFingerTapEvent>;
|
||||
%template(wxEventTypeTagwxLongPressEvent) wxEventTypeTag<wxLongPressEvent>;
|
||||
%template(wxEventTypeTagwxPressAndTapEvent) wxEventTypeTag<wxPressAndTapEvent>;
|
||||
|
||||
/* For some reason this doesn't work. Figure out why */
|
||||
|
||||
/* %template(wxBaseArrayForwxEventTableEntryPointerArray) wxBaseArray<wxEvtHandler*>; */
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@
|
|||
%ignore wxCreateApp;
|
||||
%ignore wxTheAppInitializer;
|
||||
|
||||
%import "string.i"
|
||||
%import "object.i"
|
||||
%import "window.i"
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
%module window
|
||||
%module panel
|
||||
%include <common.i>
|
||||
%{
|
||||
#include <wx/vidmode.h>
|
||||
#include "wxext/panel_ext.h"
|
||||
%}
|
||||
|
||||
%import "window.i"
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
%module string
|
||||
%include <common.i>
|
||||
|
||||
%import "object.i"
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
|
|
|
|||
33
swigtemplates/validate.i
Normal file
33
swigtemplates/validate.i
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
%module validate
|
||||
%{
|
||||
#include <wx/event.h>
|
||||
|
||||
#include "wxext/validate_ext.h"
|
||||
#if defined(__WXMAC__)
|
||||
#include <objc/runtime.h>
|
||||
#endif
|
||||
|
||||
%}
|
||||
|
||||
%include <common.i>
|
||||
%import "event.i"
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
#undef wxUSE_STD_CONTAINERS
|
||||
#define wxUSE_STD_CONTAINERS 1
|
||||
%import "wx/compiler.h"
|
||||
%import "wx/dlimpexp.h"
|
||||
%import "wx/platform.h"
|
||||
%import "wx/object.h"
|
||||
%import "wx/typeinfo.h"
|
||||
%import "wx/defs.h"
|
||||
%import "wx/vector.h"
|
||||
%import "wx/dynarray.h"
|
||||
%import "wx/list.h"
|
||||
%import "wx/kbdstate.h"
|
||||
%import "wx/mousestate.h"
|
||||
%import "wx/tracker.h"
|
||||
%import "wx/event.h"
|
||||
%import "wx/validate.h"
|
||||
%include "wxext/validate_ext.h"
|
||||
|
|
@ -5,6 +5,10 @@
|
|||
#include "wxext/window_ext.h"
|
||||
%}
|
||||
|
||||
%import "object.i"
|
||||
%import "string.i"
|
||||
%import "validate.i"
|
||||
%import "colour.i"
|
||||
|
||||
%import "wx/setup.h"
|
||||
#undef HAVE_VISIBILITY
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue