| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Also remove Favorites from selection. Should be an option with random
player, if at all.
|
| |
|
| |
|
|
|
|
|
| |
It's the replacement for the archive viewer thingy. Just keep it simple
and stupid. For now it shows series data.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Get rid of FilesystemWidget and helper classes. The SmDirWatcher was
useful, once, I guess, nice to implement it by foot, but with the
current workflow it isn't needed any more.
|
| |
|
| |
|
| |
|
|
|
|
| |
Show count, size and duration.
|
|
|
|
|
| |
Fill the submenu from readSettings so we can act on configuration
changes.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Select files by CTRL+k, deselect everything with CTRL+k (for kill).
Select all with the global shortcut CTRL+a.
Learned some interesting things: First, QAction shortcuts won't work if
you don't add them to any actions(), even if it has a parent. So
subclass QTreeView for the context menu and add an InvisibleAction enum.
Don't show the QAction if it has that flag in data(). This has a nice
side effect: the context menu isn't shown any more when you right-click
outside the FSView.
Second: The debugger was quite confused with equal SLOT names in
different classes when using the new connect syntax. It dropped me off
in totally wrong classes, confusing me at first, too :(
|
|
|
|
| |
Well, lambdas make life so much easier! Thanks for that :)
|
|
|
|
|
|
|
|
|
| |
Assume that the pictures are identical when the MD5-Sum is. Don't do
that if only the filename is identical. There can be pics with identical
names in the database. Instead, record the md5sum in a custom role.
The idea is to let the user sort it out by comparing all pictures
visually, but that's not yet implemented.
|
| |
|
|
|
|
| |
And remove a lot of cruft... Still much work to be done :(
|
|
|
|
| |
Comes at almost no cost when using Viewer :)
|
|
|
|
|
| |
Use lightweight viewer from ShemovCleaner for this. Unfortunately
PictureViewer2 is overengineered for this.
|
|
|
|
|
|
| |
Unconditionally try to extract all selected files with 7z to the current
directory. Don't try to figure out if 7z is available or if the file is an
archive.
|
|
|
|
| |
Finally make the QComboBox do something.
|
|
|
|
|
| |
Sort size and duration by their actual numbers instead of alphabetically
by the display string.
|
|
|
|
|
| |
Remember column and order when gathering data. Also, set inital sort
column to Name and oder to Qt::AscendinOrder.
|
| |
|
|
|
|
|
| |
Mimic the old behavior, but make the Wizard local to FSWidget. It's only
called from there, so no need to make it global.
|
|
|
|
| |
Also create a helper function to create separator actions.
|
| |
|
|
|
|
|
| |
Use the parent of the current selected dir as starting point when adding
a directory to FSWidget.
|
|
|
|
|
|
|
|
| |
* show busy cursor when gathering data
* emit statusbarMessage() when gathering data
The latter shows a summary with the time it has taken to gather data,
the SQL query count and the number of files analyzed.
|
| |
|
|
|
|
|
|
| |
* replace add and remove icons with generated '+' and '-' icons
* rearrange top widgets: directories at the left, center toolbar and
filters at the right.
|
|
|
|
|
|
|
|
|
|
|
| |
First, look for md5 in files and files_origin. Then look for the complete
filename in files, and finally for the filename without suffix in files_origin.
If we have a match, note it in the new column "Presence". Matches from
files are displayed green, matches from files_orgin blue.
This implementation tries to execute as few QSqlQueries as possible by
using goto for performance. We only want to know if the file is somewhere
present, so skip the remaining queries once we have a match.
|
|
|
|
|
|
| |
* add programmatically rendered icons
* make text Qt::black
* set rootIsDecorated to false
|
|
|
|
| |
Not pretty, but we're getting there.
|
|
|
|
|
|
|
| |
Also safe and restore them. What I found out: setting the insert policy
on QComboBoxes is totally useless when you insert items
programmatically. So I implemented inserting items sorted on my own and
generalized it for the dir and filter combobox, thanks to lambdas...
|
|
|
|
|
| |
Still doesn't read anything from the filesystem, but now you can add and
remove directories. Also, the settings are saved.
|
|
|
|
| |
Just the layout, does absolutely nothing yet.
|
|
|
|
|
| |
tries to tar xf selected files. If tar was successful, the archive is
deleted. Should make archiving pics a bit easier.
|
|
|
|
|
| |
baseName() only returns the filename unto the *first* dot, but we want the
*last* dot, so use completeBaseName().
|
|
|
|
| |
Remove unneccessary includes and forward declarations.
|
| |
|
|
|
|
|
| |
* make one connect() type-safe
* remove members that don't need to be members, and one unused member
|
| |
|
|
|
|
|
|
|
| |
* use type-safe connect syntax
* remove unnecessary includes
* remove Q_FOREACH
* inline selectionModel()
|
|
|
|
|
|
| |
* use type-safe connect syntax
* remove Q_FOREACH
* remove unused members and make some QPushButtons non-members
|
|
|
|
|
|
| |
* Use type-safe connect
* remove Q_FOREACH
* remove some unused #includes
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Converted everything to the type-safe connect syntax. That unearthed two
minor problems with filesystemwidget.cpp:
1. We called a private SLOT in there from class SheMov. Dunno if it
works with the old syntax. Anyway, I fixed it.
2. With the new syntax you can't call SLOTS with default arguments, so I
had to introduce a helper slot playSelectedWithDefault
Since I was already at it, I also replaced Q_FOREACH.
|