added split resizing and splitting

This commit is contained in:
fourtf
2018-05-16 14:55:45 +02:00
parent 28fb877020
commit 5b26cdaa07
9 changed files with 856 additions and 629 deletions
+10 -2
View File
@@ -3,6 +3,9 @@
#include "widgets/window.hpp"
namespace chatterino {
namespace widgets {
class SplitContainer::Node;
}
namespace singletons {
class WindowManager
@@ -42,8 +45,13 @@ private:
widgets::Window *mainWindow = nullptr;
widgets::Window *selectedWindow = nullptr;
void encodeChannel(IndirectChannel channel, QJsonObject &obj);
IndirectChannel decodeChannel(const QJsonObject &obj);
void encodeNodeRecusively(widgets::SplitContainer::Node *node, QJsonObject &obj);
void decodeNodeRecusively(widgets::SplitContainer *container,
widgets::SplitContainer::Node *node, QJsonObject &obj, bool vertical);
public:
static void encodeChannel(IndirectChannel channel, QJsonObject &obj);
static IndirectChannel decodeChannel(const QJsonObject &obj);
};
} // namespace singletons