X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fcorehighlightsettingspage.h;h=0d9150da464bed00d2aeaddb6fa7fd90ef67c249;hb=54ebc1bf00f4f9a8376629925329f0e72be04662;hp=1a0ea7115b7fa9d4d08eb3d691ab96a699bea293;hpb=b627af388d570f48a03fd22ab024c07e82e0d503;p=quassel.git diff --git a/src/qtui/settingspages/corehighlightsettingspage.h b/src/qtui/settingspages/corehighlightsettingspage.h index 1a0ea711..0d9150da 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); @@ -94,6 +94,41 @@ private: void setupRuleTable(QTableWidget *highlightTable) const; + /** + * Get tooltip for the specified rule table column + * + * @param tableColumn Column to retrieve tooltip + * @return Translated tooltip for the specified column + */ + QString getTableTooltip(column tableColumn) const; + + /** + * Setup tooltips and "What's this?" prompts for table entries + * + * @param enableWidget Enabled checkbox + * @param nameWidget Rule name + * @param regExWidget RegEx enabled + * @param csWidget Case-sensitive + * @param senderWidget Sender name + * @param chanWidget Channel name + */ + void setupTableTooltips(QWidget *enableWidget, QWidget *nameWidget, QWidget *regExWidget, + QWidget *csWidget, QWidget *senderWidget, QWidget *chanWidget) const; + + /** + * Setup tooltips and "What's this?" prompts for table entries + * + * @param enableWidget Enabled checkbox + * @param nameWidget Rule name + * @param regExWidget RegEx enabled + * @param csWidget Case-sensitive + * @param senderWidget Sender name + * @param chanWidget Channel name + */ + void setupTableTooltips(QTableWidgetItem *enableWidget, QTableWidgetItem *nameWidget, + QTableWidgetItem *regExWidget, QTableWidgetItem *csWidget, + QTableWidgetItem *senderWidget, QTableWidgetItem *chanWidget) 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 @@ -103,5 +138,7 @@ private: */ void updateCoreSupportStatus(bool state); + int nextId(); + bool _initialized; };