README
[n9profile] / calendarprofilesdialog.h
1 /** \file calendarprofilesdialog.h
2   \brief   contain class for show dialog
3   \author Jakub Šplíchal <jakub.bzouk@gmail.com>
4  */
5 #ifndef CALENDARPROFILESDIALOG_H
6 #define CALENDARPROFILESDIALOG_H
7
8 #include <QDialog>
9 class QStandardItemModel;
10 class QModelIndex;
11 class QItemSelectionModel;
12 class QSettings;
13 namespace Ui {
14     class CalendarProfilesDialog;
15 }
16
17 /** \class CalendarProfilesDialog
18   \brief class for calendar dialog
19   class show dialog for  calendar rules
20  */
21 class CalendarProfilesDialog : public QDialog {
22     Q_OBJECT
23 public:
24     CalendarProfilesDialog(QWidget *parent = 0);
25     ~CalendarProfilesDialog();
26
27     void SetSettings(QSettings *sett);
28     void SetViews(QStandardItemModel *model_of_profiles ,
29                   QItemSelectionModel *selModel_profiles,
30                   QStandardItemModel *model_of_calendars ,
31                   QItemSelectionModel *selModel_calendars);
32
33 signals:
34     void s_change_calendars();
35     void s_change_profiles();
36
37 protected:
38     void changeEvent(QEvent *e);
39
40 private:
41     Ui::CalendarProfilesDialog *ui;
42     QSettings *settings;
43
44 private slots:
45     void on_Profile_tableView_clicked(QModelIndex index);
46     void on_CalendartableView_clicked(QModelIndex index);
47 };
48
49 #endif // CALENDARPROFILESDIALOG_H