OSDN Git Service

search button support
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sun, 16 Mar 2003 09:55:10 +0000 (09:55 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Sun, 16 Mar 2003 09:55:10 +0000 (09:55 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@91 56b19765-1e22-0410-a548-a0f45d66c51a

ChangeLog
src/kitathreadview.cpp
src/kitathreadviewbase.ui

index 558abaf..85e478a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
        * src/kitathreadview.cpp: more KDE 3.0.x support(read only).
        * src/kitathreadview.{cpp, h}: jump to anchor support.
        (merge from k2ch, thanks to 'konqueror plugin no hito')
+        * src/kitathreadview.ui, kitathreadview.h: search button support.
+        (merge from k2ch)
 
 2003-03-16  Hideki Ikemoto  <ikemo@users.sourceforge.jp>
 
index 260dba2..21741e5 100644 (file)
@@ -35,6 +35,8 @@
 #include <dom/html_element.h>
 #include <dom/html_inline.h>
 
+#include <kiconloader.h>
+
 #include "kitathreadview.h"
 #include "kitawritedialog.h"
 
@@ -71,6 +73,11 @@ KitaThreadView::KitaThreadView(QWidget *parent, const char *name)
   threadPart->setStandardFont("Gothic [Mona]");
   threadPart->setZoomFactor(120); // 12px;
   aLayout->addWidget(threadPart->view());
+  
+  {
+    SearchButton->setPixmap( SmallIcon("find") );
+    HighLightButton->setPixmap( SmallIcon("idea") );
+  }
 
   connect(writeButton, SIGNAL(clicked()), SLOT(slotWriteButtonClicked()));
   connect(threadPart, SIGNAL(nodeActivated(const DOM::Node &)), SLOT(slotDOMNodeActivated(const DOM::Node &)));
index 5c801e9..e84da7a 100644 (file)
@@ -46,7 +46,6 @@
             <property name="font">
                 <font>
                     <family>Gothic [Mona]</family>
-                    <pointsize>12</pointsize>
                 </font>
             </property>
             <property name="frameShape">
@@ -61,6 +60,9 @@
             <property name="text">
                 <string></string>
             </property>
+            <property name="alignment">
+                <set>WordBreak|AlignVCenter</set>
+            </property>
         </widget>
         <widget class="QLayoutWidget">
             <property name="name">
                         <pixmap>image0</pixmap>
                     </property>
                 </widget>
+                <widget class="QComboBox">
+                    <property name="name">
+                        <cstring>SearchCombo</cstring>
+                    </property>
+                    <property name="sizePolicy">
+                        <sizepolicy>
+                            <hsizetype>1</hsizetype>
+                            <vsizetype>4</vsizetype>
+                            <horstretch>0</horstretch>
+                            <verstretch>0</verstretch>
+                        </sizepolicy>
+                    </property>
+                    <property name="minimumSize">
+                        <size>
+                            <width>200</width>
+                            <height>0</height>
+                        </size>
+                    </property>
+                    <property name="editable">
+                        <bool>true</bool>
+                    </property>
+                    <property name="sizeLimit">
+                        <number>10</number>
+                    </property>
+                </widget>
+                <widget class="QToolButton">
+                    <property name="name">
+                        <cstring>SearchButton</cstring>
+                    </property>
+                    <property name="text">
+                        <string>Search</string>
+                    </property>
+                </widget>
+                <widget class="QToolButton">
+                    <property name="name">
+                        <cstring>HighLightButton</cstring>
+                    </property>
+                    <property name="text">
+                        <string>HighLight</string>
+                    </property>
+                    <property name="toggleButton">
+                        <bool>true</bool>
+                    </property>
+                </widget>
                 <spacer>
                     <property name="name">
                         <cstring>spacer1</cstring>
                     </property>
                     <property name="sizeHint">
                         <size>
-                            <width>420</width>
+                            <width>320</width>
                             <height>20</height>
                         </size>
                     </property>