X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fhighlightsettingspage.h;h=29d8c1f83e840ecd489736b012c950a328dad04d;hp=8fdb70819c09c7d1489275d005e7ba2007336c0d;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c diff --git a/src/qtui/settingspages/highlightsettingspage.h b/src/qtui/settingspages/highlightsettingspage.h index 8fdb7081..29d8c1f8 100644 --- a/src/qtui/settingspages/highlightsettingspage.h +++ b/src/qtui/settingspages/highlightsettingspage.h @@ -27,39 +27,41 @@ #include "settingspage.h" #include "ui_highlightsettingspage.h" -class HighlightSettingsPage : public SettingsPage { - Q_OBJECT +class HighlightSettingsPage : public SettingsPage +{ + Q_OBJECT - public: +public: HighlightSettingsPage(QWidget *parent = 0); bool hasDefaults() const; - public slots: +public slots: void save(); void load(); void defaults(); - private slots: +private slots: void widgetHasChanged(); - void addNewRow(QString name = tr("highlight rule"), bool regex = false, bool cs = true, bool enable = true); + void addNewRow(QString name = tr("highlight rule"), bool regex = false, bool cs = true, bool enable = true, QString chanName = "", bool self = false); void removeSelectedRows(); void selectRow(QTableWidgetItem *item); void tableChanged(QTableWidgetItem *item); - private: +private: Ui::HighlightSettingsPage ui; - QVariantList highlightList; + QVariantList highlightList; // QVariant -> QHash: // regex: bool // name: QString // enable: bool enum column { - NameColumn = 0, - RegExColumn = 1, - CsColumn = 2, - EnableColumn = 3, - ColumnCount = 4 + NameColumn = 0, + RegExColumn = 1, + CsColumn = 2, + EnableColumn = 3, + ChanColumn = 4, + ColumnCount = 5 }; void emptyTable(); @@ -67,4 +69,5 @@ class HighlightSettingsPage : public SettingsPage { bool testHasChanged(); }; + #endif