Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/settings/ksettingskmymoney.cpp
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * This file is part of KMyMoney, A Personal Finance Manager by KDE | 2 | * This file is part of KMyMoney, A Personal Finance Manager by KDE | ||
3 | * Copyright (C) 2016 Christian Dávid <christian-david@web.de> | 3 | * Copyright (C) 2016 Christian Dávid <christian-david@web.de> | ||
4 | * (C) 2017 by Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | 4 | * (C) 2017, 2018 by Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | ||
5 | * | 5 | * | ||
6 | * This program is free software; you can redistribute it and/or | 6 | * This program is free software; you can redistribute it and/or | ||
7 | * modify it under the terms of the GNU General Public License | 7 | * modify it under the terms of the GNU General Public License | ||
8 | * as published by the Free Software Foundation; either version 2 | 8 | * as published by the Free Software Foundation; either version 2 | ||
9 | * of the License, or (at your option) any later version. | 9 | * of the License, or (at your option) any later version. | ||
10 | * | 10 | * | ||
11 | * This program is distributed in the hope that it will be useful, | 11 | * This program is distributed in the hope that it will be useful, | ||
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 14 Lines | |||||
27 | #include "ksettingsregister.h" | 27 | #include "ksettingsregister.h" | ||
28 | #include "ksettingsgpg.h" | 28 | #include "ksettingsgpg.h" | ||
29 | #include "ksettingscolors.h" | 29 | #include "ksettingscolors.h" | ||
30 | #include "ksettingsfonts.h" | 30 | #include "ksettingsfonts.h" | ||
31 | #include "ksettingsicons.h" | 31 | #include "ksettingsicons.h" | ||
32 | #include "ksettingsschedules.h" | 32 | #include "ksettingsschedules.h" | ||
33 | #include "ksettingsonlinequotes.h" | 33 | #include "ksettingsonlinequotes.h" | ||
34 | #include "ksettingshome.h" | 34 | #include "ksettingshome.h" | ||
35 | #include "ksettingsreports.h" | | |||
36 | #include "ksettingsplugins.h" | 35 | #include "ksettingsplugins.h" | ||
37 | 36 | | |||
38 | #include "icons.h" | 37 | #include "icons.h" | ||
39 | 38 | | |||
40 | using namespace Icons; | 39 | using namespace Icons; | ||
41 | 40 | | |||
42 | KSettingsKMyMoney::KSettingsKMyMoney(QWidget *parent, const QString &name, KCoreConfigSkeleton *config) | 41 | KSettingsKMyMoney::KSettingsKMyMoney(QWidget *parent, const QString &name, KCoreConfigSkeleton *config) | ||
43 | : KConfigDialog(parent, name, config) | 42 | : KConfigDialog(parent, name, config) | ||
44 | { | 43 | { | ||
45 | // create the pages ... | 44 | // create the pages ... | ||
46 | const auto generalPage = new KSettingsGeneral(); | 45 | const auto generalPage = new KSettingsGeneral(); | ||
47 | const auto registerPage = new KSettingsRegister(); | 46 | const auto registerPage = new KSettingsRegister(); | ||
48 | const auto homePage = new KSettingsHome(); | 47 | const auto homePage = new KSettingsHome(); | ||
49 | const auto schedulesPage = new KSettingsSchedules(); | 48 | const auto schedulesPage = new KSettingsSchedules(); | ||
50 | const auto encryptionPage = new KSettingsGpg(); | 49 | const auto encryptionPage = new KSettingsGpg(); | ||
51 | const auto colorsPage = new KSettingsColors(); | 50 | const auto colorsPage = new KSettingsColors(); | ||
52 | const auto fontsPage = new KSettingsFonts(); | 51 | const auto fontsPage = new KSettingsFonts(); | ||
53 | const auto iconsPage = new KSettingsIcons(); | 52 | const auto iconsPage = new KSettingsIcons(); | ||
54 | const auto onlineQuotesPage = new KSettingsOnlineQuotes(); | 53 | const auto onlineQuotesPage = new KSettingsOnlineQuotes(); | ||
55 | const auto reportsPage = new KSettingsReports(); | | |||
56 | const auto pluginsPage = new KSettingsPlugins(); | 54 | const auto pluginsPage = new KSettingsPlugins(); | ||
57 | 55 | | |||
58 | addPage(generalPage, i18nc("General settings", "General"), Icons::get(Icon::SystemRun).name()); | 56 | addPage(generalPage, i18nc("General settings", "General"), Icons::get(Icon::SystemRun).name()); | ||
59 | addPage(homePage, i18n("Home"), Icons::get(Icon::ViewHome).name()); | 57 | addPage(homePage, i18n("Home"), Icons::get(Icon::ViewHome).name()); | ||
60 | addPage(registerPage, i18nc("Ledger view settings", "Ledger"), Icons::get(Icon::ViewFinancialList).name()); | 58 | addPage(registerPage, i18nc("Ledger view settings", "Ledger"), Icons::get(Icon::ViewFinancialList).name()); | ||
61 | addPage(schedulesPage, i18n("Scheduled\u2028transactions"), Icons::get(Icon::ViewSchedules).name()); | 59 | addPage(schedulesPage, i18n("Scheduled\u2028transactions"), Icons::get(Icon::ViewSchedules).name()); | ||
62 | addPage(onlineQuotesPage, i18n("Online Quotes"), Icons::get(Icon::PreferencesNetwork).name()); | 60 | addPage(onlineQuotesPage, i18n("Online Quotes"), Icons::get(Icon::PreferencesNetwork).name()); | ||
63 | addPage(reportsPage, i18nc("Report settings", "Reports"), Icons::get(Icon::ViewReports).name()); | | |||
64 | addPage(encryptionPage, i18n("Encryption"), Icons::get(Icon::Kgpg).name()); | 61 | addPage(encryptionPage, i18n("Encryption"), Icons::get(Icon::Kgpg).name()); | ||
65 | addPage(colorsPage, i18n("Colors"), Icons::get(Icon::PreferencesColor).name()); | 62 | addPage(colorsPage, i18n("Colors"), Icons::get(Icon::PreferencesColor).name()); | ||
66 | addPage(fontsPage, i18n("Fonts"), Icons::get(Icon::PreferencesFont).name()); | 63 | addPage(fontsPage, i18n("Fonts"), Icons::get(Icon::PreferencesFont).name()); | ||
67 | addPage(iconsPage, i18n("Icons"), Icons::get(Icon::PreferencesIcon).name()); | 64 | addPage(iconsPage, i18n("Icons"), Icons::get(Icon::PreferencesIcon).name()); | ||
68 | addPage(pluginsPage, i18n("Plugins"), Icons::get(Icon::NetworkDisconect).name(), QString(), false); | 65 | addPage(pluginsPage, i18n("Plugins"), Icons::get(Icon::NetworkDisconect).name(), QString(), false); | ||
69 | 66 | | |||
70 | setHelp("details.settings", "kmymoney"); | 67 | setHelp("details.settings", "kmymoney"); | ||
71 | 68 | | |||
Show All 18 Lines |