From 715b581c84b912164d3a6ebc7ed0b58150673b61 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 16 Mar 2006 10:40:09 +0000 Subject: [PATCH] Added new images which indicates the status of the object. Was the obejct cutted out if its context, or still copied ? git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2849 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/images/copypaste.png | Bin 0 -> 990 bytes html/images/cutpaste.png | Bin 0 -> 898 bytes include/class_CopyPasteHandler.inc | 9 +++++++++ .../applications/class_applicationManagement.inc | 11 ++++++++++- 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 html/images/copypaste.png create mode 100644 html/images/cutpaste.png diff --git a/html/images/copypaste.png b/html/images/copypaste.png new file mode 100644 index 0000000000000000000000000000000000000000..636a4c5a0bd715d6437d3713d4b42752d46661ba GIT binary patch literal 990 zcmV<410np0P)qS(`QfKKi5c|M%a! z|Nb){1Zsc8^#3p10Du5u`Nzq#T*k%N=Ki+kz6Z>~@_s5UrSNAmBV-96S<0I_@l3jY26jp6U_e<0U_oy^4W3uquO z&`Lyff#tw~#=;;X!q314H1*G)zX<>V#PaX=UxxobzB2sz3Ut_KppD;w^q(IL{~3YS z3Lp$%W(HwqpaDz_f`a@E92{&6&z`+v00_VonWO*!!a!_<;{TuN&4Uyvc5(1zevm{e z96lFfY{2pIiwd2m8m<6h`Tq;(+^6pu{(SxePhyN916Y584TEX^ z_6-y+-+^BF$H2+S4i;x(VrBpcAeR4Mfd;($0agS9O#grZ`}YR}%!FUS0R9Dx3Xm6o zX$xo%L@~%dfB<4)_zjc*;=jKU1~C5p1(XEZ2Ic?x^9RUh0w*pI&B6i=aG(VM0mSn3 z9mD;5kN+3~(*#@t!|y)~zxn z>mSsFzrPrN@rbZU#xOG_f(&M7X9Wh_U$6m8KmnkGfqYOHFfafF5DQT3E(;?=J}`C| z{=(7$(4(wszM2OQUXB39*8jhMf#LoiB=w&GLjMD&ua6(Ud<6(F0J}kNf50^MxBvhE M07*qoM6N<$g0n-+82|tP literal 0 HcmV?d00001 diff --git a/html/images/cutpaste.png b/html/images/cutpaste.png new file mode 100644 index 0000000000000000000000000000000000000000..e514438245d1694d40f9161f334fd7cee8b8b4eb GIT binary patch literal 898 zcmV-|1AY97P)0vI<+du;#!0}n|= zK~y-)MUqQsTxA@^f8U*N?wx6;$;6pS(oWP$YHcz2N?IB!sbCfXEp%l?ix@@F;tO=8 zh`Q2+h>wM$xOSo9LKjke1zRgx3s#8`n}m*SY8x`0#nJtgNhMXBRHMvqS#+`Bd#BaVm%v2*EW;oGY8mOc|vH zYqiSJ>FGl^57jGl0WCiK=&N0(p+}rD^Va2NKr}pOHUPF*`gCY=bjtovVehWn*;Fjh zXe=WH1VO-oiLuJh-_O1}Fj?Z#sWWHd`HKg2vC;sq3y}5xedRsFR2O5;&i_NBaSkvD z;mGAujLC7`V9LPwR-(&`w=H#c4$S5cH?(mG95PBQBrWb8*Ze(q9IYHV&ycDf&adnT z=h$)6-7L&WT3dD#+;zuW?ytrd)+X=eJP*0HsxV=P-oUVb&-!B`qaAq+CzEX7-bbb& zYD1yysAcU54HL7o3j=AYUzTAz!zLj*vk(dp;E9Y*C&CmI0Dc~1FXTI#W}*ngm>>vV zisNjPY`|#g_wl{E@T_>0<$x7Aw)+6tqn7;9b3Q26S z)}WNd7>iO0YvI_jlPxI(^HT7f^uS!*K@gDNd2sj4%%2Yye4H`XItR`objectdn); + } + + /* Add Object which should be copied */ function Copy($obj,$emptyObj) @@ -69,6 +77,7 @@ class CopyPasteHandler { function Cut($obj){ $this->cutCurrent = true; $this->current = $obj; + $this->objectdn = $obj->dn; if($this->isCurrentObjectPastAble()){ return(true); }else{ diff --git a/plugins/admin/applications/class_applicationManagement.inc b/plugins/admin/applications/class_applicationManagement.inc index 60a83685f..ef27ae053 100644 --- a/plugins/admin/applications/class_applicationManagement.inc +++ b/plugins/admin/applications/class_applicationManagement.inc @@ -385,8 +385,17 @@ class applicationManagement extends plugin if($this->enableCopyPaste){ $Copy_Paste = "  "; + if($this->CopyPasteHandler->isCurrentObjectPastAble()){ - $Copy_Paste .= " "; + + if($this->CopyPasteHandler->isCurrentCutted()){ + $img = "images/cutpaste.png"; + }else{ + $img = "images/copypaste.png"; + } + + $Copy_Paste .= " "; }else{ $Copy_Paste .= ""._("Can "; } -- 2.30.2