2018-01-12 23:09:05 +01:00
|
|
|
#pragma once
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-06-26 14:09:39 +02:00
|
|
|
#include "widgets/settingspages/SettingsPage.hpp"
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-04-25 14:49:30 +02:00
|
|
|
#include <QAbstractTableModel>
|
2018-04-03 02:55:32 +02:00
|
|
|
#include <QTimer>
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-01-13 02:00:02 +01:00
|
|
|
class QPushButton;
|
|
|
|
class QListWidget;
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-01-12 23:09:05 +01:00
|
|
|
namespace chatterino {
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2022-12-31 15:41:01 +01:00
|
|
|
class EditableModelView;
|
|
|
|
|
2018-01-12 23:09:05 +01:00
|
|
|
class HighlightingPage : public SettingsPage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
HighlightingPage();
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-01-13 02:00:02 +01:00
|
|
|
private:
|
2021-05-03 00:08:08 +02:00
|
|
|
enum HighlightTab { Messages = 0, Users = 1, Badges = 2, Blacklist = 3 };
|
|
|
|
|
2018-07-06 19:23:47 +02:00
|
|
|
QTimer disabledUsersChangedTimer_;
|
2020-01-25 11:03:10 +01:00
|
|
|
|
2021-05-03 00:08:08 +02:00
|
|
|
void tableCellClicked(const QModelIndex &clicked, EditableModelView *view,
|
|
|
|
HighlightTab tab);
|
|
|
|
void openSoundDialog(const QModelIndex &clicked, EditableModelView *view,
|
|
|
|
int soundColumn);
|
|
|
|
void openColorDialog(const QModelIndex &clicked, EditableModelView *view,
|
|
|
|
HighlightTab tab);
|
2018-01-12 23:09:05 +01:00
|
|
|
};
|
2019-09-08 22:27:57 +02:00
|
|
|
|
2018-01-12 23:09:05 +01:00
|
|
|
} // namespace chatterino
|