diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-07-12 17:58:23 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-07-12 23:31:05 +0200 |
commit | 5c4384235989b16d6931cc0cfa26dd192af68b96 (patch) | |
tree | 90e9fa1b758c97302726e01882e9c7c914426182 /gui/pages/OtherLogsPage.h | |
parent | aba1f89e2abfd596eb01c674d1b2deee3bdc1047 (diff) | |
download | PrismLauncher-5c4384235989b16d6931cc0cfa26dd192af68b96.tar.gz PrismLauncher-5c4384235989b16d6931cc0cfa26dd192af68b96.tar.bz2 PrismLauncher-5c4384235989b16d6931cc0cfa26dd192af68b96.zip |
Add a new page that can show all sorts of logs
Diffstat (limited to 'gui/pages/OtherLogsPage.h')
-rw-r--r-- | gui/pages/OtherLogsPage.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/gui/pages/OtherLogsPage.h b/gui/pages/OtherLogsPage.h new file mode 100644 index 00000000..e89b3bce --- /dev/null +++ b/gui/pages/OtherLogsPage.h @@ -0,0 +1,45 @@ +#pragma once + +#include <QWidget> + +#include "BasePage.h" + +namespace Ui { +class OtherLogsPage; +} + +class RecursiveFileSystemWatcher; + +class BaseInstance; + +class OtherLogsPage : public QWidget, public BasePage +{ + Q_OBJECT + +public: + explicit OtherLogsPage(BaseInstance *instance, QWidget *parent = 0); + ~OtherLogsPage(); + + QString id() const override { return "logs"; } + QString displayName() const override { return tr("Other logs"); } + QIcon icon() const override { return QIcon(); } // TODO + QString helpPage() const override { return "Minecraft-Logs"; } + void opened() override; + void closed() override; + +private +slots: + void on_selectLogBox_currentIndexChanged(const int index); + void on_btnReload_clicked(); + void on_btnPaste_clicked(); + void on_btnCopy_clicked(); + void on_btnDelete_clicked(); + +private: + Ui::OtherLogsPage *ui; + BaseInstance *m_instance; + RecursiveFileSystemWatcher *m_watcher; + QString m_currentFile; + + void setControlsEnabled(const bool enabled); +}; |