[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeextragear-3/digikam/showfoto
From:       Renchi Raju <renchi () pooh ! tam ! uiuc ! edu>
Date:       2004-12-05 0:10:37
Message-ID: 20041205001037.89BC415928 () office ! kde ! org
[Download RAW message or body]

CVS commit by pahlibar: 


add crop action


  M +0 -1      TODO   1.3
  M +8 -0      showfoto.cpp   1.16
  M +1 -0      showfoto.h   1.11
  M +4 -0      showfotoui.rc   1.7


--- kdeextragear-3/digikam/showfoto/TODO  #1.2:1.3
@@ -2,5 +2,4 @@
 ---------------------------------
 
-* provide action  for crop
 * provide actions for save/saveas
 

--- kdeextragear-3/digikam/showfoto/showfoto.cpp  #1.15:1.16
@@ -63,4 +63,6 @@ ShowFoto::ShowFoto(const KURL::List& url
     connect(m_bar, SIGNAL(signalURLSelected(const KURL&)),
             SLOT(slotOpenURL(const KURL&)));
+    connect(m_canvas, SIGNAL(signalSelected(bool)),
+            m_cropAction, SLOT(setEnabled(bool)));
 
     for (KURL::List::const_iterator it = urlList.begin();
@@ -148,4 +150,10 @@ void ShowFoto::setupActions()
                 actionCollection(), "flip_vert");
     
+    m_cropAction = new KAction(i18n("Crop"), "crop",
+                               CTRL+Key_C,
+                               m_canvas, SLOT(slotCrop()),
+                               actionCollection(), "crop");
+    m_cropAction->setEnabled(false);
+    
     // ---------------------------------------------------------------
 

--- kdeextragear-3/digikam/showfoto/showfoto.h  #1.10:1.11
@@ -71,4 +71,5 @@ private:
     KToggleAction*  m_fullScreenAction;
     KToggleAction*  m_showBarAction;
+    KAction*        m_cropAction;
     
     bool            m_fullScreen;

--- kdeextragear-3/digikam/showfoto/showfotoui.rc  #1.6:1.7
@@ -24,4 +24,6 @@
      <Action name="flip_horiz" />
      <Action name="flip_vert" />
+     <Separator />
+     <Action name="crop" />
  </Menu>
 
@@ -58,4 +60,6 @@
   <Action name="zoom_fit" />
   <Separator />
+  <Action name="crop" />
+  <Separator />
   <Action name="full_screen" /> 
 </ToolBar>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic