Commit Graph

67 Commits

Author SHA1 Message Date
Vadim Zeitlin
0e27ef576e Don't duplicate wxImage::ConvertToDisabled() in wxAUI code.
Just reuse the existing function.

Also add an example of showing a disabled bitmap to the aui sample.

Closes #13303.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-09 23:36:44 +00:00
Dimitri Schoolwerth
4c51a665c6 Fixed various typos.
Applied patch by snowleopard2 fixing a bunch of typos such as misspellings and double words in the documentation. Combined the patch with some local queued typos waiting to be committed as well as adding new typo fixes inspired by the patch.

Function names with American spelling were not changed nor was third-party code touched. The only code changes involve some changes in strings that are translated ("Can not" -> "Cannot").

Closes #13063 (again).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-22 14:17:38 +00:00
Dimitri Schoolwerth
6636ef8ddf Use wxString's empty() when checking if the string is (non-)empty throughout wx.
Instead of constructs such as if "( s.length() )" and "if (s.length() > 0)" use "if ( !s.empty() )" instead. Similarly for "if (s.length() == 0)" or "if ( s.IsNull() )", use "if ( s.empty() )".
No code changes intended except for a few instances where a construct like "if ( s.length() && wxFileExists(s) )" was changed to not check the length of the string and let wxFileExists handle such cases.



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-22 14:38:36 +00:00
Vadim Zeitlin
4254f67216 Add support for icons in wxAUI panes title bars.
Add wxAuiPaneInfo::Icon() method and shows its use in the sample.

Closes #12856.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-12 13:39:36 +00:00
Vadim Zeitlin
18f42b94df Remove calls to wxApp::SetTopWindow() from the samples and documentation.
It is definitely not necessary to call SetTopWindow() when there is only a
single top level window and it is arguable whether it's useful to do it even
when there are many of them so don't encourage its use in the documentation
and also remove all its occurrences from the samples.

Closes #12816.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-02 22:05:14 +00:00
Vadim Zeitlin
e5dcae09e6 Add support for auto-orientable toolbars to AUI.
Allow wxAUI to change the toolbar orientation depending on where is it docked.
It is also now possible to specify wxAUI_TB_VERTICAL or HORIZONTAL to force
the toolbar to be always oriented in the given sense and to prevent it from
being docked at the sides incompatible with it.

Closes #11712.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-07-23 23:33:10 +00:00
Vadim Zeitlin
0772a89875 Ensure that setting wxChoice height to its default value does set it.
Setting wxChoice height to its default value didn't change the height even if
the current height was different from the default. This resulted in problems
when a wxChoice was used inside a wxAuiToolBar because AUI temporarily reduces
the toolbar size to (1, 1) when docking it (thus ensuring that the height of
wxChoice is changed too) and generally didn't make sense.

Fix this by resetting the height to the default value if the value passed to
wxChoice::SetSize() is what it considers to be its default height.

Add a unit test for this bug and also add a wxChoice to AUI sample to allow
testing for wxChoice behaviour inside a wxAuiToolBar being [un]docked.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-18 15:07:39 +00:00
Vadim Zeitlin
917f228a1f Reset wxAuiNotebook selection to wxNOT_FOUND if it becomes empty.
The selection was 0 in a notebook without any pages which was wrong as it must
always be less than the page count.

Fix this in wxAuiNotebook itself and add an assert checking for this invariant
to the sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-06 13:30:01 +00:00
Vadim Zeitlin
f9199323a4 Make the code more clear in aui sample and avoid g++ 4 warning.
The code used bitwise XOR which was rather difficult to read and also resulted
in g++ 4 warnings about suggested parentheses.

