Upgrade WX to r74856, mainly to support @2x.

This commit is contained in:
comex
2013-09-22 18:44:55 -04:00
parent 0bdef3932f
commit 66ed9a1804
1935 changed files with 45373 additions and 22739 deletions

View File

@ -1,4 +1,4 @@
# gtk, msw, osx and shared files as of r70933 # gtk, msw, osx and shared files as of r74856
set(SRCS_AUI set(SRCS_AUI
"src/aui/auibar.cpp" "src/aui/auibar.cpp"
@ -6,6 +6,7 @@ set(SRCS_AUI
"src/aui/dockart.cpp" "src/aui/dockart.cpp"
"src/aui/floatpane.cpp" "src/aui/floatpane.cpp"
"src/aui/framemanager.cpp" "src/aui/framemanager.cpp"
"src/aui/tabart.cpp"
"src/aui/tabmdi.cpp") "src/aui/tabmdi.cpp")
set(SRCS_COMMON set(SRCS_COMMON
@ -151,6 +152,7 @@ set(SRCS_COMMON
#"src/common/memory.cpp" #"src/common/memory.cpp"
"src/common/menucmn.cpp" "src/common/menucmn.cpp"
"src/common/mimecmn.cpp" "src/common/mimecmn.cpp"
"src/common/modalhook.cpp"
"src/common/module.cpp" "src/common/module.cpp"
"src/common/mousemanager.cpp" "src/common/mousemanager.cpp"
"src/common/msgout.cpp" "src/common/msgout.cpp"
@ -168,6 +170,7 @@ set(SRCS_COMMON
"src/common/platinfo.cpp" "src/common/platinfo.cpp"
"src/common/popupcmn.cpp" "src/common/popupcmn.cpp"
"src/common/powercmn.cpp" "src/common/powercmn.cpp"
"src/common/preferencescmn.cpp"
"src/common/prntbase.cpp" "src/common/prntbase.cpp"
"src/common/process.cpp" "src/common/process.cpp"
"src/common/protocol.cpp" "src/common/protocol.cpp"
@ -216,6 +219,8 @@ set(SRCS_COMMON
"src/common/textcmn.cpp" "src/common/textcmn.cpp"
"src/common/textentrycmn.cpp" "src/common/textentrycmn.cpp"
"src/common/textfile.cpp" "src/common/textfile.cpp"
"src/common/textmeasurecmn.cpp"
"src/common/threadinfo.cpp"
"src/common/time.cpp" "src/common/time.cpp"
"src/common/timercmn.cpp" "src/common/timercmn.cpp"
"src/common/timerimpl.cpp" "src/common/timerimpl.cpp"
@ -236,6 +241,7 @@ set(SRCS_COMMON
"src/common/valtext.cpp" "src/common/valtext.cpp"
"src/common/variant.cpp" "src/common/variant.cpp"
#"src/common/webview.cpp" #"src/common/webview.cpp"
#"src/common/webviewfshandler.cpp"
"src/common/wfstream.cpp" "src/common/wfstream.cpp"
"src/common/wincmn.cpp" "src/common/wincmn.cpp"
"src/common/windowid.cpp" "src/common/windowid.cpp"
@ -317,6 +323,7 @@ set(SRCS_GENERIC
"src/generic/statusbr.cpp" "src/generic/statusbr.cpp"
"src/generic/tabg.cpp" "src/generic/tabg.cpp"
"src/generic/textdlgg.cpp" "src/generic/textdlgg.cpp"
"src/generic/textmeasure.cpp"
"src/generic/timectrlg.cpp" "src/generic/timectrlg.cpp"
#"src/generic/timer.cpp" #"src/generic/timer.cpp"
"src/generic/tipdlg.cpp" "src/generic/tipdlg.cpp"
@ -333,7 +340,8 @@ set(SRCS_GENERICGTK
"src/generic/accel.cpp" "src/generic/accel.cpp"
"src/generic/icon.cpp" "src/generic/icon.cpp"
"src/generic/imaglist.cpp" "src/generic/imaglist.cpp"
"src/generic/paletteg.cpp") "src/generic/paletteg.cpp"
"src/generic/preferencesg.cpp")
set(SRCS_GENERICOSX set(SRCS_GENERICOSX
"src/generic/animateg.cpp" "src/generic/animateg.cpp"
@ -345,6 +353,7 @@ set(SRCS_GENERICOSX
"src/generic/fontpickerg.cpp") "src/generic/fontpickerg.cpp")
set(SRCS_GTK set(SRCS_GTK
"src/aui/tabartgtk.cpp"
"src/gtk/aboutdlg.cpp" "src/gtk/aboutdlg.cpp"
"src/gtk/animate.cpp" "src/gtk/animate.cpp"
"src/gtk/anybutton.cpp" "src/gtk/anybutton.cpp"
@ -403,6 +412,7 @@ set(SRCS_GTK
"src/gtk/nativewin.cpp" "src/gtk/nativewin.cpp"
"src/gtk/nonownedwnd.cpp" "src/gtk/nonownedwnd.cpp"
"src/gtk/notebook.cpp" "src/gtk/notebook.cpp"
"src/gtk/notifmsg.cpp"
"src/gtk/pen.cpp" "src/gtk/pen.cpp"
"src/gtk/popupwin.cpp" "src/gtk/popupwin.cpp"
#"src/gtk/print.cpp" #"src/gtk/print.cpp"
@ -425,6 +435,7 @@ set(SRCS_GTK
"src/gtk/taskbar.cpp" "src/gtk/taskbar.cpp"
"src/gtk/textctrl.cpp" "src/gtk/textctrl.cpp"
"src/gtk/textentry.cpp" "src/gtk/textentry.cpp"
"src/gtk/textmeasure.cpp"
"src/gtk/tglbtn.cpp" "src/gtk/tglbtn.cpp"
"src/gtk/timer.cpp" "src/gtk/timer.cpp"
"src/gtk/toolbar.cpp" "src/gtk/toolbar.cpp"
@ -483,6 +494,7 @@ set(SRCS_MSW
"src/msw/dragimag.cpp" "src/msw/dragimag.cpp"
"src/msw/enhmeta.cpp" "src/msw/enhmeta.cpp"
"src/msw/evtloop.cpp" "src/msw/evtloop.cpp"
#"src/msw/evtloopconsole.cpp"
"src/msw/fdrepdlg.cpp" "src/msw/fdrepdlg.cpp"
"src/msw/filedlg.cpp" "src/msw/filedlg.cpp"
"src/msw/font.cpp" "src/msw/font.cpp"
@ -533,6 +545,7 @@ set(SRCS_MSW
"src/msw/ole/dropsrc.cpp" "src/msw/ole/dropsrc.cpp"
"src/msw/ole/droptgt.cpp" "src/msw/ole/droptgt.cpp"
"src/msw/ole/oleutils.cpp" "src/msw/ole/oleutils.cpp"
"src/msw/ole/safearray.cpp"
"src/msw/ole/uuid.cpp" "src/msw/ole/uuid.cpp"
"src/msw/ownerdrw.cpp" "src/msw/ownerdrw.cpp"
"src/msw/palette.cpp" "src/msw/palette.cpp"
@ -559,7 +572,7 @@ set(SRCS_MSW
"src/msw/sound.cpp" "src/msw/sound.cpp"
"src/msw/spinbutt.cpp" "src/msw/spinbutt.cpp"
"src/msw/spinctrl.cpp" "src/msw/spinctrl.cpp"
#"src/msw/stackwalk.cpp" "src/msw/stackwalk.cpp"
"src/msw/statbmp.cpp" "src/msw/statbmp.cpp"
"src/msw/statbox.cpp" "src/msw/statbox.cpp"
"src/msw/statline.cpp" "src/msw/statline.cpp"
@ -569,6 +582,7 @@ set(SRCS_MSW
"src/msw/taskbar.cpp" "src/msw/taskbar.cpp"
"src/msw/textctrl.cpp" "src/msw/textctrl.cpp"
"src/msw/textentry.cpp" "src/msw/textentry.cpp"
"src/msw/textmeasure.cpp"
"src/msw/tglbtn.cpp" "src/msw/tglbtn.cpp"
"src/msw/thread.cpp" "src/msw/thread.cpp"
"src/msw/timectrl.cpp" "src/msw/timectrl.cpp"
@ -582,6 +596,7 @@ set(SRCS_MSW
"src/msw/utils.cpp" "src/msw/utils.cpp"
"src/msw/utilsexc.cpp" "src/msw/utilsexc.cpp"
"src/msw/utilsgui.cpp" "src/msw/utilsgui.cpp"
"src/msw/utilswin.cpp"
"src/msw/uxtheme.cpp" "src/msw/uxtheme.cpp"
"src/msw/version.rc" "src/msw/version.rc"
"src/msw/volume.cpp" "src/msw/volume.cpp"
@ -635,7 +650,6 @@ set(SRCS_OSX
"src/osx/slider_osx.cpp" "src/osx/slider_osx.cpp"
"src/osx/sound_osx.cpp" "src/osx/sound_osx.cpp"
"src/osx/spinbutt_osx.cpp" "src/osx/spinbutt_osx.cpp"
"src/osx/spinctrl_osx.cpp"
"src/osx/srchctrl_osx.cpp" "src/osx/srchctrl_osx.cpp"
"src/osx/statbox_osx.cpp" "src/osx/statbox_osx.cpp"
"src/osx/statline_osx.cpp" "src/osx/statline_osx.cpp"
@ -816,11 +830,12 @@ set(SRCS_UNIX
#"src/unix/net.cpp" #"src/unix/net.cpp"
"src/unix/snglinst.cpp" "src/unix/snglinst.cpp"
"src/unix/sockunix.cpp" "src/unix/sockunix.cpp"
#"src/unix/stackwalk.cpp" "src/unix/stackwalk.cpp"
"src/unix/stdpaths.cpp" "src/unix/stdpaths.cpp"
"src/unix/threadpsx.cpp" "src/unix/threadpsx.cpp"
"src/unix/timerunx.cpp" "src/unix/timerunx.cpp"
"src/unix/utilsunx.cpp") "src/unix/utilsunx.cpp"
"src/unix/wakeuppipe.cpp")
set(SRCS_UNIXGTK set(SRCS_UNIXGTK
"src/unix/dialup.cpp" "src/unix/dialup.cpp"
@ -890,6 +905,10 @@ endif()
add_definitions(-DWXBUILDING) add_definitions(-DWXBUILDING)
add_definitions(-Wno-deprecated-declarations) add_definitions(-Wno-deprecated-declarations)
add_definitions(-Wno-shadow) add_definitions(-Wno-shadow)
add_definitions(-Wno-parentheses-equality)
add_definitions(-Wno-self-assign)
add_definitions(-Wno-null-conversion)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++98")
enable_precompiled_headers(include/wx/wxprec.h src/common/dummy.cpp SRCS) enable_precompiled_headers(include/wx/wxprec.h src/common/dummy.cpp SRCS)
add_library(wx STATIC ${PNG_SRCS} ${SRCS}) add_library(wx STATIC ${PNG_SRCS} ${SRCS})

View File

@ -309,9 +309,11 @@
<ClInclude Include="..\..\include\wx\memtext.h" /> <ClInclude Include="..\..\include\wx\memtext.h" />
<ClInclude Include="..\..\include\wx\menu.h" /> <ClInclude Include="..\..\include\wx\menu.h" />
<ClInclude Include="..\..\include\wx\menuitem.h" /> <ClInclude Include="..\..\include\wx\menuitem.h" />
<ClInclude Include="..\..\include\wx\meta\removeref.h" />
<ClInclude Include="..\..\include\wx\metafile.h" /> <ClInclude Include="..\..\include\wx\metafile.h" />
<ClInclude Include="..\..\include\wx\mimetype.h" /> <ClInclude Include="..\..\include\wx\mimetype.h" />
<ClInclude Include="..\..\include\wx\minifram.h" /> <ClInclude Include="..\..\include\wx\minifram.h" />
<ClInclude Include="..\..\include\wx\modalhook.h" />
<ClInclude Include="..\..\include\wx\module.h" /> <ClInclude Include="..\..\include\wx\module.h" />
<ClInclude Include="..\..\include\wx\mousemanager.h" /> <ClInclude Include="..\..\include\wx\mousemanager.h" />
<ClInclude Include="..\..\include\wx\mousestate.h" /> <ClInclude Include="..\..\include\wx\mousestate.h" />
@ -361,6 +363,7 @@
<ClInclude Include="..\..\include\wx\msw\dragimag.h" /> <ClInclude Include="..\..\include\wx\msw\dragimag.h" />
<ClInclude Include="..\..\include\wx\msw\enhmeta.h" /> <ClInclude Include="..\..\include\wx\msw\enhmeta.h" />
<ClInclude Include="..\..\include\wx\msw\evtloop.h" /> <ClInclude Include="..\..\include\wx\msw\evtloop.h" />
<ClInclude Include="..\..\include\wx\msw\evtloopconsole.h" />
<ClInclude Include="..\..\include\wx\msw\fdrepdlg.h" /> <ClInclude Include="..\..\include\wx\msw\fdrepdlg.h" />
<ClInclude Include="..\..\include\wx\msw\filedlg.h" /> <ClInclude Include="..\..\include\wx\msw\filedlg.h" />
<ClInclude Include="..\..\include\wx\msw\font.h" /> <ClInclude Include="..\..\include\wx\msw\font.h" />
@ -381,6 +384,7 @@
<ClInclude Include="..\..\include\wx\msw\icon.h" /> <ClInclude Include="..\..\include\wx\msw\icon.h" />
<ClInclude Include="..\..\include\wx\msw\imaglist.h" /> <ClInclude Include="..\..\include\wx\msw\imaglist.h" />
<ClInclude Include="..\..\include\wx\msw\iniconf.h" /> <ClInclude Include="..\..\include\wx\msw\iniconf.h" />
<ClInclude Include="..\..\include\wx\msw\init.h" />
<ClInclude Include="..\..\include\wx\msw\joystick.h" /> <ClInclude Include="..\..\include\wx\msw\joystick.h" />
<ClInclude Include="..\..\include\wx\msw\libraries.h" /> <ClInclude Include="..\..\include\wx\msw\libraries.h" />
<ClInclude Include="..\..\include\wx\msw\listbox.h" /> <ClInclude Include="..\..\include\wx\msw\listbox.h" />
@ -418,14 +422,21 @@
<ClInclude Include="..\..\include\wx\msw\printwin.h" /> <ClInclude Include="..\..\include\wx\msw\printwin.h" />
<ClInclude Include="..\..\include\wx\msw\private.h" /> <ClInclude Include="..\..\include\wx\msw\private.h" />
<ClInclude Include="..\..\include\wx\msw\private\button.h" /> <ClInclude Include="..\..\include\wx\msw\private\button.h" />
<ClInclude Include="..\..\include\wx\msw\private\comptr.h" />
<ClInclude Include="..\..\include\wx\msw\private\datecontrols.h" /> <ClInclude Include="..\..\include\wx\msw\private\datecontrols.h" />
<ClInclude Include="..\..\include\wx\msw\private\dc.h" /> <ClInclude Include="..\..\include\wx\msw\private\dc.h" />
<ClInclude Include="..\..\include\wx\msw\private\eventloopsourcesmanager.h" />
<ClInclude Include="..\..\include\wx\msw\private\fdeventloopsourcesmanager.h" />
<ClInclude Include="..\..\include\wx\msw\private\fswatcher.h" /> <ClInclude Include="..\..\include\wx\msw\private\fswatcher.h" />
<ClInclude Include="..\..\include\wx\msw\private\hiddenwin.h" /> <ClInclude Include="..\..\include\wx\msw\private\hiddenwin.h" />
<ClInclude Include="..\..\include\wx\msw\private\keyboard.h" /> <ClInclude Include="..\..\include\wx\msw\private\keyboard.h" />
<ClInclude Include="..\..\include\wx\msw\private\metrics.h" /> <ClInclude Include="..\..\include\wx\msw\private\metrics.h" />
<ClInclude Include="..\..\include\wx\msw\private\msgdlg.h" /> <ClInclude Include="..\..\include\wx\msw\private\msgdlg.h" />
<ClInclude Include="..\..\include\wx\msw\private\preferences.h" />
<ClInclude Include="..\..\include\wx\msw\private\pipestream.h" />
<ClInclude Include="..\..\include\wx\msw\private\sockmsw.h" /> <ClInclude Include="..\..\include\wx\msw\private\sockmsw.h" />
<ClInclude Include="..\..\include\wx\msw\private\streamtempinput.h" />
<ClInclude Include="..\..\include\wx\msw\private\textmeasure.h" />
<ClInclude Include="..\..\include\wx\msw\private\timer.h" /> <ClInclude Include="..\..\include\wx\msw\private\timer.h" />
<ClInclude Include="..\..\include\wx\msw\progdlg.h" /> <ClInclude Include="..\..\include\wx\msw\progdlg.h" />
<ClInclude Include="..\..\include\wx\msw\radiobox.h" /> <ClInclude Include="..\..\include\wx\msw\radiobox.h" />
@ -479,6 +490,7 @@
<ClInclude Include="..\..\include\wx\msw\uxthemep.h" /> <ClInclude Include="..\..\include\wx\msw\uxthemep.h" />
<ClInclude Include="..\..\include\wx\msw\webviewhistoryitem_ie.h" /> <ClInclude Include="..\..\include\wx\msw\webviewhistoryitem_ie.h" />
<ClInclude Include="..\..\include\wx\msw\webview_ie.h" /> <ClInclude Include="..\..\include\wx\msw\webview_ie.h" />
<ClInclude Include="..\..\include\wx\msw\webview_missing.h" />
<ClInclude Include="..\..\include\wx\msw\window.h" /> <ClInclude Include="..\..\include\wx\msw\window.h" />
<ClInclude Include="..\..\include\wx\msw\winundef.h" /> <ClInclude Include="..\..\include\wx\msw\winundef.h" />
<ClInclude Include="..\..\include\wx\msw\wrapcctl.h" /> <ClInclude Include="..\..\include\wx\msw\wrapcctl.h" />
@ -507,6 +519,7 @@
<ClInclude Include="..\..\include\wx\popupwin.h" /> <ClInclude Include="..\..\include\wx\popupwin.h" />
<ClInclude Include="..\..\include\wx\position.h" /> <ClInclude Include="..\..\include\wx\position.h" />
<ClInclude Include="..\..\include\wx\power.h" /> <ClInclude Include="..\..\include\wx\power.h" />
<ClInclude Include="..\..\include\wx\preferences.h" />
<ClInclude Include="..\..\include\wx\print.h" /> <ClInclude Include="..\..\include\wx\print.h" />
<ClInclude Include="..\..\include\wx\printdlg.h" /> <ClInclude Include="..\..\include\wx\printdlg.h" />
<ClInclude Include="..\..\include\wx\prntbase.h" /> <ClInclude Include="..\..\include\wx\prntbase.h" />
@ -543,6 +556,7 @@
<ClInclude Include="..\..\include\wx\setup_inc.h" /> <ClInclude Include="..\..\include\wx\setup_inc.h" />
<ClInclude Include="..\..\include\wx\setup_redirect.h" /> <ClInclude Include="..\..\include\wx\setup_redirect.h" />
<ClInclude Include="..\..\include\wx\sharedptr.h" /> <ClInclude Include="..\..\include\wx\sharedptr.h" />
<ClInclude Include="..\..\include\wx\simplebook.h" />
<ClInclude Include="..\..\include\wx\sizer.h" /> <ClInclude Include="..\..\include\wx\sizer.h" />
<ClInclude Include="..\..\include\wx\slider.h" /> <ClInclude Include="..\..\include\wx\slider.h" />
<ClInclude Include="..\..\include\wx\snglinst.h" /> <ClInclude Include="..\..\include\wx\snglinst.h" />
@ -575,6 +589,7 @@
<ClInclude Include="..\..\include\wx\tarstrm.h" /> <ClInclude Include="..\..\include\wx\tarstrm.h" />
<ClInclude Include="..\..\include\wx\taskbar.h" /> <ClInclude Include="..\..\include\wx\taskbar.h" />
<ClInclude Include="..\..\include\wx\tbarbase.h" /> <ClInclude Include="..\..\include\wx\tbarbase.h" />
<ClInclude Include="..\..\include\wx\testing.h" />
<ClInclude Include="..\..\include\wx\textbuf.h" /> <ClInclude Include="..\..\include\wx\textbuf.h" />
<ClInclude Include="..\..\include\wx\textcompleter.h" /> <ClInclude Include="..\..\include\wx\textcompleter.h" />
<ClInclude Include="..\..\include\wx\textctrl.h" /> <ClInclude Include="..\..\include\wx\textctrl.h" />
@ -627,9 +642,11 @@
<ClInclude Include="..\..\include\wx\weakref.h" /> <ClInclude Include="..\..\include\wx\weakref.h" />
<ClInclude Include="..\..\include\wx\webview.h" /> <ClInclude Include="..\..\include\wx\webview.h" />
<ClInclude Include="..\..\include\wx\webviewarchivehandler.h" /> <ClInclude Include="..\..\include\wx\webviewarchivehandler.h" />
<ClInclude Include="..\..\include\wx\webviewfshandler.h" />
<ClInclude Include="..\..\include\wx\wfstream.h" /> <ClInclude Include="..\..\include\wx\wfstream.h" />
<ClInclude Include="..\..\include\wx\window.h" /> <ClInclude Include="..\..\include\wx\window.h" />
<ClInclude Include="..\..\include\wx\windowid.h" /> <ClInclude Include="..\..\include\wx\windowid.h" />
<ClInclude Include="..\..\include\wx\windowptr.h" />
<ClInclude Include="..\..\include\wx\withimages.h" /> <ClInclude Include="..\..\include\wx\withimages.h" />
<ClInclude Include="..\..\include\wx\wizard.h" /> <ClInclude Include="..\..\include\wx\wizard.h" />
<ClInclude Include="..\..\include\wx\wrapsizer.h" /> <ClInclude Include="..\..\include\wx\wrapsizer.h" />
@ -696,6 +713,7 @@
<ClCompile Include="..\..\src\aui\dockart.cpp" /> <ClCompile Include="..\..\src\aui\dockart.cpp" />
<ClCompile Include="..\..\src\aui\floatpane.cpp" /> <ClCompile Include="..\..\src\aui\floatpane.cpp" />
<ClCompile Include="..\..\src\aui\framemanager.cpp" /> <ClCompile Include="..\..\src\aui\framemanager.cpp" />
<ClCompile Include="..\..\src\aui\tabart.cpp" />
<ClCompile Include="..\..\src\aui\tabmdi.cpp" /> <ClCompile Include="..\..\src\aui\tabmdi.cpp" />
<ClCompile Include="..\..\src\common\accelcmn.cpp" /> <ClCompile Include="..\..\src\common\accelcmn.cpp" />
<ClCompile Include="..\..\src\common\accesscmn.cpp"> <ClCompile Include="..\..\src\common\accesscmn.cpp">
@ -967,6 +985,7 @@
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\common\menucmn.cpp" /> <ClCompile Include="..\..\src\common\menucmn.cpp" />
<ClCompile Include="..\..\src\common\mimecmn.cpp" /> <ClCompile Include="..\..\src\common\mimecmn.cpp" />
<ClCompile Include="..\..\src\common\modalhook.cpp" />
<ClCompile Include="..\..\src\common\module.cpp" /> <ClCompile Include="..\..\src\common\module.cpp" />
<ClCompile Include="..\..\src\common\mousemanager.cpp" /> <ClCompile Include="..\..\src\common\mousemanager.cpp" />
<ClCompile Include="..\..\src\common\msgout.cpp" /> <ClCompile Include="..\..\src\common\msgout.cpp" />
@ -984,6 +1003,7 @@
<ClCompile Include="..\..\src\common\platinfo.cpp" /> <ClCompile Include="..\..\src\common\platinfo.cpp" />
<ClCompile Include="..\..\src\common\popupcmn.cpp" /> <ClCompile Include="..\..\src\common\popupcmn.cpp" />
<ClCompile Include="..\..\src\common\powercmn.cpp" /> <ClCompile Include="..\..\src\common\powercmn.cpp" />
<ClCompile Include="..\..\src\common\preferencescmn.cpp" />
<ClCompile Include="..\..\src\common\prntbase.cpp" /> <ClCompile Include="..\..\src\common\prntbase.cpp" />
<ClCompile Include="..\..\src\common\process.cpp" /> <ClCompile Include="..\..\src\common\process.cpp" />
<ClCompile Include="..\..\src\common\protocol.cpp" /> <ClCompile Include="..\..\src\common\protocol.cpp" />
@ -1047,6 +1067,8 @@
<ClCompile Include="..\..\src\common\textcmn.cpp" /> <ClCompile Include="..\..\src\common\textcmn.cpp" />
<ClCompile Include="..\..\src\common\textentrycmn.cpp" /> <ClCompile Include="..\..\src\common\textentrycmn.cpp" />
<ClCompile Include="..\..\src\common\textfile.cpp" /> <ClCompile Include="..\..\src\common\textfile.cpp" />
<ClCompile Include="..\..\src\common\textmeasurecmn.cpp" />
<ClCompile Include="..\..\src\common\threadinfo.cpp" />
<ClCompile Include="..\..\src\common\time.cpp" /> <ClCompile Include="..\..\src\common\time.cpp" />
<ClCompile Include="..\..\src\common\timercmn.cpp" /> <ClCompile Include="..\..\src\common\timercmn.cpp" />
<ClCompile Include="..\..\src\common\timerimpl.cpp" /> <ClCompile Include="..\..\src\common\timerimpl.cpp" />
@ -1075,6 +1097,7 @@
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugFast|x64'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugFast|x64'">true</ExcludedFromBuild>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\common\webviewarchivehandler.cpp" /> <ClCompile Include="..\..\src\common\webviewarchivehandler.cpp" />
<ClCompile Include="..\..\src\common\webviewfshandler.cpp" />
<ClCompile Include="..\..\src\common\wfstream.cpp" /> <ClCompile Include="..\..\src\common\wfstream.cpp" />
<ClCompile Include="..\..\src\common\wincmn.cpp" /> <ClCompile Include="..\..\src\common\wincmn.cpp" />
<ClCompile Include="..\..\src\common\windowid.cpp" /> <ClCompile Include="..\..\src\common\windowid.cpp" />
@ -1306,6 +1329,7 @@
<ClCompile Include="..\..\src\generic\statusbr.cpp" /> <ClCompile Include="..\..\src\generic\statusbr.cpp" />
<ClCompile Include="..\..\src\generic\tabg.cpp" /> <ClCompile Include="..\..\src\generic\tabg.cpp" />
<ClCompile Include="..\..\src\generic\textdlgg.cpp" /> <ClCompile Include="..\..\src\generic\textdlgg.cpp" />
<ClCompile Include="..\..\src\generic\textmeasure.cpp" />
<ClCompile Include="..\..\src\generic\timectrlg.cpp" /> <ClCompile Include="..\..\src\generic\timectrlg.cpp" />
<ClCompile Include="..\..\src\generic\timer.cpp"> <ClCompile Include="..\..\src\generic\timer.cpp">
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
@ -1370,6 +1394,7 @@
<ClCompile Include="..\..\src\msw\dragimag.cpp" /> <ClCompile Include="..\..\src\msw\dragimag.cpp" />
<ClCompile Include="..\..\src\msw\enhmeta.cpp" /> <ClCompile Include="..\..\src\msw\enhmeta.cpp" />
<ClCompile Include="..\..\src\msw\evtloop.cpp" /> <ClCompile Include="..\..\src\msw\evtloop.cpp" />
<ClCompile Include="..\..\src\msw\evtloopconsole.cpp" />
<ClCompile Include="..\..\src\msw\fdrepdlg.cpp" /> <ClCompile Include="..\..\src\msw\fdrepdlg.cpp" />
<ClCompile Include="..\..\src\msw\filedlg.cpp" /> <ClCompile Include="..\..\src\msw\filedlg.cpp" />
<ClCompile Include="..\..\src\msw\font.cpp" /> <ClCompile Include="..\..\src\msw\font.cpp" />
@ -1462,6 +1487,7 @@
<ClCompile Include="..\..\src\msw\ole\dropsrc.cpp" /> <ClCompile Include="..\..\src\msw\ole\dropsrc.cpp" />
<ClCompile Include="..\..\src\msw\ole\droptgt.cpp" /> <ClCompile Include="..\..\src\msw\ole\droptgt.cpp" />
<ClCompile Include="..\..\src\msw\ole\oleutils.cpp" /> <ClCompile Include="..\..\src\msw\ole\oleutils.cpp" />
<ClCompile Include="..\..\src\msw\ole\safearray.cpp" />
<ClCompile Include="..\..\src\msw\ole\uuid.cpp" /> <ClCompile Include="..\..\src\msw\ole\uuid.cpp" />
<ClCompile Include="..\..\src\msw\ownerdrw.cpp" /> <ClCompile Include="..\..\src\msw\ownerdrw.cpp" />
<ClCompile Include="..\..\src\msw\palette.cpp" /> <ClCompile Include="..\..\src\msw\palette.cpp" />
@ -1499,6 +1525,7 @@
<ClCompile Include="..\..\src\msw\taskbar.cpp" /> <ClCompile Include="..\..\src\msw\taskbar.cpp" />
<ClCompile Include="..\..\src\msw\textctrl.cpp" /> <ClCompile Include="..\..\src\msw\textctrl.cpp" />
<ClCompile Include="..\..\src\msw\textentry.cpp" /> <ClCompile Include="..\..\src\msw\textentry.cpp" />
<ClCompile Include="..\..\src\msw\textmeasure.cpp" />
<ClCompile Include="..\..\src\msw\tglbtn.cpp" /> <ClCompile Include="..\..\src\msw\tglbtn.cpp" />
<ClCompile Include="..\..\src\msw\thread.cpp" /> <ClCompile Include="..\..\src\msw\thread.cpp" />
<ClCompile Include="..\..\src\msw\timectrl.cpp" /> <ClCompile Include="..\..\src\msw\timectrl.cpp" />
@ -1512,6 +1539,7 @@
<ClCompile Include="..\..\src\msw\utils.cpp" /> <ClCompile Include="..\..\src\msw\utils.cpp" />
<ClCompile Include="..\..\src\msw\utilsexc.cpp" /> <ClCompile Include="..\..\src\msw\utilsexc.cpp" />
<ClCompile Include="..\..\src\msw\utilsgui.cpp" /> <ClCompile Include="..\..\src\msw\utilsgui.cpp" />
<ClCompile Include="..\..\src\msw\utilswin.cpp" />
<ClCompile Include="..\..\src\msw\uxtheme.cpp" /> <ClCompile Include="..\..\src\msw\uxtheme.cpp" />
<ClCompile Include="..\..\src\msw\volume.cpp" /> <ClCompile Include="..\..\src\msw\volume.cpp" />
<ClCompile Include="..\..\src\msw\webview_ie.cpp"> <ClCompile Include="..\..\src\msw\webview_ie.cpp">

View File

@ -678,12 +678,18 @@
<ClInclude Include="..\..\include\wx\metafile.h"> <ClInclude Include="..\..\include\wx\metafile.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\meta\removeref.h">
<Filter>Headers</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\mimetype.h"> <ClInclude Include="..\..\include\wx\mimetype.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\minifram.h"> <ClInclude Include="..\..\include\wx\minifram.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\modalhook.h">
<Filter>Headers</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\module.h"> <ClInclude Include="..\..\include\wx\module.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
@ -768,6 +774,9 @@
<ClInclude Include="..\..\include\wx\power.h"> <ClInclude Include="..\..\include\wx\power.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\preferences.h">
<Filter>Headers</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\print.h"> <ClInclude Include="..\..\include\wx\print.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
@ -876,6 +885,9 @@
<ClInclude Include="..\..\include\wx\sharedptr.h"> <ClInclude Include="..\..\include\wx\sharedptr.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\simplebook.h">
<Filter>Headers</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\sizer.h"> <ClInclude Include="..\..\include\wx\sizer.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
@ -972,6 +984,9 @@
<ClInclude Include="..\..\include\wx\tbarbase.h"> <ClInclude Include="..\..\include\wx\tbarbase.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\testing.h">
<Filter>Headers</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\textbuf.h"> <ClInclude Include="..\..\include\wx\textbuf.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
@ -1128,6 +1143,9 @@
<ClInclude Include="..\..\include\wx\webviewarchivehandler.h"> <ClInclude Include="..\..\include\wx\webviewarchivehandler.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\webviewfshandler.h">
<Filter>Headers</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\wfstream.h"> <ClInclude Include="..\..\include\wx\wfstream.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
@ -1137,6 +1155,9 @@
<ClInclude Include="..\..\include\wx\windowid.h"> <ClInclude Include="..\..\include\wx\windowid.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\windowptr.h">
<Filter>Headers</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\withimages.h"> <ClInclude Include="..\..\include\wx\withimages.h">
<Filter>Headers</Filter> <Filter>Headers</Filter>
</ClInclude> </ClInclude>
@ -1380,6 +1401,9 @@
<ClInclude Include="..\..\include\wx\msw\evtloop.h"> <ClInclude Include="..\..\include\wx\msw\evtloop.h">
<Filter>Headers\MSW</Filter> <Filter>Headers\MSW</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\msw\evtloopconsole.h">
<Filter>Headers\MSW</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\fdrepdlg.h"> <ClInclude Include="..\..\include\wx\msw\fdrepdlg.h">
<Filter>Headers\MSW</Filter> <Filter>Headers\MSW</Filter>
</ClInclude> </ClInclude>
@ -1437,6 +1461,9 @@
<ClInclude Include="..\..\include\wx\msw\iniconf.h"> <ClInclude Include="..\..\include\wx\msw\iniconf.h">
<Filter>Headers\MSW</Filter> <Filter>Headers\MSW</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\msw\init.h">
<Filter>Headers\MSW</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\joystick.h"> <ClInclude Include="..\..\include\wx\msw\joystick.h">
<Filter>Headers\MSW</Filter> <Filter>Headers\MSW</Filter>
</ClInclude> </ClInclude>
@ -1653,12 +1680,21 @@
<ClInclude Include="..\..\include\wx\msw\button.h"> <ClInclude Include="..\..\include\wx\msw\button.h">
<Filter>Headers\MSW\private</Filter> <Filter>Headers\MSW\private</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\comptr.h">
<Filter>Headers\MSW</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\datecontrols.h"> <ClInclude Include="..\..\include\wx\msw\private\datecontrols.h">
<Filter>Headers\MSW\private</Filter> <Filter>Headers\MSW\private</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\dc.h"> <ClInclude Include="..\..\include\wx\msw\private\dc.h">
<Filter>Headers\MSW\private</Filter> <Filter>Headers\MSW\private</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\eventloopsourcesmanager.h">
<Filter>Headers\MSW\private</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\fdeventloopsourcesmanager.h">
<Filter>Headers\MSW\private</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\fswatcher.h"> <ClInclude Include="..\..\include\wx\msw\private\fswatcher.h">
<Filter>Headers\MSW\private</Filter> <Filter>Headers\MSW\private</Filter>
</ClInclude> </ClInclude>
@ -1674,9 +1710,21 @@
<ClInclude Include="..\..\include\wx\msw\private\msgdlg.h"> <ClInclude Include="..\..\include\wx\msw\private\msgdlg.h">
<Filter>Headers\MSW\private</Filter> <Filter>Headers\MSW\private</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\preferences.h">
<Filter>Headers\MSW</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\pipestream.h">
<Filter>Headers\MSW</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\sockmsw.h"> <ClInclude Include="..\..\include\wx\msw\private\sockmsw.h">
<Filter>Headers\MSW\private</Filter> <Filter>Headers\MSW\private</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\streamtempinput.h">
<Filter>Headers\MSW</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\textmeasure.h">
<Filter>Headers\MSW</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\private\timer.h"> <ClInclude Include="..\..\include\wx\msw\private\timer.h">
<Filter>Headers\MSW\private</Filter> <Filter>Headers\MSW\private</Filter>
</ClInclude> </ClInclude>
@ -1686,6 +1734,9 @@
<ClInclude Include="..\..\include\wx\msw\fswatcher.h"> <ClInclude Include="..\..\include\wx\msw\fswatcher.h">
<Filter>Headers\MSW</Filter> <Filter>Headers\MSW</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="..\..\include\wx\msw\webview_missing.h">
<Filter>Headers\MSW</Filter>
</ClInclude>
<ClInclude Include="..\..\include\wx\msw\dc.h"> <ClInclude Include="..\..\include\wx\msw\dc.h">
<Filter>Headers\MSW</Filter> <Filter>Headers\MSW</Filter>
</ClInclude> </ClInclude>
@ -1955,6 +2006,9 @@
<ClCompile Include="..\..\src\aui\framemanager.cpp"> <ClCompile Include="..\..\src\aui\framemanager.cpp">
<Filter>AUI</Filter> <Filter>AUI</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\aui\tabart.cpp">
<Filter>AUI</Filter>
</ClCompile>
<ClCompile Include="..\..\src\aui\tabmdi.cpp"> <ClCompile Include="..\..\src\aui\tabmdi.cpp">
<Filter>AUI</Filter> <Filter>AUI</Filter>
</ClCompile> </ClCompile>
@ -2390,6 +2444,9 @@
<ClCompile Include="..\..\src\common\mimecmn.cpp"> <ClCompile Include="..\..\src\common\mimecmn.cpp">
<Filter>Common</Filter> <Filter>Common</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\common\modalhook.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="..\..\src\common\module.cpp"> <ClCompile Include="..\..\src\common\module.cpp">
<Filter>Common</Filter> <Filter>Common</Filter>
</ClCompile> </ClCompile>
@ -2441,6 +2498,9 @@
<ClCompile Include="..\..\src\common\powercmn.cpp"> <ClCompile Include="..\..\src\common\powercmn.cpp">
<Filter>Common</Filter> <Filter>Common</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\common\preferencescmn.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="..\..\src\common\prntbase.cpp"> <ClCompile Include="..\..\src\common\prntbase.cpp">
<Filter>Common</Filter> <Filter>Common</Filter>
</ClCompile> </ClCompile>
@ -2648,6 +2708,9 @@
<ClCompile Include="..\..\src\common\webview.cpp"> <ClCompile Include="..\..\src\common\webview.cpp">
<Filter>Common</Filter> <Filter>Common</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\common\webviewfshandler.cpp">
<Filter>Common</Filter>
</ClCompile>
<ClCompile Include="..\..\src\common\webviewarchivehandler.cpp"> <ClCompile Include="..\..\src\common\webviewarchivehandler.cpp">
<Filter>Common</Filter> <Filter>Common</Filter>
</ClCompile> </ClCompile>
@ -2861,6 +2924,9 @@
<ClCompile Include="..\..\src\generic\paletteg.cpp"> <ClCompile Include="..\..\src\generic\paletteg.cpp">
<Filter>Generic</Filter> <Filter>Generic</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\generic\preferencesg.cpp">
<Filter>Generic</Filter>
</ClCompile>
<ClCompile Include="..\..\src\generic\printps.cpp"> <ClCompile Include="..\..\src\generic\printps.cpp">
<Filter>Generic</Filter> <Filter>Generic</Filter>
</ClCompile> </ClCompile>
@ -2924,6 +2990,9 @@
<ClCompile Include="..\..\src\generic\textdlgg.cpp"> <ClCompile Include="..\..\src\generic\textdlgg.cpp">
<Filter>Generic</Filter> <Filter>Generic</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\generic\textmeasure.cpp">
<Filter>Generic</Filter>
</ClCompile>
<ClCompile Include="..\..\src\generic\timectrlg.cpp"> <ClCompile Include="..\..\src\generic\timectrlg.cpp">
<Filter>Generic</Filter> <Filter>Generic</Filter>
</ClCompile> </ClCompile>
@ -3095,6 +3164,9 @@
<ClCompile Include="..\..\src\msw\evtloop.cpp"> <ClCompile Include="..\..\src\msw\evtloop.cpp">
<Filter>MSW</Filter> <Filter>MSW</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\msw\evtloopconsole.cpp">
<Filter>MSW</Filter>
</ClCompile>
<ClCompile Include="..\..\src\msw\fdrepdlg.cpp"> <ClCompile Include="..\..\src\msw\fdrepdlg.cpp">
<Filter>MSW</Filter> <Filter>MSW</Filter>
</ClCompile> </ClCompile>
@ -3332,6 +3404,9 @@
<ClCompile Include="..\..\src\msw\textentry.cpp"> <ClCompile Include="..\..\src\msw\textentry.cpp">
<Filter>MSW</Filter> <Filter>MSW</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\msw\textmeasure.cpp">
<Filter>MSW</Filter>
</ClCompile>
<ClCompile Include="..\..\src\msw\tglbtn.cpp"> <ClCompile Include="..\..\src\msw\tglbtn.cpp">
<Filter>MSW</Filter> <Filter>MSW</Filter>
</ClCompile> </ClCompile>
@ -3371,6 +3446,9 @@
<ClCompile Include="..\..\src\msw\utilsgui.cpp"> <ClCompile Include="..\..\src\msw\utilsgui.cpp">
<Filter>MSW</Filter> <Filter>MSW</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\src\msw\utilswin.cpp">
<Filter>MSW</Filter>
</ClCompile>
<ClCompile Include="..\..\src\msw\uxtheme.cpp"> <ClCompile Include="..\..\src\msw\uxtheme.cpp">
<Filter>MSW</Filter> <Filter>MSW</Filter>
</ClCompile> </ClCompile>

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
svn co -r 70933 http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets svn co -r 74856 http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets
cd wxWidgets cd wxWidgets
case $OSTYPE in case $OSTYPE in

View File

@ -0,0 +1,254 @@
/////////////////////////////////////////////////////////////////////////////
// Name: msvc/wx/setup.h
// Purpose: wrapper around the real wx/setup.h for Visual C++
// Author: Vadim Zeitlin
// Modified by:
// Created: 2004-12-12
// Copyright: (c) 2004 Vadim Zeitlin <vadim@wxwindows.org>
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _MSC_VER
#error "This file should only be included when using Microsoft Visual C++"
#endif
// VC++ IDE predefines _DEBUG and _UNICODE for the new projects itself, but
// the other symbols (WXUSINGDLL, __WXUNIVERSAL__, ...) should be defined
// explicitly!
#include "wx/version.h"
#include "wx/cpp.h"
// notice that wxSUFFIX_DEBUG is a string but wxSUFFIX itself must be an
// identifier as string concatenation is not done inside #include where we
// need it
#ifdef _DEBUG
#define wxSUFFIX_DEBUG "d"
#ifdef _UNICODE
#define wxSUFFIX ud
#else // !_UNICODE
#define wxSUFFIX d
#endif // _UNICODE/!_UNICODE
#else
#define wxSUFFIX_DEBUG ""
#ifdef _UNICODE
#define wxSUFFIX u
#else // !_UNICODE
// don't define wxSUFFIX at all as preprocessor operations don't work
// with empty values so we need to check for this case specially below
#endif // _UNICODE/!_UNICODE
#endif
// compiler-specific prefix: by default it's always just "vc" for compatibility
// reasons but if you use multiple MSVC versions you probably build them with
// COMPILER_PREFIX=vcXX and in this case you may want to either predefine
// wxMSVC_VERSION as "XX" or define wxMSVC_VERSION_AUTO to use the appropriate
// version depending on the compiler used
#ifdef wxMSVC_VERSION
#define wxCOMPILER_PREFIX wxCONCAT(vc, wxMSVC_VERSION)
#elif defined(wxMSVC_VERSION_AUTO)
#if _MSC_VER == 1200
#define wxCOMPILER_PREFIX vc60
#elif _MSC_VER == 1300
#define wxCOMPILER_PREFIX vc70
#elif _MSC_VER == 1310
#define wxCOMPILER_PREFIX vc71
#elif _MSC_VER == 1400
#define wxCOMPILER_PREFIX vc80
#elif _MSC_VER == 1500
#define wxCOMPILER_PREFIX vc90
#elif _MSC_VER == 1600
#define wxCOMPILER_PREFIX vc100
#elif _MSC_VER == 1700
#define wxCOMPILER_PREFIX vc110
#elif _MSC_VER == 1800
#define wxCOMPILER_PREFIX vc120
#else
#error "Unknown MSVC compiler version, please report to wx-dev."
#endif
#else
#define wxCOMPILER_PREFIX vc
#endif
// architecture-specific part: not used (again, for compatibility), for x86
#if defined(_M_X64)
#define wxARCH_SUFFIX _x64
#elif defined(_M_IA64)
#define wxARCH_SUFFIX _ia64
#else // assume _M_IX86
#define wxARCH_SUFFIX
#endif
// Ensure the library configuration is defined
#ifndef wxCFG
#define wxCFG
#endif
// Construct the path for the subdirectory under /lib/ that the included setup.h
// will be used from
#ifdef WXUSINGDLL
#define wxLIB_SUBDIR \
wxCONCAT4(wxCOMPILER_PREFIX, wxARCH_SUFFIX, _dll, wxCFG)
#else // !DLL
#define wxLIB_SUBDIR \
wxCONCAT4(wxCOMPILER_PREFIX, wxARCH_SUFFIX, _lib, wxCFG)
#endif // DLL/!DLL
// The user can predefine a different prefix if not using the default MSW port
// with MSVC.
#ifndef wxTOOLKIT_PREFIX
#if defined(__WXGTK__)
#define wxTOOLKIT_PREFIX gtk2
#else
#define wxTOOLKIT_PREFIX msw
#endif
#endif // wxTOOLKIT_PREFIX
// the real setup.h header file we need is in the build-specific directory,
// construct the path to it
#ifdef wxSUFFIX
#define wxSETUPH_PATH \
wxCONCAT6(../../../lib/, wxLIB_SUBDIR, /, wxTOOLKIT_PREFIX, wxSUFFIX, /wx/setup.h)
#else // suffix is empty
#define wxSETUPH_PATH \
wxCONCAT5(../../../lib/, wxLIB_SUBDIR, /, wxTOOLKIT_PREFIX, /wx/setup.h)
#endif
#define wxSETUPH_PATH_STR wxSTRINGIZE(wxSETUPH_PATH)
#include wxSETUPH_PATH_STR
// the library names depend on the build, these macro builds the correct
// library name for the given base name
#ifdef wxSUFFIX
#define wxSUFFIX_STR wxSTRINGIZE(wxSUFFIX)
#else // suffix is empty
#define wxSUFFIX_STR ""
#endif
#define wxSHORT_VERSION_STRING \
wxSTRINGIZE(wxMAJOR_VERSION) wxSTRINGIZE(wxMINOR_VERSION)
#define wxWX_LIB_NAME(name, subname) \
"wx" name wxSHORT_VERSION_STRING wxSUFFIX_STR subname
#define wxBASE_LIB_NAME(name) wxWX_LIB_NAME("base", "_" name)
#define wxTOOLKIT_LIB_NAME(name) wxWX_LIB_NAME(wxSTRINGIZE(wxTOOLKIT_PREFIX), "_" name)
// This one is for 3rd party libraries: they don't have the version number
// in their names and usually exist in ANSI version only (except for regex)
//
// 3rd party libraries are also are not linked in when using DLLs as they're
// embedded inside our own DLLs and don't need to be linked with the user code.
#define wx3RD_PARTY_LIB_NAME(name) "wx" name wxSUFFIX_DEBUG
// special version for regex as it does have a Unicode version
#define wx3RD_PARTY_LIB_NAME_U(name) "wx" name wxSUFFIX_STR
#pragma comment(lib, wxWX_LIB_NAME("base", ""))
#ifndef wxNO_NET_LIB
#pragma comment(lib, wxBASE_LIB_NAME("net"))
#endif
#ifndef wxNO_XML_LIB
#pragma comment(lib, wxBASE_LIB_NAME("xml"))
#endif
#if wxUSE_REGEX && !defined(wxNO_REGEX_LIB) && !defined(WXUSINGDLL)
#pragma comment(lib, wx3RD_PARTY_LIB_NAME_U("regex"))
#endif
#if wxUSE_GUI
#if wxUSE_XML && !defined(wxNO_EXPAT_LIB) && !defined(WXUSINGDLL)
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("expat"))
#endif
#if wxUSE_LIBJPEG && !defined(wxNO_JPEG_LIB) && !defined(WXUSINGDLL)
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("jpeg"))
#endif
#if wxUSE_LIBPNG && !defined(wxNO_PNG_LIB) && !defined(WXUSINGDLL)
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("png"))
#endif
#if wxUSE_LIBTIFF && !defined(wxNO_TIFF_LIB) && !defined(WXUSINGDLL)
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("tiff"))
#endif
#if wxUSE_ZLIB && !defined(wxNO_ZLIB_LIB) && !defined(WXUSINGDLL)
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("zlib"))
#endif
#pragma comment(lib, wxTOOLKIT_LIB_NAME("core"))
#ifndef wxNO_ADV_LIB
#pragma comment(lib, wxTOOLKIT_LIB_NAME("adv"))
#endif
#ifndef wxNO_HTML_LIB
#pragma comment(lib, wxTOOLKIT_LIB_NAME("html"))
#endif
#if wxUSE_GLCANVAS && !defined(wxNO_GL_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("gl"))
#endif
#if wxUSE_DEBUGREPORT && !defined(wxNO_QA_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("qa"))
#endif
#if wxUSE_XRC && !defined(wxNO_XRC_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("xrc"))
#endif
#if wxUSE_AUI && !defined(wxNO_AUI_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("aui"))
#endif
#if wxUSE_PROPGRID && !defined(wxNO_PROPGRID_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("propgrid"))
#endif
#if wxUSE_RIBBON && !defined(wxNO_RIBBON_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("ribbon"))
#endif
#if wxUSE_RICHTEXT && !defined(wxNO_RICHTEXT_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("richtext"))
#endif
#if wxUSE_MEDIACTRL && !defined(wxNO_MEDIA_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("media"))
#endif
#if wxUSE_STC && !defined(wxNO_STC_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("stc"))
#ifndef WXUSINGDLL
#pragma comment(lib, wx3RD_PARTY_LIB_NAME("scintilla"))
#endif
#endif
#if wxUSE_WEBVIEW && !defined(wxNO_WEBVIEW_LIB)
#pragma comment(lib, wxTOOLKIT_LIB_NAME("webview"))
#endif
#endif // wxUSE_GUI
#ifndef WXUSINGDLL
// Make sure all required system libraries are added to the linker too when
// using static libraries.
#pragma comment(lib, "kernel32")
#pragma comment(lib, "user32")
#pragma comment(lib, "gdi32")
#pragma comment(lib, "comdlg32")
#pragma comment(lib, "winspool")
#pragma comment(lib, "winmm")
#pragma comment(lib, "shell32")
#pragma comment(lib, "comctl32")
#pragma comment(lib, "ole32")
#pragma comment(lib, "oleaut32")
#pragma comment(lib, "uuid")
#pragma comment(lib, "rpcrt4")
#pragma comment(lib, "advapi32")
#pragma comment(lib, "wsock32")
#if wxUSE_URL_NATIVE
#pragma comment(lib, "wininet")
#endif
#ifdef __WXGTK__
#pragma comment(lib, "gtk-win32-2.0.lib")
#pragma comment(lib, "gdk-win32-2.0.lib")
#pragma comment(lib, "pangocairo-1.0.lib")
#pragma comment(lib, "gdk_pixbuf-2.0.lib")
#pragma comment(lib, "cairo.lib")
#pragma comment(lib, "pango-1.0.lib")
#pragma comment(lib, "gobject-2.0.lib")
#pragma comment(lib, "gthread-2.0.lib")
#pragma comment(lib, "glib-2.0.lib")
#endif
#endif // !WXUSINGDLL

View File

@ -3,7 +3,6 @@
// Purpose: declaration of wxAboutDialog class // Purpose: declaration of wxAboutDialog class
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Created: 2006-10-07 // Created: 2006-10-07
// RCS-ID: $Id: aboutdlg.h 67681 2011-05-03 16:29:04Z DS $
// Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org> // Copyright: (c) 2006 Vadim Zeitlin <vadim@wxwindows.org>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Julian Smart, Robert Roebling, Vadim Zeitlin // Author: Julian Smart, Robert Roebling, Vadim Zeitlin
// Modified by: // Modified by:
// Created: 31.05.01 (extracted from other files) // Created: 31.05.01 (extracted from other files)
// RCS-ID: $Id: accel.h 68718 2011-08-16 11:55:39Z SC $
// Copyright: (c) wxWidgets team // Copyright: (c) wxWidgets team
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -118,7 +117,12 @@ public:
// returns a wxString for the this accelerator. // returns a wxString for the this accelerator.
// this function formats it using the <flags>-<keycode> format // this function formats it using the <flags>-<keycode> format
// where <flags> maybe a hyphen-separated list of "shift|alt|ctrl" // where <flags> maybe a hyphen-separated list of "shift|alt|ctrl"
wxString ToString() const; wxString ToString() const { return AsPossiblyLocalizedString(true); }
// same as above but without translating, useful if the string is meant to
// be stored in a file or otherwise stored, instead of being shown to the
// user
wxString ToRawString() const { return AsPossiblyLocalizedString(false); }
// returns true if the given string correctly initialized this object // returns true if the given string correctly initialized this object
// (i.e. if IsOk() returns true after this call) // (i.e. if IsOk() returns true after this call)
@ -126,6 +130,8 @@ public:
private: private:
wxString AsPossiblyLocalizedString(bool localized) const;
// common part of Create() and FromString() // common part of Create() and FromString()
static bool ParseAccel(const wxString& str, int *flags, int *keycode); static bool ParseAccel(const wxString& str, int *flags, int *keycode);

View File

@ -4,7 +4,6 @@
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 2003-02-12 // Created: 2003-02-12
// RCS-ID: $Id: access.h 58757 2009-02-08 11:45:59Z VZ $
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -36,7 +36,7 @@ public:
virtual bool IsEqual(const wxAffineMatrix2DBase& t) const; virtual bool IsEqual(const wxAffineMatrix2DBase& t) const;
virtual void Translate(wxDouble dx, wxDouble dy); virtual void Translate(wxDouble dx, wxDouble dy);
virtual void Scale(wxDouble xScale, wxDouble yScale); virtual void Scale(wxDouble xScale, wxDouble yScale);
virtual void Rotate(wxDouble ccRadians); virtual void Rotate(wxDouble cRadians);
protected: protected:
virtual wxPoint2DDouble DoTransformPoint(const wxPoint2DDouble& p) const; virtual wxPoint2DDouble DoTransformPoint(const wxPoint2DDouble& p) const;

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 07/07/03 // Created: 07/07/03
// RCS-ID: $Id: afterstd.h 64943 2010-07-13 13:29:58Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> // Copyright: (c) 2003 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -13,7 +12,7 @@
See the comments in beforestd.h. See the comments in beforestd.h.
*/ */
#if defined(__WXMSW__) #if defined(__WINDOWS__)
#include "wx/msw/winundef.h" #include "wx/msw/winundef.h"
#endif #endif

View File

@ -2,7 +2,6 @@
// Name: wx/anidecod.h // Name: wx/anidecod.h
// Purpose: wxANIDecoder, ANI reader for wxImage and wxAnimation // Purpose: wxANIDecoder, ANI reader for wxImage and wxAnimation
// Author: Francesco Montorsi // Author: Francesco Montorsi
// CVS-ID: $Id: anidecod.h 66716 2011-01-19 12:28:31Z DS $
// Copyright: (c) 2006 Francesco Montorsi // Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Julian Smart and Guillermo Rodriguez Garcia // Author: Julian Smart and Guillermo Rodriguez Garcia
// Modified by: Francesco Montorsi // Modified by: Francesco Montorsi
// Created: 13/8/99 // Created: 13/8/99
// RCS-ID: $Id: animate.h 56651 2008-11-02 22:16:14Z FM $
// Copyright: (c) Julian Smart and Guillermo Rodriguez Garcia // Copyright: (c) Julian Smart and Guillermo Rodriguez Garcia
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -2,7 +2,6 @@
// Name: wx/animdecod.h // Name: wx/animdecod.h
// Purpose: wxAnimationDecoder // Purpose: wxAnimationDecoder
// Author: Francesco Montorsi // Author: Francesco Montorsi
// CVS-ID: $Id: animdecod.h 62789 2009-12-05 19:57:58Z PC $
// Copyright: (c) 2006 Francesco Montorsi // Copyright: (c) 2006 Francesco Montorsi
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Jaakko Salli // Author: Jaakko Salli
// Modified by: // Modified by:
// Created: 07/05/2009 // Created: 07/05/2009
// RCS-ID: $Id: any.h 66621 2011-01-07 17:22:59Z SC $
// Copyright: (c) wxWidgets team // Copyright: (c) wxWidgets team
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -912,6 +911,8 @@ public:
WXANY_IMPLEMENT_INT_EQ_OP(wxLongLong_t, wxULongLong_t) WXANY_IMPLEMENT_INT_EQ_OP(wxLongLong_t, wxULongLong_t)
#endif #endif
wxGCC_WARNING_SUPPRESS(float-equal)
bool operator==(float value) const bool operator==(float value) const
{ {
if ( !wxAnyValueTypeImpl<float>::IsSameClass(m_type) ) if ( !wxAnyValueTypeImpl<float>::IsSameClass(m_type) )
@ -932,6 +933,8 @@ public:
(wxAnyValueTypeImpl<double>::GetValue(m_buffer)); (wxAnyValueTypeImpl<double>::GetValue(m_buffer));
} }
wxGCC_WARNING_RESTORE(float-equal)
bool operator==(bool value) const bool operator==(bool value) const
{ {
if ( !wxAnyValueTypeImpl<bool>::IsSameClass(m_type) ) if ( !wxAnyValueTypeImpl<bool>::IsSameClass(m_type) )

View File

@ -3,7 +3,6 @@
// Purpose: wxAnyButtonBase class // Purpose: wxAnyButtonBase class
// Author: Vadim Zetlin // Author: Vadim Zetlin
// Created: 2000-08-15 (extracted from button.h) // Created: 2000-08-15 (extracted from button.h)
// RCS-ID: $Id: anybutton.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) Vadim Zetlin // Copyright: (c) Vadim Zetlin
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -3,7 +3,6 @@
// Purpose: wxAnyStrPtr class declaration // Purpose: wxAnyStrPtr class declaration
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Created: 2009-03-23 // Created: 2009-03-23
// RCS-ID: $Id: anystr.h 59829 2009-03-25 09:54:10Z VZ $
// Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org> // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -5,7 +5,6 @@
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: 01/02/97 // Created: 01/02/97
// RCS-ID: $Id: app.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) Julian Smart // Copyright: (c) Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -103,6 +102,9 @@ public:
// be done here. When OnRun() returns, the programs starts shutting down. // be done here. When OnRun() returns, the programs starts shutting down.
virtual int OnRun(); virtual int OnRun();
// Called before the first events are handled, called from within MainLoop()
virtual void OnLaunched();
// This is called by wxEventLoopBase::SetActive(): you should put the code // This is called by wxEventLoopBase::SetActive(): you should put the code
// which needs an active event loop here. // which needs an active event loop here.
// Note that this function is called whenever an event loop is activated; // Note that this function is called whenever an event loop is activated;
@ -228,6 +230,14 @@ public:
// for it // for it
static wxAppTraits *GetTraitsIfExists(); static wxAppTraits *GetTraitsIfExists();
// Return some valid traits object.
//
// This method checks if we have wxTheApp and returns its traits if it does
// exist and the traits are non-NULL, similarly to GetTraitsIfExists(), but
// falls back to wxConsoleAppTraits to ensure that it always returns
// something valid.
static wxAppTraits& GetValidTraits();
// returns the main event loop instance, i.e. the event loop which is started // returns the main event loop instance, i.e. the event loop which is started
// by OnRun() and which dispatches all events sent from the native toolkit // by OnRun() and which dispatches all events sent from the native toolkit
// to the application (except when new event loops are temporarily set-up). // to the application (except when new event loops are temporarily set-up).
@ -236,6 +246,18 @@ public:
wxEventLoopBase* GetMainLoop() const wxEventLoopBase* GetMainLoop() const
{ return m_mainLoop; } { return m_mainLoop; }
// This function sets the C locale to the default locale for the current
// environment. It is advised to call this to ensure that the underlying
// toolkit uses the locale in which the numbers and monetary amounts are
// shown in the format expected by user and so on.
//
// Notice that this does _not_ change the global C++ locale, you need to do
// it explicitly if you want.
//
// Finally, notice that while this function is virtual, it is not supposed
// to be overridden outside of the library itself.
virtual void SetCLocale();
// event processing functions // event processing functions
// -------------------------- // --------------------------
@ -494,7 +516,7 @@ protected:
wxDECLARE_NO_COPY_CLASS(wxAppConsoleBase); wxDECLARE_NO_COPY_CLASS(wxAppConsoleBase);
}; };
#if defined(__UNIX__) && !defined(__CYGWIN__) #if defined(__UNIX__) && !defined(__WXMSW__)
#include "wx/unix/app.h" #include "wx/unix/app.h"
#else #else
// this has to be a class and not a typedef as we forward declare it // this has to be a class and not a typedef as we forward declare it
@ -636,10 +658,9 @@ public:
virtual void SetActive(bool isActive, wxWindow *lastFocus); virtual void SetActive(bool isActive, wxWindow *lastFocus);
#if WXWIN_COMPATIBILITY_2_6 #if WXWIN_COMPATIBILITY_2_6
// OBSOLETE: don't use, always returns true
//
// returns true if the program is successfully initialized // returns true if the program is successfully initialized
wxDEPRECATED( bool Initialized() ); wxDEPRECATED_MSG("always returns true now, don't call")
bool Initialized();
#endif // WXWIN_COMPATIBILITY_2_6 #endif // WXWIN_COMPATIBILITY_2_6
protected: protected:
@ -766,13 +787,26 @@ public:
// your compiler really, really wants main() to be in your main program (e.g. // your compiler really, really wants main() to be in your main program (e.g.
// hello.cpp). Now wxIMPLEMENT_APP should add this code if required. // hello.cpp). Now wxIMPLEMENT_APP should add this code if required.
#define wxIMPLEMENT_WXWIN_MAIN_CONSOLE \ // For compilers that support it, prefer to use wmain() as this ensures any
// Unicode strings can be passed as command line parameters and not just those
// representable in the current locale.
#if wxUSE_UNICODE && defined(__VISUALC__)
#define wxIMPLEMENT_WXWIN_MAIN_CONSOLE \
int wmain(int argc, wchar_t **argv) \
{ \
wxDISABLE_DEBUG_SUPPORT(); \
\
return wxEntry(argc, argv); \
}
#else // Use standard main()
#define wxIMPLEMENT_WXWIN_MAIN_CONSOLE \
int main(int argc, char **argv) \ int main(int argc, char **argv) \
{ \ { \
wxDISABLE_DEBUG_SUPPORT(); \ wxDISABLE_DEBUG_SUPPORT(); \
\ \
return wxEntry(argc, argv); \ return wxEntry(argc, argv); \
} }
#endif
// port-specific header could have defined it already in some special way // port-specific header could have defined it already in some special way
#ifndef wxIMPLEMENT_WXWIN_MAIN #ifndef wxIMPLEMENT_WXWIN_MAIN
@ -795,6 +829,7 @@ public:
// Use this macro if you want to define your own main() or WinMain() function // Use this macro if you want to define your own main() or WinMain() function
// and call wxEntry() from there. // and call wxEntry() from there.
#define wxIMPLEMENT_APP_NO_MAIN(appname) \ #define wxIMPLEMENT_APP_NO_MAIN(appname) \
appname& wxGetApp() { return *static_cast<appname*>(wxApp::GetInstance()); } \
wxAppConsole *wxCreateApp() \ wxAppConsole *wxCreateApp() \
{ \ { \
wxAppConsole::CheckBuildOptions(WX_BUILD_OPTIONS_SIGNATURE, \ wxAppConsole::CheckBuildOptions(WX_BUILD_OPTIONS_SIGNATURE, \
@ -802,9 +837,7 @@ public:
return new appname; \ return new appname; \
} \ } \
wxAppInitializer \ wxAppInitializer \
wxTheAppInitializer((wxAppInitializerFunction) wxCreateApp); \ wxTheAppInitializer((wxAppInitializerFunction) wxCreateApp)
appname& wxGetApp() { return *static_cast<appname*>(wxApp::GetInstance()); } \
wxDECLARE_APP(appname)
// Same as wxIMPLEMENT_APP() normally but doesn't include themes support in // Same as wxIMPLEMENT_APP() normally but doesn't include themes support in
// wxUniversal builds // wxUniversal builds

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 19.06.2003 // Created: 19.06.2003
// RCS-ID: $Id: apptrait.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org> // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -77,12 +76,6 @@ public:
// except in the case of wxMac and wxCocoa // except in the case of wxMac and wxCocoa
virtual wxStandardPaths& GetStandardPaths(); virtual wxStandardPaths& GetStandardPaths();
#if wxUSE_INTL
// called during wxApp initialization to set the locale to correspond to
// the user default (i.e. system locale under Windows, LC_ALL under Unix)
virtual void SetLocale();
#endif // wxUSE_INTL
// functions abstracting differences between GUI and console modes // functions abstracting differences between GUI and console modes
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------

View File

@ -2,7 +2,6 @@
// Name: wx/archive.h // Name: wx/archive.h
// Purpose: Streams for archive formats // Purpose: Streams for archive formats
// Author: Mike Wetherell // Author: Mike Wetherell
// RCS-ID: $Id: archive.h 66780 2011-01-27 11:00:26Z SC $
// Copyright: (c) 2004 Mike Wetherell // Copyright: (c) 2004 Mike Wetherell
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 16.10.97 // Created: 16.10.97
// RCS-ID: $Id: arrimpl.cpp 64940 2010-07-13 13:29:13Z VZ $
// Copyright: (c) 1997 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> // Copyright: (c) 1997 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -91,13 +90,13 @@ void name::Insert(const T& item, size_t uiIndex, size_t nInsert) \
base_array::operator[](uiIndex + i) = new T(item); \ base_array::operator[](uiIndex + i) = new T(item); \
} \ } \
\ \
int name::Index(const T& Item, bool bFromEnd) const \ int name::Index(const T& item, bool bFromEnd) const \
{ \ { \
if ( bFromEnd ) { \ if ( bFromEnd ) { \
if ( size() > 0 ) { \ if ( size() > 0 ) { \
size_t ui = size() - 1; \ size_t ui = size() - 1; \
do { \ do { \
if ( (T*)base_array::operator[](ui) == &Item ) \ if ( (T*)base_array::operator[](ui) == &item ) \
return static_cast<int>(ui); \ return static_cast<int>(ui); \
ui--; \ ui--; \
} \ } \
@ -106,7 +105,7 @@ int name::Index(const T& Item, bool bFromEnd) const \
} \ } \
else { \ else { \
for( size_t ui = 0; ui < size(); ui++ ) { \ for( size_t ui = 0; ui < size(); ui++ ) { \
if( (T*)base_array::operator[](ui) == &Item ) \ if( (T*)base_array::operator[](ui) == &item ) \
return static_cast<int>(ui); \ return static_cast<int>(ui); \
} \ } \
} \ } \

View File

@ -4,7 +4,6 @@
// Author: Mattia Barbon and Vadim Zeitlin // Author: Mattia Barbon and Vadim Zeitlin
// Modified by: // Modified by:
// Created: 07/07/03 // Created: 07/07/03
// RCS-ID: $Id: arrstr.h 67343 2011-03-30 14:16:04Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> // Copyright: (c) 2003 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -425,7 +424,7 @@ private:
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// by default, these functions use the escape character to escape the // by default, these functions use the escape character to escape the
// separators occuring inside the string to be joined, this can be disabled by // separators occurring inside the string to be joined, this can be disabled by
// passing '\0' as escape // passing '\0' as escape
WXDLLIMPEXP_BASE wxString wxJoin(const wxArrayString& arr, WXDLLIMPEXP_BASE wxString wxJoin(const wxArrayString& arr,

View File

@ -4,7 +4,6 @@
// Author: Vaclav Slavik // Author: Vaclav Slavik
// Modified by: // Modified by:
// Created: 18/03/2002 // Created: 18/03/2002
// RCS-ID: $Id: artprov.h 66966 2011-02-19 12:32:59Z VZ $
// Copyright: (c) Vaclav Slavik // Copyright: (c) Vaclav Slavik
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -3,7 +3,6 @@
// Purpose: functions to manipulate atomically integers and pointers // Purpose: functions to manipulate atomically integers and pointers
// Author: Armel Asselin // Author: Armel Asselin
// Created: 12/13/2006 // Created: 12/13/2006
// RCS-ID: $Id: atomic.h 70808 2012-03-04 20:31:42Z VZ $
// Copyright: (c) Armel Asselin // Copyright: (c) Armel Asselin
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Benjamin I. Williams // Author: Benjamin I. Williams
// Modified by: // Modified by:
// Created: 2005-05-17 // Created: 2005-05-17
// RCS-ID: $Id: aui.h 55231 2008-08-24 09:28:07Z BIW $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved. // Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1 // Licence: wxWindows Library Licence, Version 3.1
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Benjamin I. Williams // Author: Benjamin I. Williams
// Modified by: // Modified by:
// Created: 2008-08-04 // Created: 2008-08-04
// RCS-ID: $Id: auibar.h 69594 2011-10-30 16:51:10Z VZ $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved. // Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1 // Licence: wxWindows Library Licence, Version 3.1
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -39,6 +38,7 @@ enum wxAuiToolBarStyle
// analogous to wxAUI_TB_VERTICAL, but forces the toolbar // analogous to wxAUI_TB_VERTICAL, but forces the toolbar
// to be horizontal // to be horizontal
wxAUI_TB_HORIZONTAL = 1 << 7, wxAUI_TB_HORIZONTAL = 1 << 7,
wxAUI_TB_PLAIN_BACKGROUND = 1 << 8,
wxAUI_TB_HORZ_TEXT = (wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_TEXT), wxAUI_TB_HORZ_TEXT = (wxAUI_TB_HORZ_LAYOUT | wxAUI_TB_TEXT),
wxAUI_ORIENTATION_MASK = (wxAUI_TB_VERTICAL | wxAUI_TB_HORIZONTAL), wxAUI_ORIENTATION_MASK = (wxAUI_TB_VERTICAL | wxAUI_TB_HORIZONTAL),
wxAUI_TB_DEFAULT_STYLE = 0 wxAUI_TB_DEFAULT_STYLE = 0
@ -211,7 +211,14 @@ public:
void SetActive(bool b) { m_active = b; } void SetActive(bool b) { m_active = b; }
bool IsActive() const { return m_active; } bool IsActive() const { return m_active; }
void SetHasDropDown(bool b) { m_dropDown = b; } void SetHasDropDown(bool b)
{
wxCHECK_RET( !b || m_kind == wxITEM_NORMAL,
wxS("Only normal tools can have drop downs") );
m_dropDown = b;
}
bool HasDropDown() const { return m_dropDown; } bool HasDropDown() const { return m_dropDown; }
void SetSticky(bool b) { m_sticky = b; } void SetSticky(bool b) { m_sticky = b; }
@ -275,6 +282,11 @@ public:
wxWindow* wnd, wxWindow* wnd,
const wxRect& rect) = 0; const wxRect& rect) = 0;
virtual void DrawPlainBackground(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect) = 0;
virtual void DrawLabel( virtual void DrawLabel(
wxDC& dc, wxDC& dc,
wxWindow* wnd, wxWindow* wnd,
@ -356,6 +368,10 @@ public:
wxWindow* wnd, wxWindow* wnd,
const wxRect& rect); const wxRect& rect);
virtual void DrawPlainBackground(wxDC& dc,
wxWindow* wnd,
const wxRect& rect);
virtual void DrawLabel( virtual void DrawLabel(
wxDC& dc, wxDC& dc,
wxWindow* wnd, wxWindow* wnd,
@ -439,16 +455,27 @@ protected:
class WXDLLIMPEXP_AUI wxAuiToolBar : public wxControl class WXDLLIMPEXP_AUI wxAuiToolBar : public wxControl
{ {
public: public:
wxAuiToolBar() { Init(); }
wxAuiToolBar(wxWindow* parent, wxAuiToolBar(wxWindow* parent,
wxWindowID id = -1, wxWindowID id = wxID_ANY,
const wxPoint& position = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxAUI_TB_DEFAULT_STYLE); long style = wxAUI_TB_DEFAULT_STYLE)
{
Init();
Create(parent, id, pos, size, style);
}
virtual ~wxAuiToolBar(); virtual ~wxAuiToolBar();
void SetWindowStyleFlag(long style); bool Create(wxWindow* parent,
long GetWindowStyleFlag() const; wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxAUI_TB_DEFAULT_STYLE);
virtual void SetWindowStyleFlag(long style);
void SetArtProvider(wxAuiToolBarArt* art); void SetArtProvider(wxAuiToolBarArt* art);
wxAuiToolBarArt* GetArtProvider() const; wxAuiToolBarArt* GetArtProvider() const;
@ -581,6 +608,7 @@ public:
virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE); virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE);
protected: protected:
void Init();
virtual void OnCustomRender(wxDC& WXUNUSED(dc), virtual void OnCustomRender(wxDC& WXUNUSED(dc),
const wxAuiToolBarItem& WXUNUSED(item), const wxAuiToolBarItem& WXUNUSED(item),
@ -651,7 +679,6 @@ protected:
bool m_dragging; bool m_dragging;
bool m_gripperVisible; bool m_gripperVisible;
bool m_overflowVisible; bool m_overflowVisible;
long m_style;
bool RealizeHelper(wxClientDC& dc, bool horizontal); bool RealizeHelper(wxClientDC& dc, bool horizontal);
static bool IsPaneValid(long style, const wxAuiPaneInfo& pane); static bool IsPaneValid(long style, const wxAuiPaneInfo& pane);
@ -676,11 +703,11 @@ private:
#ifndef SWIG #ifndef SWIG
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN, wxAuiToolBarEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUITOOLBAR_TOOL_DROPDOWN, wxAuiToolBarEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUITOOLBAR_OVERFLOW_CLICK, wxAuiToolBarEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUITOOLBAR_OVERFLOW_CLICK, wxAuiToolBarEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK, wxAuiToolBarEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUITOOLBAR_RIGHT_CLICK, wxAuiToolBarEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUITOOLBAR_MIDDLE_CLICK, wxAuiToolBarEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUITOOLBAR_MIDDLE_CLICK, wxAuiToolBarEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUITOOLBAR_BEGIN_DRAG, wxAuiToolBarEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_AUI, wxEVT_AUITOOLBAR_BEGIN_DRAG, wxAuiToolBarEvent );
typedef void (wxEvtHandler::*wxAuiToolBarEventFunction)(wxAuiToolBarEvent&); typedef void (wxEvtHandler::*wxAuiToolBarEventFunction)(wxAuiToolBarEvent&);
@ -688,34 +715,41 @@ typedef void (wxEvtHandler::*wxAuiToolBarEventFunction)(wxAuiToolBarEvent&);
wxEVENT_HANDLER_CAST(wxAuiToolBarEventFunction, func) wxEVENT_HANDLER_CAST(wxAuiToolBarEventFunction, func)
#define EVT_AUITOOLBAR_TOOL_DROPDOWN(winid, fn) \ #define EVT_AUITOOLBAR_TOOL_DROPDOWN(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN, winid, wxAuiToolBarEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUITOOLBAR_TOOL_DROPDOWN, winid, wxAuiToolBarEventHandler(fn))
#define EVT_AUITOOLBAR_OVERFLOW_CLICK(winid, fn) \ #define EVT_AUITOOLBAR_OVERFLOW_CLICK(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUITOOLBAR_OVERFLOW_CLICK, winid, wxAuiToolBarEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUITOOLBAR_OVERFLOW_CLICK, winid, wxAuiToolBarEventHandler(fn))
#define EVT_AUITOOLBAR_RIGHT_CLICK(winid, fn) \ #define EVT_AUITOOLBAR_RIGHT_CLICK(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK, winid, wxAuiToolBarEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUITOOLBAR_RIGHT_CLICK, winid, wxAuiToolBarEventHandler(fn))
#define EVT_AUITOOLBAR_MIDDLE_CLICK(winid, fn) \ #define EVT_AUITOOLBAR_MIDDLE_CLICK(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUITOOLBAR_MIDDLE_CLICK, winid, wxAuiToolBarEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUITOOLBAR_MIDDLE_CLICK, winid, wxAuiToolBarEventHandler(fn))
#define EVT_AUITOOLBAR_BEGIN_DRAG(winid, fn) \ #define EVT_AUITOOLBAR_BEGIN_DRAG(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUITOOLBAR_BEGIN_DRAG, winid, wxAuiToolBarEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUITOOLBAR_BEGIN_DRAG, winid, wxAuiToolBarEventHandler(fn))
#else #else
// wxpython/swig event work // wxpython/swig event work
%constant wxEventType wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN; %constant wxEventType wxEVT_AUITOOLBAR_TOOL_DROPDOWN;
%constant wxEventType wxEVT_COMMAND_AUITOOLBAR_OVERFLOW_CLICK; %constant wxEventType wxEVT_AUITOOLBAR_OVERFLOW_CLICK;
%constant wxEventType wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK; %constant wxEventType wxEVT_AUITOOLBAR_RIGHT_CLICK;
%constant wxEventType wxEVT_COMMAND_AUITOOLBAR_MIDDLE_CLICK; %constant wxEventType wxEVT_AUITOOLBAR_MIDDLE_CLICK;
%constant wxEventType wxEVT_COMMAND_AUITOOLBAR_BEGIN_DRAG; %constant wxEventType wxEVT_AUITOOLBAR_BEGIN_DRAG;
%pythoncode { %pythoncode {
EVT_AUITOOLBAR_TOOL_DROPDOWN = wx.PyEventBinder( wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN, 1 ) EVT_AUITOOLBAR_TOOL_DROPDOWN = wx.PyEventBinder( wxEVT_AUITOOLBAR_TOOL_DROPDOWN, 1 )
EVT_AUITOOLBAR_OVERFLOW_CLICK = wx.PyEventBinder( wxEVT_COMMAND_AUITOOLBAR_OVERFLOW_CLICK, 1 ) EVT_AUITOOLBAR_OVERFLOW_CLICK = wx.PyEventBinder( wxEVT_AUITOOLBAR_OVERFLOW_CLICK, 1 )
EVT_AUITOOLBAR_RIGHT_CLICK = wx.PyEventBinder( wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK, 1 ) EVT_AUITOOLBAR_RIGHT_CLICK = wx.PyEventBinder( wxEVT_AUITOOLBAR_RIGHT_CLICK, 1 )
EVT_AUITOOLBAR_MIDDLE_CLICK = wx.PyEventBinder( wxEVT_COMMAND_AUITOOLBAR_MIDDLE_CLICK, 1 ) EVT_AUITOOLBAR_MIDDLE_CLICK = wx.PyEventBinder( wxEVT_AUITOOLBAR_MIDDLE_CLICK, 1 )
EVT_AUITOOLBAR_BEGIN_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUITOOLBAR_BEGIN_DRAG, 1 ) EVT_AUITOOLBAR_BEGIN_DRAG = wx.PyEventBinder( wxEVT_AUITOOLBAR_BEGIN_DRAG, 1 )
} }
#endif // SWIG #endif // SWIG
// old wxEVT_COMMAND_* constants
#define wxEVT_COMMAND_AUITOOLBAR_TOOL_DROPDOWN wxEVT_AUITOOLBAR_TOOL_DROPDOWN
#define wxEVT_COMMAND_AUITOOLBAR_OVERFLOW_CLICK wxEVT_AUITOOLBAR_OVERFLOW_CLICK
#define wxEVT_COMMAND_AUITOOLBAR_RIGHT_CLICK wxEVT_AUITOOLBAR_RIGHT_CLICK
#define wxEVT_COMMAND_AUITOOLBAR_MIDDLE_CLICK wxEVT_AUITOOLBAR_MIDDLE_CLICK
#define wxEVT_COMMAND_AUITOOLBAR_BEGIN_DRAG wxEVT_AUITOOLBAR_BEGIN_DRAG
#endif // wxUSE_AUI #endif // wxUSE_AUI
#endif // _WX_AUIBAR_H_ #endif // _WX_AUIBAR_H_

View File

@ -2,7 +2,7 @@
// Name: wx/aui/auibook.h // Name: wx/aui/auibook.h
// Purpose: wxaui: wx advanced user interface - notebook // Purpose: wxaui: wx advanced user interface - notebook
// Author: Benjamin I. Williams // Author: Benjamin I. Williams
// Modified by: // Modified by: Jens Lody
// Created: 2006-06-28 // Created: 2006-06-28
// Copyright: (C) Copyright 2006, Kirix Corporation, All Rights Reserved. // Copyright: (C) Copyright 2006, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1 // Licence: wxWindows Library Licence, Version 3.1
@ -21,10 +21,10 @@
#if wxUSE_AUI #if wxUSE_AUI
#include "wx/aui/tabart.h"
#include "wx/aui/framemanager.h" #include "wx/aui/framemanager.h"
#include "wx/aui/dockart.h"
#include "wx/aui/floatpane.h"
#include "wx/bookctrl.h" #include "wx/bookctrl.h"
#include "wx/containr.h"
class wxAuiNotebook; class wxAuiNotebook;
@ -95,6 +95,7 @@ class WXDLLIMPEXP_AUI wxAuiNotebookPage
public: public:
wxWindow* window; // page's associated window wxWindow* window; // page's associated window
wxString caption; // caption displayed on the tab wxString caption; // caption displayed on the tab
wxString tooltip; // tooltip displayed when hovering over tab title
wxBitmap bitmap; // tab's bitmap wxBitmap bitmap; // tab's bitmap
wxRect rect; // tab's hit rectangle wxRect rect; // tab's hit rectangle
bool active; // true if the page is currently active bool active; // true if the page is currently active
@ -119,254 +120,6 @@ WX_DECLARE_USER_EXPORTED_OBJARRAY(wxAuiTabContainerButton, wxAuiTabContainerButt
#endif #endif
// tab art class
class WXDLLIMPEXP_AUI wxAuiTabArt
{
public:
wxAuiTabArt() { }
virtual ~wxAuiTabArt() { }
virtual wxAuiTabArt* Clone() = 0;
virtual void SetFlags(unsigned int flags) = 0;
virtual void SetSizingInfo(const wxSize& tabCtrlSize,
size_t tabCount) = 0;
virtual void SetNormalFont(const wxFont& font) = 0;
virtual void SetSelectedFont(const wxFont& font) = 0;
virtual void SetMeasuringFont(const wxFont& font) = 0;
virtual void SetColour(const wxColour& colour) = 0;
virtual void SetActiveColour(const wxColour& colour) = 0;
virtual void DrawBackground(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect) = 0;
virtual void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
const wxRect& inRect,
int closeButtonState,
wxRect* outTabRect,
wxRect* outButtonRect,
int* xExtent) = 0;
virtual void DrawButton(
wxDC& dc,
wxWindow* wnd,
const wxRect& inRect,
int bitmapId,
int buttonState,
int orientation,
wxRect* outRect) = 0;
virtual wxSize GetTabSize(
wxDC& dc,
wxWindow* wnd,
const wxString& caption,
const wxBitmap& bitmap,
bool active,
int closeButtonState,
int* xExtent) = 0;
virtual int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
int activeIdx) = 0;
virtual int GetIndentSize() = 0;
virtual int GetBestTabCtrlSize(
wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
const wxSize& requiredBmpSize) = 0;
};
class WXDLLIMPEXP_AUI wxAuiDefaultTabArt : public wxAuiTabArt
{
public:
wxAuiDefaultTabArt();
virtual ~wxAuiDefaultTabArt();
wxAuiTabArt* Clone();
void SetFlags(unsigned int flags);
void SetSizingInfo(const wxSize& tabCtrlSize,
size_t tabCount);
void SetNormalFont(const wxFont& font);
void SetSelectedFont(const wxFont& font);
void SetMeasuringFont(const wxFont& font);
void SetColour(const wxColour& colour);
void SetActiveColour(const wxColour& colour);
void DrawBackground(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect);
void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
const wxRect& inRect,
int closeButtonState,
wxRect* outTabRect,
wxRect* outButtonRect,
int* xExtent);
void DrawButton(
wxDC& dc,
wxWindow* wnd,
const wxRect& inRect,
int bitmapId,
int buttonState,
int orientation,
wxRect* outRect);
int GetIndentSize();
wxSize GetTabSize(
wxDC& dc,
wxWindow* wnd,
const wxString& caption,
const wxBitmap& bitmap,
bool active,
int closeButtonState,
int* xExtent);
int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
int activeIdx);
int GetBestTabCtrlSize(wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
const wxSize& requiredBmpSize);
protected:
wxFont m_normalFont;
wxFont m_selectedFont;
wxFont m_measuringFont;
wxColour m_baseColour;
wxPen m_baseColourPen;
wxPen m_borderPen;
wxBrush m_baseColourBrush;
wxColour m_activeColour;
wxBitmap m_activeCloseBmp;
wxBitmap m_disabledCloseBmp;
wxBitmap m_activeLeftBmp;
wxBitmap m_disabledLeftBmp;
wxBitmap m_activeRightBmp;
wxBitmap m_disabledRightBmp;
wxBitmap m_activeWindowListBmp;
wxBitmap m_disabledWindowListBmp;
int m_fixedTabWidth;
int m_tabCtrlHeight;
unsigned int m_flags;
};
class WXDLLIMPEXP_AUI wxAuiSimpleTabArt : public wxAuiTabArt
{
public:
wxAuiSimpleTabArt();
virtual ~wxAuiSimpleTabArt();
wxAuiTabArt* Clone();
void SetFlags(unsigned int flags);
void SetSizingInfo(const wxSize& tabCtrlSize,
size_t tabCount);
void SetNormalFont(const wxFont& font);
void SetSelectedFont(const wxFont& font);
void SetMeasuringFont(const wxFont& font);
void SetColour(const wxColour& colour);
void SetActiveColour(const wxColour& colour);
void DrawBackground(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect);
void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
const wxRect& inRect,
int closeButtonState,
wxRect* outTabRect,
wxRect* outButtonRect,
int* xExtent);
void DrawButton(
wxDC& dc,
wxWindow* wnd,
const wxRect& inRect,
int bitmapId,
int buttonState,
int orientation,
wxRect* outRect);
int GetIndentSize();
wxSize GetTabSize(
wxDC& dc,
wxWindow* wnd,
const wxString& caption,
const wxBitmap& bitmap,
bool active,
int closeButtonState,
int* xExtent);
int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
int activeIdx);
int GetBestTabCtrlSize(wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
const wxSize& requiredBmpSize);
protected:
wxFont m_normalFont;
wxFont m_selectedFont;
wxFont m_measuringFont;
wxPen m_normalBkPen;
wxPen m_selectedBkPen;
wxBrush m_normalBkBrush;
wxBrush m_selectedBkBrush;
wxBrush m_bkBrush;
wxBitmap m_activeCloseBmp;
wxBitmap m_disabledCloseBmp;
wxBitmap m_activeLeftBmp;
wxBitmap m_disabledLeftBmp;
wxBitmap m_activeRightBmp;
wxBitmap m_disabledRightBmp;
wxBitmap m_activeWindowListBmp;
wxBitmap m_disabledWindowListBmp;
int m_fixedTabWidth;
unsigned int m_flags;
};
class WXDLLIMPEXP_AUI wxAuiTabContainer class WXDLLIMPEXP_AUI wxAuiTabContainer
{ {
public: public:
@ -536,13 +289,16 @@ public:
bool DeletePage(size_t page); bool DeletePage(size_t page);
bool RemovePage(size_t page); bool RemovePage(size_t page);
size_t GetPageCount() const; virtual size_t GetPageCount() const;
wxWindow* GetPage(size_t pageIdx) const; virtual wxWindow* GetPage(size_t pageIdx) const;
int GetPageIndex(wxWindow* pageWnd) const; int GetPageIndex(wxWindow* pageWnd) const;
bool SetPageText(size_t page, const wxString& text); bool SetPageText(size_t page, const wxString& text);
wxString GetPageText(size_t pageIdx) const; wxString GetPageText(size_t pageIdx) const;
bool SetPageToolTip(size_t page, const wxString& text);
wxString GetPageToolTip(size_t pageIdx) const;
bool SetPageBitmap(size_t page, const wxBitmap& bitmap); bool SetPageBitmap(size_t page, const wxBitmap& bitmap);
wxBitmap GetPageBitmap(size_t pageIdx) const; wxBitmap GetPageBitmap(size_t pageIdx) const;
@ -571,9 +327,6 @@ public:
// Gets the height of the notebook for a given page height // Gets the height of the notebook for a given page height
int GetHeightForPageHeight(int pageHeight); int GetHeightForPageHeight(int pageHeight);
// Advances the selection, generation page selection events
void AdvanceSelection(bool forward = true);
// Shows the window menu // Shows the window menu
bool ShowWindowMenu(); bool ShowWindowMenu();
@ -583,9 +336,6 @@ public:
// we don't want focus for ourselves // we don't want focus for ourselves
// virtual bool AcceptsFocus() const { return false; } // virtual bool AcceptsFocus() const { return false; }
// Redo sizing after thawing
virtual void Thaw();
//wxBookCtrlBase functions //wxBookCtrlBase functions
virtual void SetPageSize (const wxSize &size); virtual void SetPageSize (const wxSize &size);
@ -594,8 +344,6 @@ public:
virtual int GetPageImage(size_t n) const; virtual int GetPageImage(size_t n) const;
virtual bool SetPageImage(size_t n, int imageId); virtual bool SetPageImage(size_t n, int imageId);
wxWindow* GetCurrentPage () const;
virtual int ChangeSelection(size_t n); virtual int ChangeSelection(size_t n);
virtual bool AddPage(wxWindow *page, const wxString &text, bool select, virtual bool AddPage(wxWindow *page, const wxString &text, bool select,
@ -611,6 +359,9 @@ protected:
// choose the default border for this window // choose the default border for this window
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; } virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
// Redo sizing after thawing
virtual void DoThaw();
// these can be overridden // these can be overridden
// update the height, return true if it was done or false if the new height // update the height, return true if it was done or false if the new height
@ -693,21 +444,21 @@ protected:
#ifndef SWIG #ifndef SWIG
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_PAGE_CLOSE, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_PAGE_CHANGED, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_PAGE_CHANGING, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_PAGE_CLOSED, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_BUTTON, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_BUTTON, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_BEGIN_DRAG, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_END_DRAG, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_DRAG_MOTION, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_ALLOW_DND, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_TAB_MIDDLE_DOWN, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_TAB_MIDDLE_UP, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_TAB_RIGHT_DOWN, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_TAB_RIGHT_UP, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_DRAG_DONE, wxAuiNotebookEvent);
wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK, wxAuiNotebookEvent); wxDECLARE_EXPORTED_EVENT(WXDLLIMPEXP_AUI, wxEVT_AUINOTEBOOK_BG_DCLICK, wxAuiNotebookEvent);
typedef void (wxEvtHandler::*wxAuiNotebookEventFunction)(wxAuiNotebookEvent&); typedef void (wxEvtHandler::*wxAuiNotebookEventFunction)(wxAuiNotebookEvent&);
@ -715,73 +466,91 @@ typedef void (wxEvtHandler::*wxAuiNotebookEventFunction)(wxAuiNotebookEvent&);
wxEVENT_HANDLER_CAST(wxAuiNotebookEventFunction, func) wxEVENT_HANDLER_CAST(wxAuiNotebookEventFunction, func)
#define EVT_AUINOTEBOOK_PAGE_CLOSE(winid, fn) \ #define EVT_AUINOTEBOOK_PAGE_CLOSE(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_PAGE_CLOSE, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_PAGE_CLOSED(winid, fn) \ #define EVT_AUINOTEBOOK_PAGE_CLOSED(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_PAGE_CLOSED, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_PAGE_CHANGED(winid, fn) \ #define EVT_AUINOTEBOOK_PAGE_CHANGED(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_PAGE_CHANGED, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_PAGE_CHANGING(winid, fn) \ #define EVT_AUINOTEBOOK_PAGE_CHANGING(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_PAGE_CHANGING, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_BUTTON(winid, fn) \ #define EVT_AUINOTEBOOK_BUTTON(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_BUTTON, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_BUTTON, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_BEGIN_DRAG(winid, fn) \ #define EVT_AUINOTEBOOK_BEGIN_DRAG(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_BEGIN_DRAG, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_END_DRAG(winid, fn) \ #define EVT_AUINOTEBOOK_END_DRAG(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_END_DRAG, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_DRAG_MOTION(winid, fn) \ #define EVT_AUINOTEBOOK_DRAG_MOTION(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_DRAG_MOTION, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_ALLOW_DND(winid, fn) \ #define EVT_AUINOTEBOOK_ALLOW_DND(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_ALLOW_DND, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_DRAG_DONE(winid, fn) \ #define EVT_AUINOTEBOOK_DRAG_DONE(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_DRAG_DONE, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_TAB_MIDDLE_DOWN(winid, fn) \ #define EVT_AUINOTEBOOK_TAB_MIDDLE_DOWN(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_TAB_MIDDLE_DOWN, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_TAB_MIDDLE_UP(winid, fn) \ #define EVT_AUINOTEBOOK_TAB_MIDDLE_UP(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_TAB_MIDDLE_UP, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_TAB_RIGHT_DOWN(winid, fn) \ #define EVT_AUINOTEBOOK_TAB_RIGHT_DOWN(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_TAB_RIGHT_DOWN, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_TAB_RIGHT_UP(winid, fn) \ #define EVT_AUINOTEBOOK_TAB_RIGHT_UP(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_TAB_RIGHT_UP, winid, wxAuiNotebookEventHandler(fn))
#define EVT_AUINOTEBOOK_BG_DCLICK(winid, fn) \ #define EVT_AUINOTEBOOK_BG_DCLICK(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK, winid, wxAuiNotebookEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_AUINOTEBOOK_BG_DCLICK, winid, wxAuiNotebookEventHandler(fn))
#else #else
// wxpython/swig event work // wxpython/swig event work
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE; %constant wxEventType wxEVT_AUINOTEBOOK_PAGE_CLOSE;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED; %constant wxEventType wxEVT_AUINOTEBOOK_PAGE_CLOSED;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED; %constant wxEventType wxEVT_AUINOTEBOOK_PAGE_CHANGED;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING; %constant wxEventType wxEVT_AUINOTEBOOK_PAGE_CHANGING;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_BUTTON; %constant wxEventType wxEVT_AUINOTEBOOK_BUTTON;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG; %constant wxEventType wxEVT_AUINOTEBOOK_BEGIN_DRAG;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_END_DRAG; %constant wxEventType wxEVT_AUINOTEBOOK_END_DRAG;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION; %constant wxEventType wxEVT_AUINOTEBOOK_DRAG_MOTION;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND; %constant wxEventType wxEVT_AUINOTEBOOK_ALLOW_DND;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE; %constant wxEventType wxEVT_AUINOTEBOOK_DRAG_DONE;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN; %constant wxEventType wxEVT_AUINOTEBOOK_TAB_MIDDLE_DOWN;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP; %constant wxEventType wxEVT_AUINOTEBOOK_TAB_MIDDLE_UP;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN; %constant wxEventType wxEVT_AUINOTEBOOK_TAB_RIGHT_DOWN;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP; %constant wxEventType wxEVT_AUINOTEBOOK_TAB_RIGHT_UP;
%constant wxEventType wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK; %constant wxEventType wxEVT_AUINOTEBOOK_BG_DCLICK;
%pythoncode { %pythoncode {
EVT_AUINOTEBOOK_PAGE_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE, 1 ) EVT_AUINOTEBOOK_PAGE_CLOSE = wx.PyEventBinder( wxEVT_AUINOTEBOOK_PAGE_CLOSE, 1 )
EVT_AUINOTEBOOK_PAGE_CLOSED = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED, 1 ) EVT_AUINOTEBOOK_PAGE_CLOSED = wx.PyEventBinder( wxEVT_AUINOTEBOOK_PAGE_CLOSED, 1 )
EVT_AUINOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED, 1 ) EVT_AUINOTEBOOK_PAGE_CHANGED = wx.PyEventBinder( wxEVT_AUINOTEBOOK_PAGE_CHANGED, 1 )
EVT_AUINOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING, 1 ) EVT_AUINOTEBOOK_PAGE_CHANGING = wx.PyEventBinder( wxEVT_AUINOTEBOOK_PAGE_CHANGING, 1 )
EVT_AUINOTEBOOK_BUTTON = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BUTTON, 1 ) EVT_AUINOTEBOOK_BUTTON = wx.PyEventBinder( wxEVT_AUINOTEBOOK_BUTTON, 1 )
EVT_AUINOTEBOOK_BEGIN_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG, 1 ) EVT_AUINOTEBOOK_BEGIN_DRAG = wx.PyEventBinder( wxEVT_AUINOTEBOOK_BEGIN_DRAG, 1 )
EVT_AUINOTEBOOK_END_DRAG = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, 1 ) EVT_AUINOTEBOOK_END_DRAG = wx.PyEventBinder( wxEVT_AUINOTEBOOK_END_DRAG, 1 )
EVT_AUINOTEBOOK_DRAG_MOTION = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION, 1 ) EVT_AUINOTEBOOK_DRAG_MOTION = wx.PyEventBinder( wxEVT_AUINOTEBOOK_DRAG_MOTION, 1 )
EVT_AUINOTEBOOK_ALLOW_DND = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND, 1 ) EVT_AUINOTEBOOK_ALLOW_DND = wx.PyEventBinder( wxEVT_AUINOTEBOOK_ALLOW_DND, 1 )
EVT_AUINOTEBOOK_DRAG_DONE = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE, 1 ) EVT_AUINOTEBOOK_DRAG_DONE = wx.PyEventBinder( wxEVT_AUINOTEBOOK_DRAG_DONE, 1 )
EVT__AUINOTEBOOK_TAB_MIDDLE_DOWN = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN, 1 ) EVT__AUINOTEBOOK_TAB_MIDDLE_DOWN = wx.PyEventBinder( wxEVT_AUINOTEBOOK_TAB_MIDDLE_DOWN, 1 )
EVT__AUINOTEBOOK_TAB_MIDDLE_UP = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP, 1 ) EVT__AUINOTEBOOK_TAB_MIDDLE_UP = wx.PyEventBinder( wxEVT_AUINOTEBOOK_TAB_MIDDLE_UP, 1 )
EVT__AUINOTEBOOK_TAB_RIGHT_DOWN = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN, 1 ) EVT__AUINOTEBOOK_TAB_RIGHT_DOWN = wx.PyEventBinder( wxEVT_AUINOTEBOOK_TAB_RIGHT_DOWN, 1 )
EVT__AUINOTEBOOK_TAB_RIGHT_UP = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP, 1 ) EVT__AUINOTEBOOK_TAB_RIGHT_UP = wx.PyEventBinder( wxEVT_AUINOTEBOOK_TAB_RIGHT_UP, 1 )
EVT_AUINOTEBOOK_BG_DCLICK = wx.PyEventBinder( wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK, 1 ) EVT_AUINOTEBOOK_BG_DCLICK = wx.PyEventBinder( wxEVT_AUINOTEBOOK_BG_DCLICK, 1 )
} }
#endif #endif
// old wxEVT_COMMAND_* constants
#define wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSE wxEVT_AUINOTEBOOK_PAGE_CLOSE
#define wxEVT_COMMAND_AUINOTEBOOK_PAGE_CLOSED wxEVT_AUINOTEBOOK_PAGE_CLOSED
#define wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGED wxEVT_AUINOTEBOOK_PAGE_CHANGED
#define wxEVT_COMMAND_AUINOTEBOOK_PAGE_CHANGING wxEVT_AUINOTEBOOK_PAGE_CHANGING
#define wxEVT_COMMAND_AUINOTEBOOK_BUTTON wxEVT_AUINOTEBOOK_BUTTON
#define wxEVT_COMMAND_AUINOTEBOOK_BEGIN_DRAG wxEVT_AUINOTEBOOK_BEGIN_DRAG
#define wxEVT_COMMAND_AUINOTEBOOK_END_DRAG wxEVT_AUINOTEBOOK_END_DRAG
#define wxEVT_COMMAND_AUINOTEBOOK_DRAG_MOTION wxEVT_AUINOTEBOOK_DRAG_MOTION
#define wxEVT_COMMAND_AUINOTEBOOK_ALLOW_DND wxEVT_AUINOTEBOOK_ALLOW_DND
#define wxEVT_COMMAND_AUINOTEBOOK_DRAG_DONE wxEVT_AUINOTEBOOK_DRAG_DONE
#define wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_DOWN wxEVT_AUINOTEBOOK_TAB_MIDDLE_DOWN
#define wxEVT_COMMAND_AUINOTEBOOK_TAB_MIDDLE_UP wxEVT_AUINOTEBOOK_TAB_MIDDLE_UP
#define wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_DOWN wxEVT_AUINOTEBOOK_TAB_RIGHT_DOWN
#define wxEVT_COMMAND_AUINOTEBOOK_TAB_RIGHT_UP wxEVT_AUINOTEBOOK_TAB_RIGHT_UP
#define wxEVT_COMMAND_AUINOTEBOOK_BG_DCLICK wxEVT_AUINOTEBOOK_BG_DCLICK
#define wxEVT_COMMAND_AUINOTEBOOK_CANCEL_DRAG wxEVT_AUINOTEBOOK_CANCEL_DRAG
#endif // wxUSE_AUI #endif // wxUSE_AUI
#endif // _WX_AUINOTEBOOK_H_ #endif // _WX_AUINOTEBOOK_H_

View File

@ -4,7 +4,6 @@
// Author: Benjamin I. Williams // Author: Benjamin I. Williams
// Modified by: // Modified by:
// Created: 2005-05-17 // Created: 2005-05-17
// RCS-ID: $Id: dockart.h 69590 2011-10-30 14:20:03Z VZ $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved. // Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1 // Licence: wxWindows Library Licence, Version 3.1
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Benjamin I. Williams // Author: Benjamin I. Williams
// Modified by: // Modified by:
// Created: 2005-05-17 // Created: 2005-05-17
// RCS-ID: $Id: floatpane.h 69590 2011-10-30 14:20:03Z VZ $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved. // Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1 // Licence: wxWindows Library Licence, Version 3.1
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Benjamin I. Williams // Author: Benjamin I. Williams
// Modified by: // Modified by:
// Created: 2005-05-17 // Created: 2005-05-17
// RCS-ID: $Id: framemanager.h 70807 2012-03-04 20:31:34Z VZ $
// Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved. // Copyright: (C) Copyright 2005, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1 // Licence: wxWindows Library Licence, Version 3.1
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -0,0 +1,324 @@
//////////////////////////////////////////////////////////////////////////////
// Name: wx/aui/tabart.h
// Purpose: wxaui: wx advanced user interface - notebook
// Author: Benjamin I. Williams
// Modified by: Jens Lody (extracted from wx/aui/auibook.h)
// Created: 2012-03-21
// Copyright: (C) Copyright 2006, Kirix Corporation, All Rights Reserved.
// Licence: wxWindows Library Licence, Version 3.1
///////////////////////////////////////////////////////////////////////////////
#ifndef _WX_AUI_TABART_H_
#define _WX_AUI_TABART_H_
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
#include "wx/defs.h"
#if wxUSE_AUI
#include "wx/colour.h"
#include "wx/gdicmn.h"
#include "wx/font.h"
#include "wx/pen.h"
#include "wx/brush.h"
#include "wx/bitmap.h"
class wxAuiNotebookPage;
class wxAuiNotebookPageArray;
class wxWindow;
class wxDC;
// tab art class
class WXDLLIMPEXP_AUI wxAuiTabArt
{
public:
wxAuiTabArt() { }
virtual ~wxAuiTabArt() { }
virtual wxAuiTabArt* Clone() = 0;
virtual void SetFlags(unsigned int flags) = 0;
virtual void SetSizingInfo(const wxSize& tabCtrlSize,
size_t tabCount) = 0;
virtual void SetNormalFont(const wxFont& font) = 0;
virtual void SetSelectedFont(const wxFont& font) = 0;
virtual void SetMeasuringFont(const wxFont& font) = 0;
virtual void SetColour(const wxColour& colour) = 0;
virtual void SetActiveColour(const wxColour& colour) = 0;
virtual void DrawBorder(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect) = 0;
virtual void DrawBackground(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect) = 0;
virtual void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
const wxRect& inRect,
int closeButtonState,
wxRect* outTabRect,
wxRect* outButtonRect,
int* xExtent) = 0;
virtual void DrawButton(
wxDC& dc,
wxWindow* wnd,
const wxRect& inRect,
int bitmapId,
int buttonState,
int orientation,
wxRect* outRect) = 0;
virtual wxSize GetTabSize(
wxDC& dc,
wxWindow* wnd,
const wxString& caption,
const wxBitmap& bitmap,
bool active,
int closeButtonState,
int* xExtent) = 0;
virtual int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
int activeIdx) = 0;
virtual int GetIndentSize() = 0;
virtual int GetBorderWidth(
wxWindow* wnd) = 0;
virtual int GetAdditionalBorderSpace(
wxWindow* wnd) = 0;
virtual int GetBestTabCtrlSize(
wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
const wxSize& requiredBmpSize) = 0;
};
class WXDLLIMPEXP_AUI wxAuiGenericTabArt : public wxAuiTabArt
{
public:
wxAuiGenericTabArt();
virtual ~wxAuiGenericTabArt();
wxAuiTabArt* Clone();
void SetFlags(unsigned int flags);
void SetSizingInfo(const wxSize& tabCtrlSize,
size_t tabCount);
void SetNormalFont(const wxFont& font);
void SetSelectedFont(const wxFont& font);
void SetMeasuringFont(const wxFont& font);
void SetColour(const wxColour& colour);
void SetActiveColour(const wxColour& colour);
void DrawBorder(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect);
void DrawBackground(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect);
void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
const wxRect& inRect,
int closeButtonState,
wxRect* outTabRect,
wxRect* outButtonRect,
int* xExtent);
void DrawButton(
wxDC& dc,
wxWindow* wnd,
const wxRect& inRect,
int bitmapId,
int buttonState,
int orientation,
wxRect* outRect);
int GetIndentSize();
int GetBorderWidth(
wxWindow* wnd);
int GetAdditionalBorderSpace(
wxWindow* wnd);
wxSize GetTabSize(
wxDC& dc,
wxWindow* wnd,
const wxString& caption,
const wxBitmap& bitmap,
bool active,
int closeButtonState,
int* xExtent);
int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
int activeIdx);
int GetBestTabCtrlSize(wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
const wxSize& requiredBmpSize);
protected:
wxFont m_normalFont;
wxFont m_selectedFont;
wxFont m_measuringFont;
wxColour m_baseColour;
wxPen m_baseColourPen;
wxPen m_borderPen;
wxBrush m_baseColourBrush;
wxColour m_activeColour;
wxBitmap m_activeCloseBmp;
wxBitmap m_disabledCloseBmp;
wxBitmap m_activeLeftBmp;
wxBitmap m_disabledLeftBmp;
wxBitmap m_activeRightBmp;
wxBitmap m_disabledRightBmp;
wxBitmap m_activeWindowListBmp;
wxBitmap m_disabledWindowListBmp;
int m_fixedTabWidth;
int m_tabCtrlHeight;
unsigned int m_flags;
};
class WXDLLIMPEXP_AUI wxAuiSimpleTabArt : public wxAuiTabArt
{
public:
wxAuiSimpleTabArt();
virtual ~wxAuiSimpleTabArt();
wxAuiTabArt* Clone();
void SetFlags(unsigned int flags);
void SetSizingInfo(const wxSize& tabCtrlSize,
size_t tabCount);
void SetNormalFont(const wxFont& font);
void SetSelectedFont(const wxFont& font);
void SetMeasuringFont(const wxFont& font);
void SetColour(const wxColour& colour);
void SetActiveColour(const wxColour& colour);
void DrawBorder(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect);
void DrawBackground(
wxDC& dc,
wxWindow* wnd,
const wxRect& rect);
void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& pane,
const wxRect& inRect,
int closeButtonState,
wxRect* outTabRect,
wxRect* outButtonRect,
int* xExtent);
void DrawButton(
wxDC& dc,
wxWindow* wnd,
const wxRect& inRect,
int bitmapId,
int buttonState,
int orientation,
wxRect* outRect);
int GetIndentSize();
int GetBorderWidth(
wxWindow* wnd);
int GetAdditionalBorderSpace(
wxWindow* wnd);
wxSize GetTabSize(
wxDC& dc,
wxWindow* wnd,
const wxString& caption,
const wxBitmap& bitmap,
bool active,
int closeButtonState,
int* xExtent);
int ShowDropDown(
wxWindow* wnd,
const wxAuiNotebookPageArray& items,
int activeIdx);
int GetBestTabCtrlSize(wxWindow* wnd,
const wxAuiNotebookPageArray& pages,
const wxSize& requiredBmpSize);
protected:
wxFont m_normalFont;
wxFont m_selectedFont;
wxFont m_measuringFont;
wxPen m_normalBkPen;
wxPen m_selectedBkPen;
wxBrush m_normalBkBrush;
wxBrush m_selectedBkBrush;
wxBrush m_bkBrush;
wxBitmap m_activeCloseBmp;
wxBitmap m_disabledCloseBmp;
wxBitmap m_activeLeftBmp;
wxBitmap m_disabledLeftBmp;
wxBitmap m_activeRightBmp;
wxBitmap m_disabledRightBmp;
wxBitmap m_activeWindowListBmp;
wxBitmap m_disabledWindowListBmp;
int m_fixedTabWidth;
unsigned int m_flags;
};
#ifndef __WXUNIVERSAL__
#if defined(__WXGTK20__) && !defined(__WXGTK3__)
#define wxHAS_NATIVE_TABART
#include "wx/aui/tabartgtk.h"
#define wxAuiDefaultTabArt wxAuiGtkTabArt
#endif
#endif // !__WXUNIVERSAL__
#ifndef wxHAS_NATIVE_TABART
#define wxAuiDefaultTabArt wxAuiGenericTabArt
#endif
#endif // wxUSE_AUI
#endif // _WX_AUI_TABART_H_

