Commit Graph

5055 Commits

Author SHA1 Message Date
Michael Eager
566dd8f35f Merge branch 'master' into refactor-thumbnailctrl 2020-11-16 15:32:52 -08:00
eagerm
846a4f4e4a Remove unused sizer, add spacing to controls. 2020-11-16 12:31:00 -08:00
eagerm
4bef428bce Add documentation to demo programs. 2020-11-16 12:07:45 -08:00
Robin Dunn
6959fd7f98 Merge branch 'fix-datepicker' 2020-11-13 10:14:53 -08:00
Robin Dunn
d45f07b656 Update wxWidgets revision to current master 2020-11-13 09:40:48 -08:00
Robin Dunn
b27e492898 Also show wx.adv.DatePickerCtrlGeneric in the demo 2020-11-13 09:39:37 -08:00
Robin Dunn
f2b7035a5a Swap which is the real name and which is the alias for DatePickerCtrlGeneric 2020-11-13 09:38:53 -08:00
eagerm
4c6b725479 Create ThumbDemoConfig.py from class in ScrolledThumbnail & ThumbnailCtrl
Add import statements to ScrolledThumbnail and ThumbnailCtrl.
Remove unneeded imports.
2020-11-12 09:40:00 -08:00
Robin Dunn
8dd754b905 Merge pull request #1846 from wxWidgets/fix-issue1843
Allow passing iterator flags into GetPropertyValues
2020-11-11 20:00:20 -08:00
Robin Dunn
b8facb230d Update wxWidgets revision to current master 2020-11-11 16:41:52 -08:00
Robin Dunn
35931985ab Update some copyright years 2020-11-11 15:55:30 -08:00
Robin Dunn
7a839de248 Make it possible to call a function that post-processes the generated ReST doc for a class. 2020-11-11 15:40:05 -08:00
Robin Dunn
e3dbe68b49 Allow passing iterator flags into GetPropertyValues 2020-11-11 14:41:44 -08:00
eagerm
d6727e5ce7 Create ThumbDemoConfig class
class ThumbDemoConfig contains the user interface and controls used
by both ScrolledThumbnail and ThumbnailCtrl.

Functions which are different between the two demos are overwridden
by each demo.
2020-11-11 12:38:54 -08:00
eagerm
6fa88e361f Reduce differences between demo/ScrolledThumbnail and demo/ThumbnailCtrl 2020-11-10 20:20:34 -08:00
eagerm
e73d5f49db Minor cleanup and fixes from code review
demo/agw/ScrolledThumbnail.py:
  Set frame size to (850, 800).
  Decrease left side of splitter.
  Use default font.
  Remove SetAutoLayout()
  Fix THUMB_OUTLINE_NONE, etc. not found.
demo/agw/Thumbnailctrl.py:
  Set frame size to (850, 800).
  Make scroll instance variable, not local.
  Replace self.TC with self.scroll.
  Decrease left side of splitter.
  Use default font.
  Remove SetAutoLayout().
2020-11-10 20:12:54 -08:00
Robin Dunn
6b78295938 Merge pull request #1845 from wxWidgets/fix-issue1842
Add context manager methods to wx.LogNull
2020-11-10 16:13:19 -08:00
Robin Dunn
a6e855c34e Add changelog item 2020-11-10 14:46:15 -08:00
Robin Dunn
c4f1e9f3bd Add missing context manager methods for wx.LogNull 2020-11-10 14:43:18 -08:00
Robin Dunn
4402d87599 Merge pull request #1832 from Metallicow/reduce-flicker-overlay
Reduce flicker in throbber. Use BufferedPaintDC
2020-11-05 13:45:41 -08:00
Robin Dunn
c0341cb2b6 Merge pull request #1826 from Metallicow/Reduce-flicker-svg-demos
Reduce flicker in svg demos
2020-11-05 13:44:57 -08:00
eagerm
f2a2eca467 Update CHANGES with info about ScrolledThumbnail 2020-10-28 09:59:18 -07:00
eagerm
f511c293cc Add ScrolledThumbnail demo
New:  demo/agw/ScrolledThumbnail.py
2020-10-28 09:57:14 -07:00
eager
0a03c37a26 Fixes from code review. 2020-10-28 09:57:09 -07:00
eager
81c0461233 Refactor ThumbnailCtrl, create stand-alone ScrolledThumbnail widget
ThumbnailCtrl is more of a image browser demo application than a widget,
in that it reads files from a directory, selects which files to display,
deletes files, displays the source directory path in a text ctrl, etc.
This makes it unlikely that it could be used in any other application,
for example, to provide thumbnails of files with different file types
than the ones hard-coded in the class.

ThumbnailCtrl delegates most of its operations to ScrolledThumbnail
which actually implements a scrolled window of thumbnails, a Thumb class,
which contains information about a thumbnail, and an ImageHandler class,
which manipulates images.  There was poor isolation of functionality
between these classes, violating object-oriented design, with one class
making changes to the internal data of another class.  Additionally, there
was substantial non-functional code, as well as code which did not
function correctly.

This refactoring maintains the functionality and interfaces of
ThumbnailCtrl, except for those which were unused.  Existing uses of
the thumbnailctrl package should work without modification.  A new package,
scrolledthumbnail, contains the functionality for a scrolled window
containing thumbnails, an extendable Thumb class, and image manipulation
classes.  The scrolledthumbnail package can be used in other applications,
independent of the ThumbnailCtrl class, and without the functional
restrictions of that application.