Fix both issues by using bitwise AND and OR in two separate statements instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-03-05 23:55:23 +00:00
Julian Smart
64178c3602 Speed up adding pages during freezing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-08 14:07:43 +00:00
Benjamin Williams
b6d74808f6 fix misusage of wxFlexGridSizer that was causing an assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 08:34:27 +00:00
Benjamin Williams
d45d5bb2b2 updated aui sample to demonstrate/test wxITEM_RADIO support in toolbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-18 13:53:34 +00:00
Vadim Zeitlin
038d59e979 undo the change of r57522, it's not needed any more after r59136
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 21:01:53 +00:00
Julian Smart
68030cae69 Added wxAUI_MGR_LIVE_RESIZE flag for live sash sizing, the default on wxOSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-07 14:45:27 +00:00
Francesco Montorsi
88fff2a712 use accelerators for menu items and stock menu item labels for stock IDs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-27 14:28:46 +00:00
Vadim Zeitlin
16a6495db3 call wxFlexGridSizer::AddGrowableRow() only when the sizer has enough rows for the indices to be valid
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-24 00:41:23 +00:00
Benjamin Williams
0766faa34e fix aui sample breakage; added some accessor methods to wxAuiToolBarItem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-08 09:56:49 +00:00
Benjamin Williams
b5d196c1d4 updated aui sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-24 09:28:26 +00:00
Vadim Zeitlin
11986debff don't use the same tool ids for multiple tools, this is bad idea under Windows and breaks tool commands handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-18 13:40:18 +00:00
Vadim Zeitlin
1df90f2dbc add a combobox to one of the toolbars, just for testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-08 13:28:21 +00:00
Julian Smart
5edb3cb52d Pass correct values to spin control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-12 21:01:58 +00:00
Vadim Zeitlin
45e6e6f8ab call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +00:00
Vadim Zeitlin
75d0223f8c corrected crash: need to set m_frame eariler (Wlodek Szafran, closes bug 1636225)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-18 14:03:16 +00:00
Robin Dunn
bc07ab17bf reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-11 04:44:52 +00:00
Benjamin Williams
95c82627c8 removed duplicate pane bug in sample application
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-21 09:04:33 +00:00
Benjamin Williams
348861327b fixed a center pane bug in sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-20 19:33:48 +00:00
Benjamin Williams
254a342953 renamed wxAUI_ART to wxAUI_DOCKART
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-17 11:28:17 +00:00
Benjamin Williams
45980d81f3 corrected sentence
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-13 21:00:52 +00:00
Benjamin Williams
b809d2a4bd added new features to welcome page
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-13 18:39:42 +00:00
Benjamin Williams
73212f3518 updated nomenclature in menu item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-10 06:23:24 +00:00
Benjamin Williams
2b9aac3387 wxAuiNotebook bitmaps working now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 15:19:38 +00:00
Benjamin Williams
50d5ad7d77 elipsis for oversized pane captions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-07 15:40:23 +00:00
Benjamin Williams
9c1d6ef42e added image to root item of tree in aui sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-07 09:31:42 +00:00
Benjamin Williams
b0d17f7c3f new default theme for wxAuiNotebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-07 08:10:16 +00:00
Benjamin Williams
3fd8c98854 implemented page close event for wxAuiNotebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 15:05:08 +00:00
Benjamin Williams
5d3aeb0f57 wxAuiNotebook has external tab dragging now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 13:44:26 +00:00
Benjamin Williams
8bfde0a840 aui sample can now create extra notebooks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 07:46:01 +00:00
Benjamin Williams
01372b8f09 implemented wxAUI_NB_WINDOWLIST_BUTTON and wxAUI_NB_SCROLL_BUTTONS in wxAuiNotebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 20:27:38 +00:00
Benjamin Williams
51100f50fe aui sample update to include newly implemented options
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 15:41:56 +00:00
Benjamin Williams
931483d799 option for no close button for wxAuiNotebook in aui demo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 14:54:38 +00:00
Benjamin Williams
c50fa29f43 updated aui sample to expose notebook flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-02 14:13:53 +00:00
Benjamin Williams
a3a5df9d92 wxaui big class rename
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 18:51:44 +00:00
Benjamin Williams
37106ab28e wxaui maximize/restore button patch from Aleksey Sanin (many thanks)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 17:43:51 +00:00
Benjamin Williams
702b1c7e8a wxaui notebook style flags added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-01 17:10:58 +00:00
Benjamin Williams
4953f8cf3b wxaui notebook tabs can scroll; notebook themability improved
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 16:34:05 +00:00
Benjamin Williams
dbd2f79065 made the multi-notebook the default view in the aui sample; added welcome screen to the notebook
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 07:21:27 +00:00
Benjamin Williams
cf6fec73d7 wxaui flags reworked a bit; allows any hinting type to be explicity invoked; turning off hinting completely is not possible; sample updated accordingly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 13:20:15 +00:00
Paul Cornett
87d658e5d7 wrong caption for html window, cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-15 07:01:59 +00:00
Paul Cornett
b143cf708b 64-bit warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-02 05:36:31 +00:00
Benjamin Williams
2e5c35af4e got rid of some extra borders
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-13 14:23:02 +00:00