View File

@ -0,0 +1,58 @@
/////////////////////////////////////////////////////////////////////////////
// Name: include/wx/aui/tabartgtk.h
// Purpose: declaration of the wxAuiGTKTabArt
// Author: Jens Lody and Teodor Petrov
// Modified by:
// Created: 2012-03-23
// Copyright: (c) 2012 Jens Lody <jens@codeblocks.org>
// and Teodor Petrov
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_AUI_TABARTGTK_H_
#define _WX_AUI_TABARTGTK_H_
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
#include "wx/defs.h"
#if wxUSE_AUI
#include "wx/aui/tabart.h"
#include "wx/gdicmn.h"
class wxWindow;
class wxDC;
class WXDLLIMPEXP_AUI wxAuiGtkTabArt : public wxAuiGenericTabArt
{
public:
wxAuiGtkTabArt();
virtual wxAuiTabArt* Clone();
virtual void DrawBorder(wxDC& dc, wxWindow* wnd, const wxRect& rect);
virtual void DrawBackground(wxDC& dc, wxWindow* wnd, const wxRect& rect);
virtual void DrawTab(wxDC& dc,
wxWindow* wnd,
const wxAuiNotebookPage& page,
const wxRect& in_rect,
int close_button_state,
wxRect* out_tab_rect,
wxRect* out_button_rect,
int* x_extent);
void DrawButton(wxDC& dc, wxWindow* wnd, const wxRect& in_rect, int bitmap_id,
int button_state, int orientation, wxRect* out_rect);
int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
const wxSize& required_bmp_size);
int GetBorderWidth(wxWindow* wnd);
int GetAdditionalBorderSpace(wxWindow* wnd);
virtual wxSize GetTabSize(wxDC& dc, wxWindow* wnd, const wxString& caption,
const wxBitmap& bitmap, bool active,
int close_button_state, int* x_extent);
};
#endif // wxUSE_AUI
#endif // _WX_AUI_TABARTGTK_H_

