Commit Graph

57 Commits

Author SHA1 Message Date
Francesco Montorsi
001f1f5678 minor fixes to reduce number of Doxygen warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-11 19:44:16 +00:00
Vadim Zeitlin
db890987c6 Add documentation for several grid cell renderer/editor classes.
Document the previously undocumented renderers and editors.

Closes #11965.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-04-22 11:20:50 +00:00
Vadim Zeitlin
ea99e8e31e Return the kind of cells span from wxGrid::GetCellSize().
Behaviour of GetCellSize() may be very surprising for the unwary as it can
return negative or null "size" of the cell.

Add CellSpan return value to allow the caller to check what kind of cell are
we dealing with easier.

Also document the new return value as well as the function (and matching
SetCellSize()) itself carefully as its behaviour is far from obvious.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-27 19:40:41 +00:00
Francesco Montorsi
163bd4f700 fix miscellaneous Doxygen 1.6.1 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-12-20 15:07:08 +00:00
Vadim Zeitlin
cfbc15ee04 Allow changing horizontal alignment of numeric cells in wxGrid.
wxGridCellAttr didn't provide any way to query its alignment attributes
without falling back to the (always defined) default alignment so the code in
wxGridCellNumberRenderer and similar classes simply always used right
alignment,

Add a new wxGridCellAttr::GetNonDefaultAlignment() function which allows to
retrieve the alignment defined in the attribute and use it to use right
alignment by default but allow overriding it.

Add a test to the sample showing a non right-aligned numeric cell.

Incidentally fix a long-standing bug in wxGridCell{DateTime,Enum}Renderers
which used wxRIGHT instead of wxALIGN_RIGHT and so were not aligned properly
even by default.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-27 01:47:38 +00:00
Vadim Zeitlin
ba9574c310 Added support for corner, row and column headers renderers to wxGrid.
Make it possible to customize the appearance of wxGrid corner window and its
row and column headers by defining custom renderers for them.

