2018-02-05 15:11:50 +01:00
|
|
|
#pragma once
|
|
|
|
|
2018-08-02 14:23:27 +02:00
|
|
|
#include "common/Aliases.hpp"
|
|
|
|
#include "common/Outcome.hpp"
|
|
|
|
#include "common/ProviderId.hpp"
|
2018-04-03 02:55:32 +02:00
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
#include <QString>
|
2018-06-01 14:20:46 +02:00
|
|
|
#include <QWidget>
|
2018-08-02 14:23:27 +02:00
|
|
|
#include <boost/optional.hpp>
|
2018-02-05 15:11:50 +01:00
|
|
|
#include <boost/preprocessor.hpp>
|
|
|
|
|
2018-04-03 02:55:32 +02:00
|
|
|
#include <string>
|
2018-02-05 15:11:50 +01:00
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
enum class HighlightState {
|
|
|
|
None,
|
|
|
|
Highlighted,
|
|
|
|
NewMessage,
|
2018-08-14 16:29:52 +02:00
|
|
|
Notification,
|
2018-02-05 15:11:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inline QString qS(const std::string &string)
|
|
|
|
{
|
|
|
|
return QString::fromStdString(string);
|
|
|
|
}
|
|
|
|
|
2018-08-06 21:17:03 +02:00
|
|
|
const Qt::KeyboardModifiers showSplitOverlayModifiers =
|
|
|
|
Qt::ControlModifier | Qt::AltModifier;
|
|
|
|
const Qt::KeyboardModifiers showAddSplitRegions =
|
|
|
|
Qt::ControlModifier | Qt::AltModifier;
|
2018-06-01 14:20:46 +02:00
|
|
|
const Qt::KeyboardModifiers showResizeHandlesModifiers = Qt::ControlModifier;
|
|
|
|
|
2018-06-26 17:25:24 +02:00
|
|
|
static const char *ANONYMOUS_USERNAME_LABEL ATTR_UNUSED = " - anonymous - ";
|
|
|
|
|
2018-08-02 14:23:27 +02:00
|
|
|
template <typename T>
|
|
|
|
std::weak_ptr<T> weakOf(T *element)
|
|
|
|
{
|
|
|
|
return element->shared_from_this();
|
|
|
|
}
|
|
|
|
|
2018-08-11 22:23:06 +02:00
|
|
|
struct Message;
|
|
|
|
using MessagePtr = std::shared_ptr<const Message>;
|
|
|
|
|
2018-08-16 00:16:33 +02:00
|
|
|
enum class CopyMode {
|
|
|
|
Everything,
|
|
|
|
OnlyTextAndEmotes,
|
|
|
|
};
|
|
|
|
|
2018-02-05 15:11:50 +01:00
|
|
|
} // namespace chatterino
|