Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/menus/menuenums.cpp
- This file was copied from kmymoney/plugins/forecast/forecastview.h.
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | forecastview.h | 2 | menuenums.cpp | ||
3 | ------------------- | 3 | ------------------- | ||
4 | copyright : (C) 2018 by Łukasz Wojniłowicz | 4 | copyright : (C) 2017, 2018 by Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | ||
5 | email : lukasz.wojnilowicz@gmail.com | 5 | | ||
6 | ***************************************************************************/ | 6 | ***************************************************************************/ | ||
7 | 7 | | |||
8 | /*************************************************************************** | 8 | /*************************************************************************** | ||
9 | * * | 9 | * * | ||
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * | ||
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * | ||
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * | ||
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * | ||
14 | * * | 14 | * * | ||
15 | ***************************************************************************/ | 15 | ***************************************************************************/ | ||
16 | 16 | | |||
17 | #ifndef FORECASTVIEW_H | 17 | #include "menuenums.h" | ||
18 | #define FORECASTVIEW_H | | |||
19 | | ||||
20 | // ---------------------------------------------------------------------------- | | |||
21 | // KDE Includes | | |||
22 | 18 | | |||
23 | // ---------------------------------------------------------------------------- | 19 | // ---------------------------------------------------------------------------- | ||
24 | // QT Includes | 20 | // QT Includes | ||
25 | 21 | | |||
26 | // Project Includes | 22 | #include <QHash> | ||
27 | | ||||
28 | #include "kmymoneyplugin.h" | | |||
29 | 23 | | |||
30 | class KForecastView; | 24 | // ---------------------------------------------------------------------------- | ||
31 | 25 | // KDE Includes | |||
32 | class ForecastView : public KMyMoneyPlugin::Plugin | | |||
33 | { | | |||
34 | Q_OBJECT | | |||
35 | 26 | | |||
36 | public: | 27 | // ---------------------------------------------------------------------------- | ||
37 | explicit ForecastView(QObject *parent, const QVariantList &args); | 28 | // Project Includes | ||
38 | ~ForecastView() override; | | |||
39 | 29 | | |||
40 | void plug() override; | 30 | QHash<eMenu::Action, QAction *> pActions; | ||
41 | void unplug() override; | 31 | QHash<eMenu::Menu, QMenu *> pMenus; | ||
42 | 32 | | |||
43 | private: | | |||
44 | KForecastView* m_view; | | |||
45 | }; | | |||
46 | 33 | | |||
47 | #endif | |