cppcheck/tools/triage/mainwindow.h

52 lines
1.2 KiB
C
Raw Normal View History

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QListWidgetItem>
#include <QString>
#include <QTextStream>
#include <QFileSystemModel>
namespace Ui {
2018-01-01 10:52:51 +01:00
class MainWindow;
}
2018-01-01 10:52:51 +01:00
class MainWindow : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = Q_NULLPTR);
MainWindow(const MainWindow &) = delete;
MainWindow &operator=(const MainWindow &) = delete;
~MainWindow();
public slots:
void loadFile();
void loadFromClipboard();
2019-06-15 14:37:02 +02:00
void filter(QString filter);
void showResult(QListWidgetItem *item);
void refreshResults();
void fileTreeFilter(QString str);
void findInFilesClicked();
void directorytreeDoubleClick();
void searchResultsDoubleClick();
private:
Ui::MainWindow *ui;
void load(QTextStream &textStream);
bool runProcess(const QString &programName, const QStringList & arguments);
bool wget(const QString &url);
bool unpackArchive(const QString &archiveName);
void showSrcFile(const QString &fileName, const QString &url, const int lineNumber);
QStringList mAllErrors;
QFileSystemModel mFSmodel;
const QRegExp mVersionRe;
const QStringList hFiles;
const QStringList srcFiles;
};
#endif // MAINWINDOW_H