diff filestatuswidget.h @ 230:e67bd8abc3e3

* Add settings for text verboseness and toolbar labels
author Chris Cannam
date Thu, 06 Jan 2011 15:15:02 +0000
parents f16fe0db11f3
children 8fd71f570884
line wrap: on
line diff
--- a/filestatuswidget.h	Thu Jan 06 13:16:34 2011 +0000
+++ b/filestatuswidget.h	Thu Jan 06 15:15:02 2011 +0000
@@ -21,6 +21,7 @@
 #include "filestates.h"
 
 #include <QWidget>
+#include <QList>
 
 class QLabel;
 class QListWidget;
@@ -75,6 +76,7 @@
 
 public slots:
     void clearSelections();
+    void updateWidgets();
 
 private slots:
     void itemSelectionChanged();
@@ -103,8 +105,15 @@
     QFileInfo *m_dateReference;
     QStringList m_selectedFiles;
 
-    void updateWidgets();
+    bool m_gridlyLayout;
+    int m_lastGridlyCount;
+    QList<QWidget *> m_boxes;
+    QWidget *m_boxesParent;
+
+    void layoutBoxesGridly(int count);
+    void layoutBoxesLinearly();
     void updateStateLabel();
+    void setNoModificationsLabelText();
     QString labelFor(FileStates::State, bool addHighlightExplanation = false);
     void setLabelFor(QWidget *w, FileStates::State, bool addHighlightExplanation);
 };