made progressbar layout 2 rows, max 6 bars total
[case] / src / fileoperator.h
index c0a47ee..ab62839 100644 (file)
@@ -19,6 +19,7 @@
 #define FILEOPERATOR_H
 
 #include <QWidget>
+#include <QHBoxLayout>
 
 #include "progressbar.h"
 #include "operationthread.h"
@@ -57,9 +58,14 @@ protected:
     void initOperation(OperationThread *thread, ProgressBar *bar);
     ProgressBar *get(OperationThread *op) const;
     OperationThread *get(ProgressBar *bar) const;
+    void addBarToLayout(ProgressBar *bar);
+    void removeBarFromLayout(ProgressBar *bar);
+
+    bool checkMaxOpsNumber();
 
     OperationList opList;
     QPixmap deleteIcon, inverseDeleteIcon, copyIcon, inverseCopyIcon, moveIcon, inverseMoveIcon;
+    QHBoxLayout *topRow, *bottomRow;
 };
 
 #endif // FILEOPERATOR_H