From 6dc96420513b577c7710ce75aeb9334f1624f8dd Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sun, 22 Jan 2017 20:18:45 -0500 Subject: [PATCH] Updated some of the built-in drawing icons. --- .gitignore | 1 + glabels/Icons.h | 21 ++++++++----- glabels/ObjectEditor.cpp | 10 +++---- glabels/icons.qrc | 28 +++++++++++++----- glabels/icons/22x22/actions/glabels-arrow.svg | 7 +++++ .../icons/22x22/actions/glabels-barcode.svg | 24 +++++++++++++++ glabels/icons/22x22/actions/glabels-box.svg | 7 +++++ .../icons/22x22/actions/glabels-ellipse.svg | 7 +++++ glabels/icons/22x22/actions/glabels-image.svg | 12 ++++++++ glabels/icons/22x22/actions/glabels-line.svg | 7 +++++ glabels/icons/22x22/actions/glabels-text.svg | 7 +++++ glabels/icons/24x24/actions/glabels-arrow.png | Bin 367 -> 0 bytes glabels/icons/24x24/actions/glabels-arrow.svg | 7 +++++ .../icons/24x24/actions/glabels-barcode.png | Bin 241 -> 0 bytes .../icons/24x24/actions/glabels-barcode.svg | 24 +++++++++++++++ glabels/icons/24x24/actions/glabels-box.png | Bin 320 -> 0 bytes glabels/icons/24x24/actions/glabels-box.svg | 7 +++++ .../icons/24x24/actions/glabels-ellipse.png | Bin 744 -> 0 bytes .../icons/24x24/actions/glabels-ellipse.svg | 7 +++++ glabels/icons/24x24/actions/glabels-image.png | Bin 704 -> 0 bytes glabels/icons/24x24/actions/glabels-image.svg | 12 ++++++++ glabels/icons/24x24/actions/glabels-line.png | Bin 325 -> 0 bytes glabels/icons/24x24/actions/glabels-line.svg | 7 +++++ glabels/icons/24x24/actions/glabels-text.png | Bin 285 -> 0 bytes glabels/icons/24x24/actions/glabels-text.svg | 7 +++++ 25 files changed, 183 insertions(+), 19 deletions(-) create mode 100644 glabels/icons/22x22/actions/glabels-arrow.svg create mode 100644 glabels/icons/22x22/actions/glabels-barcode.svg create mode 100644 glabels/icons/22x22/actions/glabels-box.svg create mode 100644 glabels/icons/22x22/actions/glabels-ellipse.svg create mode 100644 glabels/icons/22x22/actions/glabels-image.svg create mode 100644 glabels/icons/22x22/actions/glabels-line.svg create mode 100644 glabels/icons/22x22/actions/glabels-text.svg delete mode 100644 glabels/icons/24x24/actions/glabels-arrow.png create mode 100644 glabels/icons/24x24/actions/glabels-arrow.svg delete mode 100644 glabels/icons/24x24/actions/glabels-barcode.png create mode 100644 glabels/icons/24x24/actions/glabels-barcode.svg delete mode 100644 glabels/icons/24x24/actions/glabels-box.png create mode 100644 glabels/icons/24x24/actions/glabels-box.svg delete mode 100644 glabels/icons/24x24/actions/glabels-ellipse.png create mode 100644 glabels/icons/24x24/actions/glabels-ellipse.svg delete mode 100644 glabels/icons/24x24/actions/glabels-image.png create mode 100644 glabels/icons/24x24/actions/glabels-image.svg delete mode 100644 glabels/icons/24x24/actions/glabels-line.png create mode 100644 glabels/icons/24x24/actions/glabels-line.svg delete mode 100644 glabels/icons/24x24/actions/glabels-text.png create mode 100644 glabels/icons/24x24/actions/glabels-text.svg diff --git a/.gitignore b/.gitignore index a504685..c526c9a 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,4 @@ gmon.out core *.safe *.sav* +.directory diff --git a/glabels/Icons.h b/glabels/Icons.h index 9c9d995..194c444 100644 --- a/glabels/Icons.h +++ b/glabels/Icons.h @@ -40,7 +40,8 @@ namespace glabels Arrow() { addFile( ":icons/16x16/actions/glabels-arrow.png" ); - addFile( ":icons/24x24/actions/glabels-arrow.png" ); + addFile( ":icons/22x22/actions/glabels-arrow.svg" ); + addFile( ":icons/24x24/actions/glabels-arrow.svg" ); } }; @@ -51,7 +52,8 @@ namespace glabels Barcode() { addFile( ":icons/16x16/actions/glabels-barcode.png" ); - addFile( ":icons/24x24/actions/glabels-barcode.png" ); + addFile( ":icons/22x22/actions/glabels-barcode.svg" ); + addFile( ":icons/24x24/actions/glabels-barcode.svg" ); } }; @@ -62,7 +64,8 @@ namespace glabels Box() { addFile( ":icons/16x16/actions/glabels-box.png" ); - addFile( ":icons/24x24/actions/glabels-box.png" ); + addFile( ":icons/22x22/actions/glabels-box.svg" ); + addFile( ":icons/24x24/actions/glabels-box.svg" ); } }; @@ -73,7 +76,8 @@ namespace glabels Ellipse() { addFile( ":icons/16x16/actions/glabels-ellipse.png" ); - addFile( ":icons/24x24/actions/glabels-ellipse.png" ); + addFile( ":icons/22x22/actions/glabels-ellipse.svg" ); + addFile( ":icons/24x24/actions/glabels-ellipse.svg" ); } }; @@ -84,7 +88,8 @@ namespace glabels Image() { addFile( ":icons/16x16/actions/glabels-image.png" ); - addFile( ":icons/24x24/actions/glabels-image.png" ); + addFile( ":icons/22x22/actions/glabels-image.svg" ); + addFile( ":icons/24x24/actions/glabels-image.svg" ); } }; @@ -95,7 +100,8 @@ namespace glabels Line() { addFile( ":icons/16x16/actions/glabels-line.png" ); - addFile( ":icons/24x24/actions/glabels-line.png" ); + addFile( ":icons/22x22/actions/glabels-line.svg" ); + addFile( ":icons/24x24/actions/glabels-line.svg" ); } }; @@ -106,7 +112,8 @@ namespace glabels Text() { addFile( ":icons/16x16/actions/glabels-text.png" ); - addFile( ":icons/24x24/actions/glabels-text.png" ); + addFile( ":icons/22x22/actions/glabels-text.svg" ); + addFile( ":icons/24x24/actions/glabels-text.svg" ); } }; diff --git a/glabels/ObjectEditor.cpp b/glabels/ObjectEditor.cpp index dbc569f..ae3eff4 100644 --- a/glabels/ObjectEditor.cpp +++ b/glabels/ObjectEditor.cpp @@ -313,7 +313,7 @@ namespace glabels if ( dynamic_cast(mObject) ) { - titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-box.png") ); + titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-box.svg") ); titleLabel->setText( tr("Box object properties") ); notebook->addTab( lineFillPage, "line/fill" ); @@ -334,7 +334,7 @@ namespace glabels } else if ( dynamic_cast(mObject) ) { - titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-ellipse.png") ); + titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-ellipse.svg") ); titleLabel->setText( tr("Ellipse object properties") ); notebook->addTab( lineFillPage, "line/fill" ); @@ -355,7 +355,7 @@ namespace glabels } else if ( dynamic_cast(mObject) ) { - titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-image.png") ); + titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-image.svg") ); titleLabel->setText( tr("Image object properties") ); notebook->addTab( imagePage, "image" ); @@ -375,7 +375,7 @@ namespace glabels } else if ( dynamic_cast(mObject) ) { - titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-line.png") ); + titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-line.svg") ); titleLabel->setText( tr("Line object properties") ); notebook->addTab( lineFillPage, "line/fill" ); @@ -396,7 +396,7 @@ namespace glabels } else if ( dynamic_cast(mObject) ) { - titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-text.png") ); + titleImageLabel->setPixmap( QPixmap(":icons/24x24/actions/glabels-text.svg") ); titleLabel->setText( tr("Text object properties") ); notebook->addTab( textPage, "text" ); diff --git a/glabels/icons.qrc b/glabels/icons.qrc index 8729ca3..b1e0494 100644 --- a/glabels/icons.qrc +++ b/glabels/icons.qrc @@ -2,6 +2,7 @@ + icons/16x16/actions/edit-clear.png icons/16x16/actions/edit-find.png icons/16x16/actions/glabels-align-bottom.png @@ -30,25 +31,34 @@ icons/16x16/actions/glabels-rotate-right.png icons/16x16/actions/glabels-text.png icons/16x16/apps/glabels.png + + icons/22x22/actions/glabels-arrow.svg + icons/22x22/actions/glabels-barcode.svg + icons/22x22/actions/glabels-box.svg + icons/22x22/actions/glabels-ellipse.svg + icons/22x22/actions/glabels-image.svg + icons/22x22/actions/glabels-line.svg + icons/22x22/actions/glabels-text.svg + icons/24x24/actions/edit-clear.png icons/24x24/actions/edit-find.png icons/24x24/actions/glabels-align-text-center.png icons/24x24/actions/glabels-align-text-left.png icons/24x24/actions/glabels-align-text-right.png - icons/24x24/actions/glabels-arrow.png - icons/24x24/actions/glabels-barcode.png - icons/24x24/actions/glabels-box.png + icons/24x24/actions/glabels-arrow.svg + icons/24x24/actions/glabels-barcode.svg + icons/24x24/actions/glabels-box.svg icons/24x24/actions/glabels-bucket-fill.png - icons/24x24/actions/glabels-ellipse.png + icons/24x24/actions/glabels-ellipse.svg icons/24x24/actions/glabels-format-text-bold.png icons/24x24/actions/glabels-format-text-italic.png icons/24x24/actions/glabels-format-text-underline.png - icons/24x24/actions/glabels-image.png - icons/24x24/actions/glabels-line.png + icons/24x24/actions/glabels-image.svg + icons/24x24/actions/glabels-line.svg icons/24x24/actions/glabels-merge.png icons/24x24/actions/glabels-object-properties.png icons/24x24/actions/glabels-pencil.png - icons/24x24/actions/glabels-text.png + icons/24x24/actions/glabels-text.svg icons/24x24/actions/glabels-valign-text-bottom.png icons/24x24/actions/glabels-valign-text-middle.png icons/24x24/actions/glabels-valign-text-top.png @@ -65,12 +75,16 @@ icons/24x24/actions/zoom-original.png icons/24x24/actions/zoom-out.png icons/24x24/apps/glabels.png + icons/32x32/apps/glabels.png icons/32x32/actions/file-print.png icons/32x32/actions/horizontal-orientation.png icons/32x32/actions/select-product.png icons/32x32/actions/vertical-orientation.png + icons/48x48/apps/glabels.png + icons/scalable/apps/glabels.svg + diff --git a/glabels/icons/22x22/actions/glabels-arrow.svg b/glabels/icons/22x22/actions/glabels-arrow.svg new file mode 100644 index 0000000..5432256 --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-arrow.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/glabels/icons/22x22/actions/glabels-barcode.svg b/glabels/icons/22x22/actions/glabels-barcode.svg new file mode 100644 index 0000000..b6bc783 --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-barcode.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + diff --git a/glabels/icons/22x22/actions/glabels-box.svg b/glabels/icons/22x22/actions/glabels-box.svg new file mode 100644 index 0000000..4f64e21 --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-box.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/glabels/icons/22x22/actions/glabels-ellipse.svg b/glabels/icons/22x22/actions/glabels-ellipse.svg new file mode 100644 index 0000000..1c83912 --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-ellipse.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/glabels/icons/22x22/actions/glabels-image.svg b/glabels/icons/22x22/actions/glabels-image.svg new file mode 100644 index 0000000..8d16202 --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-image.svg @@ -0,0 +1,12 @@ + + + + + + + + + diff --git a/glabels/icons/22x22/actions/glabels-line.svg b/glabels/icons/22x22/actions/glabels-line.svg new file mode 100644 index 0000000..090f9de --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-line.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/glabels/icons/22x22/actions/glabels-text.svg b/glabels/icons/22x22/actions/glabels-text.svg new file mode 100644 index 0000000..da58f45 --- /dev/null +++ b/glabels/icons/22x22/actions/glabels-text.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/glabels/icons/24x24/actions/glabels-arrow.png b/glabels/icons/24x24/actions/glabels-arrow.png deleted file mode 100644 index 6e0e26af77b6b1159ee30fd7801c24e11ae6c2e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 367 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjY)RhkE)4%caKYZ?lYt_f1s;*b z3=G_YAk0{w5<>&kwKlaon;Q@Zlp8=%l1PZ!6KiaBqu?)GAKlsNkFewC*~ zK+c|tUOJDMBX0jnTKV?KtxM@2I9UX17`eFvT_%WL(J0g@YwAurdF)Kq<3?s z&$d1kpXxgOcW}0v>k0p<4`trIaARN;kI3Z`T6BIxQ&@0AgZCQm7|#!~o2ChU5}hDp z#5F-Ah?QfKLmT(~&zQ7Jdvo6$IncmdqEaP% zx~ulxg6GBmcSm?JW=!AH%6{j8g!Bw~aRckLnt)HqJa4sDSsm5Aw~TR$>7H4;Ee`E{ z)bpz_XNlV1kf?|wO^a5^_*eL|o)CF%xaZz_!H~#<`~StsXDNCgzdi9$7%&_dJYD@< J);T3K0RTr_k*xp# diff --git a/glabels/icons/24x24/actions/glabels-arrow.svg b/glabels/icons/24x24/actions/glabels-arrow.svg new file mode 100644 index 0000000..09f54e9 --- /dev/null +++ b/glabels/icons/24x24/actions/glabels-arrow.svg @@ -0,0 +1,7 @@ + + + + + diff --git a/glabels/icons/24x24/actions/glabels-barcode.png b/glabels/icons/24x24/actions/glabels-barcode.png deleted file mode 100644 index 9699c8dd58d6e9ea9fec19aa69b8ba1b04133085..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 241 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjY)RhkE)4%caKYZ?lYt_f1s;*b z3=G_YAk0{w5<>&kwKlatAu`+4^CwLqadPZ!6KiaBqmY~*S%;BlGncXq|% z|Nm>PUWrZTdYUmuN9)V9-IEsgmvNX}V|eh+Tl>I`SC6hgX-F+kSe3#ZW6kze-^+EL zwk7Mjxgv~fP6Vq)Ke)vi|6zsI0%joE#~|^fCiie;ck4Bq@audBmNjI5RZEhsT(?fP f;qS9~^IxzO?UKxx5XiRy=n@7`S3j3^P6 + + + + + + + + + + + + + + + + diff --git a/glabels/icons/24x24/actions/glabels-box.png b/glabels/icons/24x24/actions/glabels-box.png deleted file mode 100644 index 9f8e06f845543db2caef697c06778bc67a073278..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 320 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjY)RhkE)4%caKYZ?lYt_f1s;*b z3=G_YAk0{w5<>&kweOGHfHqGTdtK2Year;B5V$MLsQ{kfVPMB43(#Y7!5 z+cPe2o9yB;{e?lSlG3igtvz9?tr}+gG8gM!;n+0k0Q+GBoH$Hy`oCv>cLI7O4zNFWSM&!m + + + + diff --git a/glabels/icons/24x24/actions/glabels-ellipse.png b/glabels/icons/24x24/actions/glabels-ellipse.png deleted file mode 100644 index 12f0468fc4414a1fd4289079ee22137bdc78196e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 744 zcmVP)Hk(b@?Y4;3YV8Nwr9J6VlGwU{7J%H`-Q?xxp=lb{9afe?ON2sU-S0kd zBNc)I;3?pCI!n3Ibd0*%5-LiE$jOGUD=<8MfY<%Abod?splRALa0>Whh9CgAy&e~L zI~pl3>D%&(Zw9OJ-Frn(&s%^IpcYt3M$iSccs(v&JaU*W)alEM3=9T|MAn`FO-7r= zSWs0}AC@{xxYKc-LdSw>g6gW{_TU z8A^`bZfD~sXzTBY{R*1~R}>37_tfiZmJv50AXuHAn#qZM8v~0-DS9C^R>R%8`rX)_ zi4?`-@zM45AIvV_PAf%|p-x?#1H@)UehKj0Kam!J;oN&5w%MSS0b>BcfDcFZEz{r& zYd$KECj74f6F~3ZgSHIp1rCkRM7eZk-Za7Wn^C5w=K-F{Jqbj&^8W}3ug4{V0iReN zVapv1_=MNv5;EtX01t5Ze*qQ9aTkDSYi$+-{?0#u2mGC)t+iPP*1?+qx7l0o0v;Ox zlI?C8xm%ty{onvxklz-UoX{-U=X0`KdVq0Y0~kv6MblS4P$-8oE~8dti^qV^z~c7( aYxoVw#^h6s!*nMA0000 + + + + diff --git a/glabels/icons/24x24/actions/glabels-image.png b/glabels/icons/24x24/actions/glabels-image.png deleted file mode 100644 index 093c8ad9bc827c347e1f6862bed3f93d2f7e61b1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 704 zcmV;x0zdtUP)Lo zK~zY`)s;_Z6G0Tlf3v$uv-#H~1TBIwN-5GqP!bVEA<$#N3PLLg77yydgI*F(dJsWK zMbx7?1q7=nQP68HJvE9b^&ld36-5x@KTKL<#zT|sZn8-i41xp0EN|a@-}~O1Hv|9s z5SDK_SYRclqSQ63@#Nia0|772gpo9(4VqQ$Z-8!1hXFWs&oQtlP*>bW)C;`xyK^Y6 zCNm85% zT zn{>42T41>z0ohVCzwm~ow_jNK^?SoQv;jpH+uCo)6OTvbnaWOiWjQTdx2xkU7#VqS zX_p*1;*}SkrDR}Im9k|gYx<>uEoMd3At6UD>zqD3hN>uNng9g(#3FO=_H;#a=h|oX zP5Ky)dGHP?=mCwZXP=Y1nc{r%iFr&-g3V(-d91X9aKwwpBT$sJncr5~Q2O=v2U%^_ zSgAMh>1w;kc7m34e*A0@&{c#Gu6iQ3brHa((n`>En+E-wYw%9sfBIxPT@|s`D-<0N mK^3T33ECZ29}qzesQm$P7R{m3`S0=o0000 + + + + + + + + diff --git a/glabels/icons/24x24/actions/glabels-line.png b/glabels/icons/24x24/actions/glabels-line.png deleted file mode 100644 index 7bb65234073ab65a9b32f7c225702be38467a03e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 325 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjY)RhkE)4%caKYZ?lYt_f1s;*b z3=G_YAk0{w5<>&kwKlat9vHt)o>oj{>Wo-U3d6?5KRHOxEYAky-X-(aFf zhK7bE%mTGwyc$MPxm z^45b=#WUC%Za>*@RH@$bTEeTa!)AB)7amzzD$i^${=v5F$4T?6FOoUt?BZ10we`!P z%KD~#=j0FFHgWzM_Q~d=fT`&Rv#Z*ns`6O|T<1P_t;*IEwhQ|AGyLGo`3pLmF3(*s z@t>mLhf4`<_dO~y1;V`7{c(wYXl!fka$x8DgqLLzGRhB@9<+&`f2w!uFJ|WVo_k9_ SzFG+M9fPN + + + + diff --git a/glabels/icons/24x24/actions/glabels-text.png b/glabels/icons/24x24/actions/glabels-text.png deleted file mode 100644 index b9e5511acfb75cd179e5e805e230e901647a9f93..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 285 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjY)RhkE)4%caKYZ?lYt_f1s;*b z3=G_YAk0{w5<>&kwKlaoooXz$zE#z3J}o-U3d6?5KR*~@jvK*H^zd*Ow% zRh(VTk3@G?KID7X^eD;tWx^4m-^ni)-C%AsiN8E~$)1JJXYW+q!t;1lKTos@`x?Xk zW9AVpRz8NFqB0w~h1mmjxgSTzIPEWDU(9xJlgUe&tLrQh`==f^j16YB?7En4kgkHzV$-p$`R>&vvvQ;st^)8eK_z1uveM(2TTKriF# bpUUqlA86#6)eEfxx|+e$)z4*}Q$iB}qVH~K diff --git a/glabels/icons/24x24/actions/glabels-text.svg b/glabels/icons/24x24/actions/glabels-text.svg new file mode 100644 index 0000000..5420118 --- /dev/null +++ b/glabels/icons/24x24/actions/glabels-text.svg @@ -0,0 +1,7 @@ + + + + +