Add demonstration of this new feature to the grid sample and update the
documentation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 00:45:29 +00:00
Vadim Zeitlin
62960a2c6e Document wxGridCellAttrProvider.
Added basic documentation for wxGridCellAttrProvider and
wxGridCellAttr::wxAttrKind enum used by it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-14 00:45:18 +00:00
Vadim Zeitlin
c6cc8b15ce Mention that wxEVT_GRID_SELECT_CELL is generated by SetGridCursor() in one more place.
It was already done in SetGridCursor() documentation; do it in wxEVT_GRID_SELECT_CELL own description as well (see #11045).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-08-02 00:53:51 +00:00
Vadim Zeitlin
27bb2c8cb7 generate wxEVT_GRID_{COL,ROW}_SIZE events when the user double clicks the separating line too; do not generate these events if the size didn't really change (further improvements to grid events are possible and remain needed, see #10754)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-29 21:59:10 +00:00
Vadim Zeitlin
32bcf97466 added missing @ref after last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-27 21:44:38 +00:00
Vadim Zeitlin
82edfbe7d9 add a possibility to disable individual grid rows/columns resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-26 17:02:53 +00:00
Vadim Zeitlin
78e7881208 pass ApplyEdit() arguments to EndEdit() too for better backwards compatibility (closes #10544)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-06 10:38:45 +00:00
Francesco Montorsi
d455444a8b fix doxygen warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-27 14:48:27 +00:00
Vadim Zeitlin
574e1c5a03 added wxGrid::{Set,Get}{Row,Col}Sizes() methods allowing to save/restore all grid rows/columns sizes at once
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-25 23:41:29 +00:00
Francesco Montorsi
03faec761d fix a couple of typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 19:34:05 +00:00
Francesco Montorsi
882678ebb4 other ifacecheck fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 23:44:44 +00:00
Francesco Montorsi
57bf907d8e fix the definition of many static functions marked as 'const' or functions which had incoherent default values for their arguments or duplicated functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 22:10:54 +00:00
Vadim Zeitlin
600e986ad7 fix GetGridColLabelWindow() name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 14:49:19 +00:00
Francesco Montorsi
ccf39540bb even more fixes detected using ifacecheck
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 16:33:08 +00:00
Francesco Montorsi
d56f17d882 automated ifacecheck fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-08 15:36:37 +00:00
Francesco Montorsi
f8f31de610 fix miscellaneous doxygen warnings; IMPORTANT: never leave empty lines inside a @beginEventTable/@endEventTable block (or similar blocks); it results in difficult-to-fix doxygen warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-28 19:50:21 +00:00
Bryan Petty
8763842294 Added grid event classes to the events group in docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-23 16:38:30 +00:00
Vadim Zeitlin
763163a80a split wxEVT_GRID_CELL_CHANGE into wxEVT_GRID_CELL_CHANGING/ED pair for consistency with all the other controls; provide access to new/old value of the cell in the event object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-22 22:58:49 +00:00
Vadim Zeitlin
31ec8b4e15 added wxGrid::SetColumnsOrder() too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-16 15:53:38 +00:00
Vadim Zeitlin
fe79f76ba9 added helper Is{Col,Row}Shown()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 10:44:29 +00:00
Vadim Zeitlin
3039ade95d renamed GetColHeader() to GetGridColHeader() for consistency with the other existing accessors (even if this is redundant) and made it public/documented (also documented the others)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-15 10:34:04 +00:00
Vadim Zeitlin
009c72169f add support for hiding columns when using native header control in wxGrid; also added convenient Hide/ShowCol() methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 17:28:57 +00:00
Vadim Zeitlin
11393d2900 add support for sorting to grid columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-14 00:02:30 +00:00
Vadim Zeitlin
2b1f9fa062 explain EVT_GRID/EVT_GRID_CMD difference and don't duplicate the events documentation for both of them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 22:08:18 +00:00
Vadim Zeitlin
cd68daf58a support column reordering using drag and drop when using wxHeaderCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-13 00:24:39 +00:00
Vadim Zeitlin
ad805b9e0d added wxGrid::UseNativeColHeader() (column reordering doesn't work yet); more wxGrid clean up: refactor Init/InitVars/Create
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-12-11 19:21:20 +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
Bryan Petty
caac780411 Reviewed, and re-organized members of wxGrid, which now makes the interface header manual reviews finally finished.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-24 07:07:31 +00:00
Bryan Petty
8b9ef005c3 Reviewed the rest of grid.h except for the wxGrid class itself, and re-ordered the definitions to fit the real header.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-24 02:23:48 +00:00
Bryan Petty
afe0e40097 Finished review of the first 1,000 lines of grid.h interface header.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-23 01:27:03 +00:00
Vadim Zeitlin
12fd0e1d61 more Doxygen warning fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-14 18:17:21 +00:00
Francesco Montorsi
11e3af6e7e further ifacecheck fixes (now only 3.3% of documented methods have a wrong signature\!)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-13 21:32:53 +00:00
Francesco Montorsi
a44f3b5a89 ifacecheck manual fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-11-09 16:46:52 +00:00
Francesco Montorsi
78e37b46a4 fixed missing semicolons, as reported by check_syntax.sh
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-30 11:11:00 +00:00
Francesco Montorsi
5e6e278dc1 moved to appropriate 'protected' sections all functions wrongly placed in 'public' sections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 18:55:57 +00:00
Francesco Montorsi
5267aefd85 automated ifacecheck fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-29 15:34:31 +00:00
Francesco Montorsi
fadc2df682 automated ifacecheck fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 21:26:54 +00:00
Francesco Montorsi
da1ed74c85 automated changes: many (pure) virtual specifiers added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 13:24:43 +00:00
Francesco Montorsi
0004982c83 virtual/static attributes automated fixes by ifacecheck
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-13 11:09:56 +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
Robert Roebling
c7d4ca8105 Moved list of subclasses away from 'classes overview' corrected some wxGrid overview references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-04 18:57:47 +00:00
Francesco Montorsi
adaaa68635 HUGE commit of ifacecheck-automated fixes to virtualness/constness/staticness of wxWidgets documented functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-27 11:21:10 +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
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