Vadim Zeitlin
0d394eec9c
Update to bakefile 0.2.11 and rebake everything
...
The main/only change in this version is the removal of automatic rules
using old Carbon Rez/DeRez/SetFile tools.
2017-10-21 17:42:30 +02:00
Artur Wieczorek
2f3376c4c5
Allow changing wxPG_EX_ALWAYS_ALLOW_FOCUS in propgrid sample
...
Add wxPG_EX_ALWAYS_ALLOW_FOCUS to the list of flags which can be changed.
2017-10-18 22:57:39 +02:00
Artur Wieczorek
19dbdca53b
Rely on native double buffering by default in propgrid sample
...
If the platform has native double-buffering, create wxPropertyGrid
relying on it by default.
2017-10-18 22:56:44 +02:00
Paul Cornett
db29d5efba
Fix incorrect pointer indirection in sort callback function
2017-10-01 09:11:45 -07:00
Artur Wieczorek
afdb7eca87
Use quotes and not angle brackets around the includes of wxWidgets itself
2017-07-16 18:31:54 +02:00
Vadim Zeitlin
59bd1178f1
Fix build with RTTI turned off using MSVC makefiles
...
Rebake these makefiles using fixed version of bakefile (pre-0.3.0).
See https://github.com/vslavik/bakefile/pull/85
Closes #17767 .
2017-01-04 12:01:14 +01:00
Vadim Zeitlin
395d453c94
Link with oleacc.lib when using MSW gcc makefiles
...
This library is now required when wxUSE_ACCESSIBILITY==1, but was only linked,
using a compiler-specific pragma, when using MSVC resulting in link errors
with gcc.
Fix this by adding the library to the bakefile for non-MSVC compilers and
rebaking.
2017-01-04 11:50:18 +01:00
Vadim Zeitlin
7eee3576cf
Update version to 3.1.1
...
Update misc/scripts/inc_release script: remove non-existent any more files and
update the version in the MSVS 200x project files not generated by bakefile
any more and MSVS 201x project files which were not previously taken into
account.
Run it and rebake.
2016-03-03 23:23:06 +01:00
Artur Wieczorek
51f7074caf
Fix MSVC14 warnings about a shadowed variable in the propgrid sample.
...
Just to suppress some harmless warnings.
2016-02-18 18:46:45 +01:00
Vadim Zeitlin
d66289dc95
Don't use the standard OS X Cmd+Q accelerator in the samples
...
Or, more precisely, don't use for anything else than exiting the application.
Closes #4326 .
2016-02-01 16:03:31 +01:00
Vadim Zeitlin
5cce48186c
Link with shlwapi.lib and version.lib under MSW
...
These libraries are required now that we don't load the functions from them
dynamically (see e78be14ac1
)
Closes #17180
2015-10-07 18:56:33 +02:00
Artur Wieczorek
d0eea355fa
Fixed turning on/off 'Category Specific Colours' in propgrid sample.
...
When specific colours are turned on then custom colours are assigned to both category properties and their sub-properties. But when specific colours are turned off then only category properties are reverted to default colours what is misleading.
Now, all properties are reverted to default colours.
2015-08-27 19:16:29 +02:00
Artur Wieczorek
503c6a48c7
Use argument of proper type when calling SetPropertyTextColour in propgrid sample.
...
wxPropertyGridInterface::SetPropertyTextColour expects int value for flags parameter, not Boolean.
2015-08-27 19:06:46 +02:00
Artur Wieczorek
0870f213df
Do not attempt to change colours of properties which are not present on the current page (in propgrid sample).
...
Test executed from 'Category Specific Colours' menu is designed to work only for specific category properties which are present only on 'Standard Items' page.
Display a message if current page is not this one and therefore test cannot be executed properly. Also make menu item non-checkable if it is accessed from improper page.
2015-08-27 19:05:15 +02:00
Artur Wieczorek
e90feaadf3
Added ability to disable label editing mode in propgrid sample.
...
Currently, once label editing is enabled it cannot be disabled. By replacing ordinary menu item with check item and modifying the handler respectively, label editing mode can be switched on and off.
2015-08-19 19:42:44 +02:00
Artur Wieczorek
c5d6f9d103
Improved retrieving bitmaps from wxArtProvider in propgrid sample.
...
Retrieve from wxArtProvider bitmaps of required size instead of rescaling them in the application.
2015-08-08 22:27:23 +02:00
Vadim Zeitlin
e70d597c2e
Fix propgrid sample compilation.
...
Resolve ambiguity in assignment of wxImage to wxBitmap in wxMSW which also has
wxBitmap::operator=(wxCursor). This should allow the sample to compile under
MSW after the changes of 1fce152d3c
.
2015-07-02 17:07:32 +02:00
Artur Wieczorek
22cc1736ab
Add the demonstration of wxEnumProperty with value bitmap to propgrid sample.
2015-06-29 00:04:47 +02:00
Artur Wieczorek
1fce152d3c
Use wxArtProvider bitmaps to demonstrate wxEnumProperty with bitmaps in propgrid sample.
...
Use predefined bitmaps instead of drawing custom ones.
2015-06-28 19:31:45 +02:00
Artur Wieczorek
eaad15eb45
Use no-empty bitmaps to demonstrate wxEnumProperty with variable height bitmaps in propgrid sample.
...
Default blank black bitmaps look as damaged and this can be confusing.
2015-06-26 19:05:50 +02:00
Artur Wieczorek
0ef325bfdc
Use HasFlag() instead of GetWindowStyleFlag() to check flags in propgrid sample.
...
Dedicated method to check flags is more readable.
2015-06-26 18:40:52 +02:00
Artur Wieczorek
ab32194e91
Initialize pseudo-random number generator only once when starting the tests (in propgrid sample).
2015-06-26 18:28:05 +02:00
Artur Wieczorek
03dfb1cd10
Check if grid is empty when properties are deleted in the reverse order (propgrid sample).
...
This is to check if all properties are really deleted.
2015-06-26 18:19:49 +02:00
Artur Wieczorek
4228e3210f
Use pre-increment/decrement operators to move iterator in the loop (propgrid sample).
...
When the return value is ignored, the ++it/--it is never less efficient than the it++/it--.
2015-06-26 18:15:45 +02:00
Artur Wieczorek
2ade160882
Refactor using RT_FAILURE_MSG macro in propgrid sample.
...
If we assume that RT_FAILURE_MSG macro parameter is of wxString& type then there is possible to simplify statements using this macro.
2015-06-25 19:29:54 +02:00
Artur Wieczorek
ac0f3c6d5d
Fix logging errors in propgrid sample.
...
Use dedicated RT_FAILURE_MSG macro to log error messages while running the tests.
2015-06-25 19:27:08 +02:00
Artur Wieczorek
6f4a83a202
Fix wxTextCtrl style in propgrid sample.
...
These controls are used only to present the text and therefore they should be read-only.
2015-06-25 19:25:00 +02:00
Artur Wieczorek
147ae70623
Extend 'SetSplitterPosition' unit test in propgrid sample.
...
Added check if splitter position is retained when property grid is resized.
2015-06-14 17:13:21 +02:00
Artur Wieczorek
a1c888437d
Use dedicated IncBy method to increase wxSize value in propgrid sample.
...
Use this method instead of modifying directly wxSize data members.
2015-06-14 17:10:28 +02:00
Artur Wieczorek
2bc4357088
Added unit test of wxPGProperty::SetFlagsAsString/GetFlagsAsString methods in propgrid sample.
...
This unit test will be executed for fast and full test. For each property there are generated random flags which are set with wxPGProperty::SetFlagsAsString(). Verification whether flags were set properly is done using wxPGProperty::GetFlagsAsString() and wxPGProperty::HasFlag() methods.
2015-06-14 16:56:06 +02:00
Artur Wieczorek
6d29584b48
Use wxLogDebug instead of wxLogMessage to log column resizing with splitter in propgrid sample.
...
wxLogMessage displays message in pop-up window what prevents dragging the splitter and hence resizing cannot be in practice done. wxLogDebug is sufficient for the logging purposes in this place.
2015-06-13 22:39:16 +02:00
Artur Wieczorek
5d763571b0
Use pre-increment operator to increment iterator in the loop (propgrid sample).
...
When the return value is ignored, the ++it is never less efficient than the it++.
2015-06-13 22:32:14 +02:00
Artur Wieczorek
dc3f451acb
Use empty() member function to determine if arrays are empty in propgrid sample.
...
Use this dedicated function instead of checking if size()/GetCount() functions return zero/non-zero value.
2015-06-13 22:30:13 +02:00
Artur Wieczorek
8ff74b727a
Fixed minor typos in comments and strings in propgrid sample.
2015-06-13 22:28:28 +02:00
Artur Wieczorek
e4023cccc1
Removed unused identifier from propgrid sample.
2015-06-13 22:25:48 +02:00
orbitcowboy
2afddd5e22
Fix some typos in the samples.
...
Mostly in the comments, but also a couple in the user-visible strings.
2015-06-08 01:14:47 +02:00
Artur Wieczorek
d30c075a22
Use wxID_ANY symbol for controls in propgrid sample.
...
Don't use arbitrary control ID's.
2015-06-07 23:14:37 +02:00
Dimitri Schoolwerth
31145b8e3a
Fix some typos, no code changes (besides strings)
2015-06-05 02:54:46 +04:00
Artur Wieczorek
8d9a9e286b
Replaces references to wxT("") with wxEmptyString in propgrid sample.
2015-06-04 22:53:30 +02:00
Artur Wieczorek
9c9f80223b
Exclude header demonstration in propgrid sample when wxUSE_HEADERCTRL == 0.
...
Code responsible for header demonstration should be excluded in this case because header management functions in wxPropertyGridManager depend on wxHeaderCtrl (via wxPGHeaderCtrl) and if it is not present then respective methods in wxPG are not exposed.
2015-05-31 19:20:17 +02:00
Artur Wieczorek
be401b4532
Use wxID_ANY symbol for controls in propgrid sample.
2015-05-30 20:19:00 +02:00
Artur Wieczorek
6299874971
Use wxSizerFlags when constructing sizers in propgrid sample.
...
Use it instead of multiple argument wxSizer::Add() overload.
2015-05-30 18:33:25 +02:00
Artur Wieczorek
fc68bb4252
Use enum constants to identify menu items in propgrid sample.
...
To implement the same pattern of coding in the sample.
2015-05-14 19:08:36 +02:00
Artur Wieczorek
7145a601b0
Consistently use wxT macro with string literals in propgrid sample.
...
Continued unification of string literals in the sample.
2015-05-14 19:08:11 +02:00
Artur Wieczorek
a0157b37f2
Use wxVariant::IsType() function to check the type of variant values in propgrid sample.
...
Use this dedicated function to check the type of variant value instead of calling wxVariant::GetType() function and performing explicit comparisons of returned string.
2015-05-10 20:22:40 +02:00
Artur Wieczorek
cc799c10ac
Use wxT macro with string literals in propgrid sample.
...
This fix is to unify string literals in the sample.
2015-05-10 20:21:37 +02:00
Dimitri Schoolwerth
2f3d0d9629
Fix invalid use of wxSizer flags in samples and utils.
...
Remove alignment flags that result in asserts because of being used in
combinations that don't make sense.
Also use wxSizerFlags in the lines that were changed.
2015-04-25 21:26:40 +04:00
Dimitri Schoolwerth
8f8d58d193
Use wx-prefixed macros throughout the repository.
...
Change {DECLARE,IMPLEMENT}_*CLASS and {DECLARE,BEGIN,END}_EVENT_TABLE
occurrences to use the wx-prefixed version of the macros.
2015-04-23 22:00:35 +04:00
Roberto Perpuly
69005ef145
Add to propgrid sample the option to select the way Boolean values are rendered.
...
This option is useful to demonstrate how to globally change the way Boolean values are rendered (either as check boxes or selection lists).
See #16922 .
2015-04-04 10:19:31 +02:00
Artur Wieczorek
1638644ea6
Relocate "Run test" menu items in the menu of propgrid sample.
...
Move "Run test" menu items from "Try These!" menu to "File" menu in propgrid sample. It seems to be more adequate location for such action items.
2015-04-04 00:42:31 +02:00