X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fsettingspages%2Fhighlightsettingspage.h;h=96af4eebbfd8cb9dafb5300c669e6a43d1b26909;hp=423e1b4a9285483001d430d7fac4db1dab3cb87f;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b diff --git a/src/qtui/settingspages/highlightsettingspage.h b/src/qtui/settingspages/highlightsettingspage.h index 423e1b4a..96af4eeb 100644 --- a/src/qtui/settingspages/highlightsettingspage.h +++ b/src/qtui/settingspages/highlightsettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -21,10 +21,11 @@ #ifndef _HIGHLIGHTSETTINGSPAGE_H_ #define _HIGHLIGHTSETTINGSPAGE_H_ -#include #include +#include #include "settingspage.h" + #include "ui_highlightsettingspage.h" class HighlightSettingsPage : public SettingsPage @@ -32,21 +33,31 @@ class HighlightSettingsPage : public SettingsPage Q_OBJECT public: - HighlightSettingsPage(QWidget *parent = 0); + HighlightSettingsPage(QWidget* parent = nullptr); - bool hasDefaults() const; + bool hasDefaults() const override; public slots: - void save(); - void load(); - void defaults(); + void save() override; + void load() override; + void defaults() override; private slots: void widgetHasChanged(); - void addNewRow(QString name = tr("highlight rule"), bool regex = false, bool cs = false, bool enable = true, QString chanName = "", bool self = false); + void addNewRow(QString name = tr("highlight rule"), + bool regex = false, + bool cs = false, + bool enable = true, + QString chanName = "", + bool self = false); void removeSelectedRows(); - void selectRow(QTableWidgetItem *item); - void tableChanged(QTableWidgetItem *item); + void selectRow(QTableWidgetItem* item); + void tableChanged(QTableWidgetItem* item); + + /** + * Event handler for Local Highlights Details button + */ + void on_localHighlightsDetails_clicked(); private: Ui::HighlightSettingsPage ui; @@ -55,11 +66,12 @@ private: // regex: bool // name: QString // enable: bool - enum column { - NameColumn = 0, - RegExColumn = 1, - CsColumn = 2, - EnableColumn = 3, + enum column + { + EnableColumn = 0, + NameColumn = 1, + RegExColumn = 2, + CsColumn = 3, ChanColumn = 4, ColumnCount = 5 }; @@ -69,5 +81,4 @@ private: bool testHasChanged(); }; - #endif