Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kcurrencyeditdlg.h
Show All 33 Lines | |||||
34 | #include <QDialog> | 34 | #include <QDialog> | ||
35 | #include <ktreewidgetsearchlinewidget.h> | 35 | #include <ktreewidgetsearchlinewidget.h> | ||
36 | 36 | | |||
37 | // ---------------------------------------------------------------------------- | 37 | // ---------------------------------------------------------------------------- | ||
38 | // Project Includes | 38 | // Project Includes | ||
39 | 39 | | |||
40 | #include "ui_kcurrencyeditdlg.h" | 40 | #include "ui_kcurrencyeditdlg.h" | ||
41 | #include "ui_kavailablecurrencydlg.h" | 41 | #include "ui_kavailablecurrencydlg.h" | ||
42 | #include "ui_kcurrencyeditordlg.h" | ||||
42 | #include "mymoneysecurity.h" | 43 | #include "mymoneysecurity.h" | ||
43 | 44 | | |||
44 | namespace Ui | 45 | namespace Ui | ||
45 | { | 46 | { | ||
46 | class KCurrencyEditDlg; | 47 | class KCurrencyEditDlg; | ||
47 | } | 48 | } | ||
48 | 49 | | |||
49 | class QTreeWidgetItem; | 50 | class QTreeWidgetItem; | ||
50 | class KAvailableCurrencyDlg; | 51 | class KAvailableCurrencyDlg; | ||
52 | class KCurrencyEditorDlg; | ||||
51 | 53 | | |||
52 | /** | 54 | /** | ||
53 | * @author Thomas Baumgart | 55 | * @author Thomas Baumgart | ||
54 | */ | 56 | */ | ||
55 | class KCurrencyEditDlg : public QDialog | 57 | class KCurrencyEditDlg : public QDialog | ||
56 | { | 58 | { | ||
57 | Q_OBJECT | 59 | Q_OBJECT | ||
58 | public: | 60 | public: | ||
Show All 17 Lines | 72 | protected slots: | |||
76 | void slotUpdateCurrency(QTreeWidgetItem *item); | 78 | void slotUpdateCurrency(QTreeWidgetItem *item); | ||
77 | 79 | | |||
78 | private slots: | 80 | private slots: | ||
79 | void timerDone(); | 81 | void timerDone(); | ||
80 | void slotSelectBaseCurrency(); | 82 | void slotSelectBaseCurrency(); | ||
81 | void slotAddCurrency(); | 83 | void slotAddCurrency(); | ||
82 | void slotRemoveCurrency(); | 84 | void slotRemoveCurrency(); | ||
83 | void slotRemoveUnusedCurrency(); | 85 | void slotRemoveUnusedCurrency(); | ||
86 | void slotEditCurrency(); | ||||
84 | 87 | | |||
85 | signals: | 88 | signals: | ||
86 | void selectObject(const MyMoneySecurity& currency); | 89 | void selectObject(const MyMoneySecurity& currency); | ||
87 | void openContextMenu(const MyMoneySecurity& currency); | 90 | void openContextMenu(const MyMoneySecurity& currency); | ||
88 | void updateCurrency(const QString ¤cyId, const QString& currencyName, const QString& currencyTradingSymbol); | 91 | void updateCurrency(const QString ¤cyId, const QString& currencyName, const QString& currencyTradingSymbol); | ||
89 | void selectBaseCurrency(const MyMoneySecurity& currency); | 92 | void selectBaseCurrency(const MyMoneySecurity& currency); | ||
90 | 93 | | |||
91 | private: | 94 | private: | ||
92 | typedef enum:int { RemoveSelected, RemoveUnused} removalModeE; | 95 | typedef enum:int { RemoveSelected, RemoveUnused} removalModeE; | ||
93 | KAvailableCurrencyDlg* m_availableCurrencyDlg; | 96 | KAvailableCurrencyDlg* m_availableCurrencyDlg; | ||
97 | KCurrencyEditorDlg* m_currencyEditorDlg; | ||||
94 | MyMoneySecurity m_currency; | 98 | MyMoneySecurity m_currency; | ||
95 | /** | 99 | /** | ||
96 | * Search widget for the list | 100 | * Search widget for the list | ||
97 | */ | 101 | */ | ||
98 | KTreeWidgetSearchLineWidget* m_searchWidget; | 102 | KTreeWidgetSearchLineWidget* m_searchWidget; | ||
99 | void removeCurrency(const removalModeE& mode); | 103 | void removeCurrency(const removalModeE& mode); | ||
100 | }; | 104 | }; | ||
101 | 105 | | |||
102 | #endif | 106 | #endif |