From 45775beb5bcd57e288f279e55b64fc2ae406277b Mon Sep 17 00:00:00 2001 From: arcan1s Date: Thu, 31 Jul 2014 15:27:19 +0400 Subject: [PATCH] update reportabug --- devs/reportabug/annotated.html | 2 +- .../class_github_module-members.html | 2 +- devs/reportabug/class_github_module.html | 2 +- .../class_gitreport_module-members.html | 2 +- devs/reportabug/class_gitreport_module.html | 4 +- devs/reportabug/class_reportabug-members.html | 9 +- devs/reportabug/class_reportabug.html | 29 +++++- devs/reportabug/classes.html | 2 +- .../dir_08d237fc27d4ecd563f71c5d52f2fecc.html | 2 +- .../dir_370a05bc919a3b485116f307abacd69c.html | 2 +- devs/reportabug/files.html | 2 +- devs/reportabug/functions.html | 5 +- devs/reportabug/functions_func.html | 5 +- devs/reportabug/functions_vars.html | 2 +- devs/reportabug/githubmodule_8h.html | 2 +- devs/reportabug/githubmodule_8h_source.html | 4 +- devs/reportabug/gitreportmodule_8h.html | 2 +- .../reportabug/gitreportmodule_8h_source.html | 63 ++++++------- devs/reportabug/hierarchy.html | 2 +- devs/reportabug/index.html | 2 +- devs/reportabug/namespace_ui.html | 2 +- devs/reportabug/reportabug_8h.html | 2 +- devs/reportabug/reportabug_8h_source.html | 89 ++++++++++--------- devs/reportabug/search/all_3.js | 1 + devs/reportabug/search/functions_3.js | 1 + projects/reportabug.html | 8 +- ru/projects/reportabug.html | 8 +- 27 files changed, 146 insertions(+), 110 deletions(-) diff --git a/devs/reportabug/annotated.html b/devs/reportabug/annotated.html index 89e70b6..26e0453 100644 --- a/devs/reportabug/annotated.html +++ b/devs/reportabug/annotated.html @@ -96,7 +96,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/reportabug/class_github_module-members.html b/devs/reportabug/class_github_module-members.html index 04373b6..85d608e 100644 --- a/devs/reportabug/class_github_module-members.html +++ b/devs/reportabug/class_github_module-members.html @@ -95,7 +95,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/reportabug/class_github_module.html b/devs/reportabug/class_github_module.html index af368cb..fc6b72a 100644 --- a/devs/reportabug/class_github_module.html +++ b/devs/reportabug/class_github_module.html @@ -224,7 +224,7 @@ Public Member Functions diff --git a/devs/reportabug/class_gitreport_module-members.html b/devs/reportabug/class_gitreport_module-members.html index f2c56bb..b7f7662 100644 --- a/devs/reportabug/class_gitreport_module-members.html +++ b/devs/reportabug/class_gitreport_module-members.html @@ -96,7 +96,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/reportabug/class_gitreport_module.html b/devs/reportabug/class_gitreport_module.html index 376db90..6abe55a 100644 --- a/devs/reportabug/class_gitreport_module.html +++ b/devs/reportabug/class_gitreport_module.html @@ -127,7 +127,7 @@ Public Attributes

Detailed Description

The GitreportModule class creates issue over GitReports.

This module uses GitReport for creating an issue. Please visit this page and set up it for your repository.

-

This module depends on QtWebKit module.

+

This module depends on QtWebKit and QtNetwork modules.

Constructor & Destructor Documentation

@@ -243,7 +243,7 @@ Public Attributes
diff --git a/devs/reportabug/class_reportabug-members.html b/devs/reportabug/class_reportabug-members.html index bb55bb1..3ab6a37 100644 --- a/devs/reportabug/class_reportabug-members.html +++ b/devs/reportabug/class_reportabug-members.html @@ -92,13 +92,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); externalUpdateTab()Reportabug Reportabug(QWidget *parent=0, bool debugCmd=false)Reportabugexplicit sendReport()Reportabugslot - showWindow()Reportabugslot - updateTabs(const int index)Reportabugslot - ~Reportabug()Reportabug + setCaptchaImage(QPixmap captcha)Reportabug + showWindow()Reportabugslot + updateTabs(const int index)Reportabugslot + ~Reportabug()Reportabug diff --git a/devs/reportabug/class_reportabug.html b/devs/reportabug/class_reportabug.html index b1e13d0..100135d 100644 --- a/devs/reportabug/class_reportabug.html +++ b/devs/reportabug/class_reportabug.html @@ -125,6 +125,9 @@ Public Member Functions void externalUpdateTab ()  method which is used for update tabs from external classes More...
  +void setCaptchaImage (QPixmap captcha) + method which sets captcha image More...

Detailed Description

The Reportabug class is a main class of the application.

@@ -230,6 +233,30 @@ Public Member Functions

method which creates an issue

+
+ + +
+
+ + + + + + + + +
void Reportabug::setCaptchaImage (QPixmap captcha)
+
+ +

method which sets captcha image

+
Parameters
+ + +
captchacaptcha image
+
+
+
@@ -295,7 +322,7 @@ Public Member Functions diff --git a/devs/reportabug/classes.html b/devs/reportabug/classes.html index 40ec088..f1dd795 100644 --- a/devs/reportabug/classes.html +++ b/devs/reportabug/classes.html @@ -100,7 +100,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/reportabug/dir_08d237fc27d4ecd563f71c5d52f2fecc.html b/devs/reportabug/dir_08d237fc27d4ecd563f71c5d52f2fecc.html index 55e944d..1bfe5b4 100644 --- a/devs/reportabug/dir_08d237fc27d4ecd563f71c5d52f2fecc.html +++ b/devs/reportabug/dir_08d237fc27d4ecd563f71c5d52f2fecc.html @@ -91,7 +91,7 @@ Directories diff --git a/devs/reportabug/dir_370a05bc919a3b485116f307abacd69c.html b/devs/reportabug/dir_370a05bc919a3b485116f307abacd69c.html index 62cb787..6bedca7 100644 --- a/devs/reportabug/dir_370a05bc919a3b485116f307abacd69c.html +++ b/devs/reportabug/dir_370a05bc919a3b485116f307abacd69c.html @@ -95,7 +95,7 @@ Files diff --git a/devs/reportabug/files.html b/devs/reportabug/files.html index 63a65a9..41c136f 100644 --- a/devs/reportabug/files.html +++ b/devs/reportabug/files.html @@ -93,7 +93,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/reportabug/functions.html b/devs/reportabug/functions.html index 05f00f4..551839d 100644 --- a/devs/reportabug/functions.html +++ b/devs/reportabug/functions.html @@ -111,6 +111,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • sendReportUsingGitreport() : GitreportModule
  • +
  • setCaptchaImage() +: Reportabug +
  • showWindow() : Reportabug
  • @@ -133,7 +136,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/reportabug/functions_func.html b/devs/reportabug/functions_func.html index f4e0e8b..840ed54 100644 --- a/devs/reportabug/functions_func.html +++ b/devs/reportabug/functions_func.html @@ -111,6 +111,9 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
  • sendReportUsingGitreport() : GitreportModule
  • +
  • setCaptchaImage() +: Reportabug +
  • showWindow() : Reportabug
  • @@ -130,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 2551d4c..f53cfcf 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 983dae8..d49ee5c 100644 --- a/devs/reportabug/githubmodule_8h.html +++ b/devs/reportabug/githubmodule_8h.html @@ -104,7 +104,7 @@ Classes diff --git a/devs/reportabug/githubmodule_8h_source.html b/devs/reportabug/githubmodule_8h_source.html index 264c727..3d16afa 100644 --- a/devs/reportabug/githubmodule_8h_source.html +++ b/devs/reportabug/githubmodule_8h_source.html @@ -138,14 +138,14 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    113 
    114 #endif /* GITHUBMODULE_H */
    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.
    diff --git a/devs/reportabug/gitreportmodule_8h.html b/devs/reportabug/gitreportmodule_8h.html index c59e5d4..9c3968a 100644 --- a/devs/reportabug/gitreportmodule_8h.html +++ b/devs/reportabug/gitreportmodule_8h.html @@ -104,7 +104,7 @@ Classes diff --git a/devs/reportabug/gitreportmodule_8h_source.html b/devs/reportabug/gitreportmodule_8h_source.html index 6921c01..246db03 100644 --- a/devs/reportabug/gitreportmodule_8h_source.html +++ b/devs/reportabug/gitreportmodule_8h_source.html @@ -110,42 +110,45 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    29 #include <QObject>
    30 #include <QWebView>
    31 
    -
    32 class Reportabug;
    -
    33 
    -
    42 class GitreportModule : public QObject
    -
    43 {
    -
    44  Q_OBJECT
    -
    45 
    -
    46 public:
    -
    52  explicit GitreportModule(QWidget *parent = 0,
    -
    53  bool debugCmd = false);
    -
    57  ~GitreportModule();
    -
    61  QWebView *webView;
    -
    62 
    -
    63 public slots:
    -
    71  void sendReportUsingGitreport(const QMap<QString, QString> info);
    -
    72 
    -
    73 private slots:
    -
    78  void gitreportFinished(const bool state);
    -
    83  void gitreportLoaded(const bool state);
    -
    84 
    -
    85 private:
    -
    89  bool debug;
    -
    93  Reportabug *mainWindow;;
    -
    94 };
    -
    95 
    -
    96 
    -
    97 #endif /* GITREPORTMODULE_H */
    +
    32 class QNetworkAccessManager;
    +
    33 class Reportabug;
    +
    34 
    +
    43 class GitreportModule : public QObject
    +
    44 {
    +
    45  Q_OBJECT
    +
    46 
    +
    47 public:
    +
    53  explicit GitreportModule(QWidget *parent = 0,
    +
    54  bool debugCmd = false);
    +
    58  ~GitreportModule();
    +
    62  QWebView *webView;
    +
    63 
    +
    64 public slots:
    +
    72  void sendReportUsingGitreport(const QMap<QString, QString> info);
    +
    73 
    +
    74 private slots:
    +
    79  void gitreportFinished(const bool state);
    +
    84  void gitreportLoaded(const bool state);
    +
    89  void setCaptcha(QNetworkReply *reply);
    +
    90 
    +
    91 private:
    +
    95  bool debug;
    +
    99  Reportabug *mainWindow;
    +
    103  QNetworkAccessManager manager;
    +
    104 };
    +
    105 
    +
    106 
    +
    107 #endif /* GITREPORTMODULE_H */
    GitreportModule(QWidget *parent=0, bool debugCmd=false)
    GitreportModule class constructor.
    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:61
    -
    The GitreportModule class creates issue over GitReports.
    Definition: gitreportmodule.h:42
    +
    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:62
    +
    The GitreportModule class creates issue over GitReports.
    Definition: gitreportmodule.h:43
    ~GitreportModule()
    GitreportModule class destructor.
    diff --git a/devs/reportabug/hierarchy.html b/devs/reportabug/hierarchy.html index bf12bd5..e30ae18 100644 --- a/devs/reportabug/hierarchy.html +++ b/devs/reportabug/hierarchy.html @@ -98,7 +98,7 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search'); diff --git a/devs/reportabug/index.html b/devs/reportabug/index.html index 58a1761..a02841a 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 144c005..9f426c5 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 686250a..e9f3c04 100644 --- a/devs/reportabug/reportabug_8h.html +++ b/devs/reportabug/reportabug_8h.html @@ -110,7 +110,7 @@ Namespaces diff --git a/devs/reportabug/reportabug_8h_source.html b/devs/reportabug/reportabug_8h_source.html index 90030ce..9d57ee5 100644 --- a/devs/reportabug/reportabug_8h_source.html +++ b/devs/reportabug/reportabug_8h_source.html @@ -109,60 +109,61 @@ var searchBox = new SearchBox("searchBox", "search",false,'Search');
    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 */
    +
    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: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:42
    +
    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
    diff --git a/devs/reportabug/search/all_3.js b/devs/reportabug/search/all_3.js index 5efb27c..76dfb22 100644 --- a/devs/reportabug/search/all_3.js +++ b/devs/reportabug/search/all_3.js @@ -3,5 +3,6 @@ var searchData= ['sendreport',['sendReport',['../class_reportabug.html#ac9dc16217d736b097db26ca1dbc41d9c',1,'Reportabug']]], ['sendreportusinggithub',['sendReportUsingGithub',['../class_github_module.html#a370fdede5483d2ad4c229a646e70dd93',1,'GithubModule']]], ['sendreportusinggitreport',['sendReportUsingGitreport',['../class_gitreport_module.html#a94a4f3945b5215fff7a88558728b2e96',1,'GitreportModule']]], + ['setcaptchaimage',['setCaptchaImage',['../class_reportabug.html#a17c7a456aa73b44fd1e7f553aaacce52',1,'Reportabug']]], ['showwindow',['showWindow',['../class_reportabug.html#a14653adb56530cbed3aead4a3287f1ef',1,'Reportabug']]] ]; diff --git a/devs/reportabug/search/functions_3.js b/devs/reportabug/search/functions_3.js index 5efb27c..76dfb22 100644 --- a/devs/reportabug/search/functions_3.js +++ b/devs/reportabug/search/functions_3.js @@ -3,5 +3,6 @@ var searchData= ['sendreport',['sendReport',['../class_reportabug.html#ac9dc16217d736b097db26ca1dbc41d9c',1,'Reportabug']]], ['sendreportusinggithub',['sendReportUsingGithub',['../class_github_module.html#a370fdede5483d2ad4c229a646e70dd93',1,'GithubModule']]], ['sendreportusinggitreport',['sendReportUsingGitreport',['../class_gitreport_module.html#a94a4f3945b5215fff7a88558728b2e96',1,'GitreportModule']]], + ['setcaptchaimage',['setCaptchaImage',['../class_reportabug.html#a17c7a456aa73b44fd1e7f553aaacce52',1,'Reportabug']]], ['showwindow',['showWindow',['../class_reportabug.html#a14653adb56530cbed3aead4a3287f1ef',1,'Reportabug']]] ]; diff --git a/projects/reportabug.html b/projects/reportabug.html index aa72694..8a4b662 100644 --- a/projects/reportabug.html +++ b/projects/reportabug.html @@ -84,10 +84,10 @@ reportWindow->showWindow();

    I want note that all were tested on latest version of dependencies.

    @@ -122,7 +122,7 @@ curl -X POST -H "Authorization: token token" -d '{"title":"A new bug","body":"So

    GitReports module

    This module creates issue over GitReports. Please visit this page and set up it for your repository.

    -

    To disable this module use -DENABLE_GITREPORT=0 cmake flag. This module requires QtWebKit module.

    +

    To disable this module use -DENABLE_GITREPORT=0 cmake flag. This module requires QtNetwork and QtWebKit modules.

    @@ -147,9 +147,7 @@ curl -X POST -H "Authorization: token token" -d '{"title":"A new bug","body":"So

    GitReports module settings

    diff --git a/ru/projects/reportabug.html b/ru/projects/reportabug.html index 9cb5ea6..c55cd7d 100644 --- a/ru/projects/reportabug.html +++ b/ru/projects/reportabug.html @@ -85,10 +85,10 @@ reportWindow->showWindow();

    Все было протестировано на последних версиях зависимостей.

    @@ -122,7 +122,7 @@ curl -X POST -H "Authorization: token token" -d '{"title":"A new bug","body":"So

    Модуль GitReports

    Данный модуль создает тикет, используя возможности GitReports. Пожалуйста, посетите данную страницу и настройте под Ваши репозитории.

    -

    Для того, чтобы отключить данный модуль, используйте -DENABLE_GITREPORT=0 флаг cmake. Данный модуль требует наличия в системе QtWebKit.

    +

    Для того, чтобы отключить данный модуль, используйте -DENABLE_GITREPORT=0 флаг cmake. Данный модуль требует наличия в системе QtNetwork и QtWebKit.

    @@ -147,9 +147,7 @@ curl -X POST -H "Authorization: token token" -d '{"title":"A new bug","body":"So

    Настройки модуля GitReports