Commit Graph

532 Commits

Author SHA1 Message Date
Robin Dunn
8c9f00aaa3 backport more fixes from HEAD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 17:01:32 +00:00
Robin Dunn
8764117f28 Fixes from Chris
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 04:46:44 +00:00
Robin Dunn
c9e1d317b1 Fix to previous masked.TextCtrl change, to ensure inheritance chain
for derived controls isn't broken by new .ChangeValue() support in
base control.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 21:12:28 +00:00
Robin Dunn
7dc46e9d9e Patch #1710943, Fix a bug in pywxrc script for "MenuBar" and "Menu"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 06:12:06 +00:00
Robin Dunn
e75f43c577 Updates to MaskedEdit controls from Will Sadkin:
maskededit.py:
    Added parameter option stopFieldChangeIfInvalid, which can be used to
    relax the validation rules for a control, but make best efforts to stop
    navigation out of that field should its current value be invalid.  Note:
    this does not prevent the value from remaining invalid if focus for the
    control is lost, via mousing etc.

  numctrl.py, demo / MaskedNumCtrl.py:
    In response to user request, added limitOnFieldChange feature, so that
    out-of-bounds values can be temporarily added to the control, but should
    navigation be attempted out of an invalid field, it will not navigate,
    and if focus is lost on a control so limited with an invalid value, it
    will change the value to the nearest bound.

  combobox.py:
    Added handler for EVT_COMBOBOX to address apparently inconsistent behavior
    of control when the dropdown control is used to do a selection.

  textctrl.py
    Added support for ChangeValue() function, similar to that of the base
    control, added in wxPython 2.7.1.1.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-02 01:00:30 +00:00
Robin Dunn
c3e1d30aea backport of XRCed changes from today
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 06:03:28 +00:00
Robin Dunn
3f4ec51e47 Updated FloatCanvas code from Chris
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-01 05:55:19 +00:00
Robin Dunn
611d0e5cea Another fix for: AttributeError: 'XML_Tree' object has no attribute 'itemColour'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-29 00:05:34 +00:00
Robin Dunn
3bd8d81d3e backport
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 22:15:09 +00:00
Robin Dunn
d698728cea backported Roman's latest updates on HEAD to 2.8 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-27 18:49:06 +00:00
Robin Dunn
372cc7aca9 Update treemixin to 1.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 20:50:36 +00:00
Robin Dunn
f5850761c3 Use wx.FileHistory for the recent files menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-24 20:25:07 +00:00
Robin Dunn
ce7feab06b wx.lib.flatnotebook: Patch from Andrea that implements the following:
* A new style FNB_FF2: my intentions were to make it like Firefox 2,
   however it turned out to be an hybrid between wxAUI notebook glose
   style & FF2 ...I still think it looks OK. The main purpose for
   making it more like wxAUI is to allow applications that uses both
   to have same look and feel (or as close as it can get...);

 * Changed the behavior of the left/right rotation arrows to rotate
   single tab at a time and not bulk of tabs;

 * Updated the demo module.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 16:40:05 +00:00
Robin Dunn
bf2481b9cf Patch from Andrea that fixes the following problems/issues:
a) ZeroDivisionError when using the Vista selection style and calling
SelectItem; for some strange reason, sometimes the item rect is not
initialized and that generates the ZeroDivisionError when painting the
selection rectangle;
b) Added a DeleteWindow method to GenericTreeItem class, for items
that hold a widget next to them;
c) Renamed CustomTreeCtrl method IsEnabled to IsItemEnabled, otherwise
it conflicts with wx.Window.IsEnabled;
d) Now CustomTreeCtrl behaves correctly when the widget attached to an
item is narrower (in height) than the item text;


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 16:26:28 +00:00
Robin Dunn
579c608e3e 0.9.1 of TreeMixin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 19:55:31 +00:00
Robin Dunn
08e98210c4 Patch from Rob McMullen allowing the plot title to be optional
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 18:55:12 +00:00
Robin Dunn
123129601c fix offset of widget
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 18:54:05 +00:00
Robin Dunn
4366f1b660 Use disabled state if needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 18:52:55 +00:00
Robin Dunn
d376e326d8 Update to 0.9 of TreeMixin.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-26 18:50:46 +00:00
Robin Dunn
43ea4adf3f fix typo: GetClosetPoint --> GetClosestPoint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-20 22:31:13 +00:00
Robin Dunn
411f2d350b Fix for bug #1681052
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-20 21:22:41 +00:00
Robin Dunn
210032dc4f Use import xxx instead of sys.modules['xxx']
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 18:03:19 +00:00
Robin Dunn
5b97ec9195 Removed test code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 17:56:22 +00:00
Robin Dunn
30d91f9ebc Preferences for default "sizeritem" parameters for new panels and
controls can be configured ("File">"Preferences...").

Implemented comment object for including simple one-line comments and
comment directives as tree nodes. No validation is performed for a
valid XML string so comments must not contain "-->". Comment directive
is a special comment starting with '%' character, followed by a line
of python code. It is executed using 'exec' when the resource file is
opened. This is useful to import plugin modules containing custom
handlers which are specific to the resource file, hovewer this is of
course a security hole if you use foreign XRC files. A warning is
displayed if the preference option 'ask' is selected (by default).

