reportabug
Qt application which allows users to create an issue for GitHub projects
 All Classes Namespaces Files Functions Variables
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:
52  explicit Reportabug(QWidget *parent = 0,
53  bool debugCmd = false);
57  ~Reportabug();
61  void externalUpdateTab();
66  void setCaptchaImage(QPixmap captcha);
67 
68 public slots:
72  void sendReport();
76  void showWindow();
81  void updateTabs(const int index);
82 
83 private:
87  bool debug;
91  bool modules[3];
95  Ui::Reportabug *ui;
96  // modules
100  GithubModule *github;
104  GitreportModule *gitreport;
108  void createActions();
112  void createComboBox();
120  int getNumberByIndex(const int index);
124  void initModules();
129  void keyPressEvent(QKeyEvent *pressedKey);
135  QString parseString(QString line);
136 };
137 
138 
139 #endif /* REPORTABUG_H */
The GithubModule class creates issue over GitHub.
Definition: githubmodule.h:53
~Reportabug()
Reportabug class destructor.
Reportabug(QWidget *parent=0, bool debugCmd=false)
Reportabug class constructor.
void updateTabs(const int index)
method which updates text
The Reportabug class is a main class of the application.
Definition: reportabug.h:42
void showWindow()
method which updates text and shows window
The GitreportModule class creates issue over GitReports.
Definition: gitreportmodule.h:43
void externalUpdateTab()
method which is used for update tabs from external classes
void setCaptchaImage(QPixmap captcha)
method which sets captcha image
void sendReport()
method which creates an issue