summaryrefslogtreecommitdiffstats
path: root/application/pages/LogPage.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-08-18 21:31:37 +0200
committerPetr Mrázek <peterix@gmail.com>2016-08-19 08:05:43 +0200
commit67eca08b2260f19ff296c0b6cb73eb3b0479e4b2 (patch)
tree96027e6397b24ee87d8d116448387c959a7e197b /application/pages/LogPage.h
parent9aff21c1810f366f599fc5d35dfd3d7bc216f759 (diff)
downloadMultiMC-67eca08b2260f19ff296c0b6cb73eb3b0479e4b2.tar
MultiMC-67eca08b2260f19ff296c0b6cb73eb3b0479e4b2.tar.gz
MultiMC-67eca08b2260f19ff296c0b6cb73eb3b0479e4b2.tar.lz
MultiMC-67eca08b2260f19ff296c0b6cb73eb3b0479e4b2.tar.xz
MultiMC-67eca08b2260f19ff296c0b6cb73eb3b0479e4b2.zip
NOISSUE use model/view for Minecraft log data
Diffstat (limited to 'application/pages/LogPage.h')
-rw-r--r--application/pages/LogPage.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/application/pages/LogPage.h b/application/pages/LogPage.h
index e902ad13..f98b5ecf 100644
--- a/application/pages/LogPage.h
+++ b/application/pages/LogPage.h
@@ -21,13 +21,13 @@
#include "launch/LaunchTask.h"
#include "BasePage.h"
#include <MultiMC.h>
-#include <ColorCache.h>
namespace Ui
{
class LogPage;
}
class QTextCharFormat;
+class LogFormatProxyModel;
class LogPage : public QWidget, public BasePage
{
@@ -57,13 +57,6 @@ public:
virtual void setParentContainer(BasePageContainer *) override;
private slots:
- /**
- * @brief write a string
- * @param data the string
- * @param level the @MessageLevel the string should be written under
- * lines have to be put through this as a whole!
- */
- void write(QString data, MessageLevel::Enum level = MessageLevel::MultiMC);
void on_btnPaste_clicked();
void on_btnCopy_clicked();
void on_btnClear_clicked();
@@ -88,8 +81,9 @@ private:
int m_saved_offset = 0;
bool m_write_active = true;
bool m_stopOnOverflow = true;
+ bool m_autoScroll = false;
- QTextCharFormat * defaultFormat;
BasePageContainer * m_parentContainer;
- std::unique_ptr<LogColorCache> m_colors;
+ LogFormatProxyModel * m_proxy;
+ shared_qobject_ptr <LogModel> m_model;
};