created directory for dialogs

This commit is contained in:
fourtf 2018-06-26 15:11:45 +02:00
parent f09c7e8b4e
commit 0bc08a364c
50 changed files with 68 additions and 175 deletions

View file

@ -91,11 +91,9 @@ werr {
message("Enabling error on warning")
}
# src
SOURCES += \
src/Application.cpp \
src/Channel.cpp \
src/ChannelData.cpp \
src/Common.cpp \
src/controllers/accounts/Account.cpp \
src/controllers/accounts/AccountController.cpp \
@ -168,7 +166,16 @@ SOURCES += \
src/widgets/AttachedWindow.cpp \
src/widgets/BaseWidget.cpp \
src/widgets/BaseWindow.cpp \
src/widgets/EmotePopup.cpp \
src/widgets/dialogs/EmotePopup.cpp \
src/widgets/dialogs/LastRunCrashDialog.cpp \
src/widgets/dialogs/LoginDialog.cpp \
src/widgets/dialogs/NotificationPopup.cpp \
src/widgets/dialogs/QualityPopup.cpp \
src/widgets/dialogs/SelectChannelDialog.cpp \
src/widgets/dialogs/SettingsDialog.cpp \
src/widgets/dialogs/TextInputDialog.cpp \
src/widgets/dialogs/UserInfoPopup.cpp \
src/widgets/dialogs/WelcomeDialog.cpp \
src/widgets/helper/ChannelView.cpp \
src/widgets/helper/ComboBoxItemDelegate.cpp \
src/widgets/helper/DebugPopup.cpp \
@ -184,20 +191,10 @@ SOURCES += \
src/widgets/helper/SearchPopup.cpp \
src/widgets/helper/SettingsDialogTab.cpp \
src/widgets/helper/SignalLabel.cpp \
src/widgets/splits/SplitColumn.cpp \
src/widgets/splits/SplitHeader.cpp \
src/widgets/splits/SplitInput.cpp \
src/widgets/splits/SplitOverlay.cpp \
src/widgets/helper/TitlebarButton.cpp \
src/widgets/Label.cpp \
src/widgets/LastRunCrashDialog.cpp \
src/widgets/LoginDialog.cpp \
src/widgets/Notebook.cpp \
src/widgets/NotificationPopup.cpp \
src/widgets/QualityPopup.cpp \
src/widgets/Scrollbar.cpp \
src/widgets/SelectChannelDialog.cpp \
src/widgets/SettingsDialog.cpp \
src/widgets/settingspages/AboutPage.cpp \
src/widgets/settingspages/AccountsPage.cpp \
src/widgets/settingspages/AppearancePage.cpp \
@ -214,20 +211,19 @@ SOURCES += \
src/widgets/settingspages/SettingsPage.cpp \
src/widgets/settingspages/SpecialChannelsPage.cpp \
src/widgets/splits/Split.cpp \
src/widgets/splits/SplitColumn.cpp \
src/widgets/splits/SplitContainer.cpp \
src/widgets/splits/SplitHeader.cpp \
src/widgets/splits/SplitInput.cpp \
src/widgets/splits/SplitOverlay.cpp \
src/widgets/StreamView.cpp \
src/widgets/TextInputDialog.cpp \
src/widgets/TooltipWidget.cpp \
src/widgets/UserInfoPopup.cpp \
src/widgets/WelcomeDialog.cpp \
src/widgets/Window.cpp
HEADERS += \
src/Application.hpp \
src/Channel.hpp \
src/ChannelData.hpp \
src/Common.hpp \
src/Const.hpp \
src/controllers/accounts/Account.hpp \
src/controllers/accounts/AccountController.hpp \
src/controllers/accounts/AccountModel.hpp \
@ -243,10 +239,10 @@ HEADERS += \
src/controllers/taggedusers/TaggedUser.hpp \
src/controllers/taggedusers/TaggedUsersController.hpp \
src/controllers/taggedusers/TaggedUsersModel.hpp \
src/Credentials.hpp \
src/debug/AssertInGuiThread.hpp \
src/debug/Benchmark.hpp \
src/debug/Log.hpp \
src/LockedObject.hpp \
src/messages/HighlightPhrase.hpp \
src/messages/Image.hpp \
src/messages/layouts/MessageLayout.hpp \
src/messages/layouts/MessageLayoutContainer.hpp \
@ -271,6 +267,8 @@ HEADERS += \
src/providers/irc/IrcChannel2.hpp \
src/providers/irc/IrcConnection2.hpp \
src/providers/irc/IrcServer.hpp \
src/providers/twitch/Const.hpp \
src/providers/twitch/Credentials.hpp \
src/providers/twitch/EmoteValue.hpp \
src/providers/twitch/IrcMessageHandler.hpp \
src/providers/twitch/Pubsub.hpp \
@ -300,8 +298,6 @@ HEADERS += \
src/singletons/ThemeManager.hpp \
src/singletons/UpdateManager.hpp \
src/singletons/WindowManager.hpp \
src/util/AssertInGuiThread.hpp \
src/util/Benchmark.hpp \
src/util/Clamp.hpp \
src/util/CombinePath.hpp \
src/util/CompletionModel.hpp \
@ -338,7 +334,16 @@ HEADERS += \
src/widgets/AttachedWindow.hpp \
src/widgets/BaseWidget.hpp \
src/widgets/BaseWindow.hpp \
src/widgets/EmotePopup.hpp \
src/widgets/dialogs/EmotePopup.hpp \
src/widgets/dialogs/LastRunCrashDialog.hpp \
src/widgets/dialogs/LoginDialog.hpp \
src/widgets/dialogs/NotificationPopup.hpp \
src/widgets/dialogs/QualityPopup.hpp \
src/widgets/dialogs/SelectChannelDialog.hpp \
src/widgets/dialogs/SettingsDialog.hpp \
src/widgets/dialogs/TextInputDialog.hpp \
src/widgets/dialogs/UserInfoPopup.hpp \
src/widgets/dialogs/WelcomeDialog.hpp \
src/widgets/helper/ChannelView.hpp \
src/widgets/helper/ComboBoxItemDelegate.hpp \
src/widgets/helper/DebugPopup.hpp \
@ -356,20 +361,10 @@ HEADERS += \
src/widgets/helper/SettingsDialogTab.hpp \
src/widgets/helper/Shortcut.hpp \
src/widgets/helper/SignalLabel.hpp \
src/widgets/splits/SplitColumn.hpp \
src/widgets/splits/SplitHeader.hpp \
src/widgets/splits/SplitInput.hpp \
src/widgets/splits/SplitOverlay.hpp \
src/widgets/helper/TitlebarButton.hpp \
src/widgets/Label.hpp \
src/widgets/LastRunCrashDialog.hpp \
src/widgets/LoginDialog.hpp \
src/widgets/Notebook.hpp \
src/widgets/NotificationPopup.hpp \
src/widgets/QualityPopup.hpp \
src/widgets/Scrollbar.hpp \
src/widgets/SelectChannelDialog.hpp \
src/widgets/SettingsDialog.hpp \
src/widgets/settingspages/AboutPage.hpp \
src/widgets/settingspages/AccountsPage.hpp \
src/widgets/settingspages/AppearancePage.hpp \
@ -386,13 +381,13 @@ HEADERS += \
src/widgets/settingspages/SettingsPage.hpp \
src/widgets/settingspages/SpecialChannelsPage.hpp \
src/widgets/splits/Split.hpp \
src/widgets/splits/SplitColumn.hpp \
src/widgets/splits/SplitContainer.hpp \
src/widgets/splits/SplitHeader.hpp \
src/widgets/splits/SplitInput.hpp \
src/widgets/splits/SplitOverlay.hpp \
src/widgets/StreamView.hpp \
src/widgets/TextInputDialog.hpp \
src/widgets/Titlebar.hpp \
src/widgets/TooltipWidget.hpp \
src/widgets/UserInfoPopup.hpp \
src/widgets/WelcomeDialog.hpp \
src/widgets/Window.hpp
RESOURCES += \

