From 9e11f833e8d90a5ae2fd154a401b2bcbcf76a2f2 Mon Sep 17 00:00:00 2001 From: defnax Date: Mon, 8 Mar 2010 21:07:53 +0000 Subject: [PATCH] added for Queue actions own icons git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2503 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/gui/TransfersDialog.cpp | 26 ++++++++++---------- retroshare-gui/src/gui/TransfersDialog.h | 8 +++--- retroshare-gui/src/gui/images.qrc | 4 +++ retroshare-gui/src/gui/images/go-bottom.png | Bin 0 -> 711 bytes retroshare-gui/src/gui/images/go-down.png | Bin 0 -> 623 bytes retroshare-gui/src/gui/images/go-top.png | Bin 0 -> 675 bytes retroshare-gui/src/gui/images/go-up.png | Bin 0 -> 672 bytes 7 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 retroshare-gui/src/gui/images/go-bottom.png create mode 100644 retroshare-gui/src/gui/images/go-down.png create mode 100644 retroshare-gui/src/gui/images/go-top.png create mode 100644 retroshare-gui/src/gui/images/go-up.png diff --git a/retroshare-gui/src/gui/TransfersDialog.cpp b/retroshare-gui/src/gui/TransfersDialog.cpp index f5276e823..470f952a5 100644 --- a/retroshare-gui/src/gui/TransfersDialog.cpp +++ b/retroshare-gui/src/gui/TransfersDialog.cpp @@ -305,14 +305,14 @@ void TransfersDialog::downloadListCostumPopupMenu( QPoint point ) // clearQueueAct = new QAction(QIcon(), tr("Remove all queued"), this); // connect(clearQueueAct, SIGNAL(triggered()), this, SLOT(clearQueue())); - priorityLowAct = new QAction(QIcon(IMAGE_PRIORITYLOW), tr("Down"), this); - connect(priorityLowAct, SIGNAL(triggered()), this, SLOT(priorityQueueDown())); - priorityNormalAct = new QAction(QIcon(IMAGE_PRIORITYNORMAL), tr("Up"), this); - connect(priorityNormalAct, SIGNAL(triggered()), this, SLOT(priorityQueueUp())); - priorityHighAct = new QAction(QIcon(IMAGE_PRIORITYHIGH), tr("Top"), this); - connect(priorityHighAct, SIGNAL(triggered()), this, SLOT(priorityQueueTop())); - priorityAutoAct = new QAction(QIcon(IMAGE_PRIORITYAUTO), tr("Bottom"), this); - connect(priorityAutoAct, SIGNAL(triggered()), this, SLOT(priorityQueueBottom())); + queueDownAct = new QAction(QIcon(":/images/go-down.png"), tr("Down"), this); + connect(queueDownAct, SIGNAL(triggered()), this, SLOT(priorityQueueDown())); + queueUpAct = new QAction(QIcon(":/images/go-up.png"), tr("Up"), this); + connect(queueUpAct, SIGNAL(triggered()), this, SLOT(priorityQueueUp())); + queueTopAct = new QAction(QIcon(":/images/go-top.png"), tr("Top"), this); + connect(queueTopAct, SIGNAL(triggered()), this, SLOT(priorityQueueTop())); + queueBottomAct = new QAction(QIcon(":/images/go-bottom.png"), tr("Bottom"), this); + connect(queueBottomAct, SIGNAL(triggered()), this, SLOT(priorityQueueBottom())); prioritySlowAct = new QAction(QIcon(IMAGE_PRIORITYLOW), tr("Slower"), this); connect(prioritySlowAct, SIGNAL(triggered()), this, SLOT(speedSlow())); @@ -321,12 +321,12 @@ void TransfersDialog::downloadListCostumPopupMenu( QPoint point ) priorityFastAct = new QAction(QIcon(IMAGE_PRIORITYHIGH), tr("Faster"), this); connect(priorityFastAct, SIGNAL(triggered()), this, SLOT(speedFast())); - QMenu *priorityQueueMenu = new QMenu(tr("Move in queue..."), this); + QMenu *priorityQueueMenu = new QMenu(tr("Move in Queue..."), this); priorityQueueMenu->setIcon(QIcon(IMAGE_PRIORITY)); - priorityQueueMenu->addAction(priorityLowAct); - priorityQueueMenu->addAction(priorityNormalAct); - priorityQueueMenu->addAction(priorityHighAct); - priorityQueueMenu->addAction(priorityAutoAct); + priorityQueueMenu->addAction(queueTopAct); + priorityQueueMenu->addAction(queueUpAct); + priorityQueueMenu->addAction(queueDownAct); + priorityQueueMenu->addAction(queueBottomAct); QMenu *prioritySpeedMenu = new QMenu(tr("Priority (Speed)..."), this); prioritySpeedMenu->setIcon(QIcon(IMAGE_PRIORITY)); diff --git a/retroshare-gui/src/gui/TransfersDialog.h b/retroshare-gui/src/gui/TransfersDialog.h index feebcc0a9..35bda37f1 100644 --- a/retroshare-gui/src/gui/TransfersDialog.h +++ b/retroshare-gui/src/gui/TransfersDialog.h @@ -149,10 +149,10 @@ private: QAction *prioritySlowAct; QAction *priorityMediumAct; QAction *priorityFastAct; - QAction *priorityLowAct; - QAction *priorityNormalAct; - QAction *priorityHighAct; - QAction *priorityAutoAct; + QAction *queueDownAct; + QAction *queueUpAct; + QAction *queueTopAct; + QAction *queueBottomAct; QAction *chunkRandomAct; QAction *chunkStreamingAct; QAction *detailsfileAct; diff --git a/retroshare-gui/src/gui/images.qrc b/retroshare-gui/src/gui/images.qrc index 9a0926a1a..3134ad16a 100644 --- a/retroshare-gui/src/gui/images.qrc +++ b/retroshare-gui/src/gui/images.qrc @@ -188,6 +188,10 @@ images/forward.png images/friendsfolder24.png images/kgames.png + images/go-down.png + images/go-top.png + images/go-up.png + images/go-bottom.png images/graph-area.png images/graph-line.png images/groupchat.png diff --git a/retroshare-gui/src/gui/images/go-bottom.png b/retroshare-gui/src/gui/images/go-bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..468362c37479806fd778f77d6a0af728c5c8e50c GIT binary patch literal 711 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJXMsm#F$072dJtxelbR?46l5>) z^mS#w&LhXiVW~YkWdZ{OV@!Zgh$~QvRZy8#SUtOK-T(jp*=4NQB~2JvxtTbHc+|Xk zHT>8mjMzjpW%Mjua#vZT7IDhja7ddwWUb(qx8_%MR12M@7CM_pMvq@kM>%Mwa>!ie z(0QuCGgTv&0+E2an~=IwOwDTZ$R2rP7i9}~WxE75`#96^T(j_8IkQM5mjZQoe^HKD588xWXbf%irG;O+oKz{$JDNgZQc>vyfdzRdSdOI#JahOjq4NJ z_a@cNO>Wto(zPeGZA*Ih=Is9M*%J@tbgj;ra4cuyvAmwur8Cb}&b?GM?^6A;tBotJ zcdWiQY3uXJTb~01({8%>G+_8zmIV2M;)Rism0eI!NJ2%!$jI2i)5jkO5>x6yprN&I z;Q1cmV`2KYaT9<x&A7$R{wIe~#G zP1xK#JUm&9%|Kw%lxds0Jv({}Crq96keN$kXT@(8mbNywU%x9{wV7BgOxM1Vt!-}l zGsnrMcZWk2%b8qTC85cWn{;(q6qlWdwr)RqynXj=4Tm2*YgSE^ym@nGU{+25BU|3( zIZaJ5#&T>H0{)shUQ-=DNY0q@`BSLGL>38)E2cLj0~qY}wc@WF2;gybP}hzXcXiO# j^p$pXaPg0qIK;%TzDt&If1aH#(A^B4u6{1-oD!M<=}ZRa literal 0 HcmV?d00001 diff --git a/retroshare-gui/src/gui/images/go-down.png b/retroshare-gui/src/gui/images/go-down.png new file mode 100644 index 0000000000000000000000000000000000000000..5891219e49603b6409d5479247ef1fa8a8cf71c2 GIT binary patch literal 623 zcmV-#0+9WQP)9KeakxIdTpje7cQjq<2c!^ z`Zm_SltDZPAt&#frRYyLt2KB&-G(%{q(iVQLTLEmE7;x%Q2E-zMx_cKcr*5=`6qt_ zJ8$Qx>E38HYSm`*8wpg%DHAF6Ak@qu=tdr9ZV&@0hK{|pLTM+EAS1zES!j~^>gMV) zSJgD~g*+^)fTA^sp+W%}T|?#b>p<{m+*@08kigJI_+;7}FTlfl=m%yDpG=!Ydu;Nd zxN@f?(x%l?jNxPW8<>{Ae&FyaVOl4ItmVe>FR)CpL^X>&_z8O)@9BsigdhL_002ov JPDHLkV1jC@76SkP literal 0 HcmV?d00001 diff --git a/retroshare-gui/src/gui/images/go-top.png b/retroshare-gui/src/gui/images/go-top.png new file mode 100644 index 0000000000000000000000000000000000000000..999539296638c7ed6953ec292a6d86a2ebbb0e5f GIT binary patch literal 675 zcmV;U0$lxxP){Q(+j#zwdi~JI}V`rbo?b<{XV$qLq$BMU1E@@TQzsAru%yUDriF2>S6C zXkJwkT|{YJgcs#i2z6681=+laq8d8gac=GW@SHp&B*KCF!1v{W_vQ0E&r48($f=3J z6TRVao~3v;`(B40YwRdQf}PR)9PAwQLV068-q(Zg4EBiPTp4F@G6#4-%$z% zC9qj3Ndlh!l=dSx|K`=GseSv5ayftJW&7D%Gi`7wcZG(-*Zf|;IHd$Cr^BZo_{tKf zhb|%(QO9C?>YLi4!JW}&|Gn14l3T?4Tt;t z_CF8SD1u%v;Ks2n@EjS)RUd!4{BbH>aspp;kc+f7J_@X8wl4Fdeki(GC&W+gq+s*>a?>qx0ZIpt_c_oCuZ^ zz_0>9SvU@XX*sY=6FfEJ1ttDAlblU%P9TPQl%`$HlS;6TaXUIx0A(aF8zMoF!1EPg zS#d+ef@28rRgn8l$L^||f^cX1P03#$N^3e+^EUE2fnhSRZ2`K;LCXQ@RU3<|7Je=N z2Bqt2Y+(0g0ASrilI59&cXLa&X#$Q#4)h+q+SPLsUauD}giw5XKZ_4@uWxX&3Q1`| zO={&u@ecpdow!77Ue**jAWNc9d{WR2m?F)NT)E&It|AWp;Sb3o!0&!}+V%hd002ov JPDHLkV1iMDF+czS literal 0 HcmV?d00001 diff --git a/retroshare-gui/src/gui/images/go-up.png b/retroshare-gui/src/gui/images/go-up.png new file mode 100644 index 0000000000000000000000000000000000000000..b3d9cef97e16ca46909765c0a67091c97908660b GIT binary patch literal 672 zcmV;R0$=@!P)0b000McNliru*9;vE5edJ)+6{olpPkPT$sbOg93kgUk5S3}N14Mj zJ9`2QPnU^Q!($^(CTVNfnvCJd_^zB_{%mUB`TqliV3)SpD2)!M;I1`LS5+JxL^j zO~OgoFbrKmJg8}SpP#!u{Y2f#ZY)Tn8ycjY)X_29v1zB_c}-ACQP&!9y++%+cK|hQ zcVTYU5iEd=eDJ6R!6Ub4fC}%BEHs50WXy+95J(Yr%Kip{H}1g9jtZOr0000