mirror-chatterino2/widgets/mainwindow.h

43 lines
793 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"
2016-12-29 17:31:07 +01:00
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 {
2016-12-29 17:31:07 +01:00
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
2016-12-30 12:20:26 +01:00
Notebook notebook;
void layoutVisibleChatWidgets(Channel *channel = NULL);
void repaintVisibleChatWidgets(Channel *channel = NULL);
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();
bool
isLoaded() const
{
return this->loaded;
}
private:
bool loaded = false;
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