Commit Graph

10 Commits

Author SHA1 Message Date
Vadim Zeitlin
152ec51033 Add missing wxUSE_XXX checks to persistent adapters headers
Make sure these headers can be compiled even when the control they're
written for is not available in the build. Including them in this case
doesn't make much sense, of course, but not giving any errors is still
nicer and consistent with the rest of wx headers.
2020-11-19 16:34:17 +01:00
Arrigo Marchiori
c86bcf962d Use wxASCII_STR() on string literals
Fix the build with wxNO_IMPLICIT_WXSTRING_ENCODING.
2020-07-17 17:52:16 +02:00
Vadim Zeitlin
aacd26c27b Save specified, not actual, col width in wxPersistentDataViewCtrl
This is more correct as saving the current width of the last column
would prevent the user from shrinking it under the last automatically
set size, i.e. the UI behaviour would change after restarting the
program, which shouldn't be the case.

Doing this required making WXGetManuallySetWidth(), which previously
existed in the generic version only, available in all ports, so do it
and also rename it to WXGetSpecifiedWidth() in the process, as this
seems a somewhat better name (it doesn't have to be manually specified,
i.e. it could also be done by the program itself or even implicitly by
wxPersistentDataViewCtrl).

Don't make this function public, at least for now, because it's not
clear how could it be useful and it might still need to be changed to
behave differently in the other ports.
2020-05-01 03:39:40 +02:00
Vadim Zeitlin
ed23de08c7 Minor clean up of wxPersistentDataViewCtrl
Add another helper function, make variables const when possible, fix
some small style problems.

No real changes.
2017-12-15 15:26:32 +01:00
Vadim Zeitlin
e5b12b5bc8 Merge branch 'dvc-persist' from iwbnwif
See https://github.com/wxWidgets/wxWidgets/pull/541
2017-12-15 14:10:01 +01:00
iwbnwif
9d090fc9e9 Rename all objects to 'DataViewCtrl' and 'DVC' instead of 'DataViewListCtrl' and 'DVLC' to reflect the change of implementation at the base class. 2017-08-23 23:21:10 +01:00
iwbnwif
326b76e649 Only attempt to update the sort order if the control has a model attached. 2017-08-23 00:21:02 +01:00
iwbnwif
110505543f Organise persistence keys within subgroups and store columns by title rather than index. 2017-08-23 00:14:11 +01:00
iwbnwif
9cad6d1918 Make persistence store keys shorter and without spaces 2017-08-22 13:50:08 +01:00
iwbnwif
c75e0babcc Implement persistence for wxDataViewListCtrl 2017-08-21 22:12:56 +01:00