]> git.cworth.org Git - apitrace/blob - gui/settingsdialog.h
Implement showing only of events specified by a regexp.
[apitrace] / gui / settingsdialog.h
1 #ifndef SETTINGSDIALOG_H
2 #define SETTINGSDIALOG_H
3
4 #include "apitracefilter.h"
5 #include "ui_settings.h"
6 #include <QDialog>
7 #include <QRegExp>
8
9
10 class SettingsDialog : public QDialog, public Ui_Settings
11 {
12     Q_OBJECT
13 public:
14     SettingsDialog(QWidget *parent = 0);
15     void accept();
16
17     void setFilterModel(ApiTraceFilter *filter);
18 private slots:
19     void changeRegexp(const QString &name);
20     void regexpChanged(const QString &pattern);
21
22 private:
23     void filtersFromModel(const ApiTraceFilter *model);
24     void filtersToModel(ApiTraceFilter *model);
25 private:
26     QMap<QString, QRegExp> m_showFilters;
27     ApiTraceFilter *m_filter;
28 };
29
30 #endif