mirror-chatterino2/widgets/mainwindow.h

44 lines
873 B
C
Raw Normal View History

2016-12-29 17:31:07 +01:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
2017-01-18 21:30:23 +01:00
#include "widgets/notebook.h"
2017-04-12 17:46:44 +02:00
#include "widgets/titlebar.h"
2016-12-29 17:31:07 +01:00
2017-04-12 17:46:44 +02:00
#include <platform/borderless/qwinwidget.h>
2017-01-18 04:52:47 +01:00
#include <QMainWindow>
#include <boost/property_tree/ptree.hpp>
2017-01-18 04:52:47 +01:00
2017-01-18 21:30:23 +01:00
namespace chatterino {
namespace widgets {
2017-04-12 17:46:44 +02:00
class MainWindow : public QWidget
2016-12-29 17:31:07 +01:00
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
2017-04-12 17:46:44 +02:00
void layoutVisibleChatWidgets(Channel *channel = nullptr);
void repaintVisibleChatWidgets(Channel *channel = nullptr);
2017-02-07 00:03:15 +01:00
void repaintGifEmotes();
void load(const boost::property_tree::ptree &tree);
boost::property_tree::ptree save();
void loadDefaults();
2017-04-12 17:46:44 +02:00
bool isLoaded() const;
Notebook &getNotebook();
private:
2017-04-12 17:46:44 +02:00
Notebook _notebook;
bool _loaded;
TitleBar _titleBar;
2016-12-29 17:31:07 +01:00
};
} // namespace widgets
} // namespace chatterino
2016-12-29 17:31:07 +01:00
2017-01-11 18:52:09 +01:00
#endif // MAINWINDOW_H