25 #include <tqstringlist.h>
27 #include <kcombobox.h>
28 #include <tdelocale.h>
30 #include "configdialog.h"
32 #include "akregatorconfig.h"
33 #include "settings_advanced.h"
34 #include "settings_appearance.h"
35 #include "settings_archive.h"
36 #include "settings_browser.h"
37 #include "settings_general.h"
44 ConfigDialog::ConfigDialog(TQWidget* parent, const char* name, TDEConfigSkeleton* config, DialogType dialogType, int dialogButtons, ButtonCode defaultButton, bool modal) : TDEConfigDialog(parent, name, config, dialogType, dialogButtons, defaultButton, modal)
46 addPage( new SettingsGeneral( this, "General"), i18n( "General"), "package_settings");
47 addPage( new SettingsArchive( this, "Archive"), i18n( "Archive"), "package_settings");
48 m_settingsAppearance = new SettingsAppearance( this, "Appearance");
49 addPage(m_settingsAppearance, i18n( "Appearance"), "fonts");
50 addPage( new SettingsBrowser( this, "Browser"), i18n( "Browser"), "applications-internet");
51 m_settingsAdvanced = new SettingsAdvanced( this, "Advanced");
52 addPage(m_settingsAdvanced, i18n( "Advanced"), "applications-internet");
53 m_settingsAdvanced->selectFactory(Settings::archiveBackend());
57 void ConfigDialog::updateSettings()
59 Settings::setArchiveBackend(m_settingsAdvanced->selectedFactory());
60 TDEConfigDialog::updateSettings();
63 void ConfigDialog::updateWidgets()
65 m_settingsAdvanced->selectFactory(Settings::archiveBackend());
66 m_settingsAppearance->slider_minimumFontSize->setDisabled(m_config->isImmutable( "MinimumFontSize"));
67 m_settingsAppearance->slider_mediumFontSize->setDisabled(m_config->isImmutable( "MediumFontSize"));
68 m_settingsAppearance->lbl_MinimumFontSize->setDisabled(m_config->isImmutable( "MinimumFontSize"));
69 m_settingsAppearance->lbl_MediumFontSize->setDisabled(m_config->isImmutable( "MediumFontSize"));
70 TDEConfigDialog::updateWidgets();
73 ConfigDialog::~ConfigDialog() {}
77 #include "configdialog.moc"
|