Detailed changes:

ThumbnailCtrl.py (demo program):
 - Always import from wx.lib.agw
 - Optional code to use PIL instead of native image handling
 - Add setting for thumbnail width and height
 - Increase size of demo window

thumbnailctrl.py:
 - Move Thumb, ScrolledThumbnail, ImageHandler to scrolledthumbnail.py
 - Remove EVT_THUMBNAILS_CAPTION_CHANGED (unused)
 - Add EVT_THUMBNAILS_CHAR to respond to keystrokes
 - Remove image processing code
 - Add scrolling dialog for delete files
 - Move directory processing from ScrolledThumbnail
 - Move file delete processing from ScrolledThumbnail
 - List all files to be deleted in scrolling dialog
 - Remove unused or unimplemented methods and options

scrolledthumbnail.py:
 - Move Thumb, ScrolledThumbnail, ImageHander classes from thumbnailctrl.py
 - Add documentation for ScrolledThumbnail widget
 - Add example program which does not use ThumbnailCtrl
 - New EVT_THUMBNAILS_CHAR event for key press
 - Remove unused options and dead code
 - Add Rotate() to PILImageHandler and NativeImageHandler
 - Throw event EVT_THUMBNAILS_CHAR for keystroke on thumbnail
 - Fix failure to rotate images correctly
 - Redisplay window when thumb size changed
 - Simplify logic
 - Remove popup dialog when rotating images
2020-10-28 09:56:35 -07:00
Metallicow
8d4f8e733c Reduce flicker in throbber. Use BufferedPaintDC 2020-10-27 19:03:10 -05:00
Metallicow
7a637d862d Revert "Reduce flicker of overlay, since throbber can be composed of svg bitmaps"
This reverts commit 18ceaeadd7.
2020-10-27 18:58:20 -05:00
Robin Dunn
8a26e17b16 Merge branch 'highdpi-overview' 2020-10-22 16:11:54 -07:00
Robin Dunn
5443e86401 Merge branch 'update-webview' 2020-10-22 16:11:14 -07:00
Robin Dunn
7c63c5cc90 Add the High DPI Overview doc from wxWidgets 2020-10-22 16:10:09 -07:00
Robin Dunn
be94264761 The Bitmap mask bug on OSX has been fixed, switch back to using the bitmap to get the shape 2020-10-22 15:36:06 -07:00
Robin Dunn
19d983fcee Pillow wheels are now available for Python 3.9 2020-10-22 15:18:06 -07:00
Robin Dunn
59673db44c Update webview2 DLLs and etc. to 1.0.622.22 2020-10-22 15:05:37 -07:00
Robin Dunn
6f776d28d2 Update wxWidgets to newest revision on master 2020-10-22 14:30:35 -07:00
Metallicow
18ceaeadd7 Reduce flicker of overlay, since throbber can be composed of svg bitmaps 2020-10-19 04:09:04 -05:00
Metallicow
efec3bcca5 Reduce flicker in svg demos 2020-10-19 03:32:58 -05:00
Robin Dunn
6dd5689daa Split and dedent the ConvertToRegion doc so it will be formatted correctly by sphinx 2020-10-15 14:20:55 -07:00
Robin Dunn
c5a237375e Merge pull request #1821 from wxWidgets/image-region
Add wx.Image.ConvertToRegion
2020-10-14 23:47:02 -07:00
Robin Dunn
9d14d92686 Add changelog entry 2020-10-14 18:18:59 -07:00
Robin Dunn
c5c28fd811 Add wx.Image.ConvertToRegion allowing to construct a region from an image without needing to make a bitmap first. 2020-10-14 18:17:54 -07:00
Robin Dunn
f1a910db55 Merge pull request #1820 from wxWidgets/webview-edge
Add support for MS Edge backend for wx.html2.WebView
2020-10-14 18:14:41 -07:00
Robin Dunn
0e7c422496 Add item in CHANGES.rst for the WebView MS Edge backend support 2020-10-14 13:11:05 -07:00
Robin Dunn
1842b2bc9a Merge branch 'master' into webview-edge 2020-10-14 13:02:12 -07:00
Robin Dunn
03e2f70dff Update project classifiers 2020-10-13 22:06:13 -07:00
Robin Dunn
b59bbe32f2 Merge pull request #1819 from wxWidgets/checklistboxmixin
Warnings and workarounds to help phase out CheckListCtrlMixin
2020-10-13 22:04:54 -07:00
Robin Dunn
4d1e8f0b47 Add notes in CHANGES and the MigrationGuide 2020-10-13 16:14:46 -07:00
Robin Dunn
15be2436d1 Give CheckItem.check a default value so it will be less likely for code still using CheckListCtrlMixin to raise an exception. 2020-10-13 16:04:49 -07:00
Robin Dunn
cafa02a2f2 Remove old todo file 2020-10-13 15:57:02 -07:00
Robin Dunn
9bef374ecf Give a warning about CheckListCtrlMixin's redundancy 2020-10-13 15:56:04 -07:00
Robin Dunn
e8f394bc2c Switch the CheckListCtrlMixin demo to just use the new built-in checkbox functionality 2020-10-13 15:40:17 -07:00