View File

@ -4,7 +4,6 @@
// Author: Hans Van Leemputten // Author: Hans Van Leemputten
// Modified by: Benjamin I. Williams / Kirix Corporation // Modified by: Benjamin I. Williams / Kirix Corporation
// Created: 29/07/2002 // Created: 29/07/2002
// RCS-ID: $Id: tabmdi.h 70909 2012-03-15 13:49:54Z VZ $
// Copyright: (c) Hans Van Leemputten // Copyright: (c) Hans Van Leemputten
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -85,7 +84,6 @@ public:
protected: protected:
wxAuiMDIClientWindow* m_pClientWindow; wxAuiMDIClientWindow* m_pClientWindow;
wxAuiMDIChildFrame* m_pActiveChild;
wxEvent* m_pLastEvt; wxEvent* m_pLastEvt;
#if wxUSE_MENUS #if wxUSE_MENUS
@ -250,6 +248,11 @@ public:
long style = wxVSCROLL | wxHSCROLL); long style = wxVSCROLL | wxHSCROLL);
virtual int SetSelection(size_t page); virtual int SetSelection(size_t page);
virtual wxAuiMDIChildFrame* GetActiveChild();
virtual void SetActiveChild(wxAuiMDIChildFrame* pChildFrame)
{
SetSelection(GetPageIndex(pChildFrame));
}
protected: protected:

