[Kde-imaging] [Bug 141530] use "rotate left" and "rotate right" instead of 90 and 270 degrees
Luka Renko
lure at kubuntu.org
Tue Mar 6 10:16:22 CET 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=141530
------- Additional Comments From lure kubuntu org 2007-03-06 10:16 -------
SVN commit 639919 by lure:
Digikam Image Edito: Use Rotate Left/Right actions instead of rotate
by degree (90/180/270). This is more intuitive and easier for user.
Use Ctrl-Left and Ctrl-Right as keyboard shortcuts.
CCBUG: 141530
M +13 -20 editorwindow.cpp
M +4 -6 editorwindowprivate.h
--- trunk/extragear/graphics/digikam/utilities/imageeditor/editor/editorwindow.cpp #639918:639919
@ -203,15 +203,12 @
// -- if rotating/flipping set the rotatedflipped flag to true -----------
- connect(d->rotate90Action, SIGNAL(activated()),
+ connect(d->rotateLeftAction, SIGNAL(activated()),
this, SLOT(slotRotatedOrFlipped()));
-
- connect(d->rotate180Action, SIGNAL(activated()),
+
+ connect(d->rotateRightAction, SIGNAL(activated()),
this, SLOT(slotRotatedOrFlipped()));
- connect(d->rotate270Action, SIGNAL(activated()),
- this, SLOT(slotRotatedOrFlipped()));
-
connect(d->flipHorzAction, SIGNAL(activated()),
this, SLOT(slotRotatedOrFlipped()));
@ -388,23 +385,19 @
"editorwindow_rotate");
d->rotateAction->setDelayed(false);
- d->rotate90Action = new KAction(i18n("90 Degrees"),
- 0, CTRL+Key_9, m_canvas, SLOT(slotRotate90()),
+ d->rotateLeftAction = new KAction(i18n("Left"),
+ "rotate_ccw", CTRL+Key_Left,
+ m_canvas, SLOT(slotRotate270()),
actionCollection(),
- "rotate_90");
- d->rotate180Action = new KAction(i18n("180 Degrees"),
- 0, CTRL+Key_8, m_canvas, SLOT(slotRotate180()),
+ "rotate_ccw");
+ d->rotateRightAction = new KAction(i18n("Right"),
+ "rotate_cw", CTRL+Key_Right,
+ m_canvas, SLOT(slotRotate90()),
actionCollection(),
- "rotate_180");
- d->rotate270Action = new KAction(i18n("270 Degrees"),
- 0, CTRL+Key_7, m_canvas, SLOT(slotRotate270()),
- actionCollection(),
- "rotate_270");
+ "rotate_cw");
+ d->rotateAction->insert(d->rotateLeftAction);
+ d->rotateAction->insert(d->rotateRightAction);
- d->rotateAction->insert(d->rotate90Action);
- d->rotateAction->insert(d->rotate180Action);
- d->rotateAction->insert(d->rotate270Action);
-
// -- Standard 'Configure' menu actions ----------------------------------------
KStdAction::keyBindings(this, SLOT(slotEditKeys()), actionCollection());
--- trunk/extragear/graphics/digikam/utilities/imageeditor/editor/editorwindowprivate.h #639918:639919
@ -58,9 +58,8 @
zoomPlusAction = 0;
zoomMinusAction = 0;
cropAction = 0;
- rotate90Action = 0;
- rotate180Action = 0;
- rotate270Action = 0;
+ rotateLeftAction = 0;
+ rotateRightAction = 0;
flipHorzAction = 0;
flipVertAction = 0;
flipAction = 0;
@ -95,9 +94,8 @
KAction *cropAction;
KAction *zoomPlusAction;
KAction *zoomMinusAction;
- KAction *rotate90Action;
- KAction *rotate180Action;
- KAction *rotate270Action;
+ KAction *rotateLeftAction;
+ KAction *rotateRightAction;
KAction *flipHorzAction;
KAction *flipVertAction;
KAction *slideShowAction;
More information about the Kde-imaging
mailing list