OSDN Git Service

remove DebugPrefPage
authorikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 3 May 2006 05:17:10 +0000 (05:17 +0000)
committerikemo <ikemo@56b19765-1e22-0410-a548-a0f45d66c51a>
Wed, 3 May 2006 05:17:10 +0000 (05:17 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/kita/kita/trunk@1819 56b19765-1e22-0410-a548-a0f45d66c51a

kita/src/prefs/Makefile.am
kita/src/prefs/debugprefbase.ui [deleted file]
kita/src/prefs/prefs.cpp
kita/src/prefs/prefs.h

index d100f5e..c69339f 100644 (file)
@@ -2,5 +2,5 @@ INCLUDES = $(all_includes) -I..
 METASOURCES = AUTO
 lib_LTLIBRARIES =  libkitapref.la
 libkitapref_la_LDFLAGS = $(all_libraries)
-libkitapref_la_SOURCES = aboneprefbase.ui aboneprefpage.cpp asciiartprefbase.ui debugprefbase.ui loginprefbase.ui loginprefpage.cpp uiprefbase.ui prefs.cpp faceprefbase.ui writeprefbase.ui writeprefpage.cpp
+libkitapref_la_SOURCES = aboneprefbase.ui aboneprefpage.cpp asciiartprefbase.ui loginprefbase.ui loginprefpage.cpp uiprefbase.ui prefs.cpp faceprefbase.ui writeprefbase.ui writeprefpage.cpp
 noinst_HEADERS = aboneprefpage.h loginprefpage.h prefs.h writeprefpage.h writeprefbase.ui.h
diff --git a/kita/src/prefs/debugprefbase.ui b/kita/src/prefs/debugprefbase.ui
deleted file mode 100644 (file)
index 9efb444..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
-<class>DebugPrefBase</class>
-<widget class="QWidget">
-    <property name="name">
-        <cstring>DebugPrefBase</cstring>
-    </property>
-    <property name="geometry">
-        <rect>
-            <x>0</x>
-            <y>0</y>
-            <width>600</width>
-            <height>480</height>
-        </rect>
-    </property>
-    <property name="caption">
-        <string>Form2</string>
-    </property>
-    <vbox>
-        <property name="name">
-            <cstring>unnamed</cstring>
-        </property>
-        <widget class="QLayoutWidget">
-            <property name="name">
-                <cstring>layout2</cstring>
-            </property>
-            <grid>
-                <property name="name">
-                    <cstring>unnamed</cstring>
-                </property>
-                <spacer row="2" column="1">
-                    <property name="name">
-                        <cstring>spacer1</cstring>
-                    </property>
-                    <property name="orientation">
-                        <enum>Horizontal</enum>
-                    </property>
-                    <property name="sizeType">
-                        <enum>Expanding</enum>
-                    </property>
-                    <property name="sizeHint">
-                        <size>
-                            <width>65</width>
-                            <height>20</height>
-                        </size>
-                    </property>
-                </spacer>
-                <widget class="QPushButton" row="2" column="2">
-                    <property name="name">
-                        <cstring>replaceButton</cstring>
-                    </property>
-                    <property name="text">
-                        <string>replace</string>
-                    </property>
-                </widget>
-                <widget class="QLineEdit" row="1" column="1" rowspan="1" colspan="2">
-                    <property name="name">
-                        <cstring>toURLLine</cstring>
-                    </property>
-                    <property name="text">
-                        <string>http://</string>
-                    </property>
-                </widget>
-                <widget class="QLineEdit" row="0" column="1" rowspan="1" colspan="2">
-                    <property name="name">
-                        <cstring>fromURLLine</cstring>
-                    </property>
-                    <property name="text">
-                        <string>http://</string>
-                    </property>
-                </widget>
-                <widget class="QLabel" row="1" column="0">
-                    <property name="name">
-                        <cstring>textLabel2</cstring>
-                    </property>
-                    <property name="text">
-                        <string>to:</string>
-                    </property>
-                </widget>
-                <widget class="QLabel" row="0" column="0">
-                    <property name="name">
-                        <cstring>textLabel1</cstring>
-                    </property>
-                    <property name="frameShape">
-                        <enum>NoFrame</enum>
-                    </property>
-                    <property name="frameShadow">
-                        <enum>Plain</enum>
-                    </property>
-                    <property name="text">
-                        <string>from:</string>
-                    </property>
-                </widget>
-            </grid>
-        </widget>
-        <spacer>
-            <property name="name">
-                <cstring>spacer2</cstring>
-            </property>
-            <property name="orientation">
-                <enum>Vertical</enum>
-            </property>
-            <property name="sizeType">
-                <enum>Expanding</enum>
-            </property>
-            <property name="sizeHint">
-                <size>
-                    <width>20</width>
-                    <height>40</height>
-                </size>
-            </property>
-        </spacer>
-    </vbox>
-</widget>
-<tabstops>
-    <tabstop>fromURLLine</tabstop>
-    <tabstop>toURLLine</tabstop>
-    <tabstop>replaceButton</tabstop>
-</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
-</UI>
index 9776106..3bafd09 100644 (file)
@@ -35,7 +35,6 @@
 #include "libkita/signalcollection.h"
 #include "libkita/boardmanager.h"
 #include "libkita/config_xt.h"
-#include "debugprefbase.h"
 #include "aboneprefpage.h"
 #include "loginprefpage.h"
 #include "writeprefpage.h"
@@ -177,36 +176,6 @@ void KitaPreferences::slotAboutToShowPage( QWidget* page )
     }
 }
 
