Vadim Zeitlin
20db5469a0
provide Do[GS]etColumnsOrder() stubs for the generic wxHeaderCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 16:09:58 +00:00
Vadim Zeitlin
702f5349c6
implement column reordering support in wxMSW wxHeaderCtrl; use it in wxDataViewCtrl (and make difference between column indices and positions more clear in it)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-10 15:56:11 +00:00
Vadim Zeitlin
46234a0383
restore sorting functionality of the generic wxDataViewCtrl but implement it on top of wxHeaderCtrl support for it now; don't have const and non-const overloads of GetSortingColumn() in wxDVC returning different things (could this have really been intentional?); added GetSortingColumnIndex()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 21:13:29 +00:00
Vadim Zeitlin
a45caa71bf
honour column min width when resizing in wxHeaderCtrl, no need to do it in wxDataViewCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 17:33:03 +00:00
Vadim Zeitlin
e36dcd10d0
add the possibility to cancel drag-resizing by pressing Esc
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 16:30:09 +00:00
Vadim Zeitlin
8fad69b019
fix another logical/physical coords confusion and update the comment to help with this in the future
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 15:11:21 +00:00
Vadim Zeitlin
aef252d9da
implement column resizing events in wxHeaderCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 14:40:42 +00:00
Vadim Zeitlin
3bfaa5a7e4
add wxEVT_COMMAND_HEADER_SEPARATOR_DCLICK and semi-automatic header resizing support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 12:15:17 +00:00
Vadim Zeitlin
fa3d4aaf0f
implement click events in wxHeaderCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-08 00:57:53 +00:00
Vadim Zeitlin
40dc2ae656
update the generic wxHeaderCtrl implementation after r57161
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 16:00:10 +00:00
Vadim Zeitlin
e2bfe6731e
- Rewrite wxHeaderCtrl to be virtual-like: even if we don't need an infinite
...
number of columns in it, it turns out that getting column information from
the associated control is much easier than copying it into the control.
- Provide wxHeaderCtrlSimple derived class which can be used easily if
callback approach of wxHeaderCtrl is not needed.
- Because of wxHeaderCtrl virtualization, port-specific implementations of
wxHeaderColumn are not needed any more and were removed.
- Use wxHeaderCtrl in the generic wxDataViewCtrl: this means that column
events are broken right now in it as they haven't been implemented by
wxHeaderCtrl yet, this will be fixed a.s.a.p.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-07 14:47:55 +00:00
Vadim Zeitlin
b63f9a3330
generic implementation of wxHeaderCtrl API so far
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-05 22:44:54 +00:00
Vadim Zeitlin
bd44dee698
add size parameter to the generic wxFileDialog ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-04 23:14:00 +00:00
Vadim Zeitlin
56873923f3
extract (and expand and clean up and document) the header window implementation used inside the generic wxDataViewCtrl in a separate wxHeaderCtrl class which could be reused in (generic) wxListCtrl and, most importantly, wxGrid later
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-03 21:53:10 +00:00
Francesco Montorsi
af237ae405
add GetValue,GetRange and GetMessage helpers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-02 18:35:24 +00:00
Vadim Zeitlin
8acad210fa
don't make wxGridTableBase::IsEmptyCell() pure virtual, there is really no point to force all derived table classes to implement it when it has a default implementation which works just fine in 99% of cases
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-30 21:51:51 +00:00
Francesco Montorsi
6d52ca536a
make GetPaperRect() and GetResolution() const functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-15 11:10:34 +00:00
Vadim Zeitlin
9b3eb4aa61
fix warning about hiding the base class LoadFile()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-12 14:40:28 +00:00
Vadim Zeitlin
d2824cdb7f
Review/simplify/cleanup MDI classes for all platforms and introduce base
...
classes for wxMDI{Parent,Child}Frame and wxMDIClientWindow.
Also use generic MDI implementation for wxMotif as it seems to be more
functional and definitely is more maintained (we probably should use the
generic version for wxGTK too).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-04 02:46:19 +00:00
Francesco Montorsi
23318a5358
declare all NameStr[] strings as const char using the correct WXDLLIMPEXP_DATA_ macros; in the process, change wxPropGrid window classes to take 'const wxString& name' arguments instead of 'const wxChar *name'
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 22:16:14 +00:00
Vadim Zeitlin
5c33522fca
replace wx_{const,static,reinterpret}_cast with their standard C++ equivalents
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-02 02:39:52 +00:00
Robert Roebling
788432e343
Correct TAB handling for generic wxDataViewCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-21 19:10:25 +00:00
Vadim Zeitlin
bce49490f6
compilation fix for include wx/generic/stattextg.h before/without including wx/stattext.h in PCH-less wxUniv build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 12:02:47 +00:00
Vadim Zeitlin
916eabe60e
add wxGenericStaticText ( #9656 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-12 13:04:00 +00:00
Robert Roebling
236a34ef3e
Fix crash again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-10 10:02:35 +00:00
Robert Roebling
2571a33fd3
implement GetSizeAvailableForScrollTarget
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-09 19:18:28 +00:00
Stefan Neis
29fac1f6b1
Workaround for bug in gcc-3.1 through gcc-3.3 in handling deprecation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-08 12:11:07 +00:00
Vadim Zeitlin
9f7aee0198
added the possibility to draw grid lines across the entire window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-04 23:23:01 +00:00
Francesco Montorsi
cbea3ec6ae
introduced wxICON_DEFAULT_TYPE and wxBITMAP_DEFAULT_TYPE; documented these default argument values; matched the wxBitmap and wxIcon interfaces to their real implementations; revised icon.h interface header
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 20:03:14 +00:00
Václav Slavík
0c75b29e1e
progress message passed to wxDC::StartDoc() is not appropriate for PostScript document title
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-21 08:49:08 +00:00
Vadim Zeitlin
77d2c45c38
add const synonyms for wxGridTableBase::GetNumberRows/Cols(), using const_cast<> all the time is painful
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-20 22:03:27 +00:00
Vadim Zeitlin
8b5f6d9d47
use a single wxKeyboardEvent parameter instead of 4 bools in tons of places
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-20 00:09:28 +00:00
Vadim Zeitlin
8a3e536cd5
- Main change is the addition of wxGridSelectRowsOrColumns selection mode
...
(which is still probably buggy, wxGridSelection needs to be reviewed)
- Add XYToCell() overloads returning wxGridCellCoords (instead of modifying the
argument passed by reference -- where did this come from?) and document them.
- Added GoToCell() which does make the new current cell visible unlike
SetGridCursor() (which was documented as doing it, but wasn't)
- Changed SetCurrentCell() to only not change the cell if wxEVT_GRID_SELECT_CELL
it generates is vetoed, not just processed as this seems to make more sense
- Split jumbo (~400 lines) ProcessGridCellMouseEvent() function into chunks
- Add many more comments to make reading this code seem less like puzzle
solving for the next unfortunate soul to do it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-19 23:33:04 +00:00
Vadim Zeitlin
10a4531d1d
more grid folding: got rid of duplicate version of methods for finding the closest row/column edge, appending/inserting/deleting rows/columns, and moving cursor vertically/horizontally
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 16:31:44 +00:00
Vadim Zeitlin
bec7026270
start of the great grid folding: introduce wxGridOperations class and use it to avoid duplicating the same code for rows and columns in a couple of methods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-16 08:32:12 +00:00
Vadim Zeitlin
ff72f628bb
more cleanup (removed some TODOs/FIXMEs); use native header drawing for the corner window too if it is enabled at all
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 14:06:28 +00:00
Vadim Zeitlin
02f3ee3d10
remove the now unused GetScroll[XY]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 13:36:28 +00:00
Vadim Zeitlin
bf2c8b318e
take old (wx 2.2? older?) wxGrid compatibility functions inside WXWIN_COMPATIBILITY_2_8; rearrange some declarations order but no real changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 12:18:07 +00:00
Vadim Zeitlin
69367c566e
move the grid-specific workaround for scrollbar hysteresis to wxScrollHelper itself, the scrollbars now should not only appear but also disappear correctly during resizing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 22:44:08 +00:00
Vadim Zeitlin
801a964104
no changes, just removed the unnecessary wxGrid:: qualifiers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 21:28:44 +00:00
Vadim Zeitlin
cac09ce8b7
cache the item text size to optimize tree layout/painting ( #9956 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-13 21:28:57 +00:00
Vadim Zeitlin
5d984f5d97
fix the event type in EVT_GRID_[CMD_]COL_MOVE declaration: this event handler receives wxGridEvent and not wxGridSizeEvent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-12 12:49:11 +00:00
Vadim Zeitlin
9ad2fe62d1
made wxLogGui more flexible and documented it and added example of customizing it to the dialogs sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 13:58:54 +00:00
Stefan Csomor
5712a1f5fb
listctrl generic is used outside of osx-carbon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-02 11:52:20 +00:00
Julian Smart
44bcee116e
Cleanup of previous fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-22 11:32:23 +00:00
Vadim Zeitlin
6d9b671692
mark holidays if wxCAL_SHOW_HOLIDAYS is on (replaces #9155 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-05 01:55:44 +00:00
Vadim Zeitlin
3e97a90518
use a single wxBookCtrlEvent class for all wxBookCtrlBase-derived controls ( #9667 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-01 13:46:46 +00:00
Stefan Csomor
5ea93bd360
osx regrouping
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-29 20:30:22 +00:00
Vadim Zeitlin
e974c5d258
implement wxListCtrl::GetSubItemRect() for generic version and fix bug in it in wxMSW one; also added a test for it in the sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-30 18:21:33 +00:00
Robert Roebling
1dff2537d3
Ticket #9641 : wxBitmapComboBox_SetFont.patch, making it public
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-27 13:47:45 +00:00