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 #include "config.h"
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();
63 
64 public slots:
68  void sendReport();
72  void showWindow();
77  void updateTabs(const int index);
78 
79 private:
83  bool debug;
87  bool modules[3];
91  Ui::Reportabug *ui;
92  // modules
96  GithubModule *github;
100  GitreportModule *gitreport;
104  void createActions();
108  void createComboBox();
116  int getNumberByIndex(const int index);
120  void initModules();
125  void keyPressEvent(QKeyEvent *pressedKey);
131  QString parseString(QString line);
132 };
133 
134 
135 #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:42
void externalUpdateTab()
method which is used for update tabs from external classes
void sendReport()
method which creates an issue