3 /*! \file profildialog.h
4 \brief File .H for Class profile dialog
5 \author Jakub Šplíchal <jakub.bzouk@gmail.com>
10 class QMaemo5ValueButton;
12 class QStandardItemModel;
16 class QItemSelectionModel;
17 class QMaemo5ListPickSelector;
25 \brief Class for the dialog to create or edit profiles
27 class ProfilDialog : public QDialog {
30 ProfilDialog(QStringList list_of_profiles_n, QWidget *parent = 0, Profil *profil = NULL, QStandardItemModel *model = NULL);
34 void changeEvent(QEvent *e);
39 QMaemo5ValueButton *v1;
40 QMaemo5ValueButton *v2;
41 QMaemo5ValueButton *v3;
42 QMaemo5ValueButton *v4;
45 void createMeamoButtons();
48 int id_ButtonGroup_system;
49 int id_ButtonGroup_keyboard;
50 int id_ButtonGroup_screen;
52 QStandardItemModel *model_of_files;
53 bool checkFileInModelAndExist(QFileInfo inf);
54 QStringList list_of_profiles_names;
56 QItemSelectionModel* selModelMobil;
57 QItemSelectionModel* selModelSMS;
58 QItemSelectionModel* selModelIM;
59 QItemSelectionModel* selModelEmail;
61 QListView * createListView(QItemSelectionModel * select_model);
62 QMaemo5ListPickSelector * createMeamoListPick(QListView * list_view);
63 void setSelectedItem(QMaemo5ListPickSelector * listpicker, QItemSelectionModel * selModel, QString find );
66 void on_slider_email_volume_valueChanged(int value);
67 void on_slider_im_volume_valueChanged(int value);
68 void on_slider_sms_volume_valueChanged(int value);
69 void on_slider_ringing_volume_valueChanged(int value);
70 void on_ButtonLoadSound_clicked();
71 // void buttonGroup_system_clicked(int);
72 // void buttonGroup_keyboard_clicked(int);
73 // void buttonGroup_screen_clicked(int);
74 // void pokus_clicked(QModelIndex& );
77 #endif // PROFILDIALOG_H