[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/gwenview
From: Aurélien Gâteau <aurelien.gateau () free ! fr>
Date: 2006-10-21 17:57:26
Message-ID: 1161453446.380626.24644.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 597814 by gateau:
Added the rotate_left action to KParts
M +1 -0 NEWS
M +5 -0 gvdirpart/gvdirpart.cpp
M +5 -0 gvdirpart/gvdirpart.h
M +2 -0 gvdirpart/gvdirpart.rc
M +5 -0 gvimagepart/gvimagepart.cpp
M +5 -0 gvimagepart/gvimagepart.h
M +2 -0 gvimagepart/gvimagepart.rc
--- trunk/extragear/graphics/gwenview/NEWS #597813:597814
@@ -9,6 +9,7 @@
- Do not show the name of the current file in the status bar: it's already
shown in the title bar and it was causing the mainwindow to be enlarged if
the name was very long (Bug 127004)
+ - Show the "rotate left" button in KParts.
2006.09.16 - v1.4.0
- Fixes:
--- trunk/extragear/graphics/gwenview/gvdirpart/gvdirpart.cpp #597813:597814
@@ -86,6 +86,7 @@
setWidget(mSplitter);
KStdAction::saveAs( mDocument, SLOT(saveAs()), actionCollection(), "saveAs" );
+ new KAction(i18n("Rotate &Left"), "rotate_ccw", CTRL + Key_L, this, \
SLOT(rotateLeft()), actionCollection(), "rotate_left"); new KAction(i18n("Rotate \
&Right"), "rotate_cw", CTRL + Key_R, this, SLOT(rotateRight()), actionCollection(), \
"rotate_right");
connect(mFileViewController, SIGNAL(requestContextMenu(const QPoint&, bool)),
@@ -214,6 +215,10 @@
}
}
+void GVDirPart::rotateLeft() {
+ mDocument->transform(ImageUtils::ROT_270);
+}
+
void GVDirPart::rotateRight() {
mDocument->transform(ImageUtils::ROT_90);
}
--- trunk/extragear/graphics/gwenview/gvdirpart/gvdirpart.h #597813:597814
@@ -121,6 +121,11 @@
void loaded(const KURL& url);
/**
+ * Rotates the current image 90 degrees counter clockwise
+ */
+ void rotateLeft();
+
+ /**
* Rotates the current image 90 degrees clockwise
*/
void rotateRight();
--- trunk/extragear/graphics/gwenview/gvdirpart/gvdirpart.rc #597813:597814
@@ -5,6 +5,7 @@
<Action name="saveAs"/>
</Menu>
<Menu name="edit">
+ <Action name="rotate_left"/>
<Action name="rotate_right"/>
</Menu>
<Menu name="view"><Text>&View</Text>
@@ -38,6 +39,7 @@
<Action name="view_zoom_in"/>
<Action name="view_zoom_to"/>
<Action name="view_zoom_out"/>
+ <Action name="rotate_left"/>
<Action name="rotate_right"/>
<Action name="slideshow"/>
</ToolBar>
--- trunk/extragear/graphics/gwenview/gvimagepart/gvimagepart.cpp #597813:597814
@@ -98,6 +98,7 @@
updateNextPrevious();
KStdAction::saveAs( mDocument, SLOT(saveAs()), actionCollection(), "saveAs" );
+ new KAction(i18n("Rotate &Left"), "rotate_ccw", CTRL + Key_L, this, \
SLOT(rotateLeft()), actionCollection(), "rotate_left"); new KAction(i18n("Rotate \
&Right"), "rotate_cw", CTRL + Key_R, this, SLOT(rotateRight()), actionCollection(), \
"rotate_right");
setXMLFile( "gvimagepart/gvimagepart.rc" );
@@ -190,6 +191,10 @@
}
}
+void GVImagePart::rotateLeft() {
+ mDocument->transform(ImageUtils::ROT_270);
+}
+
void GVImagePart::rotateRight() {
mDocument->transform(ImageUtils::ROT_90);
}
--- trunk/extragear/graphics/gwenview/gvimagepart/gvimagepart.h #597813:597814
@@ -90,6 +90,11 @@
virtual bool openFile() { return false; }
/**
+ * Rotates the current image 90 degrees counter clockwise
+ */
+ void rotateLeft();
+
+ /**
* Rotates the current image 90 degrees clockwise
*/
void rotateRight();
--- trunk/extragear/graphics/gwenview/gvimagepart/gvimagepart.rc #597813:597814
@@ -5,6 +5,7 @@
<Action name="saveAs"/>
</Menu>
<Menu name="edit">
+ <Action name="rotate_left"/>
<Action name="rotate_right"/>
</Menu>
<Menu name="view"><Text>&View</Text>
@@ -33,6 +34,7 @@
<Action name="view_zoom_in"/>
<Action name="view_zoom_to"/>
<Action name="view_zoom_out"/>
+ <Action name="rotate_left"/>
<Action name="rotate_right"/>
</ToolBar>
</kpartgui>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic