Changeset View
Changeset View
Standalone View
Standalone View
src/bugzillaintegration/reportassistantpages_bugzilla.h
Show All 24 Lines | |||||
25 | 25 | | |||
26 | #include "reportassistantpages_base.h" | 26 | #include "reportassistantpages_base.h" | ||
27 | 27 | | |||
28 | #include "ui_assistantpage_bugzilla_login.h" | 28 | #include "ui_assistantpage_bugzilla_login.h" | ||
29 | #include "ui_assistantpage_bugzilla_information.h" | 29 | #include "ui_assistantpage_bugzilla_information.h" | ||
30 | #include "ui_assistantpage_bugzilla_preview.h" | 30 | #include "ui_assistantpage_bugzilla_preview.h" | ||
31 | #include "ui_assistantpage_bugzilla_send.h" | 31 | #include "ui_assistantpage_bugzilla_send.h" | ||
32 | 32 | | |||
33 | #include <clients/bugfieldclient.h> | ||||
34 | | ||||
33 | namespace KWallet { class Wallet; } | 35 | namespace KWallet { class Wallet; } | ||
34 | class KCapacityBar; | 36 | class KCapacityBar; | ||
35 | 37 | | |||
36 | /** Bugzilla login **/ | 38 | /** Bugzilla login **/ | ||
37 | class BugzillaLoginPage: public ReportAssistantPage | 39 | class BugzillaLoginPage: public ReportAssistantPage | ||
38 | { | 40 | { | ||
39 | Q_OBJECT | 41 | Q_OBJECT | ||
40 | 42 | | |||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 81 | public: | |||
85 | bool isComplete() override; | 87 | bool isComplete() override; | ||
86 | bool showNextPage() override; | 88 | bool showNextPage() override; | ||
87 | 89 | | |||
88 | private Q_SLOTS: | 90 | private Q_SLOTS: | ||
89 | void showTitleExamples(); | 91 | void showTitleExamples(); | ||
90 | void showDescriptionHelpExamples(); | 92 | void showDescriptionHelpExamples(); | ||
91 | 93 | | |||
92 | void checkTexts(); | 94 | void checkTexts(); | ||
95 | void loadDistroCombo(); | ||||
93 | 96 | | |||
94 | private: | 97 | private: | ||
98 | void setDistros(const Bugzilla::BugField::Ptr &field); | ||||
99 | void setDistroComboError(const QString &error); | ||||
95 | int currentDescriptionCharactersCount(); | 100 | int currentDescriptionCharactersCount(); | ||
96 | 101 | | |||
97 | Ui::AssistantPageBugzillaInformation ui; | 102 | Ui::AssistantPageBugzillaInformation ui; | ||
98 | KCapacityBar * m_textCompleteBar; | 103 | KCapacityBar * m_textCompleteBar; | ||
99 | 104 | | |||
100 | bool m_textsOK; | 105 | bool m_textsOK; | ||
101 | bool m_distributionComboSetup; | | |||
102 | bool m_distroComboVisible; | | |||
103 | 106 | | |||
104 | int m_requiredCharacters; | 107 | int m_requiredCharacters; | ||
105 | }; | 108 | }; | ||
106 | 109 | | |||
107 | /** Preview report page **/ | 110 | /** Preview report page **/ | ||
108 | class BugzillaPreviewPage : public ReportAssistantPage | 111 | class BugzillaPreviewPage : public ReportAssistantPage | ||
109 | { | 112 | { | ||
110 | Q_OBJECT | 113 | Q_OBJECT | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |