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
Artur Wieczorek
726a5e1155
Prepare propgrid sample to build successfully when wxUSE_LONGLONG is disabled.
...
Make the code ready to build even when wxLongLong type is not available.
2015-04-03 21:14:06 +02:00
Artur Wieczorek
3e62d33935
Update composite wxStringProperty labels and values in propgrid sample.
...
Set some strings and labels to the more current values.
2015-03-31 19:14:36 +02:00
Artur Wieczorek
e4ea660dfd
Fix minor typo in string macro in propgrid sample.
2015-03-29 21:37:33 +02:00
Artur Wieczorek
eb7979d25e
Prevent assertion warnings in propgrid sample when "Test ReplaceProperty" is invoked more then once.
...
New property replacing the old one should have unique name to prevent assertion warning in wxPropertyGridInterfcae::ReplaceProperty when there is checked if property of a given name already exists.
2015-03-28 21:27:06 +01:00
Vadim Zeitlin
4c72988c82
Convert really all CRLF files to use LF in the git repository.
...
This completes the changes of c3e5751c36
.
2015-03-19 21:09:08 +01:00
Artur Wieczorek
4e2b863e3e
Restore original grid size when finishing the tests in propgrid sample.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-18 17:19:11 +00:00
Artur Wieczorek
0974e13153
Fix "Multiple Columns" test in propgrid sample.
...
Resize grid to make the results of test visible.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-18 17:17:23 +00:00
Artur Wieczorek
ac1d0a3a9d
Implement more detailed validation of wxArrayDoubleProperty in propgrid sample.
...
Added wxArrayDoubleProperty::ValidateValue() method checks if pending value is of proper type (wxArrayDouble). Pending value of improper type is used to signal that invalid numeric value was entered into the edit field.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-17 17:36:00 +00:00
Artur Wieczorek
7b8da40c8e
Display additional information for EVT_PG_SELECTED event in propgrid sample.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-15 23:26:42 +00:00
Artur Wieczorek
d163bd3bd0
Fix using a value of enumerated type in propgrid sample.
...
Referring to enumerated type name (wxNumericPropertyValidator::NumericType) in expression is incorrect however it is accepted by VC++. GCC is not so merciful.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-15 13:52:39 +00:00
Artur Wieczorek
e1286f48f7
Use wxSwap() function to swap values of array elements in wxArrayDoubleEditorDialog::ArraySwap()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-08 12:51:14 +00:00
Artur Wieczorek
a5718923ad
Use bool constants instead of BOOL ones in propgrid sample.
...
s/FALSE/false/ and s/TRUE/true for the sake of consistency.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-08 12:48:43 +00:00
Artur Wieczorek
0dc98a7d23
Implement validator for wxArrayDoubleProperty in propgrid sample.
...
In wxArrayDoubleProperty::DoGetValidator() there is instantiated a wxTextValidator accepting numeric characters, token delimiter and spaces.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-08 12:45:36 +00:00
Artur Wieczorek
f2016b71b0
Fix small typo in propgrid sample.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-04 17:05:37 +00:00
Artur Wieczorek
c1b777cd16
Use wxPG_IMPLEMENT_PROPERTY_CLASS macro in the propgrid sample.
...
Replace old WX_PG_IMPLEMENT_PROPERTY_CLASS macro with new and simplified wxPG_IMPLEMENT_PROPERTY_CLASS macro.
See #15541
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-04 16:53:46 +00:00
Artur Wieczorek
9977d7daa9
Refactor propgrid sample (rounding numbers).
...
Use wxRound function to round floating point numbers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-01-21 17:14:22 +00:00