tool switching implemented

This commit is contained in:
itsmattkc
2019-06-22 20:45:55 -07:00
parent 4090c452d6
commit 75081f76c9
11 changed files with 208 additions and 29 deletions
+21
View File
@@ -25,6 +25,7 @@
#include "project/project.h"
#include "window/mainwindow/mainwindow.h"
#include "tool/tool.h"
/**
* @brief The Core class
@@ -66,6 +67,14 @@ public:
*/
olive::MainWindow* main_window();
public slots:
/**
* @brief Set the current application-wide tool
*
* @param tool
*/
void SetTool(const olive::tool::Tool& tool);
signals:
/**
* @brief Signal emitted when a project is opened
@@ -76,6 +85,13 @@ signals:
*/
void ProjectOpened(Project* p);
/**
* @brief Signal emitted when the tool is changed from somewhere
*
* @param tool
*/
void ToolChanged(const olive::tool::Tool& tool);
private:
/**
* @brief Creates an empty project and adds it to the "open projects"
@@ -99,6 +115,11 @@ private:
* @brief List of currently open projects
*/
QList<ProjectPtr> open_projects_;
/**
* @brief Currently active tool
*/
olive::tool::Tool tool_;
};
namespace olive {