From: hickert Date: Thu, 16 Mar 2006 10:40:09 +0000 (+0000) Subject: Added new images which indicates the status of the object. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=715b581c84b912164d3a6ebc7ed0b58150673b61;p=gosa.git 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 --- diff --git a/html/images/copypaste.png b/html/images/copypaste.png new file mode 100644 index 000000000..636a4c5a0 Binary files /dev/null and b/html/images/copypaste.png differ diff --git a/html/images/cutpaste.png b/html/images/cutpaste.png new file mode 100644 index 000000000..e51443824 Binary files /dev/null and b/html/images/cutpaste.png differ diff --git a/include/class_CopyPasteHandler.inc b/include/class_CopyPasteHandler.inc index c26192a43..993b59342 100644 --- a/include/class_CopyPasteHandler.inc +++ b/include/class_CopyPasteHandler.inc @@ -42,6 +42,14 @@ class CopyPasteHandler { } + /* return current obejct dn + */ + function GetCurrentDn() + { + return($this->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 "; }