-DebugPrefPage::DebugPrefPage( QWidget* parent )
-        : DebugPrefBase( parent )
-{
-    connect( replaceButton, SIGNAL( clicked() ), SLOT( replace() ) );
-}
-
-void DebugPrefPage::replace()
-{
-    QString fromURL = fromURLLine->text();
-    QString toURL = toURLLine->text();
-
-    if ( toURL.find( fromURL ) == 0 ) {
-        QMessageBox::critical( this, i18n( "replace" ),
-                               i18n( "'To' URL must not contain 'From' URL." ) );;
-        return ;
-    }
-
-    if ( QMessageBox::warning( this, i18n( "replace" ),
-                               i18n( "This tool may possibly break thread's info.\n"
-                                     "Please create backups of '~/.kde/share/apps/kita/cache'\n"
-                                     "and '~/.kde/share/apps/kita/favorites.xml' before performing.\n"
-                                     "Are you ready?" ), QMessageBox::Ok,
-                               QMessageBox::Cancel | QMessageBox::Default | QMessageBox::Escape ) == QMessageBox::Ok ) {
-
-        if ( BoardManager::moveBoard( fromURL, toURL ) )
-            QMessageBox::information( this, i18n( "replace" ), i18n( "Complete." ) );
-        else KMessageBox::error( this, i18n( "replace" ), i18n( "Failed.." ) );
-    }
-}
-
 AsciiArtPrefPage::AsciiArtPrefPage( QWidget* parent )
         : AsciiArtPrefBase( parent )
 {
index 3f2bade..1578ac6 100644 (file)
@@ -16,7 +16,6 @@
 
 #include "asciiartprefbase.h"
 #include "uiprefbase.h"
-#include "debugprefbase.h"
 #include "faceprefbase.h"
 
 #include "libkita/favoritethreads.h"
@@ -64,7 +63,7 @@ signals:
     void fontChanged( const QFont& );
 };
 
-class DebugPrefPage : public DebugPrefBase
+/*class DebugPrefPage : public DebugPrefBase
 {
     Q_OBJECT
 
@@ -73,7 +72,7 @@ public:
 
 public slots:
     void replace();
-};
+};*/
 
 namespace Kita
 {