kita_LDADD = kita.la
# which sources should be compiled for kita
-kita_la_SOURCES = main.cpp kita.cpp pref.cpp kitaiface.skel kitasubjectview.h kitasubjectview.cpp kitaboardview.h kitaboardview.cpp threadlistviewbase.ui kitaboardviewbase.ui kitafontprefbase.ui favoritelistview.h favoritelistview.cpp kitathreadtabwidget.h kitathreadtabwidget.cpp kitasubjecttabwidget.h kitasubjecttabwidget.cpp kitacolorprefbase.ui threadlistview.cpp asciiartprefbase.ui
+kita_la_SOURCES = main.cpp kita.cpp pref.cpp kitaiface.skel kitasubjectview.h kitasubjectview.cpp kitaboardview.h kitaboardview.cpp threadlistviewbase.ui kitaboardviewbase.ui kitafontprefbase.ui favoritelistview.h favoritelistview.cpp kitathreadtabwidget.h kitathreadtabwidget.cpp kitasubjecttabwidget.h kitasubjecttabwidget.cpp kitacolorprefbase.ui threadlistview.cpp asciiartprefbase.ui debugprefbase.ui
kita_SOURCES = dummy.cpp
--- /dev/null
+<!DOCTYPE UI><UI version="3.3" 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>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>textLabel2</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>50</y>
+ <width>70</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>to:</string>
+ </property>
+ </widget>
+ <widget class="QLineEdit">
+ <property name="name">
+ <cstring>toURLLine</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>90</x>
+ <y>50</y>
+ <width>280</width>
+ <height>20</height>
+ </rect>
+ </property>
+ </widget>
+ <widget class="QLineEdit">
+ <property name="name">
+ <cstring>fromURLLine</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>90</x>
+ <y>20</y>
+ <width>280</width>
+ <height>20</height>
+ </rect>
+ </property>
+ </widget>
+ <widget class="QLabel">
+ <property name="name">
+ <cstring>textLabel1</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>20</y>
+ <width>70</width>
+ <height>20</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>from:</string>
+ </property>
+ </widget>
+ <widget class="QPushButton">
+ <property name="name">
+ <cstring>replaceButton</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>260</x>
+ <y>80</y>
+ <width>115</width>
+ <height>27</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>replace</string>
+ </property>
+ </widget>
+</widget>
+<layoutdefaults spacing="6" margin="11"/>
+</UI>
QFrame * asciiArtFrame = addPage( i18n( "AsciiArt" ), i18n( "AsciiArt" ) );
m_asciiArtPage = new Kita::AsciiArtPrefPage( asciiArtFrame );
+
+ QFrame * debugFrame = addPage( i18n( "Debug" ), i18n( "Debug" ) );
+ m_debugPage = new DebugPrefPage( debugFrame );
}
KitaFontPrefPage::KitaFontPrefPage( QWidget* parent )
}
}
+DebugPrefPage::DebugPrefPage( QWidget* parent )
+ : DebugPrefBase( parent )
+{
+ connect( replaceButton, SIGNAL( clicked() ), SLOT( replace() ) );
+}
+
AsciiArtPrefPage::AsciiArtPrefPage( QWidget* parent )
: AsciiArtPrefBase( parent )
{
#include "kitafontprefbase.h"
#include "kitacolorprefbase.h"
#include "asciiartprefbase.h"
+#include "debugprefbase.h"
class KitaFontPrefPage;
class KitaColorPrefPage;
+class DebugPrefPage;
namespace Kita
{
KitaFontPrefPage* m_fontPage;
KitaColorPrefPage* m_colorPage;
Kita::AsciiArtPrefPage* m_asciiArtPage;
+ DebugPrefPage* m_debugPage;
signals:
void fontChanged( const QFont& );
void slotChangeButtonClicked();
};
+class DebugPrefPage : public DebugPrefBase
+{
+ Q_OBJECT
+
+public:
+ DebugPrefPage( QWidget* parent = 0 );
+
+public slots:
+ void replace();
+};
+
namespace Kita
{
class AsciiArtPrefPage : public AsciiArtPrefBase