Changeset View
Changeset View
Standalone View
Standalone View
src/configdialog/ConfigDialog.cpp
Show All 21 Lines | |||||
22 | #include "ConfigDialogBase.h" | 22 | #include "ConfigDialogBase.h" | ||
23 | #include "configdialog/dialogs/CollectionConfig.h" | 23 | #include "configdialog/dialogs/CollectionConfig.h" | ||
24 | #include "configdialog/dialogs/DatabaseConfig.h" | 24 | #include "configdialog/dialogs/DatabaseConfig.h" | ||
25 | #include "configdialog/dialogs/GeneralConfig.h" | 25 | #include "configdialog/dialogs/GeneralConfig.h" | ||
26 | #include "configdialog/dialogs/MetadataConfig.h" | 26 | #include "configdialog/dialogs/MetadataConfig.h" | ||
27 | #include "configdialog/dialogs/NotificationsConfig.h" | 27 | #include "configdialog/dialogs/NotificationsConfig.h" | ||
28 | #include "configdialog/dialogs/PlaybackConfig.h" | 28 | #include "configdialog/dialogs/PlaybackConfig.h" | ||
29 | #include "configdialog/dialogs/PluginsConfig.h" | 29 | #include "configdialog/dialogs/PluginsConfig.h" | ||
30 | #include "configdialog/dialogs/ScriptsConfig.h" | | |||
31 | #include "core/support/Amarok.h" | 30 | #include "core/support/Amarok.h" | ||
32 | #include "core/support/Debug.h" | 31 | #include "core/support/Debug.h" | ||
33 | 32 | | |||
34 | #include <KLocalizedString> | 33 | #include <KLocalizedString> | ||
35 | 34 | | |||
36 | 35 | | |||
37 | QString Amarok2ConfigDialog::s_currentPage = "GeneralConfig"; | 36 | QString Amarok2ConfigDialog::s_currentPage = "GeneralConfig"; | ||
38 | 37 | | |||
Show All 9 Lines | 44 | { | |||
48 | 47 | | |||
49 | ConfigDialogBase *general = new GeneralConfig( this ); | 48 | ConfigDialogBase *general = new GeneralConfig( this ); | ||
50 | ConfigDialogBase *collection = new CollectionConfig( this ); | 49 | ConfigDialogBase *collection = new CollectionConfig( this ); | ||
51 | ConfigDialogBase *metadata = new MetadataConfig( this ); | 50 | ConfigDialogBase *metadata = new MetadataConfig( this ); | ||
52 | ConfigDialogBase *playback = new PlaybackConfig( this ); | 51 | ConfigDialogBase *playback = new PlaybackConfig( this ); | ||
53 | ConfigDialogBase *notify = new NotificationsConfig( this ); | 52 | ConfigDialogBase *notify = new NotificationsConfig( this ); | ||
54 | ConfigDialogBase *database = new DatabaseConfig( this, config ); | 53 | ConfigDialogBase *database = new DatabaseConfig( this, config ); | ||
55 | ConfigDialogBase *plugins = new PluginsConfig( this ); | 54 | ConfigDialogBase *plugins = new PluginsConfig( this ); | ||
56 | ConfigDialogBase *scripts = new ScriptsConfig( this ); | | |||
57 | //ConfigDialogBase* mediadevice = new MediadeviceConfig( this ); | 55 | //ConfigDialogBase* mediadevice = new MediadeviceConfig( this ); | ||
58 | 56 | | |||
59 | addPage( general, i18nc( "Miscellaneous settings", "General" ), "preferences-other-amarok", i18n( "Configure General Options" ) ); | 57 | addPage( general, i18nc( "Miscellaneous settings", "General" ), "preferences-other-amarok", i18n( "Configure General Options" ) ); | ||
60 | addPage( collection, i18n( "Local Collection" ), "drive-harddisk", i18n( "Configure Local Collection" ) ); | 58 | addPage( collection, i18n( "Local Collection" ), "drive-harddisk", i18n( "Configure Local Collection" ) ); | ||
61 | addPage( metadata, i18n( "Metadata" ), "amarok_playcount", i18n( "Configure Metadata Handling" ) ); | 59 | addPage( metadata, i18n( "Metadata" ), "amarok_playcount", i18n( "Configure Metadata Handling" ) ); | ||
62 | addPage( playback, i18n( "Playback" ), "preferences-media-playback-amarok", i18n( "Configure Playback" ) ); | 60 | addPage( playback, i18n( "Playback" ), "preferences-media-playback-amarok", i18n( "Configure Playback" ) ); | ||
63 | addPage( notify, i18n( "Notifications" ), "preferences-indicator-amarok", i18n( "Configure Notifications" ) ); | 61 | addPage( notify, i18n( "Notifications" ), "preferences-indicator-amarok", i18n( "Configure Notifications" ) ); | ||
64 | addPage( database, i18n( "Database" ), "server-database", i18n( "Configure Database" ) ); | 62 | addPage( database, i18n( "Database" ), "server-database", i18n( "Configure Database" ) ); | ||
65 | addPage( plugins, i18n( "Plugins" ), "preferences-plugin", i18n( "Configure Plugins" ) ); | 63 | addPage( plugins, i18n( "Plugins" ), "preferences-plugin", i18n( "Configure Plugins" ) ); | ||
66 | addPage( scripts, i18n( "Scripts" ), "preferences-plugin-script", i18n( "Configure Scripts" ) ); | | |||
67 | //addPage( mediadevice, i18n( "Media Devices" ), "preferences-multimedia-player-amarok", i18n( "Configure Portable Player Support" ) ); | 64 | //addPage( mediadevice, i18n( "Media Devices" ), "preferences-multimedia-player-amarok", i18n( "Configure Portable Player Support" ) ); | ||
68 | 65 | | |||
69 | QPushButton *okButton = buttonBox()->button(QDialogButtonBox::Ok); | 66 | QPushButton *okButton = buttonBox()->button(QDialogButtonBox::Ok); | ||
70 | okButton->setDefault(true); | 67 | okButton->setDefault(true); | ||
71 | okButton->setShortcut(Qt::CTRL | Qt::Key_Return); | 68 | okButton->setShortcut(Qt::CTRL | Qt::Key_Return); | ||
72 | 69 | | |||
73 | KWindowConfig::restoreWindowSize(windowHandle(), Amarok::config( "ConfigDialog" )); | 70 | KWindowConfig::restoreWindowSize(windowHandle(), Amarok::config( "ConfigDialog" )); | ||
74 | } | 71 | } | ||
▲ Show 20 Lines • Show All 147 Lines • Show Last 20 Lines |