]> gitweb.hamatoma.de Git - reqt/commitdiff
refind: adaption to current source
authorhama <hama@siduction.net>
Sat, 25 Jun 2016 22:30:05 +0000 (00:30 +0200)
committerhama <hama@siduction.net>
Sat, 25 Jun 2016 22:30:05 +0000 (00:30 +0200)
appl/refind/mainwindow.cpp
appl/refind/mainwindow.hpp
appl/refind/refind.pro
gui/ReGuiQueue.cpp

index 0bd4ff38a58ccf3198ffb64d0063d2e2b800a3a7..9f181c857a0000d6c5768e0557bf5b7c33f74596 100644 (file)
@@ -31,7 +31,7 @@
 #include <QProcess>
 #include <QMessageBox>
 
-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);
index cbf7ce7f0a0efba8b8a91f14d67aba532c33efe9..e83c1f0f62a27418eb50a10cf113ee4306ed5ded 100644 (file)
@@ -110,6 +110,7 @@ private:
    FileFinder* m_finder;
    ReGuiQueue m_guiQueue;
    QString m_startDir;
+   int m_maxListSize;
 };
 
 #endif // MAINWINDOW_HPP
index 199a3045e3d67c29214768864197ce9185ec1073..7987790e6b1bfa5e226cf935c24b9cb258f974bb 100644 (file)
@@ -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 \
index cb3ab294a9c80230e801330988401f27c469a2df..c957492e2383e5da8b2e63e8e8bcca7446131e96 100644 (file)
@@ -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