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").
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& ) ),
writeButton->setEnabled( true );
BookmarkButton->setEnabled( true );
ReloadButton->setEnabled( true );
+ deleteButton->setEnabled( true );
+ closeButton->setEnabled( true );
if ( HighLightButton->isOn() )
{
emit updateSubjectTab( m_datURL );
}
+void KitaThreadView::slotCloseButton()
+{
+ emit closeThreadTab( m_datURL );
+}
+
/*--------------------------------------------------------*/
/* These public functions are used for KitaNavi & preview */
/*--------------------------------------------------------*/
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 );
<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">