| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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 :)
|
|
|
|
|
| |
Move matchRecursive from ArchiveModel to SmTreeModel so we can use it
here, too.
|
|
|
|
|
|
| |
With some GNOME themes the edit trigger for SmTreeModel is borked. The
current name is mixed with the new one, and one can't recognize
anything. Use a QInputDialog instead.
|
| |
|
|
|
|
|
| |
Use a dialog for renaming files. Craptastic. Dunno why just calling the
editor doesn't work any more, but that's life...
|
|
|
|
| |
Don't crash if file list is empty. Check size of mFiles.
|
|
|
|
|
|
|
|
| |
* Call NewPicsDialog with marked files list
* some more keyboard navigation:
-> Cursor UP and RIGHT - previous
-> Cursor DOWN and LEFT - next
-> DELETE - delete file
|
|
|
|
|
|
|
|
|
| |
* implement Mark Files
* always show all pictures from context
* change navigation:
N -> next
P -> previous
M -> mark/unmark file
|
|
|
|
|
| |
Don't emit needResize after every model SmDirModel-change. It freezes
the GUI. Let the user decide -> add a QAction to the toolBar.
|
|
|
|
| |
check and uncheck the show/hide QAction on showEvent/hideEvent.
|
|
|
|
|
|
| |
* Change fixed width front from "courier" to "Monospace"
* Remove foregroundcolor from SmTreeItem. Wasn't used nor needed, quite
the opposite: it made SheMov deviate from the default style.
|
|
|
|
|
|
|
|
| |
Seems the copy constructor of SmTreeItem was botched. After copying a
rootItem, some children wouldn't show up. I guess it has something to do
with the QHash of the parents.
Replace it with an explictit deep copy function where needed.
|
|
|
|
|
|
|
| |
Use Filename instead of md5sum for re-selecting files after reset. They
are pretty unique in a directory, too. When we're not doing expensive
ops, ie. we are polling, we don't gather the md5sum, so the selection is
lost.
|
|
|
|
|
| |
Save and restore expanded items for Favorites and local files. Added
context menu items for expandAll and collapseAll.
|
|
|
|
| |
Add covers to an already archived movie.
|
|
|
|
|
| |
Add a Splitter between icons and the directory editbox. Save state on
exit and restore it at startup.
|
|
|
|
| |
Add some more icons to to the FilesystemWidget toolbar.
|
|
|
|
|
| |
Clear comboboxes in NewMovieWizard when calling it again. Otherwise
duplicates will pile up :)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sometimes there was a warning that a thread was being destroyed while
still running. This was SmDirWatcher::run(). read() blocks until new
data is ready, so run() never exited.
Fix it by poll()ing the inotify_descriptor. Return immediately if no
data is ready.
Also fix a small memory leak. Delete ConsistencyChecker when the dialog
is destructed.
|
|
|
|
| |
Remove global toolbar and add a toolbar to each tab instead.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Fix FileView + FilesystemWidget.
* Get rid of useless qobject_casts
* Remove hover over movies and directories
* Fix shortcut for (de-)selecting files
|
|
|
|
| |
Not used, dead code
|
|
|
|
|
| |
Remove (hopefully) all remnants of this option. Not needed, wasn't
working anyway.
|
|
|
|
|
| |
* Don't show the mapping item in preview, because it has none.
* Use qApp->showOverrideCursor() instead of QWidget::cursor()
|
|
|
|
|
|
|
| |
Add a configuration Option to (de-)select expensive file operations.
That would be md5Summing and gathering the Bitrate/Duration.
That should help the performance on networked directories...
|
|
|
|
|
|
|
|
|
|
|
| |
Get rid of SmDataCollector and do its job in small, QRunnable tasks and
let QThreadPool manage the treads.
Works well with a local Filesystem. Yet to see how it works over
networked Filesystems.
Ah, before I forget: NEVER, EVER USE QPixmap in THREADS -> Random
crashes! (Yes, I know, it's documented...)
|
|
|
|
|
| |
This reverts commit 2cc92200386c55818cbe9bcb7d2e488170317d70.
Wrong, non-working solution for this problem.
|
| |
|
|
|
|
| |
Show a progress dialog when gathering data from the filesystem.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit dbfc4f7bf395bf20aa21058372d47d17d040f553. It was
totally and utterly wrong.
This is what really happened, hopefully:
Since a Semaphore can guard more than a single resource, it could happen
that both mSemUsed and mSemFree were available at the same time. So it
could happen that both the watcher and the datacollector tried to access
the dataqueue at the same time. Since ->dequeue() is not atomic, this
could throw of the internal iterator from the QList, resulting in a
crash.
The solution is simple: Guard it with a shared Mutex.
|
|
|
|
|
|
|
|
|
| |
Fix a race condition. This is what happened:
A file gets closes shortly after the last write, so it gets enqueued
twice. Since QQueue is a decendant of QList, calling erase on the
iterator makes the loop crash with SIGSEGV.
So check if the file is already in the queue before enqueuing.
|
|
|
|
| |
The QCheckBox for that is gone for good, so enable it by default.
|
|
|
|
|
|
|
|
|
|
| |
Move the pic to archive first. If the filename returned from
moveToArchive is different then the file already existed and was mangled
with the md5sum. Record the new filename in the db.
Theoretically, the same problem exists with archiving movies, but it's
very unlikely to happen (I hope). Also, it's way more difficult to
untangle.
|
|
|
|
|
|
| |
* Show time when snapshot was taken.
* Align the snapshots properly.
* Show BusyCursor when generating preview.
|
|
|
|
| |
Implement lessThan for ArchiveProxy.
|
|
|
|
|
|
| |
* Show and archive size of pictures
* Fix SqlQueries in PicFilesModel: removeFiles and changeMappings
* use delegate in PictureView
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* Again: remove the transaction madness besides almost everywhere
leaving one instance where it is actually useful.
* Hide the buttons to add and delete mapping types. Haven't thought that
through complete. What should be deleted on cascade? Do we really want/
|
|
|
|
|
|
|
| |
* remove some of the Transaction madness
* make it possible to archive pics again
It's far from finished....
|
|
|
|
|
| |
* Show :/picgone.png if movie is not available
* Show cover if preview is called on a picture
|
|
|
|
| |
Show 4 frames of the selected movie in PictureViewer2.
|
| |
|
| |
|
|
|
|
|
|
| |
Re-Implement mark as Favorites in new ArchiveView.
Also, don't block when the Collector is running again and we're trying
to update the view.
|
| |
|
|
|
|
|
| |
Don't enqueue anything if the INOTIFY_MASK doesn't match. Could be the
reason for random crashes...
|