-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.cpp | 4 | ||||
-rw-r--r-- | kmicromail/koprefsdialog.cpp | 4 | ||||
-rw-r--r-- | microkde/kutils/kcmultidialog.cpp | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.cpp b/kaddressbook/kcmconfigs/kabconfigwidget.cpp index 986c9b8..8a4dd3d 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.cpp +++ b/kaddressbook/kcmconfigs/kabconfigwidget.cpp | |||
@@ -34,83 +34,85 @@ | |||
34 | #include <qvbox.h> | 34 | #include <qvbox.h> |
35 | 35 | ||
36 | #include <kconfig.h> | 36 | #include <kconfig.h> |
37 | #include <kdebug.h> | 37 | #include <kdebug.h> |
38 | #include <kdialog.h> | 38 | #include <kdialog.h> |
39 | #include <klistview.h> | 39 | #include <klistview.h> |
40 | #include <klocale.h> | 40 | #include <klocale.h> |
41 | #include <kglobal.h> | 41 | #include <kglobal.h> |
42 | #include <kmessagebox.h> | 42 | #include <kmessagebox.h> |
43 | #include <kstandarddirs.h> | 43 | #include <kstandarddirs.h> |
44 | 44 | ||
45 | #ifndef KAB_EMBEDDED | 45 | #ifndef KAB_EMBEDDED |
46 | #include <ktrader.h> | 46 | #include <ktrader.h> |
47 | #else // KAB_EMBEDDED | 47 | #else // KAB_EMBEDDED |
48 | #include <mergewidget.h> | 48 | #include <mergewidget.h> |
49 | #include <distributionlistwidget.h> | 49 | #include <distributionlistwidget.h> |
50 | #endif // KAB_EMBEDDED | 50 | #endif // KAB_EMBEDDED |
51 | 51 | ||
52 | #include "addresseewidget.h" | 52 | #include "addresseewidget.h" |
53 | #include "extensionconfigdialog.h" | 53 | #include "extensionconfigdialog.h" |
54 | #include "extensionwidget.h" | 54 | #include "extensionwidget.h" |
55 | #include "kabprefs.h" | 55 | #include "kabprefs.h" |
56 | 56 | ||
57 | #include "kabconfigwidget.h" | 57 | #include "kabconfigwidget.h" |
58 | #include <kglobalsettings.h> | ||
58 | 59 | ||
59 | class ExtensionItem : public QCheckListItem | 60 | class ExtensionItem : public QCheckListItem |
60 | { | 61 | { |
61 | public: | 62 | public: |
62 | 63 | ||
63 | #ifndef KAB_EMBEDDED | 64 | #ifndef KAB_EMBEDDED |
64 | ExtensionItem( QListView *parent, const QString &text ); | 65 | ExtensionItem( QListView *parent, const QString &text ); |
65 | void setService( const KService::Ptr &ptr ); | 66 | void setService( const KService::Ptr &ptr ); |
66 | #else //KAB_EMBEDDED | 67 | #else //KAB_EMBEDDED |
67 | ExtensionItem( QListView *parent, const QString &text, const QString &name, const QString &comment ); | 68 | ExtensionItem( QListView *parent, const QString &text, const QString &name, const QString &comment ); |
68 | void setFactory( ExtensionFactory* fac ); | 69 | void setFactory( ExtensionFactory* fac ); |
69 | #endif //KAB_EMBEDDED | 70 | #endif //KAB_EMBEDDED |
70 | 71 | ||
71 | bool configWidgetAvailable() const; | 72 | bool configWidgetAvailable() const; |
72 | ExtensionFactory *factory() const; | 73 | ExtensionFactory *factory() const; |
73 | 74 | ||
74 | virtual QString text( int column ) const; | 75 | virtual QString text( int column ) const; |
75 | 76 | ||
76 | private: | 77 | private: |
77 | #ifndef KAB_EMBEDDED | 78 | #ifndef KAB_EMBEDDED |
78 | KService::Ptr mPtr; | 79 | KService::Ptr mPtr; |
79 | #else //KAB_EMBEDDED | 80 | #else //KAB_EMBEDDED |
80 | ExtensionFactory* mFactory; | 81 | ExtensionFactory* mFactory; |
81 | QString mName; | 82 | QString mName; |
82 | QString mComment; | 83 | QString mComment; |
83 | 84 | ||
84 | #endif //KAB_EMBEDDED | 85 | #endif //KAB_EMBEDDED |
85 | 86 | ||
86 | }; | 87 | }; |
87 | 88 | ||
88 | KABConfigWidget::KABConfigWidget( KABPrefs* prefs, QWidget *parent, const char *name ) | 89 | KABConfigWidget::KABConfigWidget( KABPrefs* prefs, QWidget *parent, const char *name ) |
89 | : KPrefsWidget( prefs, parent, name ) | 90 | : KPrefsWidget( prefs, parent, name ) |
90 | { | 91 | { |
92 | |||
91 | QVBoxLayout *topLayout = new QVBoxLayout( this, 0, | 93 | QVBoxLayout *topLayout = new QVBoxLayout( this, 0, |
92 | KDialog::spacingHint() ); | 94 | KDialog::spacingHintSmall() ); |
93 | 95 | ||
94 | QTabWidget *tabWidget = new QTabWidget( this ); | 96 | QTabWidget *tabWidget = new QTabWidget( this ); |
95 | topLayout->addWidget( tabWidget ); | 97 | topLayout->addWidget( tabWidget ); |
96 | 98 | ||
97 | // General page | 99 | // General page |
98 | QWidget *generalPage = new QWidget( this ); | 100 | QWidget *generalPage = new QWidget( this ); |
99 | QVBoxLayout *layout = new QVBoxLayout( generalPage, KDialog::marginHintSmall(), | 101 | QVBoxLayout *layout = new QVBoxLayout( generalPage, KDialog::marginHintSmall(), |
100 | KDialog::spacingHintSmall() ); | 102 | KDialog::spacingHintSmall() ); |
101 | 103 | ||
102 | 104 | ||
103 | QWidget *hBox = new QWidget( generalPage, "qhbox" ); | 105 | QWidget *hBox = new QWidget( generalPage, "qhbox" ); |
104 | QHBoxLayout *hboxLayout = new QHBoxLayout( hBox); | 106 | QHBoxLayout *hboxLayout = new QHBoxLayout( hBox); |
105 | KPrefsWidFont *detailsFont = | 107 | KPrefsWidFont *detailsFont = |
106 | addWidFont(i18n("phone:123"),i18n("Details view font"), | 108 | addWidFont(i18n("phone:123"),i18n("Details view font"), |
107 | &(KABPrefs::instance()->mDetailsFont),hBox); | 109 | &(KABPrefs::instance()->mDetailsFont),hBox); |
108 | hboxLayout->addWidget(detailsFont->label()); | 110 | hboxLayout->addWidget(detailsFont->label()); |
109 | hboxLayout->addWidget(detailsFont->preview()); | 111 | hboxLayout->addWidget(detailsFont->preview()); |
110 | hboxLayout->addWidget(detailsFont->button()); | 112 | hboxLayout->addWidget(detailsFont->button()); |
111 | hboxLayout->setMargin(KDialog::marginHintSmall() ); | 113 | hboxLayout->setMargin(KDialog::marginHintSmall() ); |
112 | hboxLayout->setSpacing(KDialog::spacingHintSmall()); | 114 | hboxLayout->setSpacing(KDialog::spacingHintSmall()); |
113 | //hBox->setBackgroundColor( black); | 115 | //hBox->setBackgroundColor( black); |
114 | layout->addWidget( hBox ); | 116 | layout->addWidget( hBox ); |
115 | 117 | ||
116 | //general groupbox | 118 | //general groupbox |
diff --git a/kmicromail/koprefsdialog.cpp b/kmicromail/koprefsdialog.cpp index 40347cc..9cde5cf 100644 --- a/kmicromail/koprefsdialog.cpp +++ b/kmicromail/koprefsdialog.cpp | |||
@@ -32,62 +32,64 @@ | |||
32 | #include <qtextstream.h> | 32 | #include <qtextstream.h> |
33 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
34 | #include <qvbox.h> | 34 | #include <qvbox.h> |
35 | #include <qhbox.h> | 35 | #include <qhbox.h> |
36 | #include <qregexp.h> | 36 | #include <qregexp.h> |
37 | #include <qspinbox.h> | 37 | #include <qspinbox.h> |
38 | #include <qdatetime.h> | 38 | #include <qdatetime.h> |
39 | #include <qcheckbox.h> | 39 | #include <qcheckbox.h> |
40 | #include <qradiobutton.h> | 40 | #include <qradiobutton.h> |
41 | #include <qpushbutton.h> | 41 | #include <qpushbutton.h> |
42 | #include <qstrlist.h> | 42 | #include <qstrlist.h> |
43 | #include <qapplication.h> | 43 | #include <qapplication.h> |
44 | 44 | ||
45 | #include <kcolorbutton.h> | 45 | #include <kcolorbutton.h> |
46 | #include <kdebug.h> | 46 | #include <kdebug.h> |
47 | #include <klocale.h> | 47 | #include <klocale.h> |
48 | #include <kglobal.h> | 48 | #include <kglobal.h> |
49 | #include <kfontdialog.h> | 49 | #include <kfontdialog.h> |
50 | #include <kfiledialog.h> | 50 | #include <kfiledialog.h> |
51 | #include <kmessagebox.h> | 51 | #include <kmessagebox.h> |
52 | #include <kcolordialog.h> | 52 | #include <kcolordialog.h> |
53 | #include <kiconloader.h> | 53 | #include <kiconloader.h> |
54 | #include <kemailsettings.h> | 54 | #include <kemailsettings.h> |
55 | #include <kstandarddirs.h> | 55 | #include <kstandarddirs.h> |
56 | #include <kglobalsettings.h> | ||
56 | 57 | ||
57 | #include <klineedit.h> | 58 | #include <klineedit.h> |
58 | 59 | ||
59 | 60 | ||
60 | #include "koprefs.h" | 61 | #include "koprefs.h" |
61 | 62 | ||
62 | #include "koprefsdialog.h" | 63 | #include "koprefsdialog.h" |
63 | //#include <kprefswidget.h> | 64 | //#include <kprefswidget.h> |
64 | 65 | ||
65 | 66 | ||
66 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : | 67 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : |
67 | KPrefsDialog(KOPrefs::instance(),parent,name,true) | 68 | KPrefsDialog(KOPrefs::instance(),parent,name,true) |
68 | { | 69 | { |
69 | 70 | ||
71 | setFont( KGlobalSettings::generalFont() ); | ||
70 | setCaption( i18n("Settings - some need a restart (nr)")); | 72 | setCaption( i18n("Settings - some need a restart (nr)")); |
71 | setupGlobalTab(); | 73 | setupGlobalTab(); |
72 | setupMainTab(); | 74 | setupMainTab(); |
73 | setupMailTab();; | 75 | setupMailTab();; |
74 | setupFontsTab(); | 76 | setupFontsTab(); |
75 | readConfig(); | 77 | readConfig(); |
76 | #ifndef DESKTOP_VERSION | 78 | #ifndef DESKTOP_VERSION |
77 | if ( QApplication::desktop()->height() == 480 ) | 79 | if ( QApplication::desktop()->height() == 480 ) |
78 | hideButtons(); | 80 | hideButtons(); |
79 | #endif | 81 | #endif |
80 | 82 | ||
81 | #if 0 | 83 | #if 0 |
82 | 84 | ||
83 | setupMainTab(); | 85 | setupMainTab(); |
84 | setupLocaleTab(); | 86 | setupLocaleTab(); |
85 | setupTimeZoneTab(); | 87 | setupTimeZoneTab(); |
86 | setupTimeTab(); | 88 | setupTimeTab(); |
87 | setupLocaleDateTab(); | 89 | setupLocaleDateTab(); |
88 | setupFontsTab(); | 90 | setupFontsTab(); |
89 | setupColorsTab(); | 91 | setupColorsTab(); |
90 | setupViewsTab(); | 92 | setupViewsTab(); |
91 | //setupSyncTab(); | 93 | //setupSyncTab(); |
92 | //setupSyncAlgTab(); | 94 | //setupSyncAlgTab(); |
93 | //setupPrinterTab(); | 95 | //setupPrinterTab(); |
diff --git a/microkde/kutils/kcmultidialog.cpp b/microkde/kutils/kcmultidialog.cpp index 4daa4ff..bb41b18 100644 --- a/microkde/kutils/kcmultidialog.cpp +++ b/microkde/kutils/kcmultidialog.cpp | |||
@@ -11,57 +11,59 @@ | |||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <qhbox.h> | 22 | #include <qhbox.h> |
23 | #include <qvbox.h> | 23 | #include <qvbox.h> |
24 | #include <qcursor.h> | 24 | #include <qcursor.h> |
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | 26 | ||
27 | #include <klocale.h> | 27 | #include <klocale.h> |
28 | #include <kglobal.h> | 28 | #include <kglobal.h> |
29 | #include <kdebug.h> | 29 | #include <kdebug.h> |
30 | #include <kiconloader.h> | 30 | #include <kiconloader.h> |
31 | #include <kmessagebox.h> | 31 | #include <kmessagebox.h> |
32 | //US #include <klibloader.h> | 32 | //US #include <klibloader.h> |
33 | #include <krun.h> | 33 | #include <krun.h> |
34 | #include <kprocess.h> | 34 | #include <kprocess.h> |
35 | #include <kglobalsettings.h> | ||
35 | 36 | ||
36 | #include "kcmultidialog.h" | 37 | #include "kcmultidialog.h" |
37 | //US #include "kcmultidialog.moc" | 38 | //US #include "kcmultidialog.moc" |
38 | //US #include "kcmoduleloader.h" | 39 | //US #include "kcmoduleloader.h" |
39 | 40 | ||
40 | KCMultiDialog::KCMultiDialog(const QString& baseGroup, QWidget *parent, const char *name, bool modal) | 41 | KCMultiDialog::KCMultiDialog(const QString& baseGroup, QWidget *parent, const char *name, bool modal) |
41 | : KDialogBase(IconList, i18n("Configure"), Default |Cancel | Apply | Ok, Ok, | 42 | : KDialogBase(IconList, i18n("Configure"), Default |Cancel | Apply | Ok, Ok, |
42 | parent, name, modal, true), d(0L) | 43 | parent, name, modal, true), d(0L) |
43 | { | 44 | { |
45 | setFont( KGlobalSettings::generalFont() ); | ||
44 | enableButton(Apply, false); | 46 | enableButton(Apply, false); |
45 | //connect(this, SIGNAL(aboutToShowPage(QWidget *)), this, SLOT(slotAboutToShow(QWidget *))); | 47 | //connect(this, SIGNAL(aboutToShowPage(QWidget *)), this, SLOT(slotAboutToShow(QWidget *))); |
46 | 48 | ||
47 | connect( this, SIGNAL( defaultClicked() ), SLOT( slotDefault() ) ); | 49 | connect( this, SIGNAL( defaultClicked() ), SLOT( slotDefault() ) ); |
48 | 50 | ||
49 | _baseGroup = baseGroup; | 51 | _baseGroup = baseGroup; |
50 | mMainWidget = new KJanusWidget( this, "JanusWidget", KJanusWidget::Tabbed ); | 52 | mMainWidget = new KJanusWidget( this, "JanusWidget", KJanusWidget::Tabbed ); |
51 | setMainWidget(mMainWidget ); | 53 | setMainWidget(mMainWidget ); |
52 | #ifdef DESKTOP_VERSION | 54 | #ifdef DESKTOP_VERSION |
53 | resize(640,480); | 55 | resize(640,480); |
54 | #else | 56 | #else |
55 | //resize(640,480); | 57 | //resize(640,480); |
56 | //setMaximumSize( KMIN(KGlobal::getDesktopWidth()-5, 640), KMIN(KGlobal::getDesktopHeight()-20, 480)); | 58 | //setMaximumSize( KMIN(KGlobal::getDesktopWidth()-5, 640), KMIN(KGlobal::getDesktopHeight()-20, 480)); |
57 | resize(800,800); | 59 | resize(800,800); |
58 | setMaximumSize( 800, 800 ); | 60 | setMaximumSize( 800, 800 ); |
59 | //showMaximized(); | 61 | //showMaximized(); |
60 | #endif | 62 | #endif |
61 | 63 | ||
62 | } | 64 | } |
63 | 65 | ||
64 | KCMultiDialog::~KCMultiDialog() | 66 | KCMultiDialog::~KCMultiDialog() |
65 | { | 67 | { |
66 | //US moduleDict.setAutoDelete(true); | 68 | //US moduleDict.setAutoDelete(true); |
67 | } | 69 | } |