reportabug Qt application which allows users to create an issue for GitHub projects

- Main Page
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Macros
src/reportabug.h
Go to the documentation of this file.
1 /***************************************************************************
2 * This file is part of reportabug *
3 * *
4 * This library is free software; you can redistribute it and/or *
5 * modify it under the terms of the GNU Lesser General Public *
6 * License as published by the Free Software Foundation; either *
7 * version 3.0 of the License, or (at your option) any later version. *
8 * *
9 * This library is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12 * Lesser General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU Lesser General Public *
15 * License along with this library. *
16 ***************************************************************************/
25 #ifndef REPORTABUG_H
26 #define REPORTABUG_H
27
28 #include <QKeyEvent>
29 #include <QMainWindow>
30
31
32 class GithubModule;
33 class GitreportModule;
34
35 namespace Ui {
36 class Reportabug;
37 }
38
42 class Reportabug : public QMainWindow
43 {
44 Q_OBJECT
45
46 public:
53 explicit Reportabug(QWidget *parent = 0,
54 bool debugCmd = false,
55 QMap<QString, QString> params = QMap<QString, QString>());
59 ~Reportabug();
63 void externalUpdateTab();
68 void setCaptchaImage(QPixmap captcha);
69
70 public slots:
74 void sendReport();
78 void showWindow();
83 void updateTabs(const int index);
84
85 private:
89 bool debug;
93 QMap<QString, QString> dynamic;
97 bool modules[3];
101 Ui::Reportabug *ui;
102 // modules
106 GithubModule *github;
110 GitreportModule *gitreport;
114 void createActions();
118 void createComboBox();
126 int getNumberByIndex(const int index);
130 void initModules();
135 void keyPressEvent(QKeyEvent *pressedKey);
141 QString parseString(QString line);
142 };
143
144
145 #endif /* REPORTABUG_H */
GithubModule
The GithubModule class creates issue over GitHub.
Definition: githubmodule.h:53
Reportabug::~Reportabug
~Reportabug()
Reportabug class destructor.
Reportabug::updateTabs
void updateTabs(const int index)
method which updates text
Reportabug
The Reportabug class is a main class of the application.
Definition: reportabug.h:42
Reportabug::showWindow
void showWindow()
method which updates text and shows window
GitreportModule
The GitreportModule class creates issue over GitReports.
Definition: gitreportmodule.h:43
Reportabug::externalUpdateTab
void externalUpdateTab()
method which is used for update tabs from external classes
Reportabug::setCaptchaImage
void setCaptchaImage(QPixmap captcha)
method which sets captcha image
Reportabug::sendReport
void sendReport()
method which creates an issue
Reportabug::Reportabug
Reportabug(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())
Reportabug class constructor.