fixed compiling

This commit is contained in:
2017-12-14 00:25:06 +01:00
parent 7f18cefee4
commit 86ae71f674
9 changed files with 65 additions and 41 deletions
+6 -6
View File
@@ -2,8 +2,6 @@
#include "widgets/window.hpp"
#include <mutex>
namespace chatterino {
class ChannelManager;
@@ -25,13 +23,16 @@ public:
void layoutVisibleChatWidgets(Channel *channel = nullptr);
void repaintVisibleChatWidgets(Channel *channel = nullptr);
void repaintGifEmotes();
void initMainWindow();
// void updateAll();
widgets::Window &getMainWindow();
widgets::Window &getCurrentWindow();
widgets::Window &getSelectedWindow();
widgets::Window &createWindow();
int windowCount();
widgets::Window *windowAt(int index);
void load();
void save();
@@ -39,11 +40,10 @@ public:
boost::signals2::signal<void()> layout;
private:
std::mutex windowMutex;
std::vector<widgets::Window *> windows;
// TODO(pajlada): Store as a value instead of a pointer
widgets::Window *mainWindow = nullptr;
widgets::Window *selectedWindow = nullptr;
};
} // namespace chatterino