2019-09-08 22:27:57 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-01-25 11:03:10 +01:00
|
|
|
#include "widgets/helper/EditableModelView.hpp"
|
2019-09-08 22:27:57 +02:00
|
|
|
#include "widgets/settingspages/SettingsPage.hpp"
|
|
|
|
|
|
|
|
#include <QAbstractTableModel>
|
|
|
|
#include <QTimer>
|
|
|
|
|
|
|
|
class QPushButton;
|
|
|
|
class QListWidget;
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class HighlightingPage : public SettingsPage
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
HighlightingPage();
|
|
|
|
|
|
|
|
private:
|
2021-05-03 00:08:08 +02:00
|
|
|
enum HighlightTab { Messages = 0, Users = 1, Badges = 2, Blacklist = 3 };
|
|
|
|
|
2019-09-08 22:27:57 +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);
|
2019-09-08 22:27:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace chatterino
|