tool switching implemented
This commit is contained in:
+21
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user