Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kgncimportoptionsdlg.h
Context not available. | |||||
2 | kgncimportoptions.h | 2 | kgncimportoptions.h | ||
---|---|---|---|---|---|
3 | ------------------- | 3 | ------------------- | ||
4 | copyright : (C) 2005 by Tony Bloomfield <tonybloom@users.sourceforge.net> | 4 | copyright : (C) 2005 by Tony Bloomfield <tonybloom@users.sourceforge.net> | ||
5 | (C) 2017 by Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | ||||
5 | 6 | | |||
6 | ***************************************************************************/ | 7 | ***************************************************************************/ | ||
7 | 8 | | |||
Context not available. | |||||
20 | // ---------------------------------------------------------------------------- | 21 | // ---------------------------------------------------------------------------- | ||
21 | // QT Includes | 22 | // QT Includes | ||
22 | 23 | | |||
23 | #include <QButtonGroup> | | |||
24 | #include <QCheckBox> | | |||
25 | #include <QDialog> | 24 | #include <QDialog> | ||
26 | 25 | | |||
27 | // ---------------------------------------------------------------------------- | 26 | // ---------------------------------------------------------------------------- | ||
Context not available. | |||||
29 | 28 | | |||
30 | // ---------------------------------------------------------------------------- | 29 | // ---------------------------------------------------------------------------- | ||
31 | // Project Includes | 30 | // Project Includes | ||
32 | #include "ui_kgncimportoptionsdlgdecl.h" | | |||
33 | 31 | | |||
34 | class QTextCodec; | 32 | class QTextCodec; | ||
35 | class KGncImportOptionsDlgDecl : public QWidget, public Ui::KGncImportOptionsDlgDecl | | |||
36 | { | | |||
37 | public: | | |||
38 | KGncImportOptionsDlgDecl() { | | |||
39 | setupUi(this); | | |||
40 | } | | |||
41 | }; | | |||
42 | 33 | | |||
34 | class KGncImportOptionsDlgPrivate; | ||||
43 | class KGncImportOptionsDlg : public QDialog | 35 | class KGncImportOptionsDlg : public QDialog | ||
44 | { | 36 | { | ||
45 | Q_OBJECT | 37 | Q_OBJECT | ||
38 | Q_DISABLE_COPY(KGncImportOptionsDlg) | ||||
39 | | ||||
46 | public: | 40 | public: | ||
47 | KGncImportOptionsDlg(QWidget *parent = 0); | 41 | explicit KGncImportOptionsDlg(QWidget *parent = nullptr); | ||
48 | ~KGncImportOptionsDlg(); | 42 | ~KGncImportOptionsDlg(); | ||
49 | 43 | | |||
50 | int investmentOption() const { | 44 | int investmentOption() const; | ||
51 | return (m_widget->buttonInvestGroup->checkedId()); | 45 | bool quoteOption() const; | ||
52 | }; | 46 | bool scheduleOption() const; | ||
53 | bool quoteOption() const { | | |||
54 | return (m_widget->checkFinanceQuote->isChecked()); | | |||
55 | }; | | |||
56 | bool scheduleOption() const { | | |||
57 | return (m_widget->checkSchedules->isChecked()); | | |||
58 | }; | | |||
59 | QTextCodec* decodeOption(); | 47 | QTextCodec* decodeOption(); | ||
60 | bool txNotesOption() const { | 48 | bool txNotesOption() const; | ||
61 | return (m_widget->checkTxNotes->isChecked()); | 49 | bool generalDebugOption() const; | ||
62 | }; | 50 | bool xmlDebugOption() const; | ||
63 | bool generalDebugOption() const { | 51 | bool anonymizeOption() const; | ||
64 | return (m_widget->checkDebugGeneral->isChecked()); | | |||
65 | }; | | |||
66 | bool xmlDebugOption() const { | | |||
67 | return (m_widget->checkDebugXML->isChecked()); | | |||
68 | }; | | |||
69 | bool anonymizeOption() const { | | |||
70 | return (m_widget->checkAnonymize->isChecked()); | | |||
71 | }; | | |||
72 | 52 | | |||
73 | public slots: | 53 | public slots: | ||
74 | void slotDecodeOptionChanged(bool); | 54 | void slotDecodeOptionChanged(bool); | ||
75 | void slotHelp(); | 55 | void slotHelp(); | ||
76 | 56 | | |||
77 | private: | 57 | private: | ||
78 | void buildCodecList(); | 58 | KGncImportOptionsDlgPrivate * const d_ptr; | ||
79 | 59 | Q_DECLARE_PRIVATE(KGncImportOptionsDlg) | |||
80 | QTextCodec* m_localeCodec; | | |||
81 | KGncImportOptionsDlgDecl* m_widget; | | |||
82 | }; | 60 | }; | ||
83 | 61 | | |||
84 | #endif | 62 | #endif | ||
Context not available. |