src: Yearly copyright bump
[quassel.git] / src / qtui / settingspages / highlightsettingspage.h
index 84f042a..170f892 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2014 by the Quassel Project                        *
+ *   Copyright (C) 2005-2019 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
 #ifndef _HIGHLIGHTSETTINGSPAGE_H_
 #define _HIGHLIGHTSETTINGSPAGE_H_
 
-#include <QVariantList>
 #include <QTableWidgetItem>
+#include <QVariantList>
 
 #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 = true, 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