Just testing...one header added to UI_design document.
[speedfreak] / Client / topresultdialog.h
1 /*
2  * Topresultdialog
3  *
4  * @author     Olavi Pulkkinen <olavi.pulkkinena@fudeco.com>
5  * @author     Toni Jussila <toni.jussila@fudeco.com>
6  * @copyright  (c) 2010 Speed Freak team
7  * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
8  */
9
10 #ifndef TOPRESULTDIALOG_H
11 #define TOPRESULTDIALOG_H
12
13 #include <QDialog>
14 #include <helpresultsdialog.h>
15
16 namespace Ui {
17     class TopResultDialog;
18 }
19
20 class TopResultDialog : public QDialog {
21     Q_OBJECT
22 public:
23     TopResultDialog(QWidget *parent = 0);
24     ~TopResultDialog();
25     HelpResultsDialog *helpResultsDialog;
26     void setCompoBoxCategories(QStringList list);
27     void showTopList(QString str);
28     int getRecentCategoryIndex();
29     int getLimitNr();
30     void setLimitNr(int number);
31     void setLabelInfoToUser(QString infoText);
32
33 protected:
34     void changeEvent(QEvent *e);
35
36 signals:
37     void refreshCategoryList();
38     void refreshTopList(int index);
39
40 private:
41     Ui::TopResultDialog *ui;
42     int recentCategoryIndex;
43     int limitNr;
44
45 private slots:
46     void on_pushButtonInfo_clicked();
47     void on_comboBoxTopCategory_currentIndexChanged(int index);
48     void on_buttonTopRefresh_clicked();
49     void killHelpDialog();
50 };
51
52 #endif // TOPRESULTDIALOG_H