OSDN Git Service

write ViewPos
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Mon, 18 Oct 2004 15:18:02 +0000 (15:18 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Mon, 18 Oct 2004 15:18:02 +0000 (15:18 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1464 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/kitasubjectview.cpp
kita/src/libkita/datinfo.cpp
kita/src/threadproperty.ui

index a32be1f..18f347b 100644 (file)
@@ -376,6 +376,7 @@ void KitaSubjectView::slotContextMenuRequested( QListViewItem* item, const QPoin
             propertyWidget->indexPathLabel->setText( Kita::DatManager::getCacheIndexPath( datURL ) );
             propertyWidget->idx_threadNameWithIndexLabel->setText( Kita::ThreadIndex::getSubject( datURL ) );
             propertyWidget->idx_resNumLabel->setText( QString( "%1" ).arg( Kita::ThreadIndex::getResNum( datURL ) ) );
+            propertyWidget->idx_viewPosLabel->setText( QString( "%1" ).arg( Kita::ThreadIndex::getViewPos( datURL ) ) );
             propertyWidget->show();
         }
         break;
index 4e4d639..88c64d1 100644 (file)
@@ -220,7 +220,9 @@ void DatInfo::updateThreadInfo()
     }
     Kita::ThreadIndex::setResNum( m_datURL, m_readNum );
 
+    // set readNum( == viewPos == kokoyonNum )
     KitaThreadInfo::setReadNum( m_datURL.prettyURL(), m_readNum );
+    Kita::ThreadIndex::setViewPos( m_datURL, m_readNum );
 }
 
 
@@ -997,6 +999,7 @@ void DatInfo::setKokoyonNum( int num )
 
     m_kokoyonNum = num;
     KitaThreadInfo::setReadNum( m_datURL.prettyURL(), num );
+    Kita::ThreadIndex::setViewPos( m_datURL, num );
 }
 
 /* public */
index f130e21..509e9c1 100644 (file)
@@ -9,7 +9,7 @@
             <x>0</x>
             <y>0</y>
             <width>790</width>
-            <height>498</height>
+            <height>500</height>
         </rect>
     </property>
     <property name="caption">
     </widget>
     <widget class="QLabel">
         <property name="name">
+            <cstring>idx_threadNameWithIndexLabel</cstring>
+        </property>
+        <property name="geometry">
+            <rect>
+                <x>130</x>
+                <y>220</y>
+                <width>650</width>
+                <height>20</height>
+            </rect>
+        </property>
+        <property name="text">
+            <string></string>
+        </property>
+    </widget>
+    <widget class="QLabel">
+        <property name="name">
             <cstring>idx_resNumLabel0</cstring>
         </property>
         <property name="geometry">
     </widget>
     <widget class="QLabel">
         <property name="name">
-            <cstring>idx_threadNameWithIndexLabel</cstring>
+            <cstring>idx_resNumLabel</cstring>
         </property>
         <property name="geometry">
             <rect>
                 <x>130</x>
-                <y>220</y>
+                <y>250</y>
                 <width>650</width>
                 <height>20</height>
             </rect>
     </widget>
     <widget class="QLabel">
         <property name="name">
-            <cstring>idx_resNumLabel</cstring>
+            <cstring>idx_viewPosLabel0</cstring>
+        </property>
+        <property name="geometry">
+            <rect>
+                <x>10</x>
+                <y>280</y>
+                <width>110</width>
+                <height>17</height>
+            </rect>
+        </property>
+        <property name="text">
+            <string>ViewPos</string>
+        </property>
+    </widget>
+    <widget class="QLabel">
+        <property name="name">
+            <cstring>idx_viewPosLabel</cstring>
         </property>
         <property name="geometry">
             <rect>
                 <x>130</x>
-                <y>250</y>
+                <y>280</y>
                 <width>650</width>
                 <height>20</height>
             </rect>