Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kcurrencyeditdlg.h
Context not available. | |||||
36 | // ---------------------------------------------------------------------------- | 36 | // ---------------------------------------------------------------------------- | ||
---|---|---|---|---|---|
37 | // Project Includes | 37 | // Project Includes | ||
38 | 38 | | |||
39 | #include "mymoneysecurity.h" | | |||
40 | | ||||
41 | namespace Ui | | |||
42 | { | | |||
43 | class KCurrencyEditDlg; | | |||
44 | } | | |||
45 | | ||||
46 | class QTreeWidgetItem; | 39 | class QTreeWidgetItem; | ||
47 | class KAvailableCurrencyDlg; | 40 | class KAvailableCurrencyDlg; | ||
48 | class KCurrencyEditorDlg; | 41 | class KCurrencyEditorDlg; | ||
49 | class KTreeWidgetSearchLineWidget; | 42 | class KTreeWidgetSearchLineWidget; | ||
50 | 43 | | |||
44 | class MyMoneySecurity; | ||||
51 | /** | 45 | /** | ||
52 | * @author Thomas Baumgart | 46 | * @author Thomas Baumgart | ||
53 | */ | 47 | */ | ||
48 | class KCurrencyEditDlgPrivate; | ||||
54 | class KCurrencyEditDlg : public QDialog | 49 | class KCurrencyEditDlg : public QDialog | ||
55 | { | 50 | { | ||
56 | Q_OBJECT | 51 | Q_OBJECT | ||
52 | Q_DISABLE_COPY(KCurrencyEditDlg) | ||||
53 | | ||||
57 | public: | 54 | public: | ||
58 | KCurrencyEditDlg(QWidget *parent = 0); | 55 | explicit KCurrencyEditDlg(QWidget *parent = nullptr); | ||
59 | ~KCurrencyEditDlg(); | 56 | ~KCurrencyEditDlg(); | ||
60 | 57 | | |||
61 | Ui::KCurrencyEditDlg* ui; | | |||
62 | | ||||
63 | public slots: | 58 | public slots: | ||
64 | void slotSelectCurrency(const QString& id); | 59 | void slotSelectCurrency(const QString& id); | ||
65 | 60 | | |||
66 | protected: | | |||
67 | | ||||
68 | | ||||
69 | protected slots: | 61 | protected slots: | ||
70 | void slotSelectCurrency(QTreeWidgetItem *); | 62 | void slotSelectCurrency(QTreeWidgetItem *citem, QTreeWidgetItem *pitem); | ||
63 | void slotSelectCurrency(QTreeWidgetItem *item); | ||||
71 | void slotItemSelectionChanged(); | 64 | void slotItemSelectionChanged(); | ||
72 | void slotStartRename(); | 65 | void slotStartRename(); | ||
73 | void slotOpenContextMenu(const QPoint& p); | 66 | void slotOpenContextMenu(const QPoint& p); | ||
74 | void slotLoadCurrencies(); | 67 | void slotLoadCurrencies(); | ||
75 | void slotUpdateCurrency(QTreeWidgetItem *item); | 68 | void slotUpdateCurrency(QTreeWidgetItem* citem, int column); | ||
69 | void slotUpdateCurrency(QTreeWidgetItem *citem, QTreeWidgetItem *pitem); | ||||
76 | 70 | | |||
77 | private slots: | 71 | private slots: | ||
78 | void timerDone(); | 72 | void timerDone(); | ||
Context not available. | |||||
89 | void selectBaseCurrency(const MyMoneySecurity& currency); | 83 | void selectBaseCurrency(const MyMoneySecurity& currency); | ||
90 | 84 | | |||
91 | private: | 85 | private: | ||
92 | typedef enum:int { RemoveSelected, RemoveUnused} removalModeE; | 86 | KCurrencyEditDlgPrivate * const d_ptr; | ||
93 | KAvailableCurrencyDlg* m_availableCurrencyDlg; | 87 | Q_DECLARE_PRIVATE(KCurrencyEditDlg) | ||
94 | KCurrencyEditorDlg* m_currencyEditorDlg; | | |||
95 | MyMoneySecurity m_currency; | | |||
96 | /** | | |||
97 | * Search widget for the list | | |||
98 | */ | | |||
99 | KTreeWidgetSearchLineWidget* m_searchWidget; | | |||
100 | void removeCurrency(const removalModeE& mode); | | |||
101 | }; | 88 | }; | ||
102 | 89 | | |||
103 | #endif | 90 | #endif | ||
Context not available. |