From dbd867d60452c95c76c59f45c67c263212d1e8b7 Mon Sep 17 00:00:00 2001 From: nuri Date: Mon, 27 Nov 2017 20:27:49 +0000 Subject: [PATCH] icon theme: add new icons in element editor git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5119 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- ico/16x16/run-dxf.png | Bin 0 -> 509 bytes ico/22x22/folder-open.png | Bin 0 -> 240 bytes qelectrotech.qrc | 2 ++ sources/editor/qetelementeditor.cpp | 6 +++--- sources/qeticons.cpp | 3 +++ sources/qeticons.h | 5 +++-- 6 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 ico/16x16/run-dxf.png create mode 100644 ico/22x22/folder-open.png diff --git a/ico/16x16/run-dxf.png b/ico/16x16/run-dxf.png new file mode 100644 index 0000000000000000000000000000000000000000..7de50c1777c171b300514f2f0369f08080a4c3b9 GIT binary patch literal 509 zcmV`}~q1XSUBT-+BHx-|yi}jiQ)Aml7H!wlCF3JLU z3HoLDU@m@Y{yw=%CkU>J8a6=)08@nq-uNoT7ipS|e4iQkm6P^H_y2rjtMwD`+l3XZ zwIX>gX~8*nV6EK(a6yui`kZrf*4oZJoOApyfust6EdYb%a`}C;**uXH#Bu!m=3=LI zR|W4oVv;13)HU2rn&;g|G-i|J0sv%Lwn6eM07g;t8Nl131YKl&_i|R?ib|!C`kS8L zdF|ECS#KCd$D%&fr~9gf2>|mB)DYv=kMUaLW2+n<0zm01nH0GO;F2?p zUk71ECym(^Ktah8*NBqf{Irtt#G+J&^73-M%)IR4)(FwhyVZo-@Ps8W{}^SgFY_18zyc%bNu-7$r)cy$kgbmvE|&` zBbg_6QBO_u!kGjyr7Iico/16x16/go-down-double.png ico/16x16/go-top.png ico/16x16/go-bottom.png + ico/16x16/run-dxf.png + ico/22x22/folder-open.png diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index e818fa3b2..97e0093cf 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -140,9 +140,9 @@ void QETElementEditor::setFileName(const QString &fn) { */ void QETElementEditor::setupActions() { new_element = new QAction(QET::Icons::DocumentNew, tr("&Nouveau"), this); - open = new QAction(QET::Icons::DocumentOpen, tr("&Ouvrir"), this); - open_file = new QAction(QET::Icons::DocumentOpen, tr("&Ouvrir depuis un fichier"), this); - open_dxf = new QAction(QET::Icons::DocumentOpen, tr("&Lancer le plugin convertisseur DXF"), this); + open = new QAction(QET::Icons::FolderOpen, tr("&Ouvrir"), this); + open_file = new QAction(QET::Icons::FolderOpen, tr("&Ouvrir depuis un fichier"), this); + open_dxf = new QAction(QET::Icons::RunDxf, tr("&Lancer le plugin convertisseur DXF"), this); save = new QAction(QET::Icons::DocumentSave, tr("&Enregistrer"), this); save_as = new QAction(QET::Icons::DocumentSaveAs, tr("Enregistrer sous"), this); save_as_file = new QAction(QET::Icons::DocumentSaveAs, tr("Enregistrer dans un fichier"), this); diff --git a/sources/qeticons.cpp b/sources/qeticons.cpp index 53a36a4a1..1af0674e5 100644 --- a/sources/qeticons.cpp +++ b/sources/qeticons.cpp @@ -151,6 +151,7 @@ namespace QET { QIcon Raise; QIcon Remove; QIcon Restore; + QIcon RunDxf; QIcon SendBackward; QIcon Settings; QIcon SinglePage; @@ -357,6 +358,7 @@ void QET::Icons::initIcons() { FolderNew .addFile(":/ico/22x22/folder-new.png"); FolderOnlyThis .addFile(":/ico/16x16/folder-only-this.png"); FolderOpen .addFile(":/ico/16x16/folder-open.png"); + FolderOpen .addFile(":/ico/22x22/folder-open.png"); FolderProperties .addFile(":/ico/16x16/folder-properties.png"); FolderShowAll .addFile(":/ico/16x16/folder-show-all.png"); Forbidden .addFile(":/ico/16x16/user-busy.png"); @@ -438,6 +440,7 @@ void QET::Icons::initIcons() { Remove .addFile(":/ico/22x22/list-remove.png"); resize_image .addFile(":/ico/22x22/transform-scale.png"); Restore .addFile(":/ico/22x22/restaurer.png"); + RunDxf .addFile(":/ico/16x16/run-dxf.png"); SendBackward .addFile(":/ico/22x22/send_backward.png"); Settings .addFile(":/ico/128x128/settings.png"); SinglePage .addFile(":/ico/22x22/single_page.png"); diff --git a/sources/qeticons.h b/sources/qeticons.h index 8201d8e32..a47811e75 100644 --- a/sources/qeticons.h +++ b/sources/qeticons.h @@ -158,8 +158,9 @@ namespace QET { extern QIcon QtLogo; extern QIcon Raise; extern QIcon Remove; - extern QIcon Restore; - extern QIcon SendBackward; + extern QIcon Restore; + extern QIcon RunDxf; + extern QIcon SendBackward; extern QIcon Settings; extern QIcon SinglePage; extern QIcon South;