comparison 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
comparison
equal deleted inserted replaced
229:a1f4b5359051 230:e67bd8abc3e3
19 #define FILESTATUSWIDGET_H 19 #define FILESTATUSWIDGET_H
20 20
21 #include "filestates.h" 21 #include "filestates.h"
22 22
23 #include <QWidget> 23 #include <QWidget>
24 #include <QList>
24 25
25 class QLabel; 26 class QLabel;
26 class QListWidget; 27 class QListWidget;
27 class QPushButton; 28 class QPushButton;
28 class QFileInfo; 29 class QFileInfo;
73 void selectionChanged(); 74 void selectionChanged();
74 void showAllChanged(bool); 75 void showAllChanged(bool);
75 76
76 public slots: 77 public slots:
77 void clearSelections(); 78 void clearSelections();
79 void updateWidgets();
78 80
79 private slots: 81 private slots:
80 void itemSelectionChanged(); 82 void itemSelectionChanged();
81 void openButtonClicked(); 83 void openButtonClicked();
82 84
101 QString m_highlightExplanation; 103 QString m_highlightExplanation;
102 104
103 QFileInfo *m_dateReference; 105 QFileInfo *m_dateReference;
104 QStringList m_selectedFiles; 106 QStringList m_selectedFiles;
105 107
106 void updateWidgets(); 108 bool m_gridlyLayout;
109 int m_lastGridlyCount;
110 QList<QWidget *> m_boxes;
111 QWidget *m_boxesParent;
112
113 void layoutBoxesGridly(int count);
114 void layoutBoxesLinearly();
107 void updateStateLabel(); 115 void updateStateLabel();
116 void setNoModificationsLabelText();
108 QString labelFor(FileStates::State, bool addHighlightExplanation = false); 117 QString labelFor(FileStates::State, bool addHighlightExplanation = false);
109 void setLabelFor(QWidget *w, FileStates::State, bool addHighlightExplanation); 118 void setLabelFor(QWidget *w, FileStates::State, bool addHighlightExplanation);
110 }; 119 };
111 120
112 #endif 121 #endif