X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fcorehighlightsettingspage.h;h=d4682ec1c29fdfdafa43f16dd53b9823fa1658fa;hb=17c39210b1bce04795046657642de66292518fe6;hp=5859d00ce87f23445675639982df5c531fc48088;hpb=3dd3e015a63cd5289e693867c27ec50779a3608d;p=quassel.git diff --git a/src/qtui/settingspages/corehighlightsettingspage.h b/src/qtui/settingspages/corehighlightsettingspage.h index 5859d00c..d4682ec1 100644 --- a/src/qtui/settingspages/corehighlightsettingspage.h +++ b/src/qtui/settingspages/corehighlightsettingspage.h @@ -49,14 +49,14 @@ public slots: private slots: void coreConnectionStateChanged(bool state); void widgetHasChanged(); - void addNewHighlightRow(bool enable = true, const QString &name = tr("highlight rule"), bool regex = false, + void addNewHighlightRow(bool enable = true, int id = -1, const QString &name = tr("highlight rule"), bool regex = false, bool cs = false, const QString &sender = "", const QString &chanName = "", bool self = false); - void addNewIgnoredRow(bool enable = true, const QString &name = tr("highlight rule"), bool regex = false, + void addNewIgnoredRow(bool enable = true, int id = -1, const QString &name = tr("highlight rule"), bool regex = false, bool cs = false, const QString &sender = "", const QString &chanName = "", bool self = false); void removeSelectedHighlightRows(); void removeSelectedIgnoredRows(); - void highlightNicksChanged(const int index); + void highlightNicksChanged(int index); void selectHighlightRow(QTableWidgetItem *item); void selectIgnoredRow(QTableWidgetItem *item); void highlightTableChanged(QTableWidgetItem *item); @@ -68,6 +68,11 @@ private slots: */ void importRules(); + /** + * Event handler for core unspported Details button + */ + void on_coreUnsupportedDetails_clicked(); + private: Ui::CoreHighlightSettingsPage ui; @@ -89,5 +94,16 @@ private: void setupRuleTable(QTableWidget *highlightTable) const; + /** Update the UI to show core support for highlights + * + * Shows or hides the UI warnings around core-side highlights according to core connection and + * core feature support. + * + * @param state True if connected to core, otherwise false + */ + void updateCoreSupportStatus(bool state); + + int nextId(); + bool _initialized; };