View file

@ -2,7 +2,7 @@
#include "Application.hpp"
#include "controllers/highlights/HighlightModel.hpp"
#include "widgets/NotificationPopup.hpp"
#include "widgets/dialogs/NotificationPopup.hpp"
namespace chatterino {
namespace controllers {

View file

@ -4,7 +4,7 @@
#include "singletons/UpdateManager.hpp"
#include "util/DebugCount.hpp"
#include "util/NetworkManager.hpp"
#include "widgets/LastRunCrashDialog.hpp"
#include "widgets/dialogs/LastRunCrashDialog.hpp"
#include <QAbstractNativeEventFilter>
#include <QApplication>

View file

@ -1,87 +0,0 @@
//#pragma once
//#include "util/SerializeCustom.hpp"
//#include <QString>
//#include <pajlada/settings/serialize.hpp>
//namespace chatterino {
//namespace messages {
//struct HighlightPhrase {
// QString key;
// bool alert;
// bool sound;
// bool regex;
// bool operator==(const HighlightPhrase &other) const
// {
// return std::tie(this->key, this->sound, this->alert, this->regex) ==
// std::tie(other.key, other.sound, other.alert, other.regex);
// }
//};
//} // namespace messages
//} // namespace chatterino
//namespace pajlada {
//namespace Settings {
//template <>
//struct Serialize<chatterino::messages::HighlightPhrase> {
// static rapidjson::Value get(const chatterino::messages::HighlightPhrase &value,
// rapidjson::Document::AllocatorType &a)
// {
// rapidjson::Value ret(rapidjson::kObjectType);
// AddMember(ret, "key", value.key, a);
// AddMember(ret, "alert", value.alert, a);
// AddMember(ret, "sound", value.sound, a);
// AddMember(ret, "regex", value.regex, a);
// return ret;
// }
//};
//template <>
//struct Deserialize<chatterino::messages::HighlightPhrase> {
// static chatterino::messages::HighlightPhrase get(const rapidjson::Value &value)
// {
// chatterino::messages::HighlightPhrase ret;
// if (!value.IsObject()) {
// return ret;
// }
// if (value.HasMember("key")) {
// const rapidjson::Value &key = value["key"];
// if (key.IsString()) {
// ret.key = key.GetString();
// }
// }
// if (value.HasMember("alert")) {
// const rapidjson::Value &alert = value["alert"];
// if (alert.IsBool()) {
// ret.alert = alert.GetBool();
// }
// }
// if (value.HasMember("sound")) {
// const rapidjson::Value &sound = value["sound"];
// if (sound.IsBool()) {
// ret.sound = sound.GetBool();
// }
// }
// if (value.HasMember("regex")) {
// const rapidjson::Value &regex = value["regex"];
// if (regex.IsBool()) {
// ret.regex = regex.GetBool();
// }
// }
// return ret;
// }
//};
//} // namespace Settings
//} // namespace pajlada

View file

@ -4,7 +4,7 @@
#include "messages/layouts/MessageLayoutContainer.hpp"
#include "messages/layouts/MessageLayoutElement.hpp"
#include "singletons/SettingsManager.hpp"
#include "util/Benchmark.hpp"
#include "debug/Benchmark.hpp"
#include "util/Emotemap.hpp"
namespace chatterino {

View file

@ -4,7 +4,7 @@
#include "singletons/EmoteManager.hpp"
#include "singletons/SettingsManager.hpp"
#include "singletons/WindowManager.hpp"
#include "util/Benchmark.hpp"
#include "debug/Benchmark.hpp"
#include <QApplication>
#include <QDebug>

View file

@ -1,6 +1,6 @@
#include "providers/twitch/TwitchAccount.hpp"
#include "Const.hpp"
#include "providers/twitch/Const.hpp"
#include "debug/Log.hpp"
#include "util/NetworkRequest.hpp"
#include "util/RapidjsonHelpers.hpp"

View file

@ -1,7 +1,7 @@
#include "providers/twitch/TwitchAccountManager.hpp"
#include "Common.hpp"
#include "Const.hpp"
#include "providers/twitch/Const.hpp"
#include "debug/Log.hpp"
namespace chatterino {

View file

@ -2,7 +2,7 @@
#include "debug/Log.hpp"
#include "messages/Image.hpp"
#include "util/Benchmark.hpp"
#include "debug/Benchmark.hpp"
#include "util/RapidjsonHelpers.hpp"
#include "util/UrlFetch.hpp"

View file

@ -4,7 +4,7 @@
#include <QtGlobal>
#include "Application.hpp"
#include "util/AssertInGuiThread.hpp"
#include "debug/AssertInGuiThread.hpp"
#include "WindowManager.hpp"
#ifdef Q_OS_WIN32

View file

@ -6,10 +6,10 @@
#include "singletons/FontManager.hpp"
#include "singletons/PathManager.hpp"
#include "singletons/ThemeManager.hpp"
#include "util/AssertInGuiThread.hpp"
#include "debug/AssertInGuiThread.hpp"
#include "util/Clamp.hpp"
#include "widgets/AccountSwitchPopupWidget.hpp"
#include "widgets/SettingsDialog.hpp"
#include "widgets/dialogs/SettingsDialog.hpp"
#include <QJsonArray>
#include <QJsonDocument>

View file

@ -6,7 +6,7 @@
#include <pajlada/signals/signal.hpp>
#include <vector>
#include "util/AssertInGuiThread.hpp"
#include "debug/AssertInGuiThread.hpp"
namespace chatterino {
namespace util {

View file

@ -3,7 +3,7 @@
#include "Application.hpp"
#include "Helpers.hpp"
#include "singletons/SettingsManager.hpp"
#include "widgets/QualityPopup.hpp"
#include "widgets/dialogs/QualityPopup.hpp"
#include <QErrorMessage>
#include <QFileInfo>

View file

@ -1,7 +1,7 @@
#pragma once
#include "controllers/accounts/AccountController.hpp"
#include "Credentials.hpp"
#include "providers/twitch/Credentials.hpp"
#include "debug/Log.hpp"
#include "util/NetworkManager.hpp"
#include "util/NetworkRequest.hpp"

View file

@ -1,6 +1,6 @@
#include "widgets/AccountSwitchPopupWidget.hpp"
#include "debug/Log.hpp"
#include "widgets/SettingsDialog.hpp"
#include "widgets/dialogs/SettingsDialog.hpp"
#include <QHBoxLayout>
#include <QLayout>

View file

@ -1,7 +1,7 @@
#include "AccountSwitchWidget.hpp"
#include "Application.hpp"
#include "Const.hpp"
#include "providers/twitch/Const.hpp"
#include "controllers/accounts/AccountController.hpp"
namespace chatterino {

View file

@ -7,7 +7,7 @@
#include "widgets/helper/NotebookButton.hpp"
#include "widgets/helper/NotebookTab.hpp"
#include "widgets/helper/Shortcut.hpp"
#include "widgets/SettingsDialog.hpp"
#include "widgets/dialogs/SettingsDialog.hpp"
#include "widgets/splits/SplitContainer.hpp"
#include "widgets/Window.hpp"

View file

@ -1,15 +0,0 @@
#pragma once
#include <QWidget>
namespace chatterino {
namespace widgets {
class TitleBar : public QWidget
{
public:
TitleBar(QWidget *parent = nullptr);
};
} // namespace widgets
} // namespace chatterino

View file

@ -11,9 +11,9 @@
#include "widgets/AccountSwitchPopupWidget.hpp"
#include "widgets/helper/Shortcut.hpp"
#include "widgets/Notebook.hpp"
#include "widgets/SettingsDialog.hpp"
#include "widgets/dialogs/SettingsDialog.hpp"
#include "widgets/splits/Split.hpp"
#include "widgets/WelcomeDialog.hpp"
#include "widgets/dialogs/WelcomeDialog.hpp"
#include <QApplication>
#include <QDesktopServices>

View file

@ -1,4 +1,4 @@
#include "widgets/LoginDialog.hpp"
#include "widgets/dialogs/LoginDialog.hpp"
#include "Common.hpp"
#include "util/UrlFetch.hpp"
#ifdef USEWINSDK

View file

@ -1,6 +1,6 @@
#pragma once
#include "BaseWindow.hpp"
#include "widgets/BaseWindow.hpp"
#include <QComboBox>
#include <QDialogButtonBox>

View file

@ -1,4 +1,4 @@
#include "widgets/SettingsDialog.hpp"
#include "widgets/dialogs/SettingsDialog.hpp"
#include "Application.hpp"
#include "util/LayoutCreator.hpp"

View file

@ -1,6 +1,6 @@
#pragma once
#include "BaseWindow.hpp"
#include "widgets/BaseWindow.hpp"
#include <QPushButton>
#include <QStackedLayout>

View file

@ -1,4 +1,4 @@
#include "widgets/TextInputDialog.hpp"
#include "widgets/dialogs/TextInputDialog.hpp"
#include <QSizePolicy>
namespace chatterino {

View file

@ -9,11 +9,11 @@
#include "singletons/SettingsManager.hpp"
#include "singletons/ThemeManager.hpp"
#include "singletons/WindowManager.hpp"
#include "util/Benchmark.hpp"
#include "debug/Benchmark.hpp"
#include "util/DistanceBetweenPoints.hpp"
#include "widgets/splits/Split.hpp"
#include "widgets/TooltipWidget.hpp"
#include "widgets/UserInfoPopup.hpp"
#include "widgets/dialogs/UserInfoPopup.hpp"
#include <QClipboard>
#include <QDebug>

View file

@ -8,8 +8,8 @@
#include "util/Clamp.hpp"
#include "util/Helpers.hpp"
#include "widgets/Notebook.hpp"
#include "widgets/SettingsDialog.hpp"
#include "widgets/TextInputDialog.hpp"
#include "widgets/dialogs/SettingsDialog.hpp"
#include "widgets/dialogs/TextInputDialog.hpp"
#include <QApplication>
#include <QDebug>

View file

@ -1,5 +1,5 @@
#include "widgets/helper/SettingsDialogTab.hpp"
#include "widgets/SettingsDialog.hpp"
#include "widgets/dialogs/SettingsDialog.hpp"
#include "widgets/settingspages/SettingsPage.hpp"
#include <QPainter>

View file

@ -1,12 +1,12 @@
#include "AccountsPage.hpp"
#include "Application.hpp"
#include "Const.hpp"
#include "providers/twitch/Const.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "controllers/accounts/AccountModel.hpp"
#include "util/LayoutCreator.hpp"
#include "widgets/helper/EditableModelView.hpp"
#include "widgets/LoginDialog.hpp"
#include "widgets/dialogs/LoginDialog.hpp"
#include <QDialogButtonBox>
#include <QHeaderView>

View file

@ -15,11 +15,11 @@
#include "widgets/helper/SearchPopup.hpp"
#include "widgets/helper/Shortcut.hpp"
#include "widgets/splits/SplitOverlay.hpp"
#include "widgets/QualityPopup.hpp"
#include "widgets/SelectChannelDialog.hpp"
#include "widgets/dialogs/QualityPopup.hpp"
#include "widgets/dialogs/SelectChannelDialog.hpp"
#include "widgets/splits/SplitContainer.hpp"
#include "widgets/TextInputDialog.hpp"
#include "widgets/UserInfoPopup.hpp"
#include "widgets/dialogs/TextInputDialog.hpp"
#include "widgets/dialogs/UserInfoPopup.hpp"
#include "widgets/Window.hpp"
#include <QApplication>

View file

@ -3,7 +3,7 @@
#include "Common.hpp"
#include "singletons/ThemeManager.hpp"
#include "singletons/WindowManager.hpp"
#include "util/AssertInGuiThread.hpp"
#include "debug/AssertInGuiThread.hpp"
#include "util/Helpers.hpp"
#include "util/LayoutCreator.hpp"
#include "widgets/helper/NotebookTab.hpp"

View file

@ -2,7 +2,7 @@
#include "widgets/helper/ResizingTextEdit.hpp"
#include "widgets/BaseWidget.hpp"
#include "widgets/EmotePopup.hpp"
#include "widgets/dialogs/EmotePopup.hpp"
#include "widgets/helper/RippleEffectLabel.hpp"
#include <QHBoxLayout>