kita_LDADD = kita.la
# which sources should be compiled for kita
-kita_la_SOURCES = main.cpp kita.cpp kitaiface.skel kitasubjectview.cpp kitaboardview.cpp threadlistview.cpp favoritelistview.cpp kitaboardtabwidget.cpp kitawritetabwidget.cpp kitaimgtabwidget.cpp kitathreadtabwidget.cpp kitasubjecttabwidget.cpp kitatabwidgetbase.cpp threadlistviewbase.ui kitaboardviewbase.ui
+kita_la_SOURCES = main.cpp kita.cpp kitaiface.skel kitasubjectview.cpp kitaboardview.cpp threadlistview.cpp favoritelistview.cpp kitaboardtabwidget.cpp kitawritetabwidget.cpp kitaimgtabwidget.cpp kitathreadtabwidget.cpp kitasubjecttabwidget.cpp kitatabwidgetbase.cpp threadlistviewbase.ui kitaboardviewbase.ui threadproperty.ui
kita_SOURCES = dummy.cpp
#include "libkita/signalcollection.h"
#include "part/kita2ch.h"
+#include "threadproperty.h"
+
KitaSubjectView::KitaSubjectView( QWidget* parent, const char* name )
: Kita::ThreadListView( parent, name )
, m_unreadNum( 0 ), m_readNum( 0 ), m_newNum( 0 )
Menu_OpenWithNewTab,
Menu_CopyTitleAndURL,
Menu_Favorites,
- Menu_DeleteLog
+ Menu_DeleteLog,
+ Menu_Property
};
if ( item == 0 ) {
}
popup.insertSeparator();
popup.insertItem( i18n( "Delete Log" ), Menu_DeleteLog );
+ popup.insertSeparator();
+ popup.insertItem( i18n( "Property" ), Menu_Property );
QClipboard* clipboard = QApplication::clipboard();
case Menu_DeleteLog:
deleteLog( Kita::DatManager::threadURL( thread->datURL() ) );
break;
+ case Menu_Property:
+ {
+ // FIXME: memory leak
+ Kita::ThreadProperty* propertyWidget = new Kita::ThreadProperty( 0 );
+ KURL datURL = thread->datURL();
+ propertyWidget->threadURLLabel->setText( datURL.url() );
+ propertyWidget->threadNameLabel->setText( Kita::DatManager::threadName( datURL ) );
+ propertyWidget->show();
+ }
+ break;
default:
break;
}
--- /dev/null
+<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
+<class>Kita::ThreadProperty</class>
+<widget class="QWidget">
+ <property name="name">
+ <cstring>Kita::ThreadProperty</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>600</width>
+ <height>488</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Form1</string>
+ </property>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>threadURLLabel0</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>10</y>
+ <width>110</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Thread URL</string>
+ </property>
+ </widget>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>threadURLLabel</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>130</x>
+ <y>10</y>
+ <width>460</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>threadNameLabel</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>130</x>
+ <y>40</y>
+ <width>460</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>threadNameLabel0</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>40</y>
+ <width>110</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Thread Name</string>
+ </property>
+ </widget>
+</widget>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>