Added support for custom controls and plugin modules. Refer to this
wxPythonWiki for the details:
        http://wiki.wxpython.org/index.cgi/XRCed#custom

Tool panel sections can be collapsed/expanded by clicking on the
label of a tool group.

Some undo/redo and other fixes.

Fixes for wxMSW (notebook highlighting, control sizes, tree Unselect).

Notebook page highlighting fix. Highlight resizes when the window
is resized. ParamUnit spin button detects event handler re-entry
(wxGTK probably has a bug in wxSpinButton with repeated events).

Fix for dealing with empty 'growable' property, using MiniFrame
for properties panel, the panel is restored together with the
main window.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 17:55:26 +00:00
Bryan Petty
459fbbc100 This commit was manufactured by cvs2svn to create branch
'WX_2_8_BRANCH'.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 17:55:26 +00:00
Robin Dunn
6c51117514 Update to 0.8 from Frank
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 16:02:51 +00:00
Robin Dunn
306a5d85e7 update the info panel when refreshing the tree
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 16:01:48 +00:00
Robin Dunn
dc04c2d154 Patch from Andrea
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-19 16:01:05 +00:00
Robin Dunn
c80bb70aaa Renamed the wx.lib.inspect and wx.lib.mixins.inspect modules to
inspection, in order to avoid conflicts with the inspect module in the
standard Python library.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-08 19:24:13 +00:00
Robin Dunn
236a17eb09 Make GetItemImage API consistent with other trees
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-08 19:21:39 +00:00
Robin Dunn
b2b9f13f59 keep a reference to the textctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-05 19:18:51 +00:00
Robin Dunn
caee23d55d wx.lib.customtreectrl patches from Andrea:
1. ExpandAll has been renamed as ExpandAllChildren, and the new
     ExpandAll now takes no input arguments (consistent with
     wx.TreeCtrl)

  2. ctstyle keyword is now defaulted to 0: every style related to
     CustomTreeCtrl and the underlying wx.PyScrolledWindow should be
     declared using the keyword "style" only. For backward
     compatibility, ctstyle continues to work as I merged ctstyle and
     style in the __init__ method.

  3. GetClassDefaultAttributes is now a classmethod.

  4. UnselectAll bug fixed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-02 21:04:52 +00:00
Robin Dunn
99f22cf696 Patch from Gianluca Costa:
-Refactorization of the script-creation code in a specific "img2py()" function
    -Added regex parsing instead of module importing
    -Added some "try/finally" statements
    -Added default values as named constants
    -Made some parts of code a bit easier to read
    -Updated the module docstring
    -Corrected a bug with EmptyIcon


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-01 21:51:23 +00:00
Robin Dunn
6b260f32ca header cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-01 19:37:00 +00:00
Robin Dunn
b1ea5b28ab Create the other frame on all platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-01 19:01:55 +00:00
Robin Dunn
37a2b499e5 use a hidden frame to prevent premature exit on wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-01 18:53:57 +00:00
Robin Dunn
58e564cb92 don't set hover state when button is pressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-01 18:52:13 +00:00
Robin Dunn
8cb3186049 wx.lib.plot: patch #1663937 to allow user to turn off scientific
notation on plot.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-01 01:26:13 +00:00
Robin Dunn
5d1ccdb489 Will Sadkin provided a patch for the wx.lib.masked package that fixes
its support for using the navigation keys on the numeric keypad.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-01 01:08:41 +00:00
Robin Dunn
25f8729c3d Updated to TreeMixin 0.7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-26 23:35:07 +00:00
Robin Dunn
d6b9ff1c54 Reorder what happens when a button is pressed so if the user's event
handler blocks it won't leave the buttonbar in a funny state when it
finally returns.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-26 23:23:57 +00:00
Robin Dunn
ca7f6330aa Backport fixes from ROL: Fixed SetItemBold and editing 'growable'
properties of wxFlexGridSizer.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-24 00:11:49 +00:00
Robin Dunn
155efe740f Applied patch [ 1664571 ] ListCtrl::ColumnSorterMixin-new callback
OnSortOrderChanged


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-21 19:47:56 +00:00
Robin Dunn
27b13b5b0c Add wx.DD_DIR_MUST_EXIST style. (Patch #1662736)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-19 21:17:27 +00:00
Robin Dunn
55ce0bae63 TreeMixins 0.6 from Frank
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-19 20:31:11 +00:00
Robin Dunn
191406ad84 wxMac can handle the foreign DnD too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-19 20:30:23 +00:00
Robin Dunn
31fff11b15 Add wx.lib.mixins.treemixin from Frank Niessink.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-16 23:34:47 +00:00
Robin Dunn
4943ebb1e3 Fixes as described in #1661049 (Uncollectable ogl objects)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-16 23:32:37 +00:00
Robin Dunn
503cad4a4c Make the greyed image list be the same size as the main image list,
don't assume 16x16


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-12 21:27:09 +00:00
Robin Dunn
7f3e41c4d3 A bit of code cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-09 23:43:24 +00:00