Changeset View
Changeset View
Standalone View
Standalone View
settings/konqhtml/appearance.cpp
Show All 12 Lines | |||||
13 | #include <kdebug.h> | 13 | #include <kdebug.h> | ||
14 | #include <kdialog.h> | 14 | #include <kdialog.h> | ||
15 | #include <kglobal.h> | 15 | #include <kglobal.h> | ||
16 | #include <KLocalizedString> | 16 | #include <KLocalizedString> | ||
17 | #include <knuminput.h> | 17 | #include <knuminput.h> | ||
18 | #include <KPluginFactory> | 18 | #include <KPluginFactory> | ||
19 | #include <KPluginLoader> | 19 | #include <KPluginLoader> | ||
20 | #include <QFontComboBox> | 20 | #include <QFontComboBox> | ||
21 | #include <KTabWidget> | | |||
22 | #include <QFontDatabase> | 21 | #include <QFontDatabase> | ||
23 | #include <QSpinBox> | 22 | #include <QSpinBox> | ||
23 | #include <QTabWidget> | ||||
24 | 24 | | |||
25 | static const char *const animationValues[] = {"Enabled", "Disabled", "LoopOnce"}; | 25 | static const char *const animationValues[] = {"Enabled", "Disabled", "LoopOnce"}; | ||
26 | enum AnimationsType { AnimationsAlways = 0, AnimationsNever = 1, AnimationsLoopOnce = 2 }; | 26 | enum AnimationsType { AnimationsAlways = 0, AnimationsNever = 1, AnimationsLoopOnce = 2 }; | ||
27 | 27 | | |||
28 | static const char *const smoothScrollingValues[] = {"Enabled", "Disabled", "WhenEfficient"}; | 28 | static const char *const smoothScrollingValues[] = {"Enabled", "Disabled", "WhenEfficient"}; | ||
29 | enum SmoothScrollingType { SmoothScrollingAlways = 0, SmoothScrollingNever = 1, SmoothScrollingWhenEfficient = 2 }; | 29 | enum SmoothScrollingType { SmoothScrollingAlways = 0, SmoothScrollingNever = 1, SmoothScrollingWhenEfficient = 2 }; | ||
30 | 30 | | |||
31 | enum UnderlineLinkType { UnderlineAlways = 0, UnderlineNever = 1, UnderlineHover = 2 }; | 31 | enum UnderlineLinkType { UnderlineAlways = 0, UnderlineNever = 1, UnderlineHover = 2 }; | ||
32 | 32 | | |||
33 | KAppearanceOptions::KAppearanceOptions(QWidget *parent, const QVariantList &) | 33 | KAppearanceOptions::KAppearanceOptions(QWidget *parent, const QVariantList &) | ||
34 | : KCModule(parent), m_groupname(QStringLiteral("HTML Settings")), | 34 | : KCModule(parent), m_groupname(QStringLiteral("HTML Settings")), | ||
35 | fSize(10), fMinSize(HTML_DEFAULT_MIN_FONT_SIZE) | 35 | fSize(10), fMinSize(HTML_DEFAULT_MIN_FONT_SIZE) | ||
36 | 36 | | |||
37 | { | 37 | { | ||
38 | QVBoxLayout *l = new QVBoxLayout(this); | 38 | QVBoxLayout *l = new QVBoxLayout(this); | ||
39 | KTabWidget *tab = new KTabWidget(this); | 39 | QTabWidget *tabWidget = new QTabWidget(this); | ||
40 | l->addWidget(tab); | 40 | l->addWidget(tabWidget); | ||
41 | QWidget *mainTab = new QWidget(this); | 41 | QWidget *mainTab = new QWidget(this); | ||
42 | QWidget *fontsTab = new QWidget(this); | 42 | QWidget *fontsTab = new QWidget(this); | ||
43 | cssConfig = new CSSConfig(this); | 43 | cssConfig = new CSSConfig(this); | ||
44 | tab->addTab(mainTab, i18nc("@title:tab", "General")); | 44 | tabWidget->addTab(mainTab, i18nc("@title:tab", "General")); | ||
45 | tab->addTab(fontsTab, i18nc("@title:tab", "Fonts")); | 45 | tabWidget->addTab(fontsTab, i18nc("@title:tab", "Fonts")); | ||
46 | tab->addTab(cssConfig, i18nc("@title:tab", "Stylesheets")); | 46 | tabWidget->addTab(cssConfig, i18nc("@title:tab", "Stylesheets")); | ||
47 | 47 | | |||
48 | connect(cssConfig, SIGNAL(changed()), this, SLOT(changed())); | 48 | connect(cssConfig, SIGNAL(changed()), this, SLOT(changed())); | ||
49 | connect(cssConfig, SIGNAL(changed(bool)), this, SIGNAL(changed(bool))); | 49 | connect(cssConfig, SIGNAL(changed(bool)), this, SIGNAL(changed(bool))); | ||
50 | 50 | | |||
51 | l = new QVBoxLayout(mainTab); | 51 | l = new QVBoxLayout(mainTab); | ||
52 | 52 | | |||
53 | //Images | 53 | //Images | ||
54 | QGroupBox *box = new QGroupBox(i18n("Images"), mainTab); | 54 | QGroupBox *box = new QGroupBox(i18n("Images"), mainTab); | ||
▲ Show 20 Lines • Show All 385 Lines • Show Last 20 Lines |