| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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 the QGraphicsItems right (I hope), and use auto where applicable.
Let the compiler do the hard work.
Also use type-safe connect syntax, fix nullptr warnings and weed out
foreach.
|
| |
|
|
|
|
|
|
|
| |
The journey started innocent enough, but turned out to be a commit that
should have been severals. In the end, the picture archive has no
menuBar() any more, as expected, but it's also impossible to call the
slide dialog. Will fix that soon.
|
|
|
|
| |
Never did anything, and we'll know soon enough.
|
|
|
|
| |
Replace \d files selected with \d/\d files.
|
|
|
|
|
| |
Well, everything besides the selected selection... That needs some more
work.
|
|
|
|
|
| |
Well, sanitize the sliding madness. Replace it by a dialog and just one
timer. Seems to work so far...
|
|
|
|
| |
Well, implement functionality. Seems to work as intended.
|
|
|
|
| |
Does nothing yet, just the dialog...
|
|
|
|
|
|
|
|
|
|
| |
Automatically converting a damaged file to PNG and updating the archive
is fine as long as we're *in* the archive, but it totally messes things
up if we're browsing the file system.
So check if the image is in the archive path, and only then consider
auto-converting it. Also show a notice in the InfoItem if the file has
been converted.
|
|
|
|
|
| |
For now, recent is hardcoded to pictures added in the last 6 months.
Maybe it should be configurable...
|
|
|
|
| |
Remove action from context menu.
|
|
|
|
| |
Remove actions that are now triggered by the ControlItem.
|
|
|
|
|
| |
Now the controls actually do something. Not still as promised, but they
kinda work!
|
|
|
|
|
| |
Draw control items in PictureViewer2 at the right centered on the y-
axis.
|
|
|
|
| |
Draw a dummy rounded rectangle on the bottom left for control items.
|
|
|
|
|
| |
Introduce PictureViewerGraphicsScene for upcoming control items in the
scene.
|
|
|
|
|
| |
Wow, that was much more complicated than I first thought, but it seems
to work. Maybe it's much more convoluted than it has to be :)
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
When calling NewPicsDialog from PictureViewer, move it to the top left
corner to not cover the pic itself. Also, select all pics from current
directory when no files are marked.
|
|
|
|
|
|
|
|
|
|
| |
Resurrect the indented MappingItem. There's some recursion involved, but
actually it ain't so hard if you have a template :)
This adventure uncovered a bug in NewPicsDialog: Right now we also
record the nodes (not just the leaves) for the Mappings. This bug was
introduced by commit dc7cc269a4fffe43bdac2ae2dc6548fbd1e3bb5e and will
be fixed in one of the next commits.
|
|
|
|
|
| |
PageDown = back 25
PageUp = forward 25
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
check and uncheck the show/hide QAction on showEvent/hideEvent.
|
|
|
|
|
| |
* Don't show the mapping item in preview, because it has none.
* Use qApp->showOverrideCursor() instead of QWidget::cursor()
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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 :)
|
|
|
|
|
|
|
|
|
|
|
| |
To make archiving pictures from different sources easier, add a
NewPicsDialog to PictureViewer. Add shortcuts to show the dialog and
adding pics to it. After adding all pics with the same mappping, just
click OK and add them to the archive.
Shortcuts:
Meta+s: Show NewPicsDialog
Meta+a: Add current pic
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Replace checkbox for showing info items at all with a "do not show"
position in the combobox. While at it, remove unused SideBySide
position.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add an action to PictureViewer2 for copying the current pic to another
directory.
When I tried to add the QAction to the context menu, I realized that I
chose the variable names picView and picViewer in shemov.cpp very
poorly. Took some time to sift though it. Eventually I shifted some code
around to make it more readable. While at it I replaced the individual
separators with createSeparator(). Other than adding the Copy To action
no functional changes.
|
|
|
|
| |
Remove PictureViewer from everywhere and use PictureViewer2 instead.
|
|
|
|
|
|
|
|
|
| |
Well, the comment was right. The previous implementation was fishy at
best. It simply didn't work. Could have been so ease. Just look at the
commit size :)
Don't forget that there will be an empty line at the beginning of the
QTextDocument if you don't check the first insert.
|
|
|
|
|
| |
Make mappingwidget behave according to settings. SideBySide doesn't work
yet, maybe it should be canned.
|
|
|
|
|
|
|
| |
Create copious options for FileInfoItem, reintroducing the Pictures tab
in ConfigurationDialog.
Also fixed a long standing bug in SeriesTreeWidget: don't static_cast()
an event. It'll succeed even when called from a destructor.
|
|
|
|
|
|
|
|
|
|
|
| |
Hell, this was one heck of a bitch. Lots of changes just to show the
mapping tree in PictureViewer2. Did I mention that I hate recursion?
Added a function for fetching a SmTreeItem * from MappingTreeModel for
paths, just to turn it into a QTextDocument in PictureViewer2. Of course
everything is recursive. Did I say that I hate recursion?
Well, as said in the comments, one recursion function seems fishy, but
it works (tm).
|
|
|
|
|
|
|
| |
Never, ever forget: QVariant() casts to a valid int! Again, this was a
tough one, but maybe I shouldn't drink and program.
PictureViewer2 reacts to Escape and Space. Escape hides it and stops the
slide timer, Space activates the slide timer.
|
|
|
|
|
| |
This was easier than I thought. Make info item movable and save position
on exit.
|
|
|
|
|
| |
std::random_shuffle available files in PictureViewer2. Add action to
View menu and reuse an icon.
|
|
|
|
|
| |
Show the number of files available to PictureViewer2 in the InfoItem.
Also give constructFilenameItem a proper name.
|
|
|
|
|
|
| |
Add options to ConfigurationDialog to either use a fixed color as
background or a gradient picked with random colors picked from the
picture.
|
|
|
|
|
|
|
|
|
| |
Turn it into something completely different :)
Display filename, scaled size, file size, added date and mime type in
the upper left corner of the viewport.
Make it more visible. A pinkish background doesn't always work esp. with
a gradient background. Make it white with 80% alpha channel with a black
foreground.
|
|
|
|
|
| |
Create a GraphicsItem showing the filename at the top of the view. Also
put the filename in the window title.
|
|
|
|
|
|
| |
Implement slide show in Pictureviewer2. Slide over all available files
and wrap around when reaching the end of the list.
Also added some more artwork.
|
|
|
|
|
|
|
| |
-Implement add and replace files
-use QList<QVariant> (typedef'd) for shoveling data around
-more code shuffling
-new artwork
|
|
|
|
|
| |
Show picture in PictureViewer2 when double clicking an item in pictures
widget. Also shuffle some code around.
|