Urban Wallasch [Thu, 20 May 2021 14:12:09 +0000 (16:12 +0200)]
* Wrapped configuration in non-instantiated class.
* Only load up to one configuration file (no cascading).
* Made minor changes to some default settings and their handling.
Urban Wallasch [Thu, 20 May 2021 13:21:18 +0000 (15:21 +0200)]
* Added more safeguards against missing global variables.
Urban Wallasch [Thu, 20 May 2021 13:19:20 +0000 (15:19 +0200)]
* Fixed chk_idxfile() testing for non-applicable method parameters.
Urban Wallasch [Thu, 20 May 2021 11:17:58 +0000 (13:17 +0200)]
* Do not instantiate ffIcon, initialize class attributes in __new__.
Urban Wallasch [Thu, 20 May 2021 10:54:48 +0000 (12:54 +0200)]
* Do not clear unused parameters from config.
* Only include applicable method parameters in thinfo.
Urban Wallasch [Wed, 19 May 2021 20:57:59 +0000 (22:57 +0200)]
* Removed code to set custom tooltip color, let the theme decide.
Urban Wallasch [Wed, 19 May 2021 14:18:54 +0000 (16:18 +0200)]
* Added 'Reload' item to context menu.
Urban Wallasch [Wed, 19 May 2021 14:18:09 +0000 (16:18 +0200)]
* Changed color of 'Refresh' icon.
Urban Wallasch [Wed, 19 May 2021 13:41:16 +0000 (15:41 +0200)]
* Fixed command line argument splitting for non-Windows player invocation, in particular replaced split() with shlex.split().
Urban Wallasch [Wed, 19 May 2021 13:38:45 +0000 (15:38 +0200)]
* Amended sample configuration file and README.
Urban Wallasch [Wed, 19 May 2021 11:24:45 +0000 (13:24 +0200)]
* Added total size display to thumbnail manager; disable 'Select Broken' button when nothing is broken.
Urban Wallasch [Wed, 19 May 2021 11:23:18 +0000 (13:23 +0200)]
* Reduced size of embedded icon image data.
Urban Wallasch [Tue, 18 May 2021 22:05:52 +0000 (00:05 +0200)]
* Double fork on Linux when starting video player to avoid accumulating zombie processes.
Urban Wallasch [Tue, 18 May 2021 14:05:26 +0000 (16:05 +0200)]
* Embedded all GUI icons.
Urban Wallasch [Tue, 18 May 2021 14:04:19 +0000 (16:04 +0200)]
* Fixed crashes caused by empty or corrupted index files.
* Several small improvements (error handling, tooltips, ...)
Urban Wallasch [Tue, 18 May 2021 10:58:42 +0000 (12:58 +0200)]
* Fixed thumbnail manager crashing on broken index.
* Improved thumbnail manager appearance.
* Fixed video duration microseconds truncated in certain cases.
Urban Wallasch [Tue, 18 May 2021 08:36:52 +0000 (10:36 +0200)]
* Set timestamp right before writing index file, not before creating thumbnails files.
Urban Wallasch [Tue, 18 May 2021 01:41:59 +0000 (03:41 +0200)]
* Added note about the semantics of --force to README.md.
* Added note about thumbnail manager to README.md.
Urban Wallasch [Tue, 18 May 2021 01:19:37 +0000 (03:19 +0200)]
* Include ffpreview version number in index file and initial window title.
Urban Wallasch [Tue, 18 May 2021 01:17:32 +0000 (03:17 +0200)]
* Replaced QListWidget with QTreeWidget in thumbnail manager to show more information.
* Added tooltips to thumbnail manager list items.
Urban Wallasch [Mon, 17 May 2021 18:48:20 +0000 (20:48 +0200)]
* Fixed Qt resource leak in context menu.
* Added confirmation dialogs to force rebuild and abort build actions.
* ESC key now only cancels a running build, not forcefully closes window.
Urban Wallasch [Mon, 17 May 2021 16:51:56 +0000 (18:51 +0200)]
* Fixed broken deletion of index file in clear_thumbdir() and made it safer.
* Thumbnail manager now refuses to remove folders containing files that aren't ours.
* Added 'Invert Selection' and 'Select Broken' buttons to thumbnail manager.
* Improved button layout, styling and logic in thumbnail manager.
* Reset 'force' flag after initial load_view() to avoid nasty surprises.
* Added 'Force Rebuild' option to context menu.
* Minor tweaks: small optimizations, code simplification, visual improvements, debugging, whitespace.
Urban Wallasch [Mon, 17 May 2021 03:08:11 +0000 (05:08 +0200)]
* Went back to centralized context menu. Will it last?
Urban Wallasch [Mon, 17 May 2021 02:05:43 +0000 (04:05 +0200)]
* Added safeguards to prevent aciidentally running more than one loading operation simultaneously.
Urban Wallasch [Sun, 16 May 2021 19:33:11 +0000 (21:33 +0200)]
* Added garbage collector stats to debug output.
Urban Wallasch [Sun, 16 May 2021 19:32:49 +0000 (21:32 +0200)]
* Simplified if condition.
Urban Wallasch [Sun, 16 May 2021 15:08:02 +0000 (17:08 +0200)]
* Fixed crash when triggering play_video() when no video was loaded.
* Fixed crash when triggering context menu via keyboard shortcut.
* Improved and sped up code in clear_view().
* Added debug stats thread, activate by setting FFDEBUG environment variable
Urban Wallasch [Sun, 16 May 2021 13:21:19 +0000 (15:21 +0200)]
* More progress callback stuff.
Urban Wallasch [Sun, 16 May 2021 09:28:13 +0000 (11:28 +0200)]
* Moved make_tlabels() to main window class where it belongs.
* Improved progress display logic.
Urban Wallasch [Sat, 15 May 2021 18:57:50 +0000 (20:57 +0200)]
* Eliminated all cases of subordinate widgets directly accessing attributes or methods of widgets higher up in the hierarchy.
* Fixed two player processes starting on Shift+double-click; changed Shift+click binding to Shift+double-click.
* Removed dubious and basically useless main context menu switcher.
Urban Wallasch [Sat, 15 May 2021 16:24:55 +0000 (18:24 +0200)]
* Fixed regression which resulted in relative paths being stored in index file.
Urban Wallasch [Sat, 15 May 2021 10:22:46 +0000 (12:22 +0200)]
* Fixed multiple instances of "DeprecationWarning: an integer is required (got type float)".
Urban Wallasch [Sat, 15 May 2021 09:33:58 +0000 (11:33 +0200)]
* Replaced all occurrences of exit() with sys.exit().
Urban Wallasch [Sat, 15 May 2021 08:33:55 +0000 (10:33 +0200)]
* Moved even more code from main() to main window class.
Urban Wallasch [Sat, 15 May 2021 08:21:51 +0000 (10:21 +0200)]
* Fixed lots of bugs and crashes triggered in corner cases.
* Disentangled (to some degree) various classes.
* Some cosmetic fixes, changed some keyboard shortcuts.
* Refactoring; improved comments, README.
Urban Wallasch [Fri, 14 May 2021 22:29:53 +0000 (00:29 +0200)]
* Pressing ESC in full-screen view does not quit, just restores window.
* Made 'Load Thumbnails' the default button in thumbnail manager dialog.
* Avoid division by zero exception for zero duration files.
* Improved dark theme style example.
Urban Wallasch [Fri, 14 May 2021 17:24:22 +0000 (19:24 +0200)]
* Added config file options 'appstyle' and 'selstyle' to allow for more flexible application styling.
Urban Wallasch [Fri, 14 May 2021 17:22:30 +0000 (19:22 +0200)]
* Added Ctrl+F keybinding to toggle fullscreen mode.
Urban Wallasch [Fri, 14 May 2021 15:00:41 +0000 (17:00 +0200)]
* Scroll Wars Episode III: Revenge of the Wheelscroll -- Since setPageStep() has absolutely no effect at all on wheel scrolling, use setSingelStep() instead.
Urban Wallasch [Fri, 14 May 2021 15:00:29 +0000 (17:00 +0200)]
* Comment.
Urban Wallasch [Fri, 14 May 2021 09:01:13 +0000 (11:01 +0200)]
* Added platform dependent code to make ffpreview run on Windows. (UNTESTED!)
Urban Wallasch [Fri, 14 May 2021 08:17:54 +0000 (10:17 +0200)]
* Disentangled configuration data from state information.
* Fixed several small issues.
Urban Wallasch [Fri, 14 May 2021 08:17:32 +0000 (10:17 +0200)]
* Various small cosmetic tweaks.
Urban Wallasch [Fri, 14 May 2021 05:51:18 +0000 (07:51 +0200)]
* Dropped now useless get/set focus methods from tLabel.
Urban Wallasch [Thu, 13 May 2021 21:35:02 +0000 (23:35 +0200)]
* Tiny fix in README.md.
Urban Wallasch [Thu, 13 May 2021 20:16:48 +0000 (22:16 +0200)]
* Fixed bug that led to thumbnail dirs generated for non-video files.
Volodymyr Poltavets [Thu, 13 May 2021 19:41:42 +0000 (21:41 +0200)]
* Fixed inconsistent mouse wheel scrolling behavior
Urban Wallasch [Thu, 13 May 2021 18:25:57 +0000 (20:25 +0200)]
* Swapped 'Load' and 'Remove' buttons in thumbnail manager, set 'Close' button as default.
Urban Wallasch [Thu, 13 May 2021 18:11:03 +0000 (20:11 +0200)]
* Reduced mouse wheel scroll step to one thumbnail height.
Urban Wallasch [Thu, 13 May 2021 18:03:03 +0000 (20:03 +0200)]
* Dropped line numbers from batch mode console messages.
Urban Wallasch [Thu, 13 May 2021 17:54:38 +0000 (19:54 +0200)]
* Fixed broken delete functionality in thumbs manager.
Urban Wallasch [Thu, 13 May 2021 17:53:36 +0000 (19:53 +0200)]
* Fix crash when no config file found.
Urban Wallasch [Thu, 13 May 2021 17:29:26 +0000 (19:29 +0200)]
* Possible fix for broken delete function in thumb manager?
Urban Wallasch [Thu, 13 May 2021 16:52:34 +0000 (18:52 +0200)]
* Added thumbnail manager.
* Several small fixes.
Urban Wallasch [Thu, 13 May 2021 09:28:24 +0000 (11:28 +0200)]
* Use os.path.join() and os.devnull where appropriate.
* Improved console output.
Urban Wallasch [Thu, 13 May 2021 08:55:49 +0000 (10:55 +0200)]
* Count errors in batch mode.
Urban Wallasch [Thu, 13 May 2021 08:44:59 +0000 (10:44 +0200)]
* Allow invocation without filename, in fact no options at all.
* Some additions to REAMDE and sample configuration.
* Removed unused entry in cfg[].
Urban Wallasch [Wed, 12 May 2021 22:02:30 +0000 (00:02 +0200)]
* Implemented -b/--batch mode to process multiple files without showing the GUI.
Urban Wallasch [Wed, 12 May 2021 20:41:48 +0000 (22:41 +0200)]
* Include the directory containing the script when trying to locate the config file.
Urban Wallasch [Wed, 12 May 2021 20:41:23 +0000 (22:41 +0200)]
* Show progress bar during building view.
Urban Wallasch [Wed, 12 May 2021 19:35:08 +0000 (21:35 +0200)]
* Write path to directoy containing the original video file in ffpreview.idx.
Urban Wallasch [Wed, 12 May 2021 19:11:48 +0000 (21:11 +0200)]
* Added context menu handler to canvas.
Urban Wallasch [Wed, 12 May 2021 18:59:28 +0000 (20:59 +0200)]
* Fixed excessive thumbnail label resizing by setting maximum size.
Urban Wallasch [Wed, 12 May 2021 18:39:26 +0000 (20:39 +0200)]
* Shrink grid size, if not enough thumbnails to fill initial dimensions.
Urban Wallasch [Wed, 12 May 2021 18:15:31 +0000 (20:15 +0200)]
* Renamed -t/--tmpdir configuration option to -o/--outdir.
Urban Wallasch [Wed, 12 May 2021 18:04:52 +0000 (20:04 +0200)]
* Only attempt to chdir to non-empty path.
Urban Wallasch [Wed, 12 May 2021 17:46:48 +0000 (19:46 +0200)]
* Removed mouse-over effects.
Urban Wallasch [Wed, 12 May 2021 16:15:08 +0000 (18:15 +0200)]
* Added file open dialog; filename argument is now optional.
* Change to directory and operate on basename of input file.
* Copy absolute pathname to clipboard.
Urban Wallasch [Wed, 12 May 2021 13:23:08 +0000 (15:23 +0200)]
* Implemented more intuitive keyboard navigation logic.
Urban Wallasch [Wed, 12 May 2021 13:22:18 +0000 (15:22 +0200)]
* Fixed broken 'copy thumbnail image' functionality.
Urban Wallasch [Tue, 11 May 2021 17:57:48 +0000 (19:57 +0200)]
* Tiny fixes to tLabel geometry.
Urban Wallasch [Tue, 11 May 2021 13:16:25 +0000 (15:16 +0200)]
* Moved license blurb to LICENSE file.
* Added README.md file.
Urban Wallasch [Tue, 11 May 2021 13:15:15 +0000 (15:15 +0200)]
* More help message improvements.
Urban Wallasch [Tue, 11 May 2021 10:50:07 +0000 (12:50 +0200)]
* Fixed broken main window class singleton pattern.
Urban Wallasch [Tue, 11 May 2021 10:27:42 +0000 (12:27 +0200)]
* Improved help message.
Urban Wallasch [Tue, 11 May 2021 10:27:17 +0000 (12:27 +0200)]
* Optimized tLabel class.
Urban Wallasch [Tue, 11 May 2021 09:41:05 +0000 (11:41 +0200)]
* Small tweaks to version check and display.
Urban Wallasch [Mon, 10 May 2021 20:36:01 +0000 (22:36 +0200)]
* Final de-spaghettification round-up.
* Minor fixes.
Urban Wallasch [Mon, 10 May 2021 13:59:28 +0000 (15:59 +0200)]
* Refactored some of the spaghetti code.
* Implemented optimal window extent calculation.
* Fixed some minor display issues.
Urban Wallasch [Sun, 9 May 2021 21:52:05 +0000 (23:52 +0200)]
* Added -v/--verbosity and --version options
* Improved debug output.
(No changes to core functionality)
Urban Wallasch [Sun, 9 May 2021 20:49:39 +0000 (22:49 +0200)]
* Suppress Qt debug logging.
Urban Wallasch [Sun, 9 May 2021 20:24:04 +0000 (22:24 +0200)]
* Fixed bug in fallback logic, in case no thumbnails were loaded.
Urban Wallasch [Sun, 9 May 2021 18:08:38 +0000 (20:08 +0200)]
* Added missing test for 'time_skip' parameter in chk_idxfile().
Urban Wallasch [Sun, 9 May 2021 17:01:26 +0000 (19:01 +0200)]
* Redirect stdout and stderr of player child process to DEVNULL.
Urban Wallasch [Sun, 9 May 2021 16:50:16 +0000 (18:50 +0200)]
* Partial revert of previous commit (dropped 'disown').
Urban Wallasch [Sun, 9 May 2021 16:21:52 +0000 (18:21 +0200)]
* Disown player child processes to avoid side effects after ffpreview is closed while child running.
Urban Wallasch [Sun, 9 May 2021 16:19:57 +0000 (18:19 +0200)]
* Removed spurious parameters from call (C&P cockup).
Urban Wallasch [Sun, 9 May 2021 15:27:59 +0000 (17:27 +0200)]
* Botch-fixed initial window height calculation.
Urban Wallasch [Sun, 9 May 2021 15:10:09 +0000 (17:10 +0200)]
* Fixed application not exiting cleanly, when main window is closed while child process is running.
Urban Wallasch [Sun, 9 May 2021 14:50:58 +0000 (16:50 +0200)]
* Fixed typo in sample configuration file.
Urban Wallasch [Sun, 9 May 2021 13:51:24 +0000 (15:51 +0200)]
* Ported GUI from Tkinter to PyQt5.
Urban Wallasch [Sun, 9 May 2021 13:44:30 +0000 (15:44 +0200)]
* Fixed broken ffprobe invocation.
Urban Wallasch [Sat, 8 May 2021 15:39:10 +0000 (17:39 +0200)]
* Added alternative method to get video meta data using ffmpeg.
* Include number of frames in file info.
Urban Wallasch [Sat, 8 May 2021 12:57:57 +0000 (14:57 +0200)]
* Print a warning, if thumbnail scrollframe size exceeds the maximum supported by Tkinter.
Urban Wallasch [Sat, 8 May 2021 10:09:34 +0000 (12:09 +0200)]
* Fixed config file and argument parsing.
Urban Wallasch [Thu, 6 May 2021 19:24:54 +0000 (21:24 +0200)]
* Added configuration file support.
* Added configuration file option to specify paths to ffprobe and ffmpeg executables.
* Added configuration file option to specify custom video player invocation.
* Separated temp directory from thumbs directory in configuration.
* Comments in sample configuration.
* Several small fixes and improvements, refactoring.
CAUTION: Some command line options have been changed: -c --> -g, -R --> -r
Urban Wallasch [Wed, 5 May 2021 20:31:33 +0000 (22:31 +0200)]
* Fix: Include the saved customvf setting when checking index file.
Urban Wallasch [Wed, 5 May 2021 20:09:25 +0000 (22:09 +0200)]
* Store customvf filter settings in index file.
Urban Wallasch [Wed, 5 May 2021 19:55:56 +0000 (21:55 +0200)]
* Added -C/--customvf and -R/--reuse command line options.
Urban Wallasch [Wed, 5 May 2021 19:29:09 +0000 (21:29 +0200)]
* Switched popup menu focus handling from <Enter> to <Visibility>.