From 2410359141e16675cbd1d4cc422d7b46cecc7c33 Mon Sep 17 00:00:00 2001 From: hama Date: Sun, 26 Jun 2016 00:30:05 +0200 Subject: [PATCH] refind: adaption to current source --- appl/refind/mainwindow.cpp | 7 ++++--- appl/refind/mainwindow.hpp | 1 + appl/refind/refind.pro | 6 ++++-- gui/ReGuiQueue.cpp | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/appl/refind/mainwindow.cpp b/appl/refind/mainwindow.cpp index 0bd4ff3..9f181c8 100644 --- a/appl/refind/mainwindow.cpp +++ b/appl/refind/mainwindow.cpp @@ -31,7 +31,7 @@ #include #include -const QString VERSION("2016.02.20"); +const QString VERSION("2016.06.26"); inline QString addEsc(const QString& text){ QString rc = text; @@ -63,7 +63,8 @@ MainWindow::MainWindow(QApplication& application, const QString& homeDir, m_logger(new ReMemoryLogger()), m_finder(NULL), m_guiQueue(), - m_startDir(startDir) + m_startDir(startDir), + m_maxListSize(100) { initializeGUI(); } @@ -728,7 +729,7 @@ void MainWindow::onGuiTimerUpdate() ReGuiQueueItem item = m_guiQueue.popFront(); if (item.m_type == ReGuiQueueItem::Undef) break; - if (! item.apply()){ + if (! item.apply(m_guiQueue, m_maxListSize)){ switch (item.m_type){ case ReGuiQueueItem::ReadyMessage: say(LOG_INFO, item.m_value); diff --git a/appl/refind/mainwindow.hpp b/appl/refind/mainwindow.hpp index cbf7ce7..e83c1f0 100644 --- a/appl/refind/mainwindow.hpp +++ b/appl/refind/mainwindow.hpp @@ -110,6 +110,7 @@ private: FileFinder* m_finder; ReGuiQueue m_guiQueue; QString m_startDir; + int m_maxListSize; }; #endif // MAINWINDOW_HPP diff --git a/appl/refind/refind.pro b/appl/refind/refind.pro index 199a304..7987790 100644 --- a/appl/refind/refind.pro +++ b/appl/refind/refind.pro @@ -33,7 +33,8 @@ SOURCES += main.cpp\ utils.cpp \ dialogoptions.cpp \ filetablewidget.cpp \ - ../../gui/ReGuiApplication.cpp + ../../gui/ReGuiApplication.cpp \ + ../../base/ReProcess.cpp HEADERS += mainwindow.hpp \ @@ -49,7 +50,8 @@ HEADERS += mainwindow.hpp \ utils.hpp \ dialogoptions.hpp \ filetablewidget.hpp \ - ../../gui/ReGuiQueue.hpp + ../../gui/ReGuiQueue.hpp \ + ../../base/ReProcess.hpp FORMS += mainwindow.ui \ diff --git a/gui/ReGuiQueue.cpp b/gui/ReGuiQueue.cpp index cb3ab29..c957492 100644 --- a/gui/ReGuiQueue.cpp +++ b/gui/ReGuiQueue.cpp @@ -74,7 +74,7 @@ ReGuiQueueItem ReGuiQueue::popFront() * * This method should only used by the master thread. * - * @param + * @param queue the queue containing the instance * @param maxItems 0 or the maximal count of relevant items: items will be * inserted only if the count of items in the queue * is lower than this limit. This is a widget type specific -- 2.39.5