add googleSettingsDialog
[mdictionary] / trunk / src / plugins / google / src / GoogleSettingsDialog.h
1 #ifndef GOOGLESETTINGSDIALOG_H
2 #define GOOGLESETTINGSDIALOG_H
3
4 #include <QDialog>
5 #include "../../../includes/settings.h"
6 #include <QtGui>
7 #include "GooglePlugin.h"
8
9 class GooglePlugin;
10
11 class GoogleSettingsDialog : public QDialog
12 {
13     Q_OBJECT
14 public:
15     explicit GoogleSettingsDialog(QWidget *parent = 0,QString langTo ="",QString langFrom ="");
16
17     static Settings* getSettings(QWidget *parent,QString langTo ="",QString langFrom ="");
18     static void changeSettings(GooglePlugin* plugin, QWidget *parent);
19     QString langFrom();
20     QString langTo();
21
22 public slots:
23     void activatedFrom(int);
24     void activatedTo(int);
25     void changeLangButtonClicked();
26
27 private:
28     QLabel* infoLabel;
29     QLabel* langFromLabel;
30     QLabel* langToLabel;
31     QPushButton* saveButton;
32     QPushButton* changeLangButton;
33     QComboBox *langFromComboBox;
34     QComboBox *langToComboBox;
35
36     QVBoxLayout* verticalLayout;
37     QVBoxLayout* langLayout;
38     QHBoxLayout* langFromLayout;
39     QHBoxLayout* langToLayout;
40     QHBoxLayout* changelangLayout;
41
42     QString _langFrom;
43     QString _langTo;
44
45
46 /*    QPushButton* browseButton;
47     QLabel* browseLabel;
48     QCheckBox* cacheCheckBox;
49
50     QHBoxLayout* browseLayout;
51     QHBoxLayout* cacheLayout;
52 */
53 };
54
55 #endif // GOOGLESETTINGSDIALOG_H