Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/icalendar/export/kcm_icalendarexporter.cpp
- This file was moved from kmymoney/plugins/icalendarexport/kcm_icalendarexport.cpp.
Show All 12 Lines | |||||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
15 | * GNU General Public License for more details. * | 15 | * GNU General Public License for more details. * | ||
16 | * * | 16 | * * | ||
17 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
18 | * along with this program. If not, see <http://www.gnu.org/licenses/> * | 18 | * along with this program. If not, see <http://www.gnu.org/licenses/> * | ||
19 | ***************************************************************************/ | 19 | ***************************************************************************/ | ||
20 | 20 | | |||
21 | #include "kcm_icalendarexport.h" | 21 | #include "kcm_icalendarexporter.h" | ||
22 | #include <config-kmymoney-version.h> | 22 | #include <config-kmymoney-version.h> | ||
23 | 23 | | |||
24 | // Qt includes | 24 | // Qt includes | ||
25 | #include <QComboBox> | 25 | #include <QComboBox> | ||
26 | #include <QBoxLayout> | 26 | #include <QBoxLayout> | ||
27 | 27 | | |||
28 | // KDE includes | 28 | // KDE includes | ||
29 | #include <KPluginFactory> | 29 | #include <KPluginFactory> | ||
Show All 17 Lines | 39 | PluginSettingsWidget(QWidget* parent = 0) : QWidget(parent) { | |||
47 | kcfg_intervalBetweenRemindersTimeUnitInSeconds->addItem(i18n("Hours")); | 47 | kcfg_intervalBetweenRemindersTimeUnitInSeconds->addItem(i18n("Hours")); | ||
48 | kcfg_intervalBetweenRemindersTimeUnitInSeconds->addItem(i18nc("Time unit", "Days")); | 48 | kcfg_intervalBetweenRemindersTimeUnitInSeconds->addItem(i18nc("Time unit", "Days")); | ||
49 | 49 | | |||
50 | kcfg_beforeAfter->addItem(i18n("Before")); | 50 | kcfg_beforeAfter->addItem(i18n("Before")); | ||
51 | kcfg_beforeAfter->addItem(i18n("After")); | 51 | kcfg_beforeAfter->addItem(i18n("After")); | ||
52 | } | 52 | } | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | K_PLUGIN_FACTORY_WITH_JSON(KCMiCalendarExportFactory, | 55 | KCMiCalendarExporter::KCMiCalendarExporter(QWidget *parent, const QVariantList& args) | ||
56 | "kcm_kmm_icalendarexport.json", | | |||
57 | registerPlugin<KCMiCalendarExport>(); | | |||
58 | ) | | |||
59 | | ||||
60 | KCMiCalendarExport::KCMiCalendarExport(QWidget *parent, const QVariantList& args) | | |||
61 | : KCModule(parent, args) | 56 | : KCModule(parent, args) | ||
62 | { | 57 | { | ||
63 | KAboutData *about = new KAboutData(QStringLiteral("kmm_printcheck"), | 58 | KAboutData *about = new KAboutData(QStringLiteral("kmm_printcheck"), | ||
64 | i18n("KMyMoney print check"), | 59 | i18n("KMyMoney print check"), | ||
65 | QStringLiteral(VERSION), QString(), | 60 | QStringLiteral(VERSION), QString(), | ||
66 | KAboutLicense::GPL, | 61 | KAboutLicense::GPL, | ||
67 | i18n("Copyright 2009" ) ); | 62 | i18n("Copyright 2009" ) ); | ||
68 | about->addAuthor( QString::fromUtf8("Cristian Oneț") ); | 63 | about->addAuthor( QString::fromUtf8("Cristian Oneț") ); | ||
69 | 64 | | |||
70 | setAboutData( about ); | 65 | setAboutData( about ); | ||
71 | 66 | | |||
72 | PluginSettingsWidget *w = new PluginSettingsWidget(this); | 67 | PluginSettingsWidget *w = new PluginSettingsWidget(this); | ||
73 | addConfig(PluginSettings::self(), w); | 68 | addConfig(PluginSettings::self(), w); | ||
74 | QVBoxLayout *layout = new QVBoxLayout; | 69 | QVBoxLayout *layout = new QVBoxLayout; | ||
75 | setLayout(layout); | 70 | setLayout(layout); | ||
76 | layout->addWidget(w); | 71 | layout->addWidget(w); | ||
77 | load(); | 72 | load(); | ||
78 | } | 73 | } | ||
79 | 74 | | |||
80 | KCMiCalendarExport::~KCMiCalendarExport() | 75 | KCMiCalendarExporter::~KCMiCalendarExporter() | ||
81 | { | 76 | { | ||
82 | } | 77 | } | ||
83 | 78 | | |||
84 | #include "kcm_icalendarexport.moc" | 79 | K_PLUGIN_FACTORY_WITH_JSON(KCMiCalendarExporterFactory, | ||
80 | "kcm_icalendarexporter.json", | ||||
81 | registerPlugin<KCMiCalendarExporter>(); | ||||
82 | ) | ||||
83 | | ||||
84 | #include "kcm_icalendarexporter.moc" |