30 #ifndef NOTIFYPLUGINOPTIONSPAGE_H
31 #define NOTIFYPLUGINOPTIONSPAGE_H
38 #include <QStringList>
39 #include <QItemSelectionModel>
41 #include <QtCore/QSettings>
44 #include <QSoundEffect>
45 #include <QMediaPlayer>
65 QString
id()
const {
return QLatin1String(
"settings"); }
66 QString
trName()
const {
return tr(
"settings"); }
67 QString
category()
const {
return QLatin1String(
"Notify Plugin"); }
68 QString
trCategory()
const {
return tr(
"Notify Plugin"); }
70 QWidget *createPage(QWidget *parent);
73 void restoreFromSettings();
78 void entryUpdated(
int index);
81 void on_clicked_buttonTestSoundNotification();
82 void on_clicked_buttonAddNotification();
83 void on_clicked_buttonDeleteNotification();
84 void on_clicked_buttonModifyNotification();
90 void on_changedSelection_notifyTable(
const QItemSelection &selected,
91 const QItemSelection &deselected);
93 void on_changedIndex_soundLanguage(
int index);
94 void on_clicked_buttonSoundFolder(
const QString &path);
95 void on_changedIndex_UAVObject(QString val);
96 void on_changedIndex_UAVField(QString val);
97 void on_changed_playButtonText(QMediaPlayer::State newstate);
105 void on_changedIndex_rangeValue(QString);
107 void on_FinishedPlaying(
void);
113 void initPhononPlayer();
114 void initRulesTable();
117 void resetValueRange();
118 void resetFieldType();
125 void addDynamicFieldLayout();
135 QMediaPlayer *_testSound;
138 QItemSelectionModel *_notifyRulesSelection;
153 QComboBox *_dynamicFieldCondition;
158 QWidget *_dynamicFieldWidget;
163 int _dynamicFieldType;
167 QComboBox *_sayOrder;
182 QMediaPlaylist *playlist;
185 #endif // NOTIFYPLUGINOPTIONSPAGE_H
static QStringList conditionValues
QString trCategory() const
The IOptionsPage is an interface for providing options pages.