Tabs are now loaded and saved (no chats yet)
This commit is contained in:
+17
-2
@@ -4,6 +4,7 @@
|
||||
#include "widgets/notebook.h"
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
|
||||
namespace chatterino {
|
||||
namespace widgets {
|
||||
@@ -19,8 +20,22 @@ public:
|
||||
|
||||
void layoutVisibleChatWidgets(Channel *channel = NULL);
|
||||
void repaintVisibleChatWidgets(Channel *channel = NULL);
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace widgets
|
||||
} // namespace chatterino
|
||||
|
||||
#endif // MAINWINDOW_H
|
||||
|
||||
Reference in New Issue
Block a user