Commit Graph

426 Commits

Author SHA1 Message Date
Vadim Zeitlin
ba30efbc53 unreachable code warning fix (Unicode build)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 12:44:28 +00:00
Robin Dunn
63e2147c8b Fixed bug #1163384. Moved the code that handles activating the cell
editors to a EVT_CHAR event handler.  This is done so the character
inserted into the editor will be the "cooked" char value (including
accented or composed keys) rather than the raw code provided by the
EVT_KEY_DOWN.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-19 22:33:17 +00:00
Vadim Zeitlin
60d8e88654 iterator methods fixes (patch 1164808)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 23:19:13 +00:00
Robin Dunn
109b9ba582 The key event for the shift key should not start the cell editor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-26 03:16:46 +00:00
Włodzimierz Skiba
c47addef10 wxPoint/Size/Rect() causes the same code with (0,0) initialization and is incomparably more readable and clear.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-16 20:34:34 +00:00
Włodzimierz Skiba
2997ca30d6 Use default constructors for wxSize/Point/Rect.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-10 21:33:56 +00:00
Vadim Zeitlin
bf6461219d redraw the grid when it's enabled/disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-09 22:31:30 +00:00
Stefan Neis
d3e9dd9409 fixed double delete in UpdateAttrRows/Cols introduced by patch 1104355.
[ Only the change for UpdateAttrRowsOrCols was valid. ]


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-06 17:10:01 +00:00
Vadim Zeitlin
01dd42b61f fixed memory leak in UpdateAttr[Rows][Or][Cols] (patch 1104355)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 16:15:20 +00:00
Włodzimierz Skiba
ec157c8f95 Old API depreciated. Use of new API. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-04 19:35:52 +00:00
Robert Roebling
4d1bc39c96 Give native GTK+ look to wxGrid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-27 16:30:03 +00:00
Włodzimierz Skiba
0e871ad039 Fixes for wxUSE_SPIN... == 0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-23 20:08:56 +00:00
Ryan Norton
0c6099b79e Revert files to previous version that were affected by wxIsXXX((wxChar)X) change. Note - passing a negative value to those c lib functions is undefined, and could return true on platforms using a lookup table, for example (might crash also?), which is what will happen when casting to char to ansii mode and a char is above 127
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 07:09:35 +00:00
Włodzimierz Skiba
32b1391332 Warning fixes to unused variables, int/wxChar keycode and other typecasting, not mixing 'type*' and 'type' variables in single line, IsEmpty to empty replacement etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-05 21:18:04 +00:00
Julian Smart
ea2d542c01 Worked around font setting problem for GTK+1 on some
distributions. This is a workaround for wxGrid only.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 16:44:17 +00:00
Włodzimierz Skiba
c6fbe2f0c8 Unnecessary const_ prefix removed (blindly).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 13:00:11 +00:00
Włodzimierz Skiba
1b941f2d31 Warning fixes for OpenWatcom.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 05:56:07 +00:00
Włodzimierz Skiba
8253f2e063 Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 16:00:06 +00:00
Julian Smart
608754c4a3 Added SetScrollLinesX, SetScrollLinesY so apps can work around scrollbar
appearance problems by setting the scroll increment to e.g. 1
(Scrollbar problems caused by rounding errors - see comments in grid.cpp).
Also removed obsolete functions from reference, rearranged alphabetically


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 10:28:20 +00:00
Włodzimierz Skiba
42841dfcad Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-11 16:30:43 +00:00
Robin Dunn
2d0c2e79c2 Fix for probably rare but potential refcount leak.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 20:46:44 +00:00
Robin Dunn
ca63e8e992 For editors and renderers the type registry takes precedence over the
default attr, so we need to register the new editor/renderer for the string
data type in order to make setting a default editor/renderer appear to
work correctly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-09 18:29:25 +00:00
Robin Dunn
71e60f703c Since it is documented, changed GetOrCreateCellAttr from protected to
public so it can be used from wxPython.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-03 19:30:19 +00:00
Robin Dunn
5a9b107dd0 Don't set the size until after everything is initialized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-02 18:35:45 +00:00
Vadim Zeitlin
faffacecc4 no real changes, just rewrote ChoiceEditor::EndEdit() in a slightly more concise/clear way
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-31 22:13:56 +00:00
Vadim Zeitlin
01998c0f97 removed apparently useless (and provoking a dummy event) code in ChoiceEditor::EndEdit() resetting the choice to 0 index
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-31 22:12:06 +00:00
Robin Dunn
b39a5dc41e Fixes to allow DoGetBestSize to work before CreateGrid has been called.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-31 16:31:39 +00:00
Robin Dunn
6d30807295 Make wxGrid play nicer with sizers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-26 18:11:42 +00:00
Robin Dunn
79dbea2146 Patch from Jed Burgess that optionally allows the grid to notify when
a drag event happens on a cell.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-25 22:25:28 +00:00
Václav Slavík
fa47d7a7ad SetDefaultXXX -> SetOwnXXX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-30 17:12:03 +00:00
Václav Slavík
1ef49ab576 doubleclick selects cell for editing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-26 15:51:42 +00:00
Włodzimierz Skiba
ca65c0440a Code cleaning: wxID_ANY, wxDefaultSize, wxDefaultPosition, true, false, wxEmptyString, tabs and white spaces.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-17 16:22:36 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Robin Dunn
944b1f5e17 Don't #include the extra files unless we need them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 21:40:49 +00:00
Robin Dunn
9950649c8d Use wxVisualAttributes (#if'd out until tested further)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 21:02:19 +00:00
Vadim Zeitlin
af498247c5 make XTI compile with VC6 (patch 896614)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 22:51:57 +00:00
Roger Gammans
13f6e9e8e1 * fix bug where editing of the bootom and right most cell is not
corectly completed.
 * Some tidying of end edit code paths. (such as in AutoSizeRowOrCol)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-12 19:59:46 +00:00
Julian Smart
73bb677607 Improved wxTreeCtrl tooltip processing performance (causing
major delays in processing button clicks)
Added wxFULL_REPAINT_ON_RESIZE as default for wxStatusBar
on wxGTK since otherwise there are display problems.
Similarly for wxGrid.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-07 17:28:36 +00:00
Stefan Neis
3fe7375573 Unicode fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-10 22:16:55 +00:00
Julian Smart
c1b9e143e9 0 -> 0u to keep gcc happy
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 20:33:07 +00:00
Stefan Neis
60d876f374 Applied and extended patch 886524 (wxGridCellFloatEditor doesn't
accept '.' and '-').


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 16:27:22 +00:00
Stefan Csomor
fef5c55604 conversion warning gcc 3.3 mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 06:21:18 +00:00
Mattia Barbon
584ad2a32f Added some missing STL-like wxArray/wxArrayString constructors.
Added helper class wxCArrayString, better replacement for
wxArrayString::GetStringArray.
  Added overloaded constructors and Create() methods taking
a wxArrayString for wxCheckListBox, wxChoice, wxComboBox,
wxListBox, wxRadioBox, wxSingleChoiceDialog, wxMultipleChoiceDialog.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-31 18:21:45 +00:00
Julian Smart
7b519e5e0c Applied patch [ 800086 ] GridCellTextEditor wxTE_RICH misbehaving
Don't set the value of the hidden editor control (useless)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 14:28:38 +00:00
Julian Smart
c92ed9f7a7 Applied patch [ 863936 ] wxGrid scroll bars not drawn.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-08 15:43:29 +00:00
Julian Smart
80acaf2583 Applied patch [ 851044 ] wxGrid receives wxFocusEvent
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-08 15:15:45 +00:00
Stefan Neis
20c8441047 Allow minimal acceptable row height/column width to be set to 0 for
hiding rows/columns.
Only return true from CanEnableCellControl if a valid cell is selected
        (fixing Bug #837656).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-08 18:58:04 +00:00
Vadim Zeitlin
999836aaca warning fixes for BCC and OW (heavily modified patch 819146)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-16 10:28:15 +00:00
Vadim Zeitlin
d5d29b8a22 renamed WX_DEFINE_ARRAY_NO_PTR in WX_DEFINE_ARRAY_PTR
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-08 22:13:14 +00:00