View File

@ -3,7 +3,6 @@
// Purpose: wxBannerWindow class declaration // Purpose: wxBannerWindow class declaration
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Created: 2011-08-16 // Created: 2011-08-16
// RCS-ID: $Id: bannerwindow.h 69859 2011-11-28 18:58:52Z VZ $
// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org> // Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -3,7 +3,6 @@
// Purpose: declaration of BASE64 encoding/decoding functionality // Purpose: declaration of BASE64 encoding/decoding functionality
// Author: Charles Reimers, Vadim Zeitlin // Author: Charles Reimers, Vadim Zeitlin
// Created: 2007-06-18 // Created: 2007-06-18
// RCS-ID: $Id: base64.h 62614 2009-11-11 14:38:40Z VZ $
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 07/07/03 // Created: 07/07/03
// RCS-ID: $Id: beforestd.h 64943 2010-07-13 13:29:58Z VZ $
// Copyright: (c) 2003 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> // Copyright: (c) 2003 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Vaclav Slavik // Author: Vaclav Slavik
// Modified by: // Modified by:
// Created: 22.04.01 // Created: 22.04.01
// RCS-ID: $Id: bitmap.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) wxWidgets team // Copyright: (c) wxWidgets team
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -26,6 +25,7 @@ class WXDLLIMPEXP_FWD_CORE wxBitmapHandler;
class WXDLLIMPEXP_FWD_CORE wxIcon; class WXDLLIMPEXP_FWD_CORE wxIcon;
class WXDLLIMPEXP_FWD_CORE wxMask; class WXDLLIMPEXP_FWD_CORE wxMask;
class WXDLLIMPEXP_FWD_CORE wxPalette; class WXDLLIMPEXP_FWD_CORE wxPalette;
class WXDLLIMPEXP_FWD_CORE wxDC;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxVariant support // wxVariant support
@ -83,6 +83,23 @@ protected:
#define wxBITMAP_SCREEN_DEPTH (-1) #define wxBITMAP_SCREEN_DEPTH (-1)
// ----------------------------------------------------------------------------
// wxBitmapHelpers: container for various bitmap methods common to all ports.
// ----------------------------------------------------------------------------
// Unfortunately, currently wxBitmap does not inherit from wxBitmapBase on all
// platforms and this is not easy to fix. So we extract at least some common
// methods into this class from which both wxBitmapBase (and hence wxBitmap on
// all platforms where it does inherit from it) and wxBitmap in wxMSW and other
// exceptional ports (only wxPM and old wxCocoa) inherit.
class WXDLLIMPEXP_CORE wxBitmapHelpers
{
public:
// Create a new wxBitmap from the PNG data in the given buffer.
static wxBitmap NewFromPNGData(const void* data, size_t size);
};
// All ports except wxMSW and wxOS2 use wxBitmapHandler and wxBitmapBase as // All ports except wxMSW and wxOS2 use wxBitmapHandler and wxBitmapBase as
// base class for wxBitmapHandler; wxMSW and wxOS2 use wxGDIImageHandler as // base class for wxBitmapHandler; wxMSW and wxOS2 use wxGDIImageHandler as
// base class since it allows some code reuse there. // base class since it allows some code reuse there.
@ -132,12 +149,12 @@ private:
DECLARE_ABSTRACT_CLASS(wxBitmapHandler) DECLARE_ABSTRACT_CLASS(wxBitmapHandler)
}; };
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxBitmap: class which represents platform-dependent bitmap (unlike wxImage) // wxBitmap: class which represents platform-dependent bitmap (unlike wxImage)
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLIMPEXP_CORE wxBitmapBase : public wxGDIObject class WXDLLIMPEXP_CORE wxBitmapBase : public wxGDIObject,
public wxBitmapHelpers
{ {
public: public:
/* /*
@ -157,6 +174,8 @@ public:
virtual bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH) = 0; virtual bool Create(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH) = 0;
virtual bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) = 0; virtual bool Create(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH) = 0;
virtual bool CreateScaled(int w, int h, int d, double logicalScale)
{ return Create(w*logicalScale,h*logicalScale,d); }
virtual int GetHeight() const = 0; virtual int GetHeight() const = 0;
virtual int GetWidth() const = 0; virtual int GetWidth() const = 0;
@ -165,6 +184,13 @@ public:
wxSize GetSize() const wxSize GetSize() const
{ return wxSize(GetWidth(), GetHeight()); } { return wxSize(GetWidth(), GetHeight()); }
// support for scaled bitmaps
virtual double GetScaleFactor() const { return 1.0; }
virtual double GetScaledWidth() const { return GetWidth() / GetScaleFactor(); }
virtual double GetScaledHeight() const { return GetHeight() / GetScaleFactor(); }
virtual wxSize GetScaledSize() const
{ return wxSize(GetScaledWidth(), GetScaledHeight()); }
#if wxUSE_IMAGE #if wxUSE_IMAGE
virtual wxImage ConvertToImage() const = 0; virtual wxImage ConvertToImage() const = 0;
@ -243,7 +269,11 @@ protected:
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_XPM #define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_XPM
#include "wx/x11/bitmap.h" #include "wx/x11/bitmap.h"
#elif defined(__WXGTK20__) #elif defined(__WXGTK20__)
#ifdef __WINDOWS__
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_BMP_RESOURCE
#else
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_XPM #define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_XPM
#endif
#include "wx/gtk/bitmap.h" #include "wx/gtk/bitmap.h"
#elif defined(__WXGTK__) #elif defined(__WXGTK__)
#define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_XPM #define wxBITMAP_DEFAULT_TYPE wxBITMAP_TYPE_XPM

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 25.08.00 // Created: 25.08.00
// RCS-ID: $Id: bmpbuttn.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) 2000 Vadim Zeitlin // Copyright: (c) 2000 Vadim Zeitlin
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -25,6 +24,8 @@
#define wxHAS_BUTTON_BITMAP #define wxHAS_BUTTON_BITMAP
#endif #endif
class WXDLLIMPEXP_FWD_CORE wxBitmapButton;
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxBitmapButton: a button which shows bitmaps instead of the usual string. // wxBitmapButton: a button which shows bitmaps instead of the usual string.
// It has different bitmaps for different states (focused/disabled/pressed) // It has different bitmaps for different states (focused/disabled/pressed)
@ -64,6 +65,12 @@ public:
validator, name); validator, name);
} }
// Special creation function for a standard "Close" bitmap. It allows to
// simply create a close button with the image appropriate for the common
// platform.
static wxBitmapButton* NewCloseButton(wxWindow* parent, wxWindowID winid);
// set/get the margins around the button // set/get the margins around the button
virtual void SetMargins(int x, int y) virtual void SetMargins(int x, int y)
{ {

View File

@ -5,7 +5,6 @@
// Modified by: // Modified by:
// Created: Aug-31-2006 // Created: Aug-31-2006
// Copyright: (c) Jaakko Salli // Copyright: (c) Jaakko Salli
// RCS-ID: $Id: bmpcbox.h 63204 2010-01-22 15:52:20Z JJ $
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 19.08.03 // Created: 19.08.03
// RCS-ID: $Id: bookctrl.h 69082 2011-09-14 08:24:06Z SJL $
// Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org> // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -95,7 +94,7 @@ public:
virtual size_t GetPageCount() const { return m_pages.size(); } virtual size_t GetPageCount() const { return m_pages.size(); }
// get the panel which represents the given page // get the panel which represents the given page
wxWindow *GetPage(size_t n) const { return m_pages[n]; } virtual wxWindow *GetPage(size_t n) const { return m_pages[n]; }
// get the current page or NULL if none // get the current page or NULL if none
wxWindow *GetCurrentPage() const wxWindow *GetCurrentPage() const
@ -215,6 +214,9 @@ public:
} }
} }
// return the index of the given page or wxNOT_FOUND
int FindPage(const wxWindow* page) const;
// hit test: returns which page is hit and, optionally, where (icon, label) // hit test: returns which page is hit and, optionally, where (icon, label)
virtual int HitTest(const wxPoint& WXUNUSED(pt), virtual int HitTest(const wxPoint& WXUNUSED(pt),
long * WXUNUSED(flags) = NULL) const long * WXUNUSED(flags) = NULL) const
@ -253,6 +255,10 @@ protected:
// false otherwise. // false otherwise.
bool DoSetSelectionAfterInsertion(size_t n, bool bSelect); bool DoSetSelectionAfterInsertion(size_t n, bool bSelect);
// Update the selection after removing the page at the given index,
// typically called from the derived class overridden DoRemovePage().
void DoSetSelectionAfterRemoval(size_t n);
// set the selection to the given page, sending the events (which can // set the selection to the given page, sending the events (which can
// possibly prevent the page change from taking place) if SendEvent flag is // possibly prevent the page change from taking place) if SendEvent flag is
// included // included
@ -277,6 +283,11 @@ protected:
{ wxFAIL_MSG(wxT("Override this function!")); } { wxFAIL_MSG(wxT("Override this function!")); }
// The derived class also may override the following method, also called
// from DoSetSelection(), to show/hide pages differently.
virtual void DoShowPage(wxWindow* page, bool show) { page->Show(show); }
// Should we accept NULL page pointers in Add/InsertPage()? // Should we accept NULL page pointers in Add/InsertPage()?
// //
// Default is no but derived classes may override it if they can treat NULL // Default is no but derived classes may override it if they can treat NULL
@ -284,7 +295,11 @@ protected:
// having nodes without any associated page) // having nodes without any associated page)
virtual bool AllowNullPage() const { return false; } virtual bool AllowNullPage() const { return false; }
// remove the page and return a pointer to it // Remove the page and return a pointer to it.
//
// It also needs to update the current selection if necessary, i.e. if the
// page being removed comes before the selected one and the helper method
// DoSetSelectionAfterRemoval() can be used for this.
virtual wxWindow *DoRemovePage(size_t page) = 0; virtual wxWindow *DoRemovePage(size_t page) = 0;
// our best size is the size which fits all our pages // our best size is the size which fits all our pages
@ -399,20 +414,24 @@ typedef void (wxEvtHandler::*wxBookCtrlEventFunction)(wxBookCtrlEvent&);
// dedicated to majority of desktops // dedicated to majority of desktops
#include "wx/notebook.h" #include "wx/notebook.h"
#define wxBookCtrl wxNotebook #define wxBookCtrl wxNotebook
#define wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED #define wxEVT_BOOKCTRL_PAGE_CHANGED wxEVT_NOTEBOOK_PAGE_CHANGED
#define wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING #define wxEVT_BOOKCTRL_PAGE_CHANGING wxEVT_NOTEBOOK_PAGE_CHANGING
#define EVT_BOOKCTRL_PAGE_CHANGED(id, fn) EVT_NOTEBOOK_PAGE_CHANGED(id, fn) #define EVT_BOOKCTRL_PAGE_CHANGED(id, fn) EVT_NOTEBOOK_PAGE_CHANGED(id, fn)
#define EVT_BOOKCTRL_PAGE_CHANGING(id, fn) EVT_NOTEBOOK_PAGE_CHANGING(id, fn) #define EVT_BOOKCTRL_PAGE_CHANGING(id, fn) EVT_NOTEBOOK_PAGE_CHANGING(id, fn)
#else #else
// dedicated to Smartphones // dedicated to Smartphones
#include "wx/choicebk.h" #include "wx/choicebk.h"
#define wxBookCtrl wxChoicebook #define wxBookCtrl wxChoicebook
#define wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED #define wxEVT_BOOKCTRL_PAGE_CHANGED wxEVT_CHOICEBOOK_PAGE_CHANGED
#define wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING #define wxEVT_BOOKCTRL_PAGE_CHANGING wxEVT_CHOICEBOOK_PAGE_CHANGING
#define EVT_BOOKCTRL_PAGE_CHANGED(id, fn) EVT_CHOICEBOOK_PAGE_CHANGED(id, fn) #define EVT_BOOKCTRL_PAGE_CHANGED(id, fn) EVT_CHOICEBOOK_PAGE_CHANGED(id, fn)
#define EVT_BOOKCTRL_PAGE_CHANGING(id, fn) EVT_CHOICEBOOK_PAGE_CHANGING(id, fn) #define EVT_BOOKCTRL_PAGE_CHANGING(id, fn) EVT_CHOICEBOOK_PAGE_CHANGING(id, fn)
#endif #endif
// old wxEVT_COMMAND_* constants
#define wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGED wxEVT_BOOKCTRL_PAGE_CHANGED
#define wxEVT_COMMAND_BOOKCTRL_PAGE_CHANGING wxEVT_BOOKCTRL_PAGE_CHANGING
#if WXWIN_COMPATIBILITY_2_6 #if WXWIN_COMPATIBILITY_2_6
#define wxBC_TOP wxBK_TOP #define wxBC_TOP wxBK_TOP
#define wxBC_BOTTOM wxBK_BOTTOM #define wxBC_BOTTOM wxBK_BOTTOM

View File

@ -4,7 +4,6 @@
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: // Created:
// RCS-ID: $Id: brush.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: Julian Smart // Copyright: Julian Smart
// Licence: wxWindows Licence // Licence: wxWindows Licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -27,14 +26,14 @@ enum wxBrushStyle
wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE = wxSTIPPLE_MASK_OPAQUE, wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE = wxSTIPPLE_MASK_OPAQUE,
wxBRUSHSTYLE_STIPPLE_MASK = wxSTIPPLE_MASK, wxBRUSHSTYLE_STIPPLE_MASK = wxSTIPPLE_MASK,
wxBRUSHSTYLE_STIPPLE = wxSTIPPLE, wxBRUSHSTYLE_STIPPLE = wxSTIPPLE,
wxBRUSHSTYLE_BDIAGONAL_HATCH = wxBDIAGONAL_HATCH, wxBRUSHSTYLE_BDIAGONAL_HATCH = wxHATCHSTYLE_BDIAGONAL,
wxBRUSHSTYLE_CROSSDIAG_HATCH = wxCROSSDIAG_HATCH, wxBRUSHSTYLE_CROSSDIAG_HATCH = wxHATCHSTYLE_CROSSDIAG,
wxBRUSHSTYLE_FDIAGONAL_HATCH = wxFDIAGONAL_HATCH, wxBRUSHSTYLE_FDIAGONAL_HATCH = wxHATCHSTYLE_FDIAGONAL,
wxBRUSHSTYLE_CROSS_HATCH = wxCROSS_HATCH, wxBRUSHSTYLE_CROSS_HATCH = wxHATCHSTYLE_CROSS,
wxBRUSHSTYLE_HORIZONTAL_HATCH = wxHORIZONTAL_HATCH, wxBRUSHSTYLE_HORIZONTAL_HATCH = wxHATCHSTYLE_HORIZONTAL,
wxBRUSHSTYLE_VERTICAL_HATCH = wxVERTICAL_HATCH, wxBRUSHSTYLE_VERTICAL_HATCH = wxHATCHSTYLE_VERTICAL,
wxBRUSHSTYLE_FIRST_HATCH = wxFIRST_HATCH, wxBRUSHSTYLE_FIRST_HATCH = wxHATCHSTYLE_FIRST,
wxBRUSHSTYLE_LAST_HATCH = wxLAST_HATCH wxBRUSHSTYLE_LAST_HATCH = wxHATCHSTYLE_LAST
}; };

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 12.04.99 // Created: 12.04.99
// RCS-ID: $Id: buffer.h 70417 2012-01-20 22:11:51Z VZ $
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> // Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -230,6 +229,7 @@ protected:
static CharType *StrCopy(const CharType *src, size_t len) static CharType *StrCopy(const CharType *src, size_t len)
{ {
CharType *dst = (CharType*)malloc(sizeof(CharType) * (len + 1)); CharType *dst = (CharType*)malloc(sizeof(CharType) * (len + 1));
if ( dst )
memcpy(dst, src, sizeof(CharType) * (len + 1)); memcpy(dst, src, sizeof(CharType) * (len + 1));
return dst; return dst;
} }
@ -438,7 +438,7 @@ public:
friend class wxMemoryBuffer; friend class wxMemoryBuffer;
// everyting is private as it can only be used by wxMemoryBuffer // everything is private as it can only be used by wxMemoryBuffer
private: private:
wxMemoryBufferData(size_t size = wxMemoryBufferData::DefBufSize) wxMemoryBufferData(size_t size = wxMemoryBufferData::DefBufSize)
: m_data(size ? malloc(size) : NULL), m_size(size), m_len(0), m_ref(0) : m_data(size ? malloc(size) : NULL), m_size(size), m_len(0), m_ref(0)

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin, Vaclav Slavik // Author: Vadim Zeitlin, Vaclav Slavik
// Modified by: // Modified by:
// Created: 07.05.02 // Created: 07.05.02
// RCS-ID: $Id: build.h 67343 2011-03-30 14:16:04Z VZ $
// Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwidgets.org> // Copyright: (c) 2002 Vadim Zeitlin <vadim@wxwidgets.org>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -3,7 +3,6 @@
// Purpose: Information window (when app is busy) // Purpose: Information window (when app is busy)
// Author: Vaclav Slavik // Author: Vaclav Slavik
// Copyright: (c) 1999 Vaclav Slavik // Copyright: (c) 1999 Vaclav Slavik
// RCS-ID: $Id: busyinfo.h 37158 2006-01-26 15:40:46Z ABX $
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Vadim Zetlin // Author: Vadim Zetlin
// Modified by: // Modified by:
// Created: 15.08.00 // Created: 15.08.00
// RCS-ID: $Id: button.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) Vadim Zetlin // Copyright: (c) Vadim Zetlin
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 29.12.99 // Created: 29.12.99
// RCS-ID: $Id: calctrl.h 67681 2011-05-03 16:29:04Z DS $
// Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> // Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 23.05.99 // Created: 23.05.99
// RCS-ID: $Id: caret.h 67280 2011-03-22 14:17:38Z DS $
// Copyright: (c) wxWidgets team // Copyright: (c) wxWidgets team
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
* Author: Joel Farley, Ove Kåven * Author: Joel Farley, Ove Kåven
* Modified by: Vadim Zeitlin, Robert Roebling, Ron Lee * Modified by: Vadim Zeitlin, Robert Roebling, Ron Lee
* Created: 1998/06/12 * Created: 1998/06/12
* RCS-ID: $Id: chartype.h 70345 2012-01-15 01:05:28Z VZ $
* Copyright: (c) 1998-2006 wxWidgets dev team * Copyright: (c) 1998-2006 wxWidgets dev team
* Licence: wxWindows licence * Licence: wxWindows licence
*/ */
@ -48,16 +47,11 @@
Actually MinGW has tchar.h, but it does not include wchar.h Actually MinGW has tchar.h, but it does not include wchar.h
*/ */
#if defined(__MWERKS__) || defined(__VISAGECPP__) || defined(__MINGW32__) || defined(__WATCOMC__) #if defined(__VISAGECPP__) || defined(__MINGW32__) || defined(__WATCOMC__)
#ifndef HAVE_WCHAR_H #ifndef HAVE_WCHAR_H
#define HAVE_WCHAR_H #define HAVE_WCHAR_H
#endif #endif
#endif #endif
#if defined(__MWERKS__) && !defined(__MACH__)
#ifndef HAVE_WCSLEN
#define HAVE_WCSLEN
#endif
#endif
#ifdef HAVE_WCHAR_H #ifdef HAVE_WCHAR_H
/* the current (as of Nov 2002) version of cygwin has a bug in its */ /* the current (as of Nov 2002) version of cygwin has a bug in its */

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 07.09.00 // Created: 07.09.00
// RCS-ID: $Id: checkbox.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team // Copyright: (c) wxWidgets team
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -3,7 +3,6 @@
// Purpose: wxCHECKED_DELETE() macro // Purpose: wxCHECKED_DELETE() macro
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Created: 2009-02-03 // Created: 2009-02-03
// RCS-ID: $Id: checkeddelete.h 58634 2009-02-03 12:01:46Z VZ $
// Copyright: (c) 2002-2009 wxWidgets dev team // Copyright: (c) 2002-2009 wxWidgets dev team
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -11,6 +10,8 @@
#ifndef _WX_CHECKEDDELETE_H_ #ifndef _WX_CHECKEDDELETE_H_
#define _WX_CHECKEDDELETE_H_ #define _WX_CHECKEDDELETE_H_
#include "wx/cpp.h"
// TODO: provide wxCheckedDelete[Array]() template functions too // TODO: provide wxCheckedDelete[Array]() template functions too
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
@ -26,28 +27,17 @@
still force a semicolon after the macro still force a semicolon after the macro
*/ */
#ifdef __WATCOMC__
#define wxFOR_ONCE(name) for(int name=0; name<1; name++)
#define wxPRE_NO_WARNING_SCOPE(name) wxFOR_ONCE(wxMAKE_UNIQUE_NAME(name))
#define wxPOST_NO_WARNING_SCOPE(name)
#else
#define wxPRE_NO_WARNING_SCOPE(name) do
#define wxPOST_NO_WARNING_SCOPE(name) while ( wxFalse )
#endif
#define wxCHECKED_DELETE(ptr) \ #define wxCHECKED_DELETE(ptr) \
wxPRE_NO_WARNING_SCOPE(scope_var1) \ wxSTATEMENT_MACRO_BEGIN \
{ \
typedef char complete[sizeof(*ptr)] WX_ATTRIBUTE_UNUSED; \ typedef char complete[sizeof(*ptr)] WX_ATTRIBUTE_UNUSED; \
delete ptr; \ delete ptr; \
} wxPOST_NO_WARNING_SCOPE(scope_var1) wxSTATEMENT_MACRO_END
#define wxCHECKED_DELETE_ARRAY(ptr) \ #define wxCHECKED_DELETE_ARRAY(ptr) \
wxPRE_NO_WARNING_SCOPE(scope_var2) \ wxSTATEMENT_MACRO_BEGIN \
{ \
typedef char complete[sizeof(*ptr)] WX_ATTRIBUTE_UNUSED; \ typedef char complete[sizeof(*ptr)] WX_ATTRIBUTE_UNUSED; \
delete [] ptr; \ delete [] ptr; \
} wxPOST_NO_WARNING_SCOPE(scope_var2) wxSTATEMENT_MACRO_END
#endif // _WX_CHECKEDDELETE_H_ #endif // _WX_CHECKEDDELETE_H_

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 12.09.00 // Created: 12.09.00
// RCS-ID: $Id: checklst.h 65210 2010-08-08 11:35:55Z VZ $
// Copyright: (c) Vadim Zeitlin // Copyright: (c) Vadim Zeitlin
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -37,6 +36,8 @@ public:
virtual bool IsChecked(unsigned int item) const = 0; virtual bool IsChecked(unsigned int item) const = 0;
virtual void Check(unsigned int item, bool check = true) = 0; virtual void Check(unsigned int item, bool check = true) = 0;
virtual unsigned int GetCheckedItems(wxArrayInt& checkedItems) const;
wxDECLARE_NO_COPY_CLASS(wxCheckListBoxBase); wxDECLARE_NO_COPY_CLASS(wxCheckListBoxBase);
}; };

