summaryrefslogtreecommitdiff
path: root/gui/settingsdialog.h
diff options
context:
space:
mode:
authorZack Rusin <zack@kde.org>2011-04-13 00:41:32 -0400
committerZack Rusin <zack@kde.org>2011-04-13 00:41:32 -0400
commit20e6a8ca8602718c9da406b0109d20095efcfc86 (patch)
treecd94090156da68650b4a9ffe6d7babb708dffab2 /gui/settingsdialog.h
parentf54c4fc1b52ece07d54b86caa09a4616b98605e7 (diff)
Implement showing only of events specified by a regexp.
Diffstat (limited to 'gui/settingsdialog.h')
-rw-r--r--gui/settingsdialog.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/gui/settingsdialog.h b/gui/settingsdialog.h
index 6c82b408..85cb9bbc 100644
--- a/gui/settingsdialog.h
+++ b/gui/settingsdialog.h
@@ -4,6 +4,7 @@
#include "apitracefilter.h"
#include "ui_settings.h"
#include <QDialog>
+#include <QRegExp>
class SettingsDialog : public QDialog, public Ui_Settings
@@ -13,11 +14,17 @@ public:
SettingsDialog(QWidget *parent = 0);
void accept();
- void setFilterOptions(ApiTraceFilter::FilterOptions opts);
- ApiTraceFilter::FilterOptions filterOptions() const;
+ void setFilterModel(ApiTraceFilter *filter);
+private slots:
+ void changeRegexp(const QString &name);
+ void regexpChanged(const QString &pattern);
private:
- ApiTraceFilter::FilterOptions m_filterOptions;
+ void filtersFromModel(const ApiTraceFilter *model);
+ void filtersToModel(ApiTraceFilter *model);
+private:
+ QMap<QString, QRegExp> m_showFilters;
+ ApiTraceFilter *m_filter;
};
#endif