Commit Graph

136 Commits

Author SHA1 Message Date
Robin Dunn
27c390f313 Convert '0' or '1' to int before converting to bool
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-05 21:53:10 +00:00
Robin Dunn
006c2c2d82 Additional tags to treat as bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@46288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-02 23:50:57 +00:00
Robin Dunn
cf151d7e00 Fix pywxrc's generation of menu and menubar classes and aldo fix how
it generates attributes for menus, menubars and menuitems comtained in
other objects.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 18:56:25 +00:00
Robin Dunn
d9f0e96051 Typo fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-11 18:54:09 +00:00
Robin Dunn
718170fcde backport more icon changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 03:50:13 +00:00
Robin Dunn
66b9271785 More icon changes (backport),
process UPDATE_UI for move and refresh buttons


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 00:46:57 +00:00
Bryan Petty
39406bda13 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@45908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-09 00:46:57 +00:00
Robin Dunn
1ee028bf83 some new icons for XRCed (backport)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 20:47:37 +00:00
Bryan Petty
4a71e14016 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@45899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 20:47:37 +00:00
Robin Dunn
03c88f6092 more backports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-08 02:34:23 +00:00
Robin Dunn
e057fb3454 Backport: Various fixes and improvements to get look-and-feel similar across
different platforms.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-04 01:01:08 +00:00
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
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
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
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
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
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
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
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
3c901e1e03 backport Roman's changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-08 20:30:27 +00:00
Bryan Petty
e728b32239 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@44426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-08 20:30:27 +00:00
Robin Dunn
13542f4946 Ensure the old tree item still exists before using it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-21 03:50:44 +00:00
Roman Rolinsky
88e183d769 updated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-03 10:52:02 +00:00
Roman Rolinsky
f53185301e withard styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-03 10:50:22 +00:00
Robin Dunn
cc202d9b5e convert unicode filename to file system encoding
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-11 23:48:59 +00:00
Robin Dunn
9389458452 Updates from Eli
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-20 05:09:17 +00:00
Robin Dunn
cf952100f3 Changed call order of the PreCreate method, and pass the pre instance
to it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-27 22:36:24 +00:00
Robin Dunn
cffdf649a9 Add support for generating classes for menus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-13 20:12:18 +00:00
Robin Dunn
9f4cc34f37 some docstring fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-11 00:13:05 +00:00
Roman Rolinsky
96bfe7feee fix for empty value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-05 17:48:00 +00:00
Roman Rolinsky
b3d78b0cc5 fix for non-utf-8 character support in 'content'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-05 16:04:37 +00:00
Roman Rolinsky
e484fddf08 hopefully this will fix some encoding problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-05 16:01:42 +00:00
Roman Rolinsky
e98e706227 debug is not defined here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-05 16:00:54 +00:00
Robin Dunn
10383fe27b Allow for non-ascii text in resources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-28 19:20:45 +00:00
Robin Dunn
0fe9c32957 Make it possible for pywxrc to generate just the gettext _() strings
with no other code, and also make it possible to process more than one
XRC file at once into a single output module.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-24 04:49:07 +00:00
Robin Dunn
29a41103aa Ported XRCed to the wx namespace, and also enabled the selected,
focus, and disabled bitmaps of wxBitmapButton to actually be treated
like bitmaps.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-17 03:57:57 +00:00
Robin Dunn
2240b1aa74 Make the app object be global in case it is run multiple times, such
as from encode_bitmaps.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-10 23:22:27 +00:00
Robin Dunn
7e05216cce Patch from Eli Golovinsky. Adds generation of _() code for gettext
and other tweaks.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-03 01:47:57 +00:00
Roman Rolinsky
0cbb7d59d4 added TreeCtrl.WindowIndex method for skipping items like MenuBar
when counting window children


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-10 13:13:51 +00:00
Robin Dunn
73b2a9a749 First pass at integrating a code generator in XRCed. Initial patch
from Eli Golovinsky, with lots of additional mods by me.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-08 06:17:11 +00:00
Robin Dunn
a2234452a7 wxNotebookSizer is gone now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-07 19:24:39 +00:00
Roman Rolinsky
20002db0f8 implemented locating objects in gridbag sizer,
expanding tree to show selected object


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-05 17:36:21 +00:00