Commit Graph

443 Commits

Author SHA1 Message Date
Paul Cornett
04ee05f92a fix a huge number of build errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-17 18:26:00 +00:00
Vadim Zeitlin
7999b83011 use wxTE_PROCESS_{ENTER,TAB} with the wxGridCellChoiceEditor combobox (slightly modified patch 1906581)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:24:12 +00:00
Vadim Zeitlin
1edce33f7e override SetDropTarget() in wxGrid to associate it with wxGridWindow as this is what things tend to be dropped on (patch 1903103)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 17:19:42 +00:00
Vadim Zeitlin
f954984155 check whether the grid is fully created in Refresh() (fixes a crash under Mac); refactored members initialization into a new InitVars() method to avoid duplication and ensure that they're always initialized (slightly modified patch 1901366)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 17:17:28 +00:00
Vadim Zeitlin
2eafd712f1 another correction to indices used in StringToLines()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 23:43:58 +00:00
Vadim Zeitlin
696f3e9dd0 correct indices used in StringToLines() (modified patch 1882985)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 21:06:17 +00:00
Vadim Zeitlin
c1841ac2e3 don't use negative sizes for row/column labels subwindows to avoid GTK warnings (patch 1878512)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:11:24 +00:00
Václav Slavík
ba808e1178 call Create from wxGrid non-default ctor instead to ensure both methods of creation are in sync (they drifted apart already)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-21 17:18:47 +00:00
Václav Slavík
760be3f7cb wxGrid focus handling fixes:
- don't allow focus in helper labels subwindows
- draw selection in different colour when not focused
- hide cursor/highlight when not focused



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-21 17:11:49 +00:00
Robert Roebling
71cf399ff0 Playing with wxgrid, adding optionnally native columns labels
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-20 15:05:03 +00:00
Václav Slavík
a01cfc082f ensure that wxGrid::AutoSizeColumn/Row() never sets column/row size smaller than the minimal size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-24 17:53:06 +00:00
Stefan Csomor
9553702e46 mac cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-20 16:21:04 +00:00
Robert Roebling
2f26ad2872 Use renderer to draw checkmark
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 13:52:37 +00:00
Robert Roebling
ee2d93aed0 Use wxBORDER_NONE for wxGridCellTextEditor on all platforms, not just wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 12:37:35 +00:00
Vadim Zeitlin
521ff07eb1 don't capture the mouse when just moving it in the grid (tentative replacement for the patch 1779923)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-16 23:55:57 +00:00
Vadim Zeitlin
0aa2e24b97 don't call SetInsertionPointEnd() on a read-only combobox (patch 1828963)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 20:31:50 +00:00
Vadim Zeitlin
62d249cb22 don't store NULL attribute in wxGridRowOrColAttrData::SetAttr() unnecessarily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 21:27:56 +00:00
Julian Smart
b93aafaba9 Avoid a crash due to OnSize being called before initialisation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-11 08:32:57 +00:00
Vadim Zeitlin
1d5fda5dc6 extract setting max length in wxGridCellTextEditor::DoCreate() and call it from wxGridCellAutoWrapStringEditor::Create() to ensure that it honours the base editor parameters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-01 22:05:12 +00:00
Vadim Zeitlin
767e083562 pass wxStrings directly to wxFAIL_MSG, there is no need to use c_str()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-22 01:38:40 +00:00
Robert Roebling
ad2633bd96 Compilo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 10:16:40 +00:00
Robin Dunn
1b3b96d84c ensure there is a current cell before using it to try and get width/height
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 00:15:42 +00:00
Vadim Zeitlin
b4a980f4f5 don't use obsolete functions (mostly copystring() and Count()), remove their documentation (patch 1697956)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 00:23:19 +00:00
Václav Slavík
add4bb4044 BCC5.5 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-03 10:36:40 +00:00
Vadim Zeitlin
733f486aac added support for wxGRID_AUTOSIZE in wxGrid::SetRow/ColLabelSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-15 17:44:41 +00:00
Vadim Zeitlin
b62f94ff48 added wxGridUpdateLocker helper class wrapping Begin/EndBatch() calls in a more convenient and safe way
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-15 17:25:15 +00:00
Vadim Zeitlin
86033c4b6f handle mouse capture lost event in grid windows and reset the grid to normal state when it happens
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-04 22:18:35 +00:00
Vadim Zeitlin
c71b212607 do adjust scrollbars in our EVT_SIZE handler now that we turn them off correctly (otherwise scrollbars wouldn't be shown correctly when the grid becomes too small to show its contents entirely after changes in rev 1.410)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-17 02:35:50 +00:00
Vadim Zeitlin
b2df5ddf6a don't delete inexistent column indices in DeleteCols()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-16 17:41:58 +00:00
Robin Dunn
25107357ef Don't capture the mouse until after the possible wxEVT_GRID_CELL_BEGIN_DRAG event.
(ported from 2.8 branch)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 21:52:23 +00:00
Vadim Zeitlin
ef316e23c9 made (many) more wxGrid methods const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-05 19:10:09 +00:00
Stefan Neis
a7dde52f0a Improve resetting table via SetTable (extended version of patch #1636377).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 22:39:56 +00:00
Vadim Zeitlin
b8508db8b4 create in place edit control with wxTE_PROCESS_ENTER style as otherwise it's not closed on Enter when used inside a panel or a dialog (which uses Enter for dialog navigation) (patch 1630586)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-14 21:04:27 +00:00
Vadim Zeitlin
2c03d7714c fix attribute memory leak in wxGrid::ShowCellEditControl() (patch 1629949)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-07 17:09:54 +00:00
Vadim Zeitlin
388703a573 forcefully get rid of the scrollbars in CalcWindowSizes() if we don't need them any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-17 02:13:04 +00:00
Vadim Zeitlin
dc4689ef73 correct GetBestSize() to return correct best size, i.e. the same size as AutoSize() would give to the control since the fix in 1.407
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-15 01:09:06 +00:00
Vadim Zeitlin
39621ee0e7 added the missing parameter to SetScrollbars() call in AutoSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 10:43:43 +00:00
Vadim Zeitlin
0ed3b81230 fixed long standing bug with Fit() still showing the scrollbars: the old code for rounding up the grid size to a multiple of scroll step was wrong as it did for the grid itself and not just the scrollable area (and also assorted off by 1 errors and a workaround for a bug in wxMSW SetClientSize() implementation whihc may sometimes leave space for unneeded scrollbar)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-03 20:54:04 +00:00
Mattia Barbon
dab61ed75f Use 1 as true and "" as false, not the opposite.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-26 14:22:29 +00:00
Robin Dunn
ecc7aa8203 ensure m_table is not NULL before trying to access the view
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 04:54:47 +00:00
Julian Smart
5d38a5f3c1 Improved highlight drawing on wxMac/Core Graphics by not using wxClientDC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 11:41:02 +00:00
Stefan Csomor
f4f9074f49 fixing region clipping
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 08:11:57 +00:00
Vadim Zeitlin
86020f7e33 don't leave tables non-owned by the grid with dangling view pointer when the grid is deleted (patch 1310535)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 13:43:13 +00:00
Vadim Zeitlin
7c3f33a943 grid lines were incorrectly drawn over multicell cells in the last column (bug 1290841)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 12:33:48 +00:00
Robin Dunn
170acdc90e GetBestFittingSize --> GetEffectiveMinSize
SetBestFittingSize --> SetInitialSize
SetBestSize  --> SetInitialSize
SetInitialBestSize --> SetInitialSize


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 08:50:17 +00:00
Vadim Zeitlin
8497bbf52d check that the cell using bool editor has a valid value (i.e. either true or false) (last nail in the coffin of the request 1557790)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 01:28:15 +00:00
Vadim Zeitlin
9c71a1386d allow customizing the string values returned by wxGridCellBoolEditor::GetValue() (feature request 1557790)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-28 13:57:38 +00:00
Robert Roebling
e60022505d I don't think anylonger that DrawHeaderButton() should
be used for drawing grid row/col buttons. Also, the
   GTK2 port should not waste space per line of wxMSW
   doesn' waste it neither.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-15 19:44:39 +00:00
Vadim Zeitlin
dfd7c0821a SetOverflow() should be called with a bool argument, not m_overflow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 22:46:15 +00:00
Stefan Neis
eb703a121f Initialize m_overflow in wxGridCellAttr::Clone.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 22:22:24 +00:00