Skip to content

Commit

Permalink
Add undo/redo/crop/scale/modify canvas buttons
Browse files Browse the repository at this point in the history
Add undo/redo/crop/scale/modify canvas buttons when required. Since those are not always needed.
Since, for example, ksnip has those built-in.
  • Loading branch information
precla committed Nov 28, 2021
1 parent 8321250 commit 4aaa1cf
Show file tree
Hide file tree
Showing 26 changed files with 812 additions and 4 deletions.
1 change: 1 addition & 0 deletions example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ int main(int argc, char **argv)
kImageAnnotator->setTabBarAutoHide(true);
kImageAnnotator->addTab(pixmap, QLatin1String("image1"), QLatin1String("image1"));
kImageAnnotator->addTab(pixmap, QLatin1String("image2"), QLatin1String("image2"));
kImageAnnotator->showControlsWidget();
kImageAnnotator->adjustSize();

QMainWindow mainWindow;
Expand Down
1 change: 1 addition & 0 deletions include/kImageAnnotator/KImageAnnotator.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Q_OBJECT
void showScaler();
void showRotator();
void showCanvasModifier();
void showControlsWidget();

public Q_SLOTS:
void loadImage(const QPixmap &pixmap);
Expand Down
20 changes: 20 additions & 0 deletions resources/icons/dark/crop.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
75 changes: 75 additions & 0 deletions resources/icons/dark/modifycanvas.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions resources/icons/dark/redo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 82 additions & 0 deletions resources/icons/dark/scale.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4aaa1cf

Please sign in to comment.