OSDN Git Service

add 'delete tab' button.
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sat, 17 Jul 2004 07:23:45 +0000 (07:23 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sat, 17 Jul 2004 07:23:45 +0000 (07:23 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1251 56b19765-1e22-0410-a548-a0f45d66c51a

ChangeLog
kita/src/part/kitathreadview.cpp
kita/src/part/kitathreadview.h
kita/src/part/kitathreadviewbase.ui

index 5a8771d..d021d21 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-07-17  Hideki Ikemoto  <ikemo@users.sourceforge.jp>
+
+       * version 0.160.0 released.
+
 2004-06-20  Hideki Ikemoto  <ikemo@users.sourceforge.jp>
 
        * various fixes. >>910>>915
index 493693b..f37a0f6 100644 (file)
@@ -94,6 +94,7 @@ KitaThreadView::KitaThreadView( QWidget* parent, const char* name )
         BookmarkButton->setPixmap( SmallIcon( "bookmark_add" ) );
         writeButton->setPixmap( SmallIcon( "pencil" ) );
         deleteButton->setPixmap( SmallIcon( "edittrash" ) );
+        closeButton->setPixmap( SmallIcon( "fileclose" ) );
     }
 
     setAcceptDrops( true ); // DND Drop eneble: 2nd stage. - enable on "KitaThreadView" widget and disable on the others(child widgets of "KitaThreadView").
@@ -124,6 +125,8 @@ KitaThreadView::KitaThreadView( QWidget* parent, const char* name )
              SLOT( slotReloadButton() ) );
     connect( gotoCombo, SIGNAL( activated( int ) ),
              SLOT( slotComboActivated( int ) ) );
+    connect( closeButton, SIGNAL( clicked() ),
+             SLOT( slotCloseButton() ) );
 
     Kita::SignalCollection* signalCollection = Kita::SignalCollection::getInstance();
     connect( this, SIGNAL( setMainStatusbar( const QString& ) ),
@@ -214,6 +217,8 @@ void KitaThreadView::updateButton()
     writeButton->setEnabled( true );
     BookmarkButton->setEnabled( true );
     ReloadButton->setEnabled( true );
+    deleteButton->setEnabled( true );
+    closeButton->setEnabled( true );
 
     if ( HighLightButton->isOn() )
     {
@@ -776,6 +781,11 @@ void KitaThreadView::slotDeleteButtonClicked()
     emit updateSubjectTab( m_datURL );
 }
 
+void KitaThreadView::slotCloseButton()
+{
+    emit closeThreadTab( m_datURL );
+}
+
 /*--------------------------------------------------------*/
 /* These public functions are used for KitaNavi & preview */
 /*--------------------------------------------------------*/
index 9e7d667..e27cad5 100644 (file)
@@ -120,7 +120,8 @@ private slots:
     void slotShowErrorDialog( const QString& input, const KURL& urlOfInput = 0 );
     void slotComboActivated( int index );
     void slotUpdateInfo();
-    void slotSearchPrivate( bool rev );    
+    void slotSearchPrivate( bool rev );
+    void slotCloseButton();
 
 signals:
     void datURLRedirected( const KURL& newDatURL );
index c415546..737e8aa 100644 (file)
                     <property name="name">
                         <cstring>deleteButton</cstring>
                     </property>
+                    <property name="enabled">
+                        <bool>false</bool>
+                    </property>
                     <property name="text">
-                        <string>Delete</string>
+                        <string>Del</string>
+                    </property>
+                    <property name="toolTip" stdset="0">
+                        <string>delete log</string>
                     </property>
                 </widget>
                 <spacer>
                     </property>
                     <property name="sizeHint">
                         <size>
-                            <width>40</width>
+                            <width>30</width>
                             <height>20</height>
                         </size>
                     </property>
                 </spacer>
+                <widget class="QToolButton">
+                    <property name="name">
+                        <cstring>closeButton</cstring>
+                    </property>
+                    <property name="enabled">
+                        <bool>false</bool>
+                    </property>
+                    <property name="text">
+                        <string>Close</string>
+                    </property>
+                    <property name="toolTip" stdset="0">
+                        <string>close tab</string>
+                    </property>
+                </widget>
             </hbox>
         </widget>
         <widget class="QFrame">