Code

Added new images which indicates the status of the object.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Mar 2006 10:40:09 +0000 (10:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Mar 2006 10:40:09 +0000 (10:40 +0000)
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 [new file with mode: 0644]
html/images/cutpaste.png [new file with mode: 0644]
include/class_CopyPasteHandler.inc
plugins/admin/applications/class_applicationManagement.inc

diff --git a/html/images/copypaste.png b/html/images/copypaste.png
new file mode 100644 (file)
index 0000000..636a4c5
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 (file)
index 0000000..e514438
Binary files /dev/null and b/html/images/cutpaste.png differ
index c26192a4330aed8a82573c09eb2e3c34f2d046b8..993b59342b3d00db54c0b28f3a1fe0893c3464ac 100644 (file)
@@ -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{
index 60a83685fa76f31fc1f9ef8c20d367785e7f8e43..ef27ae0538b5059a7ad6a9e622e531e29f1f625a 100644 (file)
@@ -385,8 +385,17 @@ class applicationManagement extends plugin
 
         if($this->enableCopyPaste){
           $Copy_Paste = " <img class='center' src='images/list_seperator.png' align='middle' alt='' height='16' width='1'>&nbsp;";
+
           if($this->CopyPasteHandler->isCurrentObjectPastAble()){
-            $Copy_Paste .= "<input type='image' name='editPaste' class='center' src='images/editpaste.png' alt='"._("Paste")."'>&nbsp;";
+
+            if($this->CopyPasteHandler->isCurrentCutted()){
+              $img = "images/cutpaste.png";
+            }else{
+              $img = "images/copypaste.png";
+            }
+
+            $Copy_Paste .= "<input type='image' name='editPaste' class='center' 
+                              src='".$img."' alt='"._("Paste")."' title='".$this->CopyPasteHandler->GetCurrentDn()."'>&nbsp;";
           }else{
             $Copy_Paste .= "<img class='center' src='images/cant_editpaste.png' alt='"._("Can't paste")."'>&nbsp;";
           }