--- /dev/null
+<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
+<class>Kita::FacePrefBase</class>
+<widget class="QWidget">
+ <property name="name">
+ <cstring>Kita::FacePrefBase</cstring>
+ </property>
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>600</width>
+ <height>492</height>
+ </rect>
+ </property>
+ <property name="caption">
+ <string>Form1</string>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QTabWidget" row="0" column="0">
+ <property name="name">
+ <cstring>tabWidget2</cstring>
+ </property>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>Tab 1</string>
+ </attribute>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLayoutWidget" row="0" column="0">
+ <property name="name">
+ <cstring>layout3</cstring>
+ </property>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout8</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QPushButton" row="0" column="1">
+ <property name="name">
+ <cstring>fontButton</cstring>
+ </property>
+ <property name="text">
+ <string>set font</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>fontLabel</cstring>
+ </property>
+ <property name="text">
+ <string>set list font</string>
+ </property>
+ </widget>
+ <widget class="QPushButton" row="1" column="1">
+ <property name="name">
+ <cstring>threadFontButton</cstring>
+ </property>
+ <property name="text">
+ <string>set font</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>threadFontLabel</cstring>
+ </property>
+ <property name="text">
+ <string>set thread font</string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ <widget class="QLayoutWidget">
+ <property name="name">
+ <cstring>layout1</cstring>
+ </property>
+ <grid>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="KColorButton" row="0" column="1">
+ <property name="name">
+ <cstring>popupColorButton</cstring>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="0" column="0">
+ <property name="name">
+ <cstring>popupLabel</cstring>
+ </property>
+ <property name="text">
+ <string>popup text</string>
+ </property>
+ </widget>
+ <widget class="QLabel" row="1" column="0">
+ <property name="name">
+ <cstring>popupBackgroundLabel</cstring>
+ </property>
+ <property name="text">
+ <string>popup background</string>
+ </property>
+ </widget>
+ <widget class="KColorButton" row="1" column="1">
+ <property name="name">
+ <cstring>popupBackgroundColorButton</cstring>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ </grid>
+ </widget>
+ </vbox>
+ </widget>
+ <spacer row="1" column="0">
+ <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>
+ <spacer row="0" 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>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </grid>
+ </widget>
+ <widget class="QWidget">
+ <property name="name">
+ <cstring>tab</cstring>
+ </property>
+ <attribute name="title">
+ <string>Tab 2</string>
+ </attribute>
+ <vbox>
+ <property name="name">
+ <cstring>unnamed</cstring>
+ </property>
+ <widget class="QCheckBox">
+ <property name="name">
+ <cstring>useStyleSheetCheckBox</cstring>
+ </property>
+ <property name="text">
+ <string>use stylesheet ( the setup of color/font is overwritten ).</string>
+ </property>
+ </widget>
+ <widget class="KTextEdit">
+ <property name="name">
+ <cstring>styleSheetText</cstring>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ </widget>
+ </grid>
+</widget>
+<layoutdefaults spacing="6" margin="11"/>
+<includehints>
+ <includehint>kcolorbutton.h</includehint>
+ <includehint>kcolorbutton.h</includehint>
+ <includehint>ktextedit.h</includehint>
+</includehints>
+</UI>
QVBox * aboneFrame = addVBoxPage( i18n( "Abone" ), i18n( "Abone" ) );
m_abonePage = new Kita::AbonePrefPage( aboneFrame );
-
+
QVBox * loginFrame = addVBoxPage( i18n( "Login" ), i18n( "Login" ) );
m_loginPage = new Kita::LoginPrefPage( loginFrame );
QVBox * debugFrame = addVBoxPage( i18n( "Debug" ), i18n( "Debug" ) );
m_debugPage = new DebugPrefPage( debugFrame );
+ QVBox * faceFrame = addVBoxPage( i18n( "Face" ), i18n( "Face" ) );
+ m_facePage = new Kita::FacePrefPage( faceFrame );
+
connect( m_fontPage, SIGNAL( changed() ), SLOT( slotChanged() ) );
connect( m_colorPage, SIGNAL( changed() ), SLOT( slotChanged() ) );
connect( m_styleSheetPage, SIGNAL( changed() ), SLOT( slotChanged() ) );
case 7:
// debug
break;
+ case 8:
+ // face
+ m_facePage->apply();
+ break;
}
enableButtonApply( false );
}
{
KRun::runCommand( "kcontrol" );
}
+
+FacePrefPage::FacePrefPage( QWidget* parent )
+ : FacePrefBase( parent )
+{
+}
+
+void FacePrefPage::apply()
+{
+}
+
+void FacePrefPage::reset()
+{
+}
#include "asciiartprefbase.h"
#include "uiprefbase.h"
#include "debugprefbase.h"
+#include "faceprefbase.h"
#include "libkita/favoritethreads.h"
#include "libkita/threadinfo.h"
class UIPrefPage;
class AbonePrefPage;
class LoginPrefPage;
+ class FacePrefPage;
}
class KitaPreferences : public KDialogBase
private:
KitaFontPrefPage* m_fontPage;
KitaColorPrefPage* m_colorPage;
+ Kita::FacePrefPage* m_facePage;
Kita::StyleSheetPrefPage* m_styleSheetPage;
Kita::AsciiArtPrefPage* m_asciiArtPage;
Kita::UIPrefPage* m_uiPage;
signals:
void changed();
};
+
+ class FacePrefPage : public FacePrefBase
+ {
+ Q_OBJECT
+ public:
+ FacePrefPage( QWidget* parent = 0 );
+ void apply();
+ void reset();
+
+ signals:
+ void changed();
+ };
}
#endif // _KITAPREF_H_