From 00359f1c9d94cffc65ec283a8dabd11813d87312 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 18 Aug 2015 01:31:19 -0400 Subject: [PATCH] Fleshed out object editor UI. --- glabels/icons.qrc | 12 +- .../actions/glabels-align-text-center.png | Bin 0 -> 384 bytes .../24x24/actions/glabels-align-text-left.png | Bin 0 -> 398 bytes .../actions/glabels-align-text-right.png | Bin 0 -> 375 bytes .../actions/glabels-format-text-bold.png | Bin 0 -> 415 bytes .../actions/glabels-format-text-italic.png | Bin 0 -> 393 bytes .../actions/glabels-format-text-underline.png | Bin 0 -> 379 bytes ...tom.png => glabels-valign-text-bottom.png} | Bin ...dle.png => glabels-valign-text-middle.png} | Bin ...xt-top.png => glabels-valign-text-top.png} | Bin glabels/ui/ObjectEditor.ui | 625 +++++++++++------- 11 files changed, 386 insertions(+), 251 deletions(-) create mode 100644 glabels/icons/24x24/actions/glabels-align-text-center.png create mode 100644 glabels/icons/24x24/actions/glabels-align-text-left.png create mode 100644 glabels/icons/24x24/actions/glabels-align-text-right.png create mode 100644 glabels/icons/24x24/actions/glabels-format-text-bold.png create mode 100644 glabels/icons/24x24/actions/glabels-format-text-italic.png create mode 100644 glabels/icons/24x24/actions/glabels-format-text-underline.png rename glabels/icons/24x24/actions/{glabels-align-text-bottom.png => glabels-valign-text-bottom.png} (100%) rename glabels/icons/24x24/actions/{glabels-align-text-middle.png => glabels-valign-text-middle.png} (100%) rename glabels/icons/24x24/actions/{glabels-align-text-top.png => glabels-valign-text-top.png} (100%) diff --git a/glabels/icons.qrc b/glabels/icons.qrc index bf9b5ed..8e4b4be 100644 --- a/glabels/icons.qrc +++ b/glabels/icons.qrc @@ -28,20 +28,26 @@ icons/16x16/actions/glabels-rotate-right.png icons/16x16/actions/glabels-text.png icons/16x16/apps/glabels.png - icons/24x24/actions/glabels-align-text-bottom.png - icons/24x24/actions/glabels-align-text-middle.png - icons/24x24/actions/glabels-align-text-top.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-bucket-fill.png icons/24x24/actions/glabels-ellipse.png + 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-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-valign-text-bottom.png + icons/24x24/actions/glabels-valign-text-middle.png + icons/24x24/actions/glabels-valign-text-top.png icons/24x24/actions/fallback-edit-copy.png icons/24x24/actions/fallback-edit-cut.png icons/24x24/actions/fallback-edit-paste.png diff --git a/glabels/icons/24x24/actions/glabels-align-text-center.png b/glabels/icons/24x24/actions/glabels-align-text-center.png new file mode 100644 index 0000000000000000000000000000000000000000..21258160bdfef3eac3f5b43d7cadb2b27e2ba273 GIT binary patch literal 384 zcmV-`0e}99P){? z3oq8?=7VqXue}7|Uo)qG1t4^y&{0r^ov@%xmI3PXm<5`BCc)bF-+riAc^8}bgKLOnP^!*iYpP5Vv zPcI`39}M&dJ#_RNwAu~St|};1G@NT$q_YW}CL%bFD7*tn-p8JQ2V2{l-}*53?l6L| zLhju`NDb1T-J9Hk=?&Zu?|5{hgWKLUn(aFGU#=EWDCTgMOCg?$A{q z?tcY{ybI^<-5)z8#K`^*SqAVf`1aJBRlYwL{1!39GB+F(Qg0000aiqKt=+rt*_#%`;O0U2X7xQXqyDhRvonm z9a^OXrBpz!aEVkV0XY#xC>p@2&yD`OkpOl(M=X|Qj2kO!CG+9n@W;XA5u6V4s{^ys z#%nLnCc)!V9Y&)9y;g>*6;V)f$Xun6NXa;t!w7_Z)WMNk?2Cqj-^0%CHa535sFwi% z$JwZZX@p@`$P64vu8AB7E}jhCg9f=rvt^*(tfFe%L93{^DPJS6Wa<2q={REX2!atm zynYW(JQ76735T#hun$vrz%UG%?H-8K!DRh2)WNN;(%va)O22#P-_PdLw0|y=F+}AM s&VpV#@38?k8#}TCw%0$4i}rs2-|V~vIGA+kg8%>k07*qoM6N<$g8UD(-~a#s literal 0 HcmV?d00001 diff --git a/glabels/icons/24x24/actions/glabels-align-text-right.png b/glabels/icons/24x24/actions/glabels-align-text-right.png new file mode 100644 index 0000000000000000000000000000000000000000..a740a6a53747db96333d44155880bad578ce1956 GIT binary patch literal 375 zcmV--0f_#IP)90u^NA|VWiw^H3hgoydl(p>6nu6#+|YHE|k%Bdlq)=NA?hmXMH;m6er~lT%VsQd3jY(9qD-)YQ__($Uc| zGBUEWv$MCicXf3Q4GoQmh=_@aiI0y@N=iykPcJMiEGsLkuCA`HukYySm@r|&j2Sal ztXQ#eFJ$m%$^XJb$e*F0T`!~>y zE*@Wtfv#jO3GxeOICv=bZ=)}eyTH@MF{I+w-t+E4O#uR~fln6A5ODQb(J`a=+P(j$ zrd)ay{9uOh8|#XzQF$evS}PR1Pj`r%-6efT$W=_^T4YGX)-xUxJ^Z;|_Fk9B+2NH| z!!9SIvM=83b>xHJ{{(Jrn127SrJ^G%=TGS`?lYxKmM2Q|Es$onJj}4|(?)jxR_h%G z=UHNZB{T>&1||Io@$EmJ&my}!sm@g9`3gCoi(6y%Fy5Rey-qIu|3RQz89ZJ6T-G@y GGywoJy{Do8 literal 0 HcmV?d00001 diff --git a/glabels/icons/24x24/actions/glabels-format-text-italic.png b/glabels/icons/24x24/actions/glabels-format-text-italic.png new file mode 100644 index 0000000000000000000000000000000000000000..027220f459a3ed68421cffb3b736ce428015033b GIT binary patch literal 393 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM3?#3wJbMaAEeh}naRt)Q&ZE_)YQ__GB7Z(wzjsjv-9@$4hjm2 zi;GK6PEJcp%gV~i$;l}xDXFZitgEZ5udi=zZk{x0(u^51X3m_sV8MdLix;n2wQ9$X z9lLk$K62#9@#DuYU%q_v=FNNe?md0_^x3m#@87@w_U+rBKY#xH`v-KIqSzj7pyQZJ zg8YIR4jzjA+vp4APWE(h45_%a_xyFfCI^Am#5>Kbfg2USvEA4`?|Z%J;@PRwTC(?@ z{%Jh3Cs@uka3iy`f42Mdn1>8*kG-sWn9i~v)7ka$<3)WQesRUMA74*Ut2a(?ow;1M zBUnu0@TD5<%^%h*wz~Va{+fddH|K^0+ZdBLy&w4Ga@0fhdEP)~2EG;c9Gcz+cH#bB? zL`g|WS65eASy^9SUu9)wd3kw%e}996gNTTTlarH|mzSEFnx3AXr>Cd8ySu-?zrw=8 z!^6YJ$H&gj&ezx1+uPgS-QC~c-{$7#?Ck9K_xJnz`~Cg>|Ns9W|7?c<000AYQchC< z!NOhrflUAa0F+5YK~#9!ozUkF!XOxh;mUDa>z;KL2d?V5|En{Rd|C*NiO)~okVA<6 zr1(*B0xy}RjhncD=pCha0j)C&;gDL(1eh^2es7}7;Im@H#T(DvWYB-B+aTv7d=&yW zC<#MU_m98^6ST=t7z6Xn>Nw$43vVc{8lj*_-nOY&%P*?@>d9@PhDY;9FjJ4AZ2MGH Z?gf_7AiT3%4zK_K002ovPDHLkV1mPtsgwW! literal 0 HcmV?d00001 diff --git a/glabels/icons/24x24/actions/glabels-align-text-bottom.png b/glabels/icons/24x24/actions/glabels-valign-text-bottom.png similarity index 100% rename from glabels/icons/24x24/actions/glabels-align-text-bottom.png rename to glabels/icons/24x24/actions/glabels-valign-text-bottom.png diff --git a/glabels/icons/24x24/actions/glabels-align-text-middle.png b/glabels/icons/24x24/actions/glabels-valign-text-middle.png similarity index 100% rename from glabels/icons/24x24/actions/glabels-align-text-middle.png rename to glabels/icons/24x24/actions/glabels-valign-text-middle.png diff --git a/glabels/icons/24x24/actions/glabels-align-text-top.png b/glabels/icons/24x24/actions/glabels-valign-text-top.png similarity index 100% rename from glabels/icons/24x24/actions/glabels-align-text-top.png rename to glabels/icons/24x24/actions/glabels-valign-text-top.png diff --git a/glabels/ui/ObjectEditor.ui b/glabels/ui/ObjectEditor.ui index f78a8cd..2f68777 100644 --- a/glabels/ui/ObjectEditor.ui +++ b/glabels/ui/ObjectEditor.ui @@ -70,13 +70,178 @@ - 0 + 5 Text + + + + Layout + + + + + + + + Alignment: + + + + + + + + + + + + + :/icons/24x24/actions/glabels-align-text-left.png:/icons/24x24/actions/glabels-align-text-left.png + + + true + + + false + + + + + + + + + + + :/icons/24x24/actions/glabels-align-text-center.png:/icons/24x24/actions/glabels-align-text-center.png + + + true + + + + + + + + + + + :/icons/24x24/actions/glabels-align-text-right.png:/icons/24x24/actions/glabels-align-text-right.png + + + true + + + + + + + + + + + + + + + + + + + + + + :/icons/24x24/actions/glabels-valign-text-top.png:/icons/24x24/actions/glabels-valign-text-top.png + + + true + + + false + + + + + + + + + + + :/icons/24x24/actions/glabels-valign-text-middle.png:/icons/24x24/actions/glabels-valign-text-middle.png + + + true + + + + + + + + + + + :/icons/24x24/actions/glabels-valign-text-bottom.png:/icons/24x24/actions/glabels-valign-text-bottom.png + + + true + + + + + + + + + Line spacing: + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + @@ -88,6 +253,9 @@ + + QFormLayout::AllNonFixedFieldsGrow + @@ -95,6 +263,9 @@ + + + @@ -102,9 +273,6 @@ - - - @@ -115,13 +283,13 @@ - + - :/icons/24x24/actions/glabels-text.png:/icons/24x24/actions/glabels-text.png + :/icons/24x24/actions/glabels-format-text-bold.png:/icons/24x24/actions/glabels-format-text-bold.png true @@ -132,13 +300,13 @@ - + - :/icons/24x24/actions/glabels-text.png:/icons/24x24/actions/glabels-text.png + :/icons/24x24/actions/glabels-format-text-italic.png:/icons/24x24/actions/glabels-format-text-italic.png true @@ -146,19 +314,32 @@ - + - :/icons/24x24/actions/glabels-text.png:/icons/24x24/actions/glabels-text.png + :/icons/24x24/actions/glabels-format-text-underline.png:/icons/24x24/actions/glabels-format-text-underline.png true + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -168,15 +349,49 @@ - - - - - - + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + - - + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + @@ -196,153 +411,18 @@ - - - - Layout + + + + Qt::Vertical - - - - - - - Alignment: - - - - - - - - - - - - - :/icons/24x24/actions/glabels-text.png:/icons/24x24/actions/glabels-text.png - - - true - - - false - - - - - - - - - - - :/icons/24x24/actions/glabels-text.png:/icons/24x24/actions/glabels-text.png - - - true - - - - - - - - - - - :/icons/24x24/actions/glabels-text.png:/icons/24x24/actions/glabels-text.png - - - true - - - - - - - - - - - - - - - - - - - - - - :/icons/24x24/actions/glabels-align-text-bottom.png:/icons/24x24/actions/glabels-align-text-bottom.png - - - true - - - false - - - - - - - - - - - :/icons/24x24/actions/glabels-align-text-middle.png:/icons/24x24/actions/glabels-align-text-middle.png - - - true - - - - - - - - - - - :/icons/24x24/actions/glabels-align-text-top.png:/icons/24x24/actions/glabels-align-text-top.png - - - true - - - - - - - - - Line spacing: - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - + + + 20 + 150 + + + @@ -371,7 +451,7 @@ - + @@ -397,19 +477,6 @@ - - - - Qt::Vertical - - - - 20 - 156 - - - - @@ -417,6 +484,19 @@ Barcode + + + + Qt::Vertical + + + + 20 + 356 + + + + @@ -433,17 +513,17 @@ - + - + Show text - + Checksum @@ -457,11 +537,28 @@ - - - - - + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + @@ -492,7 +589,7 @@ - + 0 @@ -526,7 +623,7 @@ - + 0 @@ -544,7 +641,7 @@ - + 0 @@ -582,7 +679,7 @@ - + @@ -613,9 +710,9 @@ - + - TextLabel + 0000000000 @@ -629,7 +726,7 @@ - + @@ -655,19 +752,6 @@ - - - - Qt::Vertical - - - - 20 - 356 - - - - @@ -697,7 +781,7 @@ - + File: @@ -711,14 +795,14 @@ - + Key: - + @@ -769,9 +853,6 @@ - - - @@ -779,12 +860,43 @@ + + + + + + + + + points + + + + + - - - - - + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + @@ -820,7 +932,7 @@ - + @@ -854,7 +966,7 @@ 20 - 582 + 578 @@ -884,10 +996,10 @@ - + - + inches @@ -905,10 +1017,10 @@ - + - + inches @@ -935,7 +1047,7 @@ - + Size @@ -952,10 +1064,10 @@ - + - + inches @@ -973,10 +1085,10 @@ - + - + inches @@ -987,14 +1099,14 @@ - + Lock aspect ratio - + Reset image size @@ -1021,7 +1133,7 @@ - + Size @@ -1038,10 +1150,10 @@ - + - + inches @@ -1059,7 +1171,7 @@ - + @@ -1109,7 +1221,7 @@ - + Shadow @@ -1132,10 +1244,10 @@ - + - + inches @@ -1153,10 +1265,10 @@ - + - + inches @@ -1171,13 +1283,6 @@ - - - - - - - @@ -1188,7 +1293,7 @@ - + @@ -1199,6 +1304,30 @@ + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + @@ -1225,7 +1354,7 @@ 20 - 585 + 583