OSDN Git Service

show more property.
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 6 Oct 2004 14:50:07 +0000 (14:50 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 6 Oct 2004 14:50:07 +0000 (14:50 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1416 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/kitasubjectview.cpp
kita/src/libkita/datmanager.cpp
kita/src/libkita/datmanager.h
kita/src/threadproperty.ui

index e646bba..8380b2a 100644 (file)
@@ -360,6 +360,7 @@ void KitaSubjectView::slotContextMenuRequested( QListViewItem* item, const QPoin
             KURL datURL = thread->datURL();
             propertyWidget->threadURLLabel->setText( datURL.url() );
             propertyWidget->threadNameLabel->setText( Kita::DatManager::threadName( datURL ) );
+            propertyWidget->cachePathLabel->setText( Kita::DatManager::getCachePath( datURL ) );
             propertyWidget->show();
         }
         break;
index f1483da..78376c9 100644 (file)
@@ -18,6 +18,7 @@
 #include "datmanager.h"
 #include "datinfo.h"
 #include "board.h"
+#include "cache.h"
 #include "kita_misc.h"
 #include "kita-utf8.h"
 #include "kita-utf16.h"
@@ -437,6 +438,13 @@ const QString DatManager::boardID( const KURL& url )
     return KURL( Kita::datToBoard( datURL.prettyURL() ) ).fileName();
 }
 
+const QString DatManager::getCachePath( const KURL& url )
+{
+    QMutexLocker locker( &m_mutex );
+
+    KURL datURL = Kita::ParseMisc::parseURLonly( url );
+    return Kita::Cache::getPath( datURL );
+}
 
 /*---------------------------------------*/
 /* HTML data */
index 8b2bd5b..2054f48 100644 (file)
@@ -71,6 +71,7 @@ namespace Kita
         static const QString& boardName( const KURL& url );
         static const QString boardID( const KURL& url );
 
+        static const QString getCachePath( const KURL& url );
 
         /* HTML data */
         static QString getHtml( const KURL& url, int startnum, int endnum );
index 3a5ba5c..fceec44 100644 (file)
@@ -8,8 +8,8 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>600</width>
-            <height>488</height>
+            <width>790</width>
+            <height>492</height>
         </rect>
     </property>
     <property name="caption">
     </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 class="QLabel">
+        <property name="name">
+            <cstring>cachePathLabel0</cstring>
+        </property>
+        <property name="geometry">
+            <rect>
+                <x>10</x>
+                <y>70</y>
+                <width>110</width>
+                <height>20</height>
+            </rect>
+        </property>
+        <property name="text">
+            <string>Cache Path</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>
+                <width>650</width>
                 <height>20</height>
             </rect>
         </property>
@@ -55,7 +87,7 @@
             <rect>
                 <x>130</x>
                 <y>40</y>
-                <width>460</width>
+                <width>650</width>
                 <height>20</height>
             </rect>
         </property>
     </widget>
     <widget class="QLabel">
         <property name="name">
-            <cstring>threadNameLabel0</cstring>
+            <cstring>cachePathLabel</cstring>
         </property>
         <property name="geometry">
             <rect>
-                <x>10</x>
-                <y>40</y>
-                <width>110</width>
+                <x>130</x>
+                <y>70</y>
+                <width>650</width>
                 <height>20</height>
             </rect>
         </property>
         <property name="text">
-            <string>Thread Name</string>
+            <string></string>
         </property>
     </widget>
 </widget>