summaryrefslogtreecommitdiffstats
path: root/smglobals.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix some detached container warningsArno2024-08-311-2/+2
| | | | | Dunno if necessary, but they came up in the previous debugging session, so just do it...
* Make it run with Qt6Arno2022-04-151-10/+1
| | | | | | | | | This is a huge commit. Changes: * Obviously, make it compile * Make it run (only scarcely tested) * get rid of most of clang's warnings Let's see what surprises are in store...
* Get rid of HoverWindowArno2019-11-221-14/+0
| | | | | | | It depended on X11, because the hover center wasn't where it was supposed to be, so I worked around it with Xfixes.h, which unfortunately isn't even available in MSYS2. So another fix for compiling this under Windows.
* Some more GUI changes to better fit dark themesArno2018-11-241-0/+1
|
* Dark theme GUI changesArno2018-11-241-0/+5
| | | | | | | | 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-10/+14
| | | | | | | 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...
* Use nullptr instead of literal 0 to avoid warningsArno2018-08-261-6/+6
|
* MovieWidget: Add global actions and refresh to the toolbarArno2018-04-051-1/+0
|
* Implement archive movies for FSWidgetArno2018-03-311-0/+4
| | | | | Mimic the old behavior, but make the Wizard local to FSWidget. It's only called from there, so no need to make it global.
* Clean up SmGlobalsArno2017-12-271-11/+2
| | | | | * remove a bunch of uncessary #includes * remove a deprecation warning: use std::sort instead of qSort
* Fix one crash and compile issuesArno2017-07-201-3/+4
| | | | | | | | | | | | Don't access FileName in constructWindowTitle when we don't have a file at mCurPos. That's what crashed us randomly! Also (yes, I know, should be a separate commit) fix warnings about implicit fallthru's in switch statements. The one in SmDirModel actually was a bug, the one in tabChanged is just a nuisance. Also (again), shuffle header inclusion in SmGlobals so Xlib and QT don't clash.
* Configure reencode reasonsArno2016-10-011-0/+9
| | | | Next: make it available in new movies dialog.
* Weed out SeriesMetadataModelArno2014-12-101-7/+0
| | | | | Delete last remnants of this class (includes and files). It's not needed any more.
* Major revamp of the file ManagerArno2014-12-071-0/+4
| | | | | | 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-4/+4
| | | | | These constants are used all over the place and aren't really specific to ArchiveModel, so use the preprocessor.
* Add icons to ArchiveBrowserArno2014-02-151-6/+10
|
* Fix size filter in Archive BrowserArno2014-02-141-1/+0
| | | | | | The size filter filtered more than selectedSize in the statusBar suggested, because it used a differet size. Fix it by using a #define everywhere.
* Implement ArchiveBrowser filteringArno2014-02-071-1/+1
| | | | | | | | | | | Filter ArchiveBrowser by Quality and/or size: * Quality: only show series with a quality less or equal * Size: only show series still fitting onto the DVD * Both: only show series with a quality less or equal _and_ still fitting on the DVD Use QItemSelection instead of going through the selected items in the tree. Seems to work somehow...
* First version of Archive BrowserArno2014-02-061-0/+5
| | | | | | First try to reimplement "Move to archive" in another way. Implement an archive browser showing only Series with local parts in another tab. This part works for now :)
* Get rid of FrameCacheArno2013-09-141-10/+1
|
* Give Pictures some love!Arno2013-08-221-1/+1
| | | | | | * Show and archive size of pictures * Fix SqlQueries in PicFilesModel: removeFiles and changeMappings * use delegate in PictureView
* Usability fixArno2013-08-211-1/+1
| | | | | | | * repair shortcuts for adding files to NewPicsDialog and showing it from PictureViewer2 * Replace files in NewPicsDialog instead of adding them * add missing header to MappingTreeModel
* Implement file properties dialogArno2013-07-281-4/+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.
* Get rid of old archiveArno2013-07-271-15/+1
| | | | Yeah, finally it's gone! Lot's of useless, unneeded code vanished :)
* Simplify icon managementArno2013-07-271-0/+8
| | | | Introduce SmGlobals::iconFor to retrieve the configured item.
* Make new archive workArno2013-07-081-1/+6
| | | | | | | | | | 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.
* Fix various display issues of ArchiveModelArno2013-06-011-1/+1
| | | | | | * Show childcount * Show subtitle or part no * Resize Widget properly
* Add new ArchiveModel to SmGlobalsArno2013-06-011-0/+5
|
* Fix frame cacheDirArno2013-04-111-2/+2
| | | | | | | | | | Get rid of the cache file. Instead, generate the cache on startup. The cache was never written since it was turned into a thread. Because of that I wrote a cleanup function, but surprisingly it didn't have much impact on the startup time, so I dropped the cache file. Also, fix destructor of SmGlobals. Call deleteLater on all Q_OBJECTS, and of course, some header cleanup.
* Fix setAlternatignRowColorsArno2013-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | Well, what started as a try to simplify QTreeView ended in a mass header murder... What happened: * I searched for a way to let every QTreeView honor the setAlternatingRowcolors() setting. Unfortunately it isn't enough to just set the global palette and set it to true. So every QTreeView is now derived from SmTreeView * SmTreeView registers itself with SmGlobals, so the property is set _after_ it's constructed. It's definitely not enough to call it in the constructor. I guess that's a bug. But it's enough to append the SmTreeView to a QList<QWidget*> in SmGlobals and call it _after_ the painting is done. * As an added Bonus we can add virt. funcs to every SmTreeView at will While at it I realized that most of the included headers were void, so remove them. No idea what impact it has on the bin size...
* Make FrameCache threadedArno2013-03-291-123/+3
| | | | | create snapshot pics in a separate thread. Also use the first frame available if the clip isn't long enough for the configured frame.
* Port to Qt5Arno2013-03-031-3/+3
| | | | | | | | * 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.
* Fix Mappings in PictureViewer2Arno2012-10-041-0/+7
| | | | | | | | | | Another fix for the new MappingTreeModel database layout: Make the mappings display correctly when showing an archived picture. For performance reasons I had to make PicFilesModel global and put it into a separate file. Also clean up MappingTreeModel: remove comments and unused functions.
* MappingTreeModel Fix: repair parent <-> child relationshipArno2012-09-221-1/+1
| | | | | | | | | | | | Warning: this commit seems to work, but it doesn't! Introduce two new tables: mappings_parents2 and pics_mappings2 to create a real parent-child relationship. The pics_mappings need to reference a unique mappings_parents_id so the same mapping can be a child of different parents. For now only the MappingTree references the new tables. Everything else uses the old ones. Hence the warning!
* Don't crash when settings are not availableArno2012-09-081-1/+6
| | | | | | SheMov crashed with a SEGV when QSettings could not be read. Show ConfigurationDialog and exit program instead. I wonder if this is just pasting over another bug, though.
* Weed out PictureViewer in favor of PictureViewer2Arno2012-04-281-3/+3
| | | | Remove PictureViewer from everywhere and use PictureViewer2 instead.
* Fix FrameCache and HoverWindowArno2012-03-181-0/+5
| | | | | | Another commit that should be two. While fixing FrameCache to delete invalid Pixmaps, I ventured into the depths of HoverWindow. Now it hides when focus leaves the widget we're hovering over.
* Make PictureViewer usefulArno2012-03-081-0/+2
| | | | | | | -Implement add and replace files -use QList<QVariant> (typedef'd) for shoveling data around -more code shuffling -new artwork
* First draft of PictureViewer2Arno2012-03-081-0/+1
| | | | | | Doesn't do much other than showing a default picture, but it behaves like a QDialog and positions itself correctly. It's quite a pain in the ass with a tiling window manager...
* Customize menus and toolbar for PictureViewArno2012-03-031-0/+4
| | | | | | | * Added 4 new icons for PictureView-actions. * simplified SheMov::tabChanged(int) * fix long standing bug with QActionGroups in SheMov. Enable and disable all actions according to the active tab
* Implement MappingTreeWidgetArno2012-02-241-1/+8
| | | | | | | | | | | | | | | This is a rather large commit. It implements MappingTreeWidget using MappingTreeModel unsurprisingly this uncovered some exciting bugs. Fixes the following bugs in MappingTreeModel: * use insertRows() and removeRows() when addings children, because dataChanged() won't do it. * don't use a prepared QSqlQuery when fetching children recursively. This won't work because the query is still active when we invoke ourselves again. Put the query on the stack instead * Keep the model sorted. Also add an entry for a MappingTreeEditor to the File-Menu.
* Hmm, checking out treemodel again. This seems way too complex...Arno2011-08-231-1/+1
|
* Fixes for SmGlobals::FrameCacheArno2011-08-221-2/+26
| | | | | | | | | | 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.
* Suggest file for burningArno2011-05-281-1/+2
| | | | | Implemented an action to suggest the best fitting file for burning in FilesTreeWidget. Added 20 Mb of margin to maximum dvd size.
* Turned dvd size constant into a globalArno2011-05-271-0/+1
| | | | | Moved constant dvd size in bytes to SmGlobals. It spread to several source files, so it seemed to be a candidate.
* Artwork for show all files actionArno2011-05-221-0/+1
| | | | | Added an icon for show all files action. Also added it to the toolbar.
* Add field isLocal to SeriesTreeModelArno2011-05-141-1/+1
| | | | | | | | | | Indicate if SeriesPart has local files in SeriesTreeModel. The cost for this is an additional Query when populating the model, but fortunately the performance impact isn't noticeable. Also introduced a new enum NumFields to SeriesTreeModel. It represents the number of fields for a SmTreeItem so extending the model isn't that cumbersome any more.
* Implement additional title element for seriespartsArno2011-05-071-1/+1
| | | | | | Series parts can now have an additional title elemet, the so called subtitle. Obviously that's not really a good name but it's the best I could come up with :)