View File

@ -4,7 +4,6 @@
* Author: Vadim Zeitlin * Author: Vadim Zeitlin
* Modified by: * Modified by:
* Created: 09.08.00 * Created: 09.08.00
* RCS-ID: $Id: chkconf.h 70703 2012-02-26 20:24:25Z VZ $
* Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org> * Copyright: (c) 2000 Vadim Zeitlin <vadim@wxwidgets.org>
* Licence: wxWindows licence * Licence: wxWindows licence
*/ */
@ -92,6 +91,14 @@
# endif # endif
#endif /* wxUSE_ANY */ #endif /* wxUSE_ANY */
#ifndef wxUSE_COMPILER_TLS
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_COMPILER_TLS must be defined, please read comment near the top of this file."
# else
# define wxUSE_COMPILER_TLS 0
# endif
#endif /* !defined(wxUSE_COMPILER_TLS) */
#ifndef wxUSE_CONSOLE_EVENTLOOP #ifndef wxUSE_CONSOLE_EVENTLOOP
# ifdef wxABORT_ON_CONFIG_ERROR # ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file." # error "wxUSE_CONSOLE_EVENTLOOP must be defined, please read comment near the top of this file."
@ -928,6 +935,14 @@
# endif # endif
#endif /* !defined(wxUSE_POPUPWIN) */ #endif /* !defined(wxUSE_POPUPWIN) */
#ifndef wxUSE_PREFERENCES_EDITOR
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_PREFERENCES_EDITOR must be defined, please read comment near the top of this file."
# else
# define wxUSE_PREFERENCES_EDITOR 0
# endif
#endif /* !defined(wxUSE_PREFERENCES_EDITOR) */
#ifndef wxUSE_PRINTING_ARCHITECTURE #ifndef wxUSE_PRINTING_ARCHITECTURE
# ifdef wxABORT_ON_CONFIG_ERROR # ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file." # error "wxUSE_PRINTING_ARCHITECTURE must be defined, please read comment near the top of this file."
@ -1203,8 +1218,11 @@
#if defined(__WXWINCE__) #if defined(__WXWINCE__)
# include "wx/msw/wince/chkconf.h" # include "wx/msw/wince/chkconf.h"
#elif defined(__WXMSW__) #elif defined(__WINDOWS__)
# include "wx/msw/chkconf.h" # include "wx/msw/chkconf.h"
# if defined(__WXGTK__)
# include "wx/gtk/chkconf.h"
# endif
#elif defined(__WXGTK__) #elif defined(__WXGTK__)
# include "wx/gtk/chkconf.h" # include "wx/gtk/chkconf.h"
#elif defined(__WXCOCOA__) #elif defined(__WXCOCOA__)
@ -1225,9 +1243,9 @@
/* /*
__UNIX__ is also defined under Cygwin but we shouldn't perform these checks __UNIX__ is also defined under Cygwin but we shouldn't perform these checks
there if we're building wxMSW. there if we're building Windows ports.
*/ */
#if defined(__UNIX__) && !defined(__WXMSW__) #if defined(__UNIX__) && !defined(__WINDOWS__)
# include "wx/unix/chkconf.h" # include "wx/unix/chkconf.h"
#endif #endif
@ -1451,7 +1469,7 @@
*/ */
#if wxUSE_GUI #if wxUSE_GUI
#if wxUSE_ACCESSIBILITY && !defined(__WXMSW__) && !defined(__GCCXML__) #if wxUSE_ACCESSIBILITY && !defined(__WXMSW__)
# ifdef wxABORT_ON_CONFIG_ERROR # ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW" # error "wxUSE_ACCESSIBILITY is currently only supported under wxMSW"
# else # else
@ -2181,6 +2199,33 @@
# endif # endif
#endif /* wxUSE_WEBVIEW && !any web view backend */ #endif /* wxUSE_WEBVIEW && !any web view backend */
#if wxUSE_PREFERENCES_EDITOR
/*
We can use either a generic implementation, using wxNotebook, or a
native one under wxOSX/Cocoa but then we must be using the native
toolbar.
*/
# if !wxUSE_NOTEBOOK
# ifdef __WXOSX_COCOA__
# if !wxUSE_TOOLBAR || !wxOSX_USE_NATIVE_TOOLBAR
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_PREFERENCES_EDITOR requires native toolbar in wxOSX"
# else
# undef wxUSE_PREFERENCES_EDITOR
# define wxUSE_PREFERENCES_EDITOR 0
# endif
# endif
# else
# ifdef wxABORT_ON_CONFIG_ERROR
# error "wxUSE_PREFERENCES_EDITOR requires wxNotebook"
# else
# undef wxUSE_PREFERENCES_EDITOR
# define wxUSE_PREFERENCES_EDITOR 0
# endif
# endif
# endif
#endif /* wxUSE_PREFERENCES_EDITOR */
#endif /* wxUSE_GUI */ #endif /* wxUSE_GUI */
#endif /* _WX_CHKCONF_H_ */ #endif /* _WX_CHKCONF_H_ */

