From 4952f6b53162257c230de0b8a7e0a45aae5b9660 Mon Sep 17 00:00:00 2001 From: xavierqet Date: Thu, 20 Dec 2007 19:18:31 +0000 Subject: [PATCH] Ajout d'icones dans le panel d'elements et dans l'editeur d'element git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@241 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- editor/qetelementeditor.cpp | 4 ++-- elementspanel.cpp | 8 ++++++++ ico/folder.png | Bin 0 -> 646 bytes ico/folder_home.png | Bin 0 -> 713 bytes ico/hotspot.png | Bin 0 -> 179 bytes ico/names.png | Bin 0 -> 1052 bytes ico/remove.png | Bin 0 -> 1297 bytes qelectrotech.qrc | 4 ++++ 8 files changed, 14 insertions(+), 2 deletions(-) create mode 100755 ico/folder.png create mode 100755 ico/folder_home.png create mode 100644 ico/hotspot.png create mode 100755 ico/names.png create mode 100644 ico/remove.png diff --git a/editor/qetelementeditor.cpp b/editor/qetelementeditor.cpp index 8411adf72..88b31bd8e 100644 --- a/editor/qetelementeditor.cpp +++ b/editor/qetelementeditor.cpp @@ -69,8 +69,8 @@ void QETElementEditor::setupActions() { deselectall = new QAction( tr("D\351s\351lectionner tout"), this); inv_select = new QAction( tr("Inverser la s\351lection"), this); edit_delete = new QAction(QIcon(":/ico/delete.png"), tr("&Supprimer"), this); - edit_size_hs = new QAction( tr("\311diter la taille et le point de saisie"), this); - edit_names = new QAction( tr("\311diter les noms"), this); + edit_size_hs = new QAction(QIcon(":/ico/hotspot.png"), tr("\311diter la taille et le point de saisie"), this); + edit_names = new QAction(QIcon(":/ico/names.png"), tr("\311diter les noms"), this); edit_ori = new QAction(QIcon(":/ico/orientations.png"), tr("\311diter les orientations"), this); edit_raise = new QAction(QIcon(":/ico/raise.png"), tr("Rapprocher"), this); edit_lower = new QAction(QIcon(":/ico/lower.png"), tr("\311loigner"), this); diff --git a/elementspanel.cpp b/elementspanel.cpp index 610aefc0a..b655f2674 100644 --- a/elementspanel.cpp +++ b/elementspanel.cpp @@ -150,6 +150,7 @@ void ElementsPanel::addDir(QTreeWidgetItem *qtwi_parent, QString adr_dossier, QS // creation du QTreeWidgetItem representant le dossier QTreeWidgetItem *qtwi_dossier = new QTreeWidgetItem(qtwi_parent, QStringList(nom_categorie)); + qtwi_dossier -> setIcon(0, QIcon(":/ico/folder.png")); QLinearGradient t(0, 0, 200, 0); t.setColorAt(0, QColor("#e8e8e8")); t.setColorAt(1, QColor("#ffffff")); @@ -208,6 +209,13 @@ void ElementsPanel::reload() { // chargement des elements de la collection utilisateur addDir(invisibleRootItem(), QETApp::customElementsDir(), tr("Collection utilisateur")); + // icones + QList items = findItems("*", Qt::MatchWildcard); + if (items.count() == 2) { + items[0] -> setIcon(0, QIcon(":/ico/qet-16.png")); + items[1] -> setIcon(0, QIcon(":/ico/folder_home.png")); + } + // reselectionne le dernier element selectionne if (!last_selected_item.isNull()) { QTreeWidgetItem *qtwi = findFile(last_selected_item); diff --git a/ico/folder.png b/ico/folder.png new file mode 100755 index 0000000000000000000000000000000000000000..7b6f0a7383cd63e5a1c377f62d3794e413d8151f GIT binary patch literal 646 zcmV;10(t$3P)z@;j(q!3lK=n!AY({UO#lFTB>(_`g8%^e{{R4h=>PzA zFaQARU;qF*m;eA5Z<1fdMgRZ-{7FPXRCwBA{Qv(y10?_;fS4F41ONfVsHSc07nhK+ z5u4<+$?a}WA70&!&j5e`Vr=PN{J**+21DZK@Ba)v6PIGu)Z1C1`|kCVD7Y_0tm$g|A88g-2Kn+?FR$H_n(Yl{O!ko29Vv%42(bs zbiqF$8)!Jg@BiQ=01!YZ2K@ZR0MQJ@KYlSX{QAuR)(kQktR18ggn@Dl-ywPc0tm%` z-+vjw2K@NR#P9>C8RQk1=Kp^{3V>X+gbNTrCdK<3~=G1Xm9Ap6xFg00Icb03jX_W+ae!|1$jl%fzUu!pz^Zoq+)$fKUwh0d(g3 zPr$GM2KlewK>X_uFgE@|+zmv3|NV#Z|1rG%%m&s25I~G#5=xd*fxC{8laVgYcQ677 gAVx~FGeCd=0M@Cz=A@Alo=i=7)s%e<{k0*6-B)dV* z>bYTh8-0F{>Q;J6!>vO+LS$&3LLcTM^kwLxf6YC?eb7}?K^9jYhqH1DkYMNsgu@vYE22WQ%mvv4FO#nn=L{I<# literal 0 HcmV?d00001 diff --git a/ico/names.png b/ico/names.png new file mode 100755 index 0000000000000000000000000000000000000000..1743794dc8081658b1f060a3937bc9ece197a0d5 GIT binary patch literal 1052 zcmV+%1mpXOP)z@;j(q!3lK=n!AY({UO#lFTB>(_`g8%^e{{R4h=>PzA zFaQARU;qF*m;eA5Z<1fdMgRZJfehTnhwF?|31o8jA!zYO1h z{bBe4)bQi?KZbW-elghVi82K8Yyq1G5I}H)IhcV2(A}TD{AGCm4P^R1hMzzU!aP6& ze*9$k_wOHr0M~zppFqP{7$KOA=^q0J$YADw3=Dt&GVrqeg}WLcfZzt(tAUIH0cJ1; zg$*MVfB((E@b29Qh6rOW1_42ShQGkz`v-J6kYe};VgoJx_x~RQ9}fq^oS6{w00M{w zIc%74gxUI4iy2s$m>9l%{l>t~&dv}M8^^%F!VLBm!+%Dw1^@puF)%SA^Z*196QPLs z{P{D(`STYU%q^`MOwG(04jeqh@a@|-upH2#z&QB_#Qzz7{r-cZ4R1qe;+J%@!~}=4N6fk@b~Xu6ny{z#6rm6{rmSbFfuYSY}l}YfrEpCK~z+f zVdu`B43?IbV1q&U&!0aimVf|20O2+G>({RgXV0ExU}Iwg8}#GH4~EN^FEd=bc8%e~ zhYt*Ve0&VQe*FR)3bGs-00a=;pg45s5W}row;1l;z02V2?9AZi=EiXE-aRlrc<>+t z6EH$SDFSQ|6RJ@F0fg7!_3PJz4d&+NW-v4~WH2)`0|y5vtXHpI4e>Gy3)oOlJRk#r z0K#c7$lF`CYyo>ySy>sJIzD~+#Gt0826pB4?b{h%zkUrj7(FNe0tl>e`t<4lK>(=X zKMZW!w(UP8FXF~amMj6Q1%~tg-@ku@*-*0>00Icb#h@euOEy3S1PhyG%a%d%Dliz( z!x$idP;(wo5`;l%ck|}WU@;F54~CSK6nLfpg*V8+wQJWh0DZ-9;=~CC3kwTyl0!Be zAb>Co1_4;afIv}E5reC%D~fC6J literal 0 HcmV?d00001 diff --git a/ico/remove.png b/ico/remove.png new file mode 100644 index 0000000000000000000000000000000000000000..9c4837d26d8f5577478033faef6a702d700aa2bb GIT binary patch literal 1297 zcmV+s1@8KZP)>gR#(feiVAYe%h6|Nc^VEg6%I4l)s=~ATI5MQ-uUV8aQHvLp9KP;{L<2QYj^F+ zD&Dwp+1H3nhRF5n+`V>fb|fDEDAe73Vp;I{K;U*sWo2;np+g9R0V$I~S_Z5GLY5(& z=H~I^JkqqbPVibtl75@k)4fa%^FM|52<*Z^wiXXN+y$-N=nEN1W23B ztUG*|6`B@&ClClN0H5)CeR?d`ymHGHWT%rA8#Z9JS}Cfn#adoYG9D*2IZ0}Al7y<_ zs;#BCx*D6yMMW@3IyV; zr?Pe}S}H}3(@Akn&7!==!eRcLm_U*wvL_~#I!SUFb}GtVX>{}rkxpZCyBQ0IaaL84 z<8Ul!E+{J_&*NDH{k^l3UoTxkbafGrM9@*IKQK;AyaF(nPLln{^YLS5Iy(`nN;VMldUeD0qN4X1A1?%$ot`G6X&6+M-i{6m z>*}x<6f6mS*w)4`r%zK9iIC{&Au~0F3`jt%s3>F9nKyGlVrU3$dKw`~%#4mwQeC|y zc(|tr%fJA0gM*k<6#&CCmITO}uJ`@BY1-i+c=9AQn>Q~T!)r}VaNqz@lL-r80kQ!z z@Ko3P3>&OgOO~qcGUz%0$(1YF-qOOWTemJB?lV;fgFKQX5_j(4&@?2onMp~a!(#c+ zpiEB>x$^Rw^Xzu{DbRS~0(INAErN7hxq<-l-0lVEH4P2?JU))Iy`7wr5+2BM=E~^k z+ww&rqH}I{#Avl*@cCG^1hoC~Wd@EM;oCiX7=HM0ksmyGkTFHUB+LBac1Om9h{^y@ z;_=2YA++++Qd&cy#n7Wi@edF4dT%eSyLU6v-~Ynbb)6s1o@M>&)!dw$)9%OPjQ|KC z5JK>t-yizK?H1qc-7CI2bxLUIwD`WIMSM|QEIL4RgBSoY3gUcit?2LS63IkDTxe<% zk^TF{Pr13`Ex$kXoVQ?Yo(KePm&Rg2Uwu8}nGD8TwwO&s&>|7JYLd5GvHP=2cd!+2QeER8_LlX-uk$MV7JHY-HJN7%dhukqBSU z%xE1p+u6@ww&ico/exit.png ico/export.png ico/fileclose.png + ico/folder.png + ico/folder_home.png ico/forbidden.png ico/ground.png + ico/hotspot.png ico/import.png ico/info.png ico/line.png ico/lower.png ico/masquer.png ico/move.png + ico/names.png ico/neutral.png ico/new.png ico/north.png