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
+++ /dev/null
-<!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>
#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"
}
}
-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 )
{
#include "asciiartprefbase.h"
#include "uiprefbase.h"
-#include "debugprefbase.h"
#include "faceprefbase.h"
#include "libkita/favoritethreads.h"
void fontChanged( const QFont& );
};
-class DebugPrefPage : public DebugPrefBase
+/*class DebugPrefPage : public DebugPrefBase
{
Q_OBJECT
public slots:
void replace();
-};
+};*/
namespace Kita
{