sendReport()
: Reportabug
@@ -133,7 +133,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/devs/reportabug/functions_vars.html b/devs/reportabug/functions_vars.html
index 96c986f..e52477b 100644
--- a/devs/reportabug/functions_vars.html
+++ b/devs/reportabug/functions_vars.html
@@ -97,7 +97,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/devs/reportabug/githubmodule_8h.html b/devs/reportabug/githubmodule_8h.html
index 8952441..348f9c7 100644
--- a/devs/reportabug/githubmodule_8h.html
+++ b/devs/reportabug/githubmodule_8h.html
@@ -105,7 +105,7 @@ Classes
diff --git a/devs/reportabug/githubmodule_8h_source.html b/devs/reportabug/githubmodule_8h_source.html
index 7d1403a..17b333a 100644
--- a/devs/reportabug/githubmodule_8h_source.html
+++ b/devs/reportabug/githubmodule_8h_source.html
@@ -119,34 +119,36 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-
- 64 bool debugCmd =
false);
-
-
-
-
-
-
- 87 void githubFinished(QNetworkReply *reply);
-
-
-
-
- 103 QString parseString(QString line);
- 110 QByteArray prepareRequest(
const QString title,
const QString body);
-
-
-
-
+
+ 65 bool debugCmd =
false,
+ 66 QMap<QString, QString> params = QMap<QString, QString>());
+
+
+
+
+
+
+ 89 void githubFinished(QNetworkReply *reply);
+
+
+
+ 99 QMap<QString, QString> dynamic;
+
+ 109 QString parseString(QString line);
+ 116 QByteArray prepareRequest(
const QString title,
const QString body);
+
+
+
+
The GithubModule class creates issue over GitHub.
Definition: githubmodule.h:53
-The Reportabug class is a main class of the application.
Definition: reportabug.h:43
+The Reportabug class is a main class of the application.
Definition: reportabug.h:42
~GithubModule()
GithubModule class destructor.
void sendReportUsingGithub(const QMap< QString, QString > info)
method which creates an issue
-GithubModule(QWidget *parent=0, bool debugCmd=false)
GithubModule class constructor.
+GithubModule(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())
GithubModule class constructor.
diff --git a/devs/reportabug/gitreportmodule_8h.html b/devs/reportabug/gitreportmodule_8h.html
index c810afb..bc0d11a 100644
--- a/devs/reportabug/gitreportmodule_8h.html
+++ b/devs/reportabug/gitreportmodule_8h.html
@@ -105,7 +105,7 @@ Classes
diff --git a/devs/reportabug/gitreportmodule_8h_source.html b/devs/reportabug/gitreportmodule_8h_source.html
index 6e2df46..229c3cd 100644
--- a/devs/reportabug/gitreportmodule_8h_source.html
+++ b/devs/reportabug/gitreportmodule_8h_source.html
@@ -119,37 +119,39 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-
- 54 bool debugCmd =
false);
-
-
-
-
-
-
-
- 79 void gitreportFinished(
const bool state);
- 84 void gitreportLoaded(
const bool state);
- 89 void setCaptcha(QNetworkReply *reply);
-
-
-
-
- 103 QNetworkAccessManager manager;
-
-
-
-
-GitreportModule(QWidget *parent=0, bool debugCmd=false)
GitreportModule class constructor.
+
+ 55 bool debugCmd =
false,
+ 56 QMap<QString, QString> params = QMap<QString, QString>());
+
+
+
+
+
+
+
+ 81 void gitreportFinished(
const bool state);
+ 86 void gitreportLoaded(
const bool state);
+ 91 void setCaptcha(QNetworkReply *reply);
+
+
+
+ 101 QMap<QString, QString> dynamic;
+
+ 109 QNetworkAccessManager manager;
+
+
+
+
void sendReportUsingGitreport(const QMap< QString, QString > info)
method which creates an issue
-The Reportabug class is a main class of the application.
Definition: reportabug.h:43
-QWebView * webView
Webkit item which is used for loading web page.
Definition: gitreportmodule.h:62
+The Reportabug class is a main class of the application.
Definition: reportabug.h:42
+QWebView * webView
Webkit item which is used for loading web page.
Definition: gitreportmodule.h:64
+GitreportModule(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())
GitreportModule class constructor.
The GitreportModule class creates issue over GitReports.
Definition: gitreportmodule.h:43
~GitreportModule()
GitreportModule class destructor.
diff --git a/devs/reportabug/globals.html b/devs/reportabug/globals.html
index bcb4c2b..efe7d3f 100644
--- a/devs/reportabug/globals.html
+++ b/devs/reportabug/globals.html
@@ -127,7 +127,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/devs/reportabug/globals_defs.html b/devs/reportabug/globals_defs.html
index c861845..c03e28a 100644
--- a/devs/reportabug/globals_defs.html
+++ b/devs/reportabug/globals_defs.html
@@ -127,7 +127,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/devs/reportabug/hierarchy.html b/devs/reportabug/hierarchy.html
index 8844d78..942b87a 100644
--- a/devs/reportabug/hierarchy.html
+++ b/devs/reportabug/hierarchy.html
@@ -99,7 +99,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/devs/reportabug/index.html b/devs/reportabug/index.html
index c2d31c9..f1a343d 100644
--- a/devs/reportabug/index.html
+++ b/devs/reportabug/index.html
@@ -81,7 +81,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/devs/reportabug/namespace_ui.html b/devs/reportabug/namespace_ui.html
index 7b5491e..5883d36 100644
--- a/devs/reportabug/namespace_ui.html
+++ b/devs/reportabug/namespace_ui.html
@@ -81,7 +81,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
diff --git a/devs/reportabug/reportabug_8h.html b/devs/reportabug/reportabug_8h.html
index d3d0036..3369ea0 100644
--- a/devs/reportabug/reportabug_8h.html
+++ b/devs/reportabug/reportabug_8h.html
@@ -108,7 +108,7 @@ Namespaces
diff --git a/devs/reportabug/reportabug_8h_source.html b/devs/reportabug/reportabug_8h_source.html
index 5239906..61a5713 100644
--- a/devs/reportabug/reportabug_8h_source.html
+++ b/devs/reportabug/reportabug_8h_source.html
@@ -108,64 +108,65 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-
- 30 #include <QMainWindow>
+ 29 #include <QMainWindow>
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 54 bool debugCmd =
false);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 109 void createActions();
- 113 void createComboBox();
- 121 int getNumberByIndex(
const int index);
-
- 130 void keyPressEvent(QKeyEvent *pressedKey);
- 136 QString parseString(QString line);
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 54 bool debugCmd =
false,
+ 55 QMap<QString, QString> params = QMap<QString, QString>());
+
+
+
+
+
+
+
+
+
+
+
+ 93 QMap<QString, QString> dynamic;
+
+
+
+
+
+ 114 void createActions();
+ 118 void createComboBox();
+ 126 int getNumberByIndex(
const int index);
+
+ 135 void keyPressEvent(QKeyEvent *pressedKey);
+ 141 QString parseString(QString line);
+
+
+
+
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
+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
+Reportabug(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())
Reportabug class constructor.
diff --git a/devs/reportabug/search/all_2.js b/devs/reportabug/search/all_2.js
index ae1b9d2..f21e27a 100644
--- a/devs/reportabug/search/all_2.js
+++ b/devs/reportabug/search/all_2.js
@@ -1,9 +1,9 @@
var searchData=
[
['github_5fcombobox',['GITHUB_COMBOBOX',['../config_8h.html#a6e59a308fa1eb6342a8a7476cc633cb3',1,'config.h']]],
- ['githubmodule',['GithubModule',['../class_github_module.html',1,'GithubModule'],['../class_github_module.html#a09e48bd7cefe8bdee33835a0df0fb810',1,'GithubModule::GithubModule()']]],
+ ['githubmodule',['GithubModule',['../class_github_module.html',1,'GithubModule'],['../class_github_module.html#adc2325a4e86e2379e8ef4353ff00f3bb',1,'GithubModule::GithubModule()']]],
['githubmodule_2eh',['githubmodule.h',['../githubmodule_8h.html',1,'']]],
['gitreport_5fcombobox',['GITREPORT_COMBOBOX',['../config_8h.html#a458ef53f680ae95a205432e7d56a8c3a',1,'config.h']]],
- ['gitreportmodule',['GitreportModule',['../class_gitreport_module.html',1,'GitreportModule'],['../class_gitreport_module.html#a87ac50c0cc1bde2f65a467eab9eab5f2',1,'GitreportModule::GitreportModule()']]],
+ ['gitreportmodule',['GitreportModule',['../class_gitreport_module.html',1,'GitreportModule'],['../class_gitreport_module.html#a8e3e7a6fabd5f143befdd616017ef8ae',1,'GitreportModule::GitreportModule()']]],
['gitreportmodule_2eh',['gitreportmodule.h',['../gitreportmodule_8h.html',1,'']]]
];
diff --git a/devs/reportabug/search/all_6.js b/devs/reportabug/search/all_6.js
index 2cbbdae..90c47a4 100644
--- a/devs/reportabug/search/all_6.js
+++ b/devs/reportabug/search/all_6.js
@@ -1,5 +1,5 @@
var searchData=
[
- ['reportabug',['Reportabug',['../class_reportabug.html',1,'Reportabug'],['../class_reportabug.html#ab502639aee622ab3d11e7b912cc01dae',1,'Reportabug::Reportabug(QWidget *parent=0, bool debugCmd=false)'],['../class_reportabug.html#ab502639aee622ab3d11e7b912cc01dae',1,'Reportabug::Reportabug(QWidget *parent=0, bool debugCmd=false)']]],
+ ['reportabug',['Reportabug',['../class_reportabug.html',1,'Reportabug'],['../class_reportabug.html#ab4f41031bc19474bd647e74c6def89c0',1,'Reportabug::Reportabug(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())'],['../class_reportabug.html#ab4f41031bc19474bd647e74c6def89c0',1,'Reportabug::Reportabug(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())']]],
['reportabug_2eh',['reportabug.h',['../reportabug_8h.html',1,'']]]
];
diff --git a/devs/reportabug/search/functions_1.js b/devs/reportabug/search/functions_1.js
index 4630563..9d4b6bb 100644
--- a/devs/reportabug/search/functions_1.js
+++ b/devs/reportabug/search/functions_1.js
@@ -1,5 +1,5 @@
var searchData=
[
- ['githubmodule',['GithubModule',['../class_github_module.html#a09e48bd7cefe8bdee33835a0df0fb810',1,'GithubModule']]],
- ['gitreportmodule',['GitreportModule',['../class_gitreport_module.html#a87ac50c0cc1bde2f65a467eab9eab5f2',1,'GitreportModule']]]
+ ['githubmodule',['GithubModule',['../class_github_module.html#adc2325a4e86e2379e8ef4353ff00f3bb',1,'GithubModule']]],
+ ['gitreportmodule',['GitreportModule',['../class_gitreport_module.html#a8e3e7a6fabd5f143befdd616017ef8ae',1,'GitreportModule']]]
];
diff --git a/devs/reportabug/search/functions_2.js b/devs/reportabug/search/functions_2.js
index bcb8abd..830867b 100644
--- a/devs/reportabug/search/functions_2.js
+++ b/devs/reportabug/search/functions_2.js
@@ -1,4 +1,4 @@
var searchData=
[
- ['reportabug',['Reportabug',['../class_reportabug.html#ab502639aee622ab3d11e7b912cc01dae',1,'Reportabug::Reportabug(QWidget *parent=0, bool debugCmd=false)'],['../class_reportabug.html#ab502639aee622ab3d11e7b912cc01dae',1,'Reportabug::Reportabug(QWidget *parent=0, bool debugCmd=false)']]]
+ ['reportabug',['Reportabug',['../class_reportabug.html#ab4f41031bc19474bd647e74c6def89c0',1,'Reportabug::Reportabug(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())'],['../class_reportabug.html#ab4f41031bc19474bd647e74c6def89c0',1,'Reportabug::Reportabug(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())']]]
];
diff --git a/devs/reportabug/src_2reportabug_8h.html b/devs/reportabug/src_2reportabug_8h.html
index 658ae27..095d58f 100644
--- a/devs/reportabug/src_2reportabug_8h.html
+++ b/devs/reportabug/src_2reportabug_8h.html
@@ -108,7 +108,7 @@ Namespaces
diff --git a/devs/reportabug/src_2reportabug_8h_source.html b/devs/reportabug/src_2reportabug_8h_source.html
index 70bcb64..d05a75a 100644
--- a/devs/reportabug/src_2reportabug_8h_source.html
+++ b/devs/reportabug/src_2reportabug_8h_source.html
@@ -108,64 +108,65 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
-
- 30 #include <QMainWindow>
+ 29 #include <QMainWindow>
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 54 bool debugCmd =
false);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 109 void createActions();
- 113 void createComboBox();
- 121 int getNumberByIndex(
const int index);
-
- 130 void keyPressEvent(QKeyEvent *pressedKey);
- 136 QString parseString(QString line);
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 54 bool debugCmd =
false,
+ 55 QMap<QString, QString> params = QMap<QString, QString>());
+
+
+
+
+
+
+
+
+
+
+
+ 93 QMap<QString, QString> dynamic;
+
+
+
+
+
+ 114 void createActions();
+ 118 void createComboBox();
+ 126 int getNumberByIndex(
const int index);
+
+ 135 void keyPressEvent(QKeyEvent *pressedKey);
+ 141 QString parseString(QString line);
+
+
+
+
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
+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
+Reportabug(QWidget *parent=0, bool debugCmd=false, QMap< QString, QString > params=QMap< QString, QString >())
Reportabug class constructor.
diff --git a/projects/reportabug.html b/projects/reportabug.html
index 8a4b662..cf8493f 100644
--- a/projects/reportabug.html
+++ b/projects/reportabug.html
@@ -12,7 +12,7 @@ links:
---
Information
-Qt application/library which allows users to create an issue for projects which are hosted on GitHub. It may work over GitHub or GitReport.
+Qt application/library which allows users to create an issue for projects which are hosted on GitHub. It may work over GitHub or GitReport. It works fine, but it was created as proof-of-concept.
Developers and contributors
@@ -62,7 +62,9 @@ add_subdirectory (reportabug)
- Declare class in you sources. For example:
{% highlight cpp %}
-Reportabug *reportWindow = new Reportabug(this, false);
+Reportabug *reportWindow = new Reportabug(parent=this,
+ debugCmd=false,
+ params=0);
reportWindow->showWindow();
{% endhighlight %}
@@ -72,12 +74,13 @@ reportWindow->showWindow();
Available cmake flags:
- -DBUILD_AS_LIBRARY:BOOL=0
- build the application but not a shared library.
- -DBUILD_DOCS:BOOL=1
- build developer documentation.
+ -DBUILD_AS_LIBRARY=0
- build the application but not a library.
+ -DBUILD_DOCS=1
- build developer documentation.
+ -DBUILD_SHARED_LIBRARY=1
- build the shared library instead of static one.
-DENABLE_GITHUB=0
- disable GitHub module.
-DENABLE_GITREPORT=0
- disable GitReport module.
-DOWN_GITHUB_TOKEN=STRING
- use STRING as own GitHub token.
- -DUSE_QT5:BOOL=0
- use Qt4 instead of Qt5.
+ -DUSE_QT5=0
- use Qt4 instead of Qt5.
Dependencies
@@ -127,7 +130,7 @@ curl -X POST -H "Authorization: token token" -d '{"title":"A new bug","body":"So
Configuration
-For the developer configuration please use config.h.in
header.
+For the developer configuration please use config.h
header. Also you may load parametrs dynamically using params
array (needed keys is the same as for the header
Main configuration
OWNER
- the owner of the source repository.
diff --git a/ru/projects/reportabug.html b/ru/projects/reportabug.html
index c55cd7d..8010591 100644
--- a/ru/projects/reportabug.html
+++ b/ru/projects/reportabug.html
@@ -13,7 +13,7 @@ links:
---
Информация
-Приложение/библиотека, написанное на Qt, которое позволяет пользователям отправлять багрепорт для проектов, расположенных на GitHub. Оно может работать как через GitHub, так и через GitReports.
+Приложение/библиотека, написанное на Qt, которое позволяет пользователям отправлять багрепорт для проектов, расположенных на GitHub. Оно может работать как через GitHub, так и через GitReports. Работает нормально, однако данное приложение было создано as proof-of-concept.
Разработчики
@@ -63,7 +63,9 @@ add_subdirectory (reportabug)
- Объявите класс в Вашем приложении, например:
{% highlight cpp %}
-Reportabug *reportWindow = new Reportabug(this, false);
+Reportabug *reportWindow = new Reportabug(parent=this,
+ debugCmd=false,
+ params=0);
reportWindow->showWindow();
{% endhighlight %}
@@ -73,12 +75,13 @@ reportWindow->showWindow();
Доступные флаги cmake
- -DBUILD_AS_LIBRARY:BOOL=0
- собирать отдельное приложение, а не библиотеку.
- -DBUILD_DOCS:BOOL=1
- собирать документацию для разработчиков.
+ -DBUILD_AS_LIBRARY=0
- собирать отдельное приложение, а не библиотеку.
+ -DBUILD_DOCS=1
- собирать документацию для разработчиков.
+ -DBUILD_SHARED_LIBRARY=1
- собирать библиотеку общего доступа, а не статическую.
-DENABLE_GITHUB=0
- отключить модуль GitHub.
-DENABLE_GITREPORT=0
- отключить модуль GitReports
-DOWN_GITHUB_TOKEN=STRING
- использовать STRING, как свой GitHub токен.
- -DUSE_QT5:BOOL=0
- использовать Qt4 вместо Qt5.
+ -DUSE_QT5=0
- использовать Qt4 вместо Qt5.
Зависимости
@@ -127,7 +130,7 @@ curl -X POST -H "Authorization: token token" -d '{"title":"A new bug","body":"So
Настройка
-Для настройки перед компиляцией отредактируйте хидер src/config.h.in
.
+Для настройки перед компиляцией отредактируйте хидер src/config.h
. Также Вы можете подгрузить параметры автоматически, используя массив params
(необходимые ключи такие же, как и для хидера).
Основные настройки
OWNER
- владелец репозитория.