diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-08-18 02:25:24 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-08-18 08:51:12 +0200 |
commit | 96fdaebb5c8c8902c98c1fb43e755cf90fc15198 (patch) | |
tree | bb4e1ace6bb0800a5991884d5f07b41267699283 /application/pages/OtherLogsPage.h | |
parent | 4e3af265dad57a27af4051cb574fb90539d287d0 (diff) | |
download | MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.gz MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.lz MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.xz MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.zip |
GH-926 implement log cleaning functionality
Also adds gzip compressed log support
Diffstat (limited to 'application/pages/OtherLogsPage.h')
-rw-r--r-- | application/pages/OtherLogsPage.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/application/pages/OtherLogsPage.h b/application/pages/OtherLogsPage.h index d6e4ec9f..9a5a6ed4 100644 --- a/application/pages/OtherLogsPage.h +++ b/application/pages/OtherLogsPage.h @@ -19,6 +19,7 @@ #include "BasePage.h" #include <MultiMC.h> +#include <pathmatcher/IPathMatcher.h> namespace Ui { @@ -32,7 +33,7 @@ class OtherLogsPage : public QWidget, public BasePage Q_OBJECT public: - explicit OtherLogsPage(QString path, QWidget *parent = 0); + explicit OtherLogsPage(QString path, IPathMatcher::Ptr fileFilter, QWidget *parent = 0); ~OtherLogsPage(); QString id() const override @@ -61,12 +62,15 @@ private slots: void on_btnPaste_clicked(); void on_btnCopy_clicked(); void on_btnDelete_clicked(); + void on_btnClean_clicked(); + +private: + void setControlsEnabled(const bool enabled); private: Ui::OtherLogsPage *ui; QString m_path; RecursiveFileSystemWatcher *m_watcher; QString m_currentFile; - - void setControlsEnabled(const bool enabled); + IPathMatcher::Ptr m_fileFilter; }; |