diff options
-rw-r--r-- | utils/themeeditor/gui/skinviewer.cpp | 7 | ||||
-rw-r--r-- | utils/themeeditor/gui/skinviewer.h | 1 | ||||
-rw-r--r-- | utils/themeeditor/gui/skinviewer.ui | 41 | ||||
-rw-r--r-- | utils/themeeditor/resources.qrc | 3 | ||||
-rw-r--r-- | utils/themeeditor/resources/COPYING | 4 | ||||
-rw-r--r-- | utils/themeeditor/resources/magnifyingglass.xcf | bin | 0 -> 2685 bytes | |||
-rw-r--r-- | utils/themeeditor/resources/zoomeven.png | bin | 0 -> 1035 bytes | |||
-rw-r--r-- | utils/themeeditor/resources/zoomin.png | bin | 0 -> 1024 bytes | |||
-rw-r--r-- | utils/themeeditor/resources/zoomout.png | bin | 0 -> 1002 bytes |
9 files changed, 53 insertions, 3 deletions
diff --git a/utils/themeeditor/gui/skinviewer.cpp b/utils/themeeditor/gui/skinviewer.cpp index ade4c7fd60..95caf1e393 100644 --- a/utils/themeeditor/gui/skinviewer.cpp +++ b/utils/themeeditor/gui/skinviewer.cpp | |||
@@ -32,6 +32,8 @@ SkinViewer::SkinViewer(QWidget *parent) : | |||
32 | this, SLOT(zoomOut())); | 32 | this, SLOT(zoomOut())); |
33 | QObject::connect(ui->zoomInButton, SIGNAL(pressed()), | 33 | QObject::connect(ui->zoomInButton, SIGNAL(pressed()), |
34 | this, SLOT(zoomIn())); | 34 | this, SLOT(zoomIn())); |
35 | QObject::connect(ui->zoomEvenButton, SIGNAL(pressed()), | ||
36 | this, SLOT(zoomEven())); | ||
35 | 37 | ||
36 | ui->viewer->setDragMode(QGraphicsView::ScrollHandDrag); | 38 | ui->viewer->setDragMode(QGraphicsView::ScrollHandDrag); |
37 | } | 39 | } |
@@ -67,3 +69,8 @@ void SkinViewer::zoomOut() | |||
67 | { | 69 | { |
68 | ui->viewer->scale(1/1.2, 1/1.2); | 70 | ui->viewer->scale(1/1.2, 1/1.2); |
69 | } | 71 | } |
72 | |||
73 | void SkinViewer::zoomEven() | ||
74 | { | ||
75 | ui->viewer->resetTransform(); | ||
76 | } | ||
diff --git a/utils/themeeditor/gui/skinviewer.h b/utils/themeeditor/gui/skinviewer.h index 599a204fd7..64ad219aae 100644 --- a/utils/themeeditor/gui/skinviewer.h +++ b/utils/themeeditor/gui/skinviewer.h | |||
@@ -40,6 +40,7 @@ public: | |||
40 | public slots: | 40 | public slots: |
41 | void zoomIn(); | 41 | void zoomIn(); |
42 | void zoomOut(); | 42 | void zoomOut(); |
43 | void zoomEven(); | ||
43 | 44 | ||
44 | protected: | 45 | protected: |
45 | void changeEvent(QEvent *e); | 46 | void changeEvent(QEvent *e); |
diff --git a/utils/themeeditor/gui/skinviewer.ui b/utils/themeeditor/gui/skinviewer.ui index a5373de160..d1116888b9 100644 --- a/utils/themeeditor/gui/skinviewer.ui +++ b/utils/themeeditor/gui/skinviewer.ui | |||
@@ -33,10 +33,37 @@ | |||
33 | </spacer> | 33 | </spacer> |
34 | </item> | 34 | </item> |
35 | <item> | 35 | <item> |
36 | <widget class="QToolButton" name="zoomEvenButton"> | ||
37 | <property name="text"> | ||
38 | <string>Zoom Even</string> | ||
39 | </property> | ||
40 | <property name="icon"> | ||
41 | <iconset resource="../resources.qrc"> | ||
42 | <normaloff>:/resources/resources/zoomeven.png</normaloff>:/resources/resources/zoomeven.png</iconset> | ||
43 | </property> | ||
44 | <property name="iconSize"> | ||
45 | <size> | ||
46 | <width>24</width> | ||
47 | <height>24</height> | ||
48 | </size> | ||
49 | </property> | ||
50 | </widget> | ||
51 | </item> | ||
52 | <item> | ||
36 | <widget class="QToolButton" name="zoomInButton"> | 53 | <widget class="QToolButton" name="zoomInButton"> |
37 | <property name="text"> | 54 | <property name="text"> |
38 | <string>Zoom In</string> | 55 | <string>Zoom In</string> |
39 | </property> | 56 | </property> |
57 | <property name="icon"> | ||
58 | <iconset resource="../resources.qrc"> | ||
59 | <normaloff>:/resources/resources/zoomin.png</normaloff>:/resources/resources/zoomin.png</iconset> | ||
60 | </property> | ||
61 | <property name="iconSize"> | ||
62 | <size> | ||
63 | <width>24</width> | ||
64 | <height>24</height> | ||
65 | </size> | ||
66 | </property> | ||
40 | <property name="autoRepeat"> | 67 | <property name="autoRepeat"> |
41 | <bool>true</bool> | 68 | <bool>true</bool> |
42 | </property> | 69 | </property> |
@@ -47,6 +74,16 @@ | |||
47 | <property name="text"> | 74 | <property name="text"> |
48 | <string>Zoom Out</string> | 75 | <string>Zoom Out</string> |
49 | </property> | 76 | </property> |
77 | <property name="icon"> | ||
78 | <iconset resource="../resources.qrc"> | ||
79 | <normaloff>:/resources/resources/zoomout.png</normaloff>:/resources/resources/zoomout.png</iconset> | ||
80 | </property> | ||
81 | <property name="iconSize"> | ||
82 | <size> | ||
83 | <width>24</width> | ||
84 | <height>24</height> | ||
85 | </size> | ||
86 | </property> | ||
50 | <property name="autoRepeat"> | 87 | <property name="autoRepeat"> |
51 | <bool>true</bool> | 88 | <bool>true</bool> |
52 | </property> | 89 | </property> |
@@ -56,6 +93,8 @@ | |||
56 | </item> | 93 | </item> |
57 | </layout> | 94 | </layout> |
58 | </widget> | 95 | </widget> |
59 | <resources/> | 96 | <resources> |
97 | <include location="../resources.qrc"/> | ||
98 | </resources> | ||
60 | <connections/> | 99 | <connections/> |
61 | </ui> | 100 | </ui> |
diff --git a/utils/themeeditor/resources.qrc b/utils/themeeditor/resources.qrc index 27d808c240..dbaeea3185 100644 --- a/utils/themeeditor/resources.qrc +++ b/utils/themeeditor/resources.qrc | |||
@@ -6,6 +6,9 @@ | |||
6 | <file>resources/document-save.png</file> | 6 | <file>resources/document-save.png</file> |
7 | <file alias="configkeys">resources/configkeys</file> | 7 | <file alias="configkeys">resources/configkeys</file> |
8 | <file alias="deviceoptions">resources/deviceoptions</file> | 8 | <file alias="deviceoptions">resources/deviceoptions</file> |
9 | <file>resources/zoomeven.png</file> | ||
10 | <file>resources/zoomin.png</file> | ||
11 | <file>resources/zoomout.png</file> | ||
9 | </qresource> | 12 | </qresource> |
10 | <qresource prefix="/render"> | 13 | <qresource prefix="/render"> |
11 | <file alias="scenebg.png">resources/render/scenebg.png</file> | 14 | <file alias="scenebg.png">resources/render/scenebg.png</file> |
diff --git a/utils/themeeditor/resources/COPYING b/utils/themeeditor/resources/COPYING index 02389762b0..2b6a94c0e4 100644 --- a/utils/themeeditor/resources/COPYING +++ b/utils/themeeditor/resources/COPYING | |||
@@ -1,5 +1,5 @@ | |||
1 | The files appicon.xcf and windowicon.png are authored by Robert Bieber, and | 1 | The files appicon.xcf and windowicon.png, and all the magnifying glass |
2 | made available in the public domain. | 2 | graphics are authored by Robert Bieber, and made available in the public domain. |
3 | 3 | ||
4 | The files document-new.png, document-open.png, and document-save.png came from | 4 | The files document-new.png, document-open.png, and document-save.png came from |
5 | the Tango Desktop Project (http://www.tango.freedesktop.org) and are also in | 5 | the Tango Desktop Project (http://www.tango.freedesktop.org) and are also in |
diff --git a/utils/themeeditor/resources/magnifyingglass.xcf b/utils/themeeditor/resources/magnifyingglass.xcf new file mode 100644 index 0000000000..50babd6c1f --- /dev/null +++ b/utils/themeeditor/resources/magnifyingglass.xcf | |||
Binary files differ | |||
diff --git a/utils/themeeditor/resources/zoomeven.png b/utils/themeeditor/resources/zoomeven.png new file mode 100644 index 0000000000..6da2a744e8 --- /dev/null +++ b/utils/themeeditor/resources/zoomeven.png | |||
Binary files differ | |||
diff --git a/utils/themeeditor/resources/zoomin.png b/utils/themeeditor/resources/zoomin.png new file mode 100644 index 0000000000..2903eb3f5e --- /dev/null +++ b/utils/themeeditor/resources/zoomin.png | |||
Binary files differ | |||
diff --git a/utils/themeeditor/resources/zoomout.png b/utils/themeeditor/resources/zoomout.png new file mode 100644 index 0000000000..d0cdc72e03 --- /dev/null +++ b/utils/themeeditor/resources/zoomout.png | |||
Binary files differ | |||