Krazy/EBN: qMin is better than QMIN
[kphotoalbum.git] / MainWindow / StatisticsDialog.h
blob8780e6ef1c2b4d9d050f82ebb59c2d02b044c4a6
1 #ifndef STATISTICSDIALOG_H
2 #define STATISTICSDIALOG_H
4 #include <kdialog.h>
5 class QGridLayout;
6 class QLabel;
7 class QGroupBox;
8 class QComboBox;
9 class QTreeWidgetItem;
10 class QTreeWidget;
12 namespace DB { class ImageSearchInfo; }
13 namespace MainWindow {
15 class StatisticsDialog :public KDialog
17 Q_OBJECT
19 public:
20 StatisticsDialog( QWidget* parent );
21 OVERRIDE QSize sizeHint() const;
22 void show();
24 private:
25 QTreeWidgetItem* addRow( const QString& title, int noOfTags, int tagCount, int imageCount, QTreeWidgetItem* parent );
26 void highlightTotalRow( QTreeWidgetItem* item );
27 QGroupBox* createAnnotatedGroupBox();
28 void populateSubTree( const DB::ImageSearchInfo& info, int imageCount, QTreeWidgetItem* top );
30 private slots:
31 void categoryChanged(int);
32 void populate();
34 private:
35 QTreeWidget* m_treeWidget;
36 QComboBox* m_category;
37 QLabel* m_tagLabel;
38 QComboBox* m_tag;
39 QGridLayout* m_boxLayout;
44 #endif /* STATISTICSDIALOG_H */