summaryrefslogtreecommitdiffstats
path: root/smglobals.h
Commit message (Collapse)AuthorAgeFilesLines
* Dark theme GUI changesArno2018-11-241-2/+3
| | | | | | | | Add icons better suited for dark themes and don't draw an ellipse around the letter when calling Helper::icon and use the theme's text color to better match the desktop theme. Just be a good tenant and respect the user's choices where applicable.
* Implement custom Video playerArno2018-08-261-4/+7
| | | | | | | Well, well, well. Due to several unforseen circumstances I ventured into the sources again and implemented a Video player with Qt. Looks very promising so far. There are some bugs to weed out, but I'm getting there...
* Add a menu with global actions to SmGlobalsArno2018-04-031-0/+4
| | | | | | | Use it in the toolbar for FSWidge and hide the menuBar. Change Helper::icon to accept different foreground colors and wether to draw the ellipse.
* Implement archive movies for FSWidgetArno2018-03-311-1/+1
| | | | | Mimic the old behavior, but make the Wizard local to FSWidget. It's only called from there, so no need to make it global.
* Configure reencode reasonsArno2016-10-011-0/+4
| | | | Next: make it available in new movies dialog.
* Resize PictureViewer2Arno2015-06-061-1/+0
| | | | | | Make it possible to resize the PictureViewer2 and get rid of fixed size. Also, make sure that the current picture is redrawn when we get a resize event.
* Major revamp of the file ManagerArno2014-12-071-0/+3
| | | | | | Nothing is async any more. Didn't work, anyway. Instead show a QProgressDialog when gathering data. Was kinda surprising that processEvents has to be called explicitly... Well, done!
* Redesign of NewMovieWizardArno2014-12-071-0/+1
| | | | | | Make it possible to add parent files to files, so we can identify already downloaded files even if we reencoded them. Record the md5sum in a new table files_origin.
* Replace ArchiveModel::FileType with #defineArno2014-02-151-0/+6
| | | | | These constants are used all over the place and aren't really specific to ArchiveModel, so use the preprocessor.
* Fix size filter in Archive BrowserArno2014-02-141-2/+3
| | | | | | The size filter filtered more than selectedSize in the statusBar suggested, because it used a differet size. Fix it by using a #define everywhere.
* Get rid of FrameCacheArno2013-09-141-4/+1
|
* Implement file properties dialogArno2013-07-281-7/+0
| | | | | | | | Show file properties in Filemanager and Archive, if the file is available. Also get rid of the palette stuff in SmGlobals. Just call setPalette() early enough and set it in SmTreeView.
* Simplify icon managementArno2013-07-271-0/+1
| | | | Introduce SmGlobals::iconFor to retrieve the configured item.
* Make new archive workArno2013-07-081-0/+2
| | | | | | | | | | Well, this is a huge commit. Should be severals, but who knew... First and foremost feature: Make NewMovieWizard work with the experimental model. This change obsoleted a lot of code. Also, the old archive won't work with with the new Wizward... There are most probably many other features I forgot about.
* Lots of Display ChangesArno2013-07-061-0/+4
| | | | | | | | | * Save header states * Implement delegates for columns * unify size and duration to 1 column * colorize View ... and lots of other things I forgot :)
* Make FrameCache threadedArno2013-03-291-25/+2
| | | | | create snapshot pics in a separate thread. Also use the first frame available if the clip isn't long enough for the configured frame.
* Fix ColorsArno2013-03-171-0/+3
| | | | | | | This is more a qt5-fix than a SmDirModel fix. The global palette doesn't propagate any more, so we have to set the palette in every QTreeView separately. Very annoying and tedious. Maybe I missed a Widget or two, dunno...
* Port to Qt5Arno2013-03-031-0/+2
| | | | | | | | * Change #include to qt5 * Fix missing QX11Info * use explicit constructor for QVariant(QColor) * use beginResetModel() and endResetModel() instead of reset(). The latter was removed. Hopefully it still works :)
* Allow moving files from one Series to anotherArno2012-12-301-0/+4
| | | | | Allow moving files from one SeriesPart to another. Had to add another global variable for this.
* Make PictureViewer2 size configurableArno2012-10-201-0/+1
| | | | | | | | Several bug fixes on the way: * set fixed size policy for PictureViewer2 -> makes resizing much easier * don't set Y-offset when showing a pic. The scene takes care of it * don't deliver SIGNAL configChanged() twice to PictureViewer2 * center Widget on current screen when calling Helper::centerWidget
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-281-3/+3
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Fixes for SmGlobals::FrameCacheArno2011-08-221-0/+1
| | | | | | | | | | Don't generate duplicate screenshots when the same file is indexed in different paths. Part of the frameCache key was the _full_ path, not just the filename, so duplicates piled up when hovering over the same file in the filesystem and the archive. Added a cleanup function to SmGlobals::FrameCache. Also, just use QFileInfo::fileName() as part of the key.
* Turned dvd size constant into a globalArno2011-05-271-0/+2
| | | | | Moved constant dvd size in bytes to SmGlobals. It spread to several source files, so it seemed to be a candidate.
* Use pictureViewer in NewMovieWizardArno2011-01-091-0/+2
| | | | | | | | Optionally show a frame or the picture in PictureViewer when clicking an item in the file list. Added a new function to SmGlobals::FrameCache: make it possible to retrieve the path of the frame, also.
* Made all icons in qresource available for UIArno2010-12-271-0/+2
| | | | | | | | | | | | | | | | Every registered icon can be chosen as Qt::DecorationRole for all models at once. Suitable icons must be added to SmGlobals::mIcons. Key is a descriptive text, value is the icon path. To make things easier SmTreeModel got two new member functions: -QIcon decorationIcon() returning the current Icon -void setDecorationIcon() to set the current Icon The current Icon is initialized in the constructor from QSettings - ui/iconfolder To update the TreeViews connected to the FileSystemModel a little hack is needed: Just set the QFileIconProvider again. This causes the Model to update connected views.
* Cache for frame grabbingArno2010-12-161-0/+25
| | | | | | | | | Implemetented a cache for hovering over movies, saving the pictures from ffmpeg. For that SmGlobals got a new member *frameCache, handling all the dirty file access. I first tried to implement it as a helper, but that produced too much duplicate code.
* Fix hover issuesArno2010-10-231-2/+3
| | | | | | | | | | | | | | Hopefully this commit fixes all issues with hovering over items. First, only use QCursor::pos() to determine the position of the hover window and fix position calculation accordingly. For that SmGlobals now return a QSize of the actual cursor size. Introduced a hoverOffeset to HoverWindow defaulting to SmGlobals::cursorSize() + 30 to prevent a HoverLeave event on showing the HoverWindow. Also fixed Qt::WindowFlags of HoverWindow. We don't want the HoverWindow to show in the taskbar or get sent to background when clicking on an item.
* Created general purpose HoverWidgetArno2010-10-161-0/+2
| | | | | | This commit outsources the HoverWindow to a seperate file and makes it possible to set a pixmap to the window. Also the cursor offset is only calculated once in SmGlobals.
* Act on doubleClick in FileTreeWidgetArno2010-07-241-0/+33
When doubleclicking a picture in FileTreeWidget the pictureViewer is shown. Doubleclicking a movie file launches the default movie player. Since PictureViewer is now used in FileSystemWidget and ArchiveTreeView a global instance is needed. The appropriate place for this is a singleton. Since we already had a singleton for QAbstractItemModels I renamed it to SmGlobals and added a function to return a PictureViewer object. Renaming it was quite easy thanks to QtCreator's ability to rename variable names.