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>
|
2017-01-28 22:35:23 +01:00
|
|
|
#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;
|
2017-01-16 03:15:07 +01:00
|
|
|
|
2017-01-16 15:06:12 +01:00
|
|
|
void layoutVisibleChatWidgets(Channel *channel = NULL);
|
|
|
|
void repaintVisibleChatWidgets(Channel *channel = NULL);
|
2017-01-28 22:35:23 +01:00
|
|
|
|
|
|
|
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
|
|
|
};
|
2017-01-28 22:35:23 +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
|