reportabug
Qt application which allows users to create an issue for GitHub projects
 All Classes Namespaces Files Functions Variables Macros
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 <QLocale>
30 #include <QMainWindow>
31 
32 
33 class GithubModule;
34 class GitreportModule;
35 
36 namespace Ui {
37 class Reportabug;
38 }
39 
43 class Reportabug : public QMainWindow
44 {
45  Q_OBJECT
46 
47 public:
53  explicit Reportabug(QWidget *parent = 0,
54  bool debugCmd = false);
58  ~Reportabug();
62  void externalUpdateTab();
67  void setCaptchaImage(QPixmap captcha);
68 
69 public slots:
73  void sendReport();
77  void showWindow();
82  void updateTabs(const int index);
83 
84 private:
88  bool debug;
92  bool modules[3];
96  Ui::Reportabug *ui;
97  // modules
101  GithubModule *github;
105  GitreportModule *gitreport;
109  void createActions();
113  void createComboBox();
121  int getNumberByIndex(const int index);
125  void initModules();
130  void keyPressEvent(QKeyEvent *pressedKey);
136  QString parseString(QString line);
137 };
138 
139 
140 #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:43
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