From 27f18d0b77b04d38df97dcf58ddcaab8fe053926 Mon Sep 17 00:00:00 2001 From: Aleksei Kanash Date: Wed, 18 Jul 2012 18:14:12 +0300 Subject: [PATCH] SANKORE-742 - new icons for group/ungroup action, play tool and z-layer buttons used. Fixed a bug - grouped items cannot be dragged by itself now. --- resources/forms/mainWindow.ui | 3 ++- resources/images/cursors/play.png | Bin 0 -> 3202 bytes resources/images/stylusPalette/handPlay.png | Bin 444 -> 3006 bytes resources/images/stylusPalette/handPlayOn.png | Bin 603 -> 3356 bytes resources/images/toolbar/group.png | Bin 0 -> 2000 bytes resources/images/toolbar/ungroup.png | Bin 0 -> 2268 bytes resources/images/z_layer_down.svg | 17 +++++++++++++++++ resources/images/z_layer_up.svg | 17 +++++++++++++++++ resources/sankore.qrc | 5 +++++ src/board/UBBoardView.cpp | 12 ++++++++++-- src/domain/UBGraphicsItemDelegate.cpp | 4 ++-- src/gui/UBResources.cpp | 1 + src/gui/UBResources.h | 1 + 13 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 resources/images/cursors/play.png create mode 100644 resources/images/toolbar/group.png create mode 100644 resources/images/toolbar/ungroup.png create mode 100644 resources/images/z_layer_down.svg create mode 100644 resources/images/z_layer_up.svg diff --git a/resources/forms/mainWindow.ui b/resources/forms/mainWindow.ui index 0582f8da..0ce11f87 100644 --- a/resources/forms/mainWindow.ui +++ b/resources/forms/mainWindow.ui @@ -1637,7 +1637,8 @@ - :/images/toolbar/library.png:/images/toolbar/library.png + :/images/toolbar/group.png + :/images/toolbar/ungroup.png:/images/toolbar/group.png Group Items diff --git a/resources/images/cursors/play.png b/resources/images/cursors/play.png new file mode 100644 index 0000000000000000000000000000000000000000..25030dd13fcd5471b951d04e5904ac55256a8d07 GIT binary patch literal 3202 zcmV-|41M#7P)KLZ*U+fZBx_w4|j3nIBZi&O`)WlBYKu%944AyL41 z2m%zSKo2e=ajx7qDk=j1QSa}70DzlzBDp*Z|D7}>DY;^Rhysu-$rWb<#9@FS#d3ub zAe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c!Tg_-}-pZ*TP8Rue%%W{?g001CkNK#Dz z0B$D$0CTSZ0Q-9Y0D(vV0Br660Ou0`04{L=02#28_k%M400D|gL_t(|+U%A=OXE-! zg};+zQib4%V@2B4P;lXDU_k%0Kf)g{3~pvty41ytV22r$mL$i85leY#J56jwdLSf( z-1okF@8RajHq(;y3+UPwudFDrd2YLF8%b9{x>A5R?Zp$%2P+4dQU=891YqSJm{!v1 z4<&sAKCA^GA6;YntE6$#>08p}+FDS-3?y07Z5#fGszvsI<3$3>vIM~PCrLTbZ3>Vj zo&K4m@4)A}5974=6cD`>t(p}-oBCt;w3ZG0jnke(DvBcb9vIoqY_rT2J!ewgv)WQc zwRTCHcp(ZIE!6YZoCAB3?&}OUBlAgZFAZS31b#^RpR!Nt9=L1N0^29R?`MdzEXnhH zZgBPeKVaP01GWz*Gf$FaZt&pfw6J~L)+Ee;^H3{l8^663S1s_e0Gd7#NgCSzxM2Bn z+dIHRtN(&UsxUY@#rA%a&4U28cY#0i0*j((Wey}W&H=Ll#y6v;*#|vP=}Ta|UI6W+ oy#T=5Ig)JvHUJxdcMtG50E~#^ElWsLl>h($07*qoM6N<$g2G=l2><{9 literal 0 HcmV?d00001 diff --git a/resources/images/stylusPalette/handPlay.png b/resources/images/stylusPalette/handPlay.png index 999f7703d66dae1639681e63fc28e21af797d040..186c81da56a5fa276b3cc02ee1fd4f473d8fa84e 100644 GIT binary patch literal 3006 zcmbVOc{o&iA0H}dk%XaA#u$>Aeav!a#x{m2BbN~_mBGQJSu&#;!w4Z|E3zcA6t_}R zu1b*>u0#=KOQe$P+GQz{cXaE%?;rQMf4t{;&iVa*-}Cu=_wRYmaYqMRmDQV8gFqk^ zh8@jGz8Wvx%1ZKQ?W1}R`La=D<0f+E`-#NtAOK|P%l8H#3@+Ora01xAA&2S#G6=LR zfWvYVxiRfYK71~my@Y{FxB@vF1R|SD1ZaaCj0D1^IqK<<^3H z{YXwU`gdFM69pO|5(!8Mgjg(wi!pG1kUs)NBoYxwG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H=z9x;CS(TDk1t9%^e9WRTu zN85XEJj{D(an7@b;oj5K0!!BFFThYxEpd$~Nl7e8wMs5Z1yT$~28M>Z24=cO1|f#V uRwf2k21eQjMpgy}o!0HnC>nC}Q!>*kaclUIX8#|kfx*+&&t;ucLK6TUUan#Q diff --git a/resources/images/stylusPalette/handPlayOn.png b/resources/images/stylusPalette/handPlayOn.png index 9191cffa6fd56a93b1671b4b0522e0cec721baf2..5b86d97e35044c56a2b87a907909f9d54e4e7189 100644 GIT binary patch literal 3356 zcmbVPdpwi-AD`QlP%62zrcj4%&urLgZrg05X@*>r*@n4nY;#vaDMTcqSQoj*If^bS zQSO&6B+{Lek5B)8vm>im9xoY(o|_q<-u^ZkB5-_QH=d4FzyJjpbBl7gJN90&wb zppXf4@w#*MT>}<>n;Y9b#EY7c=qhyN`3fT#d^X66#q(i9D8URrHl592MTNGrcY{Du z{v0P)p(}L{mdOi-F;;b8k-;HiGzhfYA~J-*3}g!-K5Rb@7YF@(rydI7uy9ZpG!;P& z!L$82)R!IXo_8)gr@(7be6(#Z3PSAvlCe{o62C@FP*;l))nzA#ebOfCmS!#`RrW zAf&VZOXDB41x`^RY&e}Q;Dzy-;(GY%{sfD2_wSBY6~%0@d-)u3Q5Zo49y2VM%@tAz zIH>pr#^SKBXcQi>HZ`*XP)LM{8315VXj44FgkTJqSz|CJn4dQO32SPNLIMON0&j)~ z0DuTsBN1jqV;j5;fC3OGjLAp>zZ|jOzp#MKzhbd?KAR!r@tt_Qpr0K; z^XCb90)Jiz1n-E30T3#K$>FX_Rtxl3yaYC%6V7JY@Oi2&zw!z$ZkK(2Q>Zz0C?hu(za|5`CfGnBNPV-jQa3idzI+I8IolrpqLezOE9jLG&gbnY-9j|+C4 z+0^FQP%JT*xqP_6oiB4+ZuV=Z-Og*5baC0okdVisgX@wBu}{7EpqS&+RLPgO%DkhO zW^_zk4XG|4nHsHSgaW;%T7tkuhw^^;3`GNsk-&m@J5@4hXCNYT`=6AhV3}?D^TT^3 zK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 diff --git a/resources/images/toolbar/group.png b/resources/images/toolbar/group.png new file mode 100644 index 0000000000000000000000000000000000000000..95dbf738554383886841f8e912e74f0d10019a3e GIT binary patch literal 2000 zcmaJ?dsGu=7N7F6U=TzlAPa=>r~*l50wIqQ9(nMn4MjpVSVTiIzzE5NWH13y8?;&k zv384=0xGZqcF!6u(v`=`V=-O8*9t2b&MK|cN(BT35o%#4R_y+IOeV`3DPzmY;bEju9S0Xsz?hVzQ)DSM937YZN|%G% zW;cyYdIiBUx#ZuHl8E9-d{hmS7*voV14AHENH7%&2HC;vKoT8s$g0ItU+_sGQ4qV-sVs$4qpvRF;tz1qFGC~7@vV+s3rqd zk@#W;6(WhGGDKlPYC!tbj|#HK+(8=kVD)2x72V{NP{+f`kw|5)uj+ zj35>$q%#FV!4g-1%5oI25?kWRf9JB7<(h{)kJ)@PxcK4C=)+2U-qrYEKg+LS0)Q1SRuGw}Gqr9R z`amXhS*+BU#MA^wlcFimL~$FOvB-%`NxXB?*ZAU5QP@tO&mB*_pFgu>$^l$>D+*GI zTKyjPFk+HU6s;Wm<}YW**%d>@_bWQ9a{5+=O)_@W25HhB&i;C(x44V_U1w*fJs|$v zM_6y&Sf90cQ*vO@kFo!=h2iq@a<@O}XVdZ3`TZm%S8<1Wk?=^l^Tbk`QS|b}X_`A4Y8R%c1>PZERE8mDJsZ&V!B}7Mrww~+kvziX@N>ndG`7c1 zhU-(t>U8z#rB>tpT^l{5FK=w6PNuo4-b!qa5LEg!G@NW<#@Sx6olVOIjz@R&20utc$=gD{BXE` zpPZ*!4FWw9t}fIYORqNSwKWYyv(ElOn{J&Oh zF@^UFjk{WI*|}Z{BQ}4k|Hj~I>UV7ZXkvJ0S)g>E3#aYv8{1Mx&P+O87KLdaM~|~s zSAR{&8};ldnV?&io|TMDKW3)){<4kGMp5vBD(9OB>x81Zncd4|hNjkltn;jrVb9VsXHv;quk znO+uF4_0(_ot{`1c;_6&{Y%|X;y~ZFGt3UZYOfXC%4?0&NJ>Y?#e(7~Cu3duuz0Ao zAsL7ho@WM#3sZW=--$r`KN>Kt?i^`3Ek(J7jnmFg-S%LN-bZ7u0_}a!@6df#Z&b?m zBeox(h^ss1ef%FqC!2J2DUbK0@sA4+{Pjume3ol{Nc_Nz#YIE6)o|V1+#GFSV8GLf z{LJ6u>?geM5qjCnQ#baIY~|Db6T}JM@pZ0}oS^~THs&)cL(u6p*|Fm{7wtd*xKVxG Tk09S^eq&>Waf0)_ody2^|4<_# literal 0 HcmV?d00001 diff --git a/resources/images/toolbar/ungroup.png b/resources/images/toolbar/ungroup.png new file mode 100644 index 0000000000000000000000000000000000000000..48f229a970ee6d59acee03157eccf23a7eb132eb GIT binary patch literal 2268 zcmaJ@X;>3k7A**%$Rg5>BEoctAgCd!$^s@30TY&>L5M*RMGT=J!6X%vK*G|3E8qen zZsRDliY!W#0mLx0pbd%$qvF!-4A?-^D1r)TPY{rZT~V>;hfaN8y?XC{=bU@)yZ1-s zhJ^-M&2g9m0Du)cn8iiESoC$AZHBHub0ZF27b*jylG=qLfjbHFNfg8Pi6^9kY zGjNeq4#<%)VWB8EO%AV13*`yYwhCzRINz06A2l5nkibelRxJ@r6?8QN_g2VLd4Xhyv0mG(46BLLd<$5kW5x2&7ZJ=pcms z_~6iN^7sTgmlgOi7kXmggi581P9&;SDuRkkK;(%;h(@CkK@yQf@<0(Did3nRulA5C z7SAZKV1+;~k|{-q6l+lA$05l|1`c)lp#+KSldM$n@tV*JBdYl_B18ZUCCvaioc|A% zNIszzN-q4T-_Hswc&Rd&$b}V1vRr^RE@81Dm5k1m!+a$o=OKuA<`%<*h!Rl<5gC@b zj!J;A9KJv#HALPsI2<}#s!;N!0+`KW;7|>MNEAWzR~ou9sZ65W*|rB}I(Q<*woyo3pE&s|DUvt!lWtu=~ow*8R^X+;-$H zAz$t}G1)WTI6lDEN{XureKWUTbYZ6py8?@^_f}fR;ZGfRuo&<>$aioH3<`=kA_{qB z5%cf4MU3>^9}shj>@+ zW#5VmF75wM&kvD3`_nC8Zn)O@xkar_rlTL# z>~R4gbar{}s_#g#|8+_dWqb#4Nlz|r*O9O7;fcwX!;|YzoHOwlYS!z08a9vKy?OJd zL*yBogZC#?Y;$>i)BNHXR}wIQPajj(aae~Hb{-XmdT<@mKDUwu!dG|MdroL(Ip+Z*Oyo1+VH!sWYbB&xPuF;a_z9-=ek$OD@~t1js$JmZ=!3q|{i z+Y0yIw)9EI_2qkC5{@oh75T2($AUyFKWDS=?U6}>?ODN|S&q$%>^x#art^kg+8b@j z<29Wh4M*0-Ri)1(?Z4Oe_bpYGo13i>tI{^Nk=;+L-VM@TG4gG!PmBIFfApkR>$>1` z_Ll3TRcvvk@bDjSP#X64E}&1>xUYj(@coe0e<>bf}f{Izul zV%@g;4f1`vez2ZhZx^~t8ZDR6FtI8kzPM&Y{_sZgb(0!8GoxpJ;^SfQH%#Hc0!x!) zKi1C1lOt+p-DbO;^n0PJaA~a*c0z+dR*QRP8O41WGqA2=fH4yF%d?)m!@<yw(!b1j$sD?`C!o1Zke?xX_$2})9u?$i;Ma##t$9v znYZx#qh6rJwcYDp%NVCp)0BNi6<7r(TO97&;4W(eZA1sHGO*W&Diq?ltS*D zrFdz!`EHouyrk5rgJ|~aD|HcfvQhn{{pfcUPMdTDPU0dx>4N=Kkl9c25P zvvN!~PYe;c4cma+`uh4sF)=Z%%Xhdx1nn(*P8Aj&bg?z>cik5hOr=t9SC}3tD@brH me?0caDIy|rv)PZC#+HEJzAmXAgV!1UH`oE8EX}GdJO2PqD5`Y; literal 0 HcmV?d00001 diff --git a/resources/images/z_layer_down.svg b/resources/images/z_layer_down.svg new file mode 100644 index 00000000..02908437 --- /dev/null +++ b/resources/images/z_layer_down.svg @@ -0,0 +1,17 @@ + + + +]> + + + + + + + + + + diff --git a/resources/images/z_layer_up.svg b/resources/images/z_layer_up.svg new file mode 100644 index 00000000..746b6c9a --- /dev/null +++ b/resources/images/z_layer_up.svg @@ -0,0 +1,17 @@ + + + +]> + + + + + + + + + + diff --git a/resources/sankore.qrc b/resources/sankore.qrc index d07c048f..d9263dbd 100644 --- a/resources/sankore.qrc +++ b/resources/sankore.qrc @@ -42,6 +42,8 @@ images/currentDocument.png images/minus.svg images/plus.svg + images/z_layer_up.svg + images/z_layer_down.svg images/trash.png images/pin.svg images/unpin.svg @@ -49,6 +51,8 @@ images/reload.svg images/frozen.svg images/unfrozen.svg + images/toolbar/group.png + images/toolbar/ungroup.png images/toolbar/window.png images/toolbar/plusBlack.png images/toolbar/plusBlackOn.png @@ -183,6 +187,7 @@ images/cursors/resize.png images/cursors/drawCompass.png images/cursors/drawRulerLine.png + images/cursors/play.png images/print/onepage.png images/print/thumbnails.png images/print/twopages.png diff --git a/src/board/UBBoardView.cpp b/src/board/UBBoardView.cpp index 1e347acc..c3a47261 100644 --- a/src/board/UBBoardView.cpp +++ b/src/board/UBBoardView.cpp @@ -637,6 +637,12 @@ void UBBoardView::rubberItems() { if (mUBRubberBand) mRubberedItems = items(mUBRubberBand->geometry()); + + foreach(QGraphicsItem *item, mRubberedItems) + { + if (item->parentItem() && UBGraphicsGroupContainerItem::Type == item->parentItem()->type()) + mRubberedItems.removeOne(item); + } } void UBBoardView::moveRubberedItems(QPointF movingVector) @@ -945,7 +951,9 @@ UBBoardView::mouseReleaseEvent (QMouseEvent *event) } else { - movingItem->setSelected(true); + if ( QGraphicsSvgItem::Type != movingItem->type() + && UBGraphicsDelegateFrame::Type != movingItem->type()) + movingItem->setSelected(true); } } @@ -1360,7 +1368,7 @@ UBBoardView::setToolCursor (int tool) controlViewport->setCursor (UBResources::resources ()->arrowCursor); break; case UBStylusTool::Play: - controlViewport->setCursor (UBResources::resources ()->drawLineRulerCursor); + controlViewport->setCursor (UBResources::resources ()->playCursor); break; case UBStylusTool::Line: controlViewport->setCursor (UBResources::resources ()->penCursor); diff --git a/src/domain/UBGraphicsItemDelegate.cpp b/src/domain/UBGraphicsItemDelegate.cpp index d48c30dc..e4a7f747 100644 --- a/src/domain/UBGraphicsItemDelegate.cpp +++ b/src/domain/UBGraphicsItemDelegate.cpp @@ -137,12 +137,12 @@ void UBGraphicsItemDelegate::init() connect(mMenuButton, SIGNAL(clicked()), this, SLOT(showMenu())); mButtons << mMenuButton; - mZOrderUpButton = new DelegateButton(":/images/plus.svg", mDelegated, mFrame, Qt::BottomLeftSection); + mZOrderUpButton = new DelegateButton(":/images/z_layer_up.svg", mDelegated, mFrame, Qt::BottomLeftSection); connect(mZOrderUpButton, SIGNAL(clicked()), this, SLOT(increaseZLevelUp())); connect(mZOrderUpButton, SIGNAL(longClicked()), this, SLOT(increaseZlevelTop())); mButtons << mZOrderUpButton; - mZOrderDownButton = new DelegateButton(":/images/minus.svg", mDelegated, mFrame, Qt::BottomLeftSection); + mZOrderDownButton = new DelegateButton(":/images/z_layer_down.svg", mDelegated, mFrame, Qt::BottomLeftSection); connect(mZOrderDownButton, SIGNAL(clicked()), this, SLOT(increaseZLevelDown())); connect(mZOrderDownButton, SIGNAL(longClicked()), this, SLOT(increaseZlevelBottom())); mButtons << mZOrderDownButton; diff --git a/src/gui/UBResources.cpp b/src/gui/UBResources.cpp index 0bcad20d..191480f0 100644 --- a/src/gui/UBResources.cpp +++ b/src/gui/UBResources.cpp @@ -60,6 +60,7 @@ void UBResources::init() zoomInCursor = QCursor(QPixmap(":/images/cursors/zoomIn.png"), 9, 9); zoomOutCursor = QCursor(QPixmap(":/images/cursors/zoomOut.png"), 9, 9); arrowCursor = QCursor(Qt::ArrowCursor); + playCursor = QCursor(QPixmap(":/images/cursors/play.png"), 6, 1); textCursor = QCursor(Qt::ArrowCursor); rotateCursor = QCursor(QPixmap(":/images/cursors/rotate.png"), 16, 16); drawLineRulerCursor = QCursor(QPixmap(":/images/cursors/drawRulerLine.png"), 3, 12); diff --git a/src/gui/UBResources.h b/src/gui/UBResources.h index fcba66e3..66a61880 100644 --- a/src/gui/UBResources.h +++ b/src/gui/UBResources.h @@ -47,6 +47,7 @@ class UBResources : public QObject QCursor zoomInCursor; QCursor zoomOutCursor; QCursor arrowCursor; + QCursor playCursor; QCursor textCursor; QCursor rotateCursor; QCursor drawLineRulerCursor;