]> Shamusworld >> Repos - warehouse-man-deluxe/commitdiff
Added sensible icons to the editor.
authorShamus Hammons <jlhamm@acm.org>
Fri, 11 Jul 2014 02:50:03 +0000 (21:50 -0500)
committerShamus Hammons <jlhamm@acm.org>
Fri, 11 Jul 2014 02:50:03 +0000 (21:50 -0500)
res/icon-add.png [new file with mode: 0644]
res/icon-delete.png [new file with mode: 0644]
res/icon-down.png [new file with mode: 0644]
res/icon-play.png [new file with mode: 0644]
res/icon-up.png [new file with mode: 0644]
res/resources.qrc
src/editorwindow.cpp
src/editorwindow.h

diff --git a/res/icon-add.png b/res/icon-add.png
new file mode 100644 (file)
index 0000000..421242d
Binary files /dev/null and b/res/icon-add.png differ
diff --git a/res/icon-delete.png b/res/icon-delete.png
new file mode 100644 (file)
index 0000000..2a2a4cc
Binary files /dev/null and b/res/icon-delete.png differ
diff --git a/res/icon-down.png b/res/icon-down.png
new file mode 100644 (file)
index 0000000..ba517fc
Binary files /dev/null and b/res/icon-down.png differ
diff --git a/res/icon-play.png b/res/icon-play.png
new file mode 100644 (file)
index 0000000..0e01b87
Binary files /dev/null and b/res/icon-play.png differ
diff --git a/res/icon-up.png b/res/icon-up.png
new file mode 100644 (file)
index 0000000..fc9dabc
Binary files /dev/null and b/res/icon-up.png differ
index 658fb466c979106d64c95985cd973230a46ba53e..026644e6bbff6a7ad105f3658d6ef3b8114a3509 100644 (file)
@@ -2,6 +2,11 @@
 <qresource>
        <file>wmd-icon.png</file>
        <file>bg_marble_g.bmp</file>
+       <file>icon-up.png</file>
+       <file>icon-down.png</file>
+       <file>icon-add.png</file>
+       <file>icon-delete.png</file>
+       <file>icon-play.png</file>
 </qresource>
 </RCC>
 
index 713dc740caebea5e0eb2721f00b42a140c95a4e4..df7743676812ec9b3118e12502343872fc154d6d 100644 (file)
 EditorWindow::EditorWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Window)
 {
        list = new QListWidget;
-       up = new QPushButton("^");
-       down = new QPushButton("v");
-       add = new QPushButton("+");
-       remove = new QPushButton("-");
-       play = new QPushButton(">");
        editor = new EditorWidget(parent);
+       up = new QToolButton;
+       down = new QToolButton;
+       add = new QToolButton;
+       remove = new QToolButton;
+       play = new QToolButton;
+
+       up->setIcon(QIcon(":/icon-up.png"));
+       down->setIcon(QIcon(":/icon-down.png"));
+       add->setIcon(QIcon(":/icon-add.png"));
+       remove->setIcon(QIcon(":/icon-delete.png"));
+       play->setIcon(QIcon(":/icon-play.png"));
 
        list->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
 //     editor->setFocus(); //DISNOWOK
index c17c7b0c5700e9f756a01e9905b24397243d41c2..f018a2ea91e56ac37321beed1dbb95fb3f895766 100644 (file)
@@ -28,7 +28,7 @@ class EditorWindow: public QWidget
 
        private:
                QListWidget * list;
-               QPushButton * up, * down, * add, * remove, * play;
+               QToolButton * up, * down, * add, * remove, * play;
                EditorWidget * editor;
 };