Commit Graph

443 Commits

Author SHA1 Message Date
Paul Cornett
4c44eb66f3 put grid string in generic/grid.cpp, not common/datacmn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-02 08:12:33 +00:00
Kevin Hock
9d4b8a5d0d When autosizing a row or column (AutoSize____), use GetMultiLineTextExtent to determine header size. Otherwise, the column header widths are artificially inflated, and row header heights are not high enough.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-22 17:20:40 +00:00
Robert Roebling
2121eb69fa Another RTL fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-19 10:42:42 +00:00
Robert Roebling
615b7e6ab0 More wxGrid RTL things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-18 21:02:09 +00:00
Robert Roebling
bcb614b328 More RTL work. Now transform m_updateRegion and
do nothing special in IsExposed() since some
   code may use m_updateRegion directly. Keep
   untransformed version around for use with
   GTK clipping in the DC.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-18 14:29:16 +00:00
Vadim Zeitlin
d3c7fc996a mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Stefan Neis
be2e4015f5 Only support detection of "near the edge" coordinates, if dragging grid lines
is actually enabled (Fixes #548106 - Border of grid lines of wx.grid).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-30 22:38:14 +00:00
Michael Wetherell
c2b2c10ed6 Warning fixes for VC5.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-29 09:57:41 +00:00
Vadim Zeitlin
7b34da9bd6 remove debugging printf() from wxGridCellFloatEditor::IsAcceptedKey(); cleaned up the code a bit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-26 13:00:49 +00:00
Vadim Zeitlin
3d3f3e3749 allow customization of individual grid lines appearance (patch 1496015)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-24 23:16:37 +00:00
Robin Dunn
2b73a34e1b properly offset the mouse position for the label window clicks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 22:13:24 +00:00
Vadim Zeitlin
6f706ee0a3 fix appearance problems when the cell is scrolled (patch 1515458)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-02 01:35:01 +00:00
Vadim Zeitlin
b524b5c6f8 reset m_selectingKeyboard in ClearSelection() too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-02 00:29:58 +00:00
Vadim Zeitlin
852b6c3ce7 silence gcc warnings about values not handled in switch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-04 14:55:10 +00:00
Włodzimierz Skiba
2a673eb1c9 Include wx/listbox.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-01 08:23:42 +00:00
Vadim Zeitlin
d417574519 added possibility to reorder columns by dragging them (patch 1409677)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-01 00:13:19 +00:00
Robin Dunn
e1a66d9a86 Don't scroll the grid when starting a cell editor if it will already
fit in the viewable space.  The way it was always jumping around drove
me nuts!

Also, ensure that keys like HOME or END won't start the cell editor on
wxGTK2.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-23 02:17:39 +00:00
Robin Dunn
152e88789d Reverted mistaken check-in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 01:52:55 +00:00
Robin Dunn
f460c29d59 Use correct DLL import/export specifier for multi-lib builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 01:22:06 +00:00
Vadim Zeitlin
9b7d3c0988 blank lines were ignored in multiline cell labels (replaces patch 1476165)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 15:33:23 +00:00
Vadim Zeitlin
4330c974ed code cleanup in DrawTextRectangle()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 15:28:27 +00:00
David Surovell
c2f5b920ca minor cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-03 02:44:33 +00:00
Paul Cornett
b0fa218726 use stock pens/colors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-27 04:45:13 +00:00
David Surovell
56b6cf265c minor cleanup 2 - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 02:48:26 +00:00
David Surovell
3d59537f64 minor cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-25 17:04:30 +00:00
David Surovell
5b061713ea fix for prior commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-20 18:36:22 +00:00
David Surovell
a9339fe22c cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-20 18:23:01 +00:00
Mart Raudsepp
9542719478 Typo fixes (precompilatixon)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-20 07:39:54 +00:00
David Surovell
ccdee36f75 cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-19 15:38:26 +00:00
Włodzimierz Skiba
93763ad5ba wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 08:11:26 +00:00
Robin Dunn
2b01fd4918 Use CmdDown in mouse events instead of ControlDown so Mac users can
multi-select with shift and cmd like they are used to.  Other
platforms are not affected.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-09 00:09:35 +00:00
Robin Dunn
afd0f084f4 Added missing not operator that was preventing the drawing of the
gridlines


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 23:09:46 +00:00
David Surovell
2f02438455 cleanup - added whitespace around operators, some blank lines, fixed comment typos, broke up one-line if-stmts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-07 16:51:36 +00:00
David Surovell
bee1995894 minor cleanup - reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-03 00:21:00 +00:00
Włodzimierz Skiba
faa94f3ec8 Final and global PRIOR/NEXT change: keep consistency using only PAGE versions, deprecate old ids, remove rest of build problems with case statemets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-27 12:25:17 +00:00
Vadim Zeitlin
f87ab3cca3 don't set cursor coords to (0, 0) which could be invalid coordinates (in an empty grid)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 15:44:44 +00:00
Julian Smart
7db713aea6 Applied patch [ 1436761 ] wxGrid: Can't enable cell edit ctrl on very wide columns
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-11 14:17:50 +00:00
Vadim Zeitlin
91894db3d7 simplified the code in ProcessGridCellMouseEvent() to get rid of unreachable code (coverity checked CID 3)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-07 22:53:10 +00:00
Julian Smart
fe4cb4f5ea Allow width to be absent but precision present
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-07 14:50:50 +00:00
Michael Wetherell
8d7eaf9140 Warning fixes for VC5 (Igor Korot)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-12 12:16:56 +00:00
Roger Gammans
8fc856de1f Fix bug [1297817] - applied suggested patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 13:45:34 +00:00
David Surovell
962a48f6f9 fix wxMac-QD - blank focusesed text; minor reformat
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-31 09:19:15 +00:00
Julian Smart
46cbb21ecb Fixed problem with choice editor in wxGrid whereby the editor
lost focus when the combobox menu was shown.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-17 17:43:15 +00:00
Kevin Hock
4db6714b16 Code formatting cleanup from OSAF [ patch 1307563 ]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-01 21:02:18 +00:00
Vadim Zeitlin
4e115ed2c7 fixed variable shadowing icc warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 00:29:42 +00:00
Vadim Zeitlin
c77a67962c use wxIsSameDouble() and wxIsNullDouble() for warning-less double comparison of doubles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 23:27:27 +00:00
Vadim Zeitlin
17a1ebd101 first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Vadim Zeitlin
fbfb8bcc3f added missing consts and pass objects by const reference instead of by value (patch 1205869)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 21:43:15 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
11850ff358 corrected test for __WXGTK__ (but should it be there at all?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-04 21:05:49 +00:00