View File

@ -4,7 +4,6 @@
// Author: Julian Smart // Author: Julian Smart
// Modified by: // Modified by:
// Created: // Created:
// RCS-ID: $Id: choicdlg.h 67254 2011-03-20 00:14:35Z DS $
// Copyright: Julian Smart // Copyright: Julian Smart
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 26.07.99 // Created: 26.07.99
// RCS-ID: $Id: choice.h 70345 2012-01-15 01:05:28Z VZ $
// Copyright: (c) wxWidgets team // Copyright: (c) wxWidgets team
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -58,6 +57,13 @@ public:
// override wxItemContainer::IsSorted // override wxItemContainer::IsSorted
virtual bool IsSorted() const { return HasFlag(wxCB_SORT); } virtual bool IsSorted() const { return HasFlag(wxCB_SORT); }
protected:
// The generic implementation doesn't determine the height correctly and
// doesn't account for the width of the arrow but does take into account
// the string widths, so the derived classes should override it and set the
// height and add the arrow width to the size returned by this version.
virtual wxSize DoGetBestSize() const;
private: private:
wxDECLARE_NO_COPY_CLASS(wxChoiceBase); wxDECLARE_NO_COPY_CLASS(wxChoiceBase);
}; };

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: Wlodzimierz ABX Skiba from wx/listbook.h // Modified by: Wlodzimierz ABX Skiba from wx/listbook.h
// Created: 15.09.04 // Created: 15.09.04
// RCS-ID: $Id: choicebk.h 68810 2011-08-21 14:08:49Z VZ $
// Copyright: (c) Vadim Zeitlin, Wlodzimierz Skiba // Copyright: (c) Vadim Zeitlin, Wlodzimierz Skiba
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
@ -18,11 +17,12 @@
#include "wx/bookctrl.h" #include "wx/bookctrl.h"
#include "wx/choice.h" #include "wx/choice.h"
#include "wx/containr.h"
class WXDLLIMPEXP_FWD_CORE wxChoice; class WXDLLIMPEXP_FWD_CORE wxChoice;
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, wxBookCtrlEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_CHOICEBOOK_PAGE_CHANGED, wxBookCtrlEvent );
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, wxBookCtrlEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_CHOICEBOOK_PAGE_CHANGING, wxBookCtrlEvent );
// wxChoicebook flags // wxChoicebook flags
#define wxCHB_DEFAULT wxBK_DEFAULT #define wxCHB_DEFAULT wxBK_DEFAULT
@ -36,7 +36,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGI
// wxChoicebook // wxChoicebook
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
class WXDLLIMPEXP_CORE wxChoicebook : public wxBookCtrlBase class WXDLLIMPEXP_CORE wxChoicebook : public wxNavigationEnabled<wxBookCtrlBase>
{ {
public: public:
wxChoicebook() { } wxChoicebook() { }
@ -111,15 +111,19 @@ private:
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// wxChoicebookEvent is obsolete and defined for compatibility only // wxChoicebookEvent is obsolete and defined for compatibility only
typedef wxBookCtrlEvent wxChoicebookEvent; #define wxChoicebookEvent wxBookCtrlEvent
typedef wxBookCtrlEventFunction wxChoicebookEventFunction; typedef wxBookCtrlEventFunction wxChoicebookEventFunction;
#define wxChoicebookEventHandler(func) wxBookCtrlEventHandler(func) #define wxChoicebookEventHandler(func) wxBookCtrlEventHandler(func)
#define EVT_CHOICEBOOK_PAGE_CHANGED(winid, fn) \ #define EVT_CHOICEBOOK_PAGE_CHANGED(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED, winid, wxBookCtrlEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_CHOICEBOOK_PAGE_CHANGED, winid, wxBookCtrlEventHandler(fn))
#define EVT_CHOICEBOOK_PAGE_CHANGING(winid, fn) \ #define EVT_CHOICEBOOK_PAGE_CHANGING(winid, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING, winid, wxBookCtrlEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_CHOICEBOOK_PAGE_CHANGING, winid, wxBookCtrlEventHandler(fn))
// old wxEVT_COMMAND_* constants
#define wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED wxEVT_CHOICEBOOK_PAGE_CHANGED
#define wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING wxEVT_CHOICEBOOK_PAGE_CHANGING
#endif // wxUSE_CHOICEBOOK #endif // wxUSE_CHOICEBOOK

View File

@ -4,7 +4,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 19.10.99 // Created: 19.10.99
// RCS-ID: $Id: clipbrd.h 70353 2012-01-15 14:46:41Z VZ $
// Copyright: (c) wxWidgets Team // Copyright: (c) wxWidgets Team
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Robin Dunn // Author: Robin Dunn
// Modified by: // Modified by:
// Created: 9-Oct-2001 // Created: 9-Oct-2001
// RCS-ID: $Id: clntdata.h 47730 2007-07-26 13:54:14Z VZ $
// Copyright: (c) wxWidgets team // Copyright: (c) wxWidgets team
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -5,7 +5,6 @@
// Modified by: // Modified by:
// Created: 14/4/2006 // Created: 14/4/2006
// Copyright: (c) Vadim Zeitlin, Francesco Montorsi // Copyright: (c) Vadim Zeitlin, Francesco Montorsi
// RCS-ID: $Id: clrpicker.h 58718 2009-02-07 18:59:25Z VZ $
// Licence: wxWindows Licence // Licence: wxWindows Licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -98,7 +97,7 @@ protected:
class WXDLLIMPEXP_CORE wxColourPickerCtrl : public wxPickerBase class WXDLLIMPEXP_CORE wxColourPickerCtrl : public wxPickerBase
{ {
public: public:
wxColourPickerCtrl() : m_bIgnoreNextTextCtrlUpdate(false) {} wxColourPickerCtrl() {}
virtual ~wxColourPickerCtrl() {} virtual ~wxColourPickerCtrl() {}
@ -107,7 +106,6 @@ public:
const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE, const wxSize& size = wxDefaultSize, long style = wxCLRP_DEFAULT_STYLE,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxColourPickerCtrlNameStr) const wxString& name = wxColourPickerCtrlNameStr)
: m_bIgnoreNextTextCtrlUpdate(false)
{ Create(parent, id, col, pos, size, style, validator, name); } { Create(parent, id, col, pos, size, style, validator, name); }
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
@ -148,9 +146,6 @@ protected:
virtual long GetPickerStyle(long style) const virtual long GetPickerStyle(long style) const
{ return (style & wxCLRP_SHOW_LABEL); } { return (style & wxCLRP_SHOW_LABEL); }
// true if the next UpdateTextCtrl() call is to ignore
bool m_bIgnoreNextTextCtrlUpdate;
private: private:
DECLARE_DYNAMIC_CLASS(wxColourPickerCtrl) DECLARE_DYNAMIC_CLASS(wxColourPickerCtrl)
}; };
@ -160,14 +155,14 @@ private:
// wxColourPickerEvent: used by wxColourPickerCtrl only // wxColourPickerEvent: used by wxColourPickerCtrl only
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COMMAND_COLOURPICKER_CHANGED, wxColourPickerEvent ); wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COLOURPICKER_CHANGED, wxColourPickerEvent );
class WXDLLIMPEXP_CORE wxColourPickerEvent : public wxCommandEvent class WXDLLIMPEXP_CORE wxColourPickerEvent : public wxCommandEvent
{ {
public: public:
wxColourPickerEvent() {} wxColourPickerEvent() {}
wxColourPickerEvent(wxObject *generator, int id, const wxColour &col) wxColourPickerEvent(wxObject *generator, int id, const wxColour &col)
: wxCommandEvent(wxEVT_COMMAND_COLOURPICKER_CHANGED, id), : wxCommandEvent(wxEVT_COLOURPICKER_CHANGED, id),
m_colour(col) m_colour(col)
{ {
SetEventObject(generator); SetEventObject(generator);
@ -196,9 +191,12 @@ typedef void (wxEvtHandler::*wxColourPickerEventFunction)(wxColourPickerEvent&);
wxEVENT_HANDLER_CAST(wxColourPickerEventFunction, func) wxEVENT_HANDLER_CAST(wxColourPickerEventFunction, func)
#define EVT_COLOURPICKER_CHANGED(id, fn) \ #define EVT_COLOURPICKER_CHANGED(id, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_COLOURPICKER_CHANGED, id, wxColourPickerEventHandler(fn)) wx__DECLARE_EVT1(wxEVT_COLOURPICKER_CHANGED, id, wxColourPickerEventHandler(fn))
// old wxEVT_COMMAND_* constant
#define wxEVT_COMMAND_COLOURPICKER_CHANGED wxEVT_COLOURPICKER_CHANGED
#endif // wxUSE_COLOURPICKERCTRL #endif // wxUSE_COLOURPICKERCTRL
#endif // _WX_CLRPICKER_H_BASE_ #endif // _WX_CLRPICKER_H_BASE_

View File

@ -3,7 +3,6 @@
// Purpose: declaration of wxCmdLineArgsArray helper class // Purpose: declaration of wxCmdLineArgsArray helper class
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Created: 2007-11-12 // Created: 2007-11-12
// RCS-ID: $Id: cmdargs.h 58757 2009-02-08 11:45:59Z VZ $
// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org> // Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -5,7 +5,6 @@
// Author: Vadim Zeitlin // Author: Vadim Zeitlin
// Modified by: // Modified by:
// Created: 04.01.00 // Created: 04.01.00
// RCS-ID: $Id: cmdline.h 69797 2011-11-22 13:18:58Z VZ $
// Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> // Copyright: (c) 2000 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Julian Smart (extracted from docview.h by VZ) // Author: Julian Smart (extracted from docview.h by VZ)
// Modified by: // Modified by:
// Created: 05.11.00 // Created: 05.11.00
// RCS-ID: $Id: cmdproc.h 70459 2012-01-25 00:05:09Z VZ $
// Copyright: (c) wxWidgets team // Copyright: (c) wxWidgets team
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Julian Smart and others // Author: Julian Smart and others
// Modified by: // Modified by:
// Created: 01/02/97 // Created: 01/02/97
// RCS-ID: $Id: cmndata.h 70636 2012-02-20 21:55:55Z VZ $
// Copyright: (c) // Copyright: (c)
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2004/01/26 // Created: 2004/01/26
// RCS-ID: $Id: NSApplication.h 67280 2011-03-22 14:17:38Z DS $
// Copyright: (c) 2003,2004 David Elliott // Copyright: (c) 2003,2004 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/19 // Created: 2003/03/19
// RCS-ID: $Id: NSBox.h 58022 2009-01-11 12:00:51Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2002/12/09 // Created: 2002/12/09
// RCS-ID: $Id: NSButton.h 38031 2006-03-12 15:10:23Z VZ $
// Copyright: (c) 2002-2004 David Elliott // Copyright: (c) 2002-2004 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/02/15 // Created: 2003/02/15
// RCS-ID: $Id: NSControl.h 58022 2009-01-11 12:00:51Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2002/12/09 // Created: 2002/12/09
// RCS-ID: $Id: NSMenu.h 49523 2007-10-29 16:18:59Z DE $
// Copyright: (c) 2002 David Elliott // Copyright: (c) 2002 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: NSPanel.h 42046 2006-10-16 09:30:01Z ABX $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2004/04/27 // Created: 2004/04/27
// RCS-ID: $Id: NSScroller.h 38031 2006-03-12 15:10:23Z VZ $
// Copyright: (c) 2004 David Elliott // Copyright: (c) 2004 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Mark Oxenham // Author: Mark Oxenham
// Modified by: David Elliott // Modified by: David Elliott
// Created: 2007/08/10 // Created: 2007/08/10
// RCS-ID: $Id: NSSlider.h 64940 2010-07-13 13:29:13Z VZ $
// Copyright: (c) 2007 Software 2000 Ltd. All rights reserved. // Copyright: (c) 2007 Software 2000 Ltd. All rights reserved.
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2004/04/08 // Created: 2004/04/08
// RCS-ID: $Id: NSTabView.h 38031 2006-03-12 15:10:23Z VZ $
// Copyright: (c) 2004 David Elliott // Copyright: (c) 2004 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/08/05 // Created: 2003/08/05
// RCS-ID: $Id: NSTableDataSource.h 48106 2007-08-15 16:10:19Z DE $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/08/05 // Created: 2003/08/05
// RCS-ID: $Id: NSTableView.h 38031 2006-03-12 15:10:23Z VZ $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2002/12/09 // Created: 2002/12/09
// RCS-ID: $Id: NSTextField.h 58022 2009-01-11 12:00:51Z FM $
// Copyright: (c) 2002 David Elliott // Copyright: (c) 2002 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/02/15 // Created: 2003/02/15
// RCS-ID: $Id: NSView.h 51576 2008-02-06 20:10:07Z DE $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: NSWindow.h 49523 2007-10-29 16:18:59Z DE $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2002/12/03 // Created: 2002/12/03
// RCS-ID: $Id: ObjcAssociate.h 42046 2006-10-16 09:30:01Z ABX $
// Copyright: (c) 2002 David Elliott <dfe@cox.net> // Copyright: (c) 2002 David Elliott <dfe@cox.net>
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2004/03/28 // Created: 2004/03/28
// RCS-ID: $Id: ObjcRef.h 61724 2009-08-21 10:41:26Z VZ $
// Copyright: (c) 2004 David Elliott <dfe@cox.net> // Copyright: (c) 2004 David Elliott <dfe@cox.net>
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2002/11/27 // Created: 2002/11/27
// RCS-ID: $Id: app.h 67254 2011-03-20 00:14:35Z DS $
// Copyright: (c) 2002 David Elliott // Copyright: (c) 2002 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/07/11 // Created: 2003/07/11
// RCS-ID: $Id: autorelease.h 61724 2009-08-21 10:41:26Z VZ $
// Copyright: (c) 2003 David Elliott <dfe@cox.net> // Copyright: (c) 2003 David Elliott <dfe@cox.net>
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/07/19 // Created: 2003/07/19
// RCS-ID: $Id: bitmap.h 59526 2009-03-14 13:57:51Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -64,7 +63,8 @@ protected:
// wxBitmap // wxBitmap
// ======================================================================== // ========================================================================
class WXDLLIMPEXP_CORE wxBitmap: public wxGDIObject class WXDLLIMPEXP_CORE wxBitmap: public wxGDIObject,
public wxBitmapHelpers
{ {
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
// initialization // initialization

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: bmpbuttn.h 52834 2008-03-26 15:06:00Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott <dfe@cox.net> // Author: David Elliott <dfe@cox.net>
// Modified by: // Modified by:
// Created: 2003/07/03 // Created: 2003/07/03
// RCS-ID: $Id: brush.h 54273 2008-06-17 17:28:26Z VZ $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2002/12/29 // Created: 2002/12/29
// RCS-ID: $Id: button.h 52834 2008-03-26 15:06:00Z FM $
// Copyright: (c) 2002 David Elliott // Copyright: (c) 2002 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: checkbox.h 52834 2008-03-26 15:06:00Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: checklst.h 52834 2008-03-26 15:06:00Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -3,7 +3,6 @@
* Purpose: wxCocoa-specific config settings checks * Purpose: wxCocoa-specific config settings checks
* Author: Vadim Zeitlin * Author: Vadim Zeitlin
* Created: 2008-09-11 * Created: 2008-09-11
* RCS-ID: $Id: chkconf.h 67497 2011-04-15 19:18:34Z DS $
* Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org> * Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
* Licence: wxWindows licence * Licence: wxWindows licence
*/ */

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: choice.h 52834 2008-03-26 15:06:00Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott <dfe@cox.net> // Author: David Elliott <dfe@cox.net>
// Modified by: // Modified by:
// Created: 2003/07/23 // Created: 2003/07/23
// RCS-ID: $Id: clipbrd.h 67254 2011-03-20 00:14:35Z DS $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/06/17 // Created: 2003/06/17
// RCS-ID: $Id: colour.h 54125 2008-06-11 19:17:41Z SC $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: Ryan Norton // Author: Ryan Norton
// Modified by: // Modified by:
// Created: 2005/02/16 // Created: 2005/02/16
// RCS-ID: $Id: combobox.h 59263 2009-03-02 12:25:01Z VZ $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/02/15 // Created: 2003/02/15
// RCS-ID: $Id: control.h 52834 2008-03-26 15:06:00Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott <dfe@cox.net> // Author: David Elliott <dfe@cox.net>
// Modified by: // Modified by:
// Created: 2002/11/27 // Created: 2002/11/27
// RCS-ID: $Id: cursor.h 58757 2009-02-08 11:45:59Z VZ $
// Copyright: (c) David Elliott // Copyright: (c) David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott <dfe@cox.net> // Author: David Elliott <dfe@cox.net>
// Modified by: // Modified by:
// Created: 2003/07/23 // Created: 2003/07/23
// RCS-ID: $Id: dataform.h 46254 2007-05-30 22:02:19Z VS $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott <dfe@cox.net> // Author: David Elliott <dfe@cox.net>
// Modified by: // Modified by:
// Created: 2003/07/23 // Created: 2003/07/23
// RCS-ID: $Id: dataobj.h 48095 2007-08-15 13:05:35Z VS $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott <dfe@cox.net> // Author: David Elliott <dfe@cox.net>
// Modified by: // Modified by:
// Created: 2003/07/23 // Created: 2003/07/23
// RCS-ID: $Id: dataobj2.h 58227 2009-01-19 13:55:27Z VZ $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/04/01 // Created: 2003/04/01
// RCS-ID: $Id: dc.h 70165 2011-12-29 14:42:13Z SN $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -165,9 +164,9 @@ protected:
virtual void DoGetSize(int *width, int *height) const; virtual void DoGetSize(int *width, int *height) const;
virtual void DoGetSizeMM(int* width, int* height) const; virtual void DoGetSizeMM(int* width, int* height) const;
virtual void DoDrawLines(int n, wxPoint points[], virtual void DoDrawLines(int n, const wxPoint points[],
wxCoord xoffset, wxCoord yoffset); wxCoord xoffset, wxCoord yoffset);
virtual void DoDrawPolygon(int n, wxPoint points[], virtual void DoDrawPolygon(int n, const wxPoint points[],
wxCoord xoffset, wxCoord yoffset, wxCoord xoffset, wxCoord yoffset,
wxPolygonFillMode fillStyle = wxODDEVEN_RULE); wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
}; };

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/04/01 // Created: 2003/04/01
// RCS-ID: $Id: dcclient.h 50462 2007-12-04 04:22:16Z DE $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: dcmemory.h 57907 2009-01-08 14:21:53Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2003/03/16 // Created: 2003/03/16
// RCS-ID: $Id: dcscreen.h 52834 2008-03-26 15:06:00Z FM $
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@ -4,7 +4,6 @@
// Author: David Elliott // Author: David Elliott
// Modified by: // Modified by:
// Created: 2002/12/15 // Created: 2002/12/15
// RCS-ID: $Id: dialog.h 52834 2008-03-26 15:06:00Z FM $
// Copyright: David Elliott // Copyright: David Elliott
// Licence: wxWindows licence // Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

Some files were not shown because too many files have changed in this diff Show More