mirror of
https://github.com/arcan1s/reportabug.git
synced 2026-02-13 16:59:49 +00:00
add doxygen documentation
This commit is contained in:
@@ -14,6 +14,13 @@
|
||||
* You should have received a copy of the GNU Lesser General Public *
|
||||
* License along with this library. *
|
||||
***************************************************************************/
|
||||
/**
|
||||
* @file reportabug.h
|
||||
* Source code of reportabug
|
||||
* @author Evgeniy Alekseev
|
||||
* @copyright LGPLv3
|
||||
* @bug https://github.com/arcan1s/reportabug/issues
|
||||
*/
|
||||
|
||||
#ifndef REPORTABUG_H
|
||||
#define REPORTABUG_H
|
||||
@@ -30,33 +37,97 @@ namespace Ui {
|
||||
class Reportabug;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief The Reportabug class is a main class of the application
|
||||
*/
|
||||
class Reportabug : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/**
|
||||
* @brief Reportabug class constructor
|
||||
* @param parent parent object
|
||||
* @param debugCmd show debug messages
|
||||
*/
|
||||
explicit Reportabug(QWidget *parent = 0,
|
||||
bool debugCmd = false);
|
||||
/**
|
||||
* @brief Reportabug class destructor
|
||||
*/
|
||||
~Reportabug();
|
||||
/**
|
||||
* @brief method which is used for update tabs from external classes
|
||||
*/
|
||||
void externalUpdateTab();
|
||||
|
||||
public slots:
|
||||
/**
|
||||
* @brief method which creates an issue
|
||||
*/
|
||||
void sendReport();
|
||||
/**
|
||||
* @brief method which updates text and shows window
|
||||
*/
|
||||
void showWindow();
|
||||
/**
|
||||
* @brief method which updates text
|
||||
* @param index the current combobox index
|
||||
*/
|
||||
void updateTabs(const int index);
|
||||
|
||||
private:
|
||||
/**
|
||||
* @brief show debug messages
|
||||
*/
|
||||
bool debug;
|
||||
/**
|
||||
* @brief contains information about enabled modules
|
||||
*/
|
||||
bool modules[2];
|
||||
/**
|
||||
* @brief class user interface
|
||||
*/
|
||||
Ui::Reportabug *ui;
|
||||
// modules
|
||||
/**
|
||||
* @brief GitHub module
|
||||
*/
|
||||
GithubModule *github;
|
||||
/**
|
||||
* @brief GitReports module
|
||||
*/
|
||||
GitreportModule *gitreport;
|
||||
/**
|
||||
* @brief method which creates the window actions
|
||||
*/
|
||||
void createActions();
|
||||
/**
|
||||
* @brief method which adds a text into combobox
|
||||
*/
|
||||
void createComboBox();
|
||||
/**
|
||||
* @brief method which parses combobox content
|
||||
* @param index the current combobox index
|
||||
* @return -1 if there is no any selected modules
|
||||
* @return 0 if the GitHub module is selected
|
||||
* @return 1 if the GitReports module is selected
|
||||
*/
|
||||
int getNumberByIndex(const int index);
|
||||
/**
|
||||
* @brief method which initializates modules
|
||||
*/
|
||||
void initModules();
|
||||
/**
|
||||
* @brief method which monitors on pressed keys
|
||||
* @param pressedKey the current pressed key
|
||||
*/
|
||||
void keyPressEvent(QKeyEvent *pressedKey);
|
||||
/**
|
||||
* @brief method which parses string and replace known tags
|
||||
* @param line source line
|
||||
* @return replaced line
|
||||
*/
|
||||
QString parseString(QString line);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user