more work on project management

This commit is contained in:
itsmattkc
2019-07-06 09:46:55 -05:00
parent bc631c495d
commit a6971b3fde
15 changed files with 290 additions and 114 deletions
+15 -1
View File
@@ -24,7 +24,9 @@
#include <QList>
#include "project/project.h"
#include "project/projectviewmodel.h"
#include "window/mainwindow/mainwindow.h"
#include "task/task.h"
#include "tool/tool.h"
/**
@@ -73,15 +75,27 @@ public:
/**
* @brief Import a list of files
*
* FIXME: I kind of hate this, it needs a model to update correctly. Is there a way that Items can signal enough to
* make passing references to the model unnecessary?
*
* @param urls
*/
void ImportFiles(const QStringList& urls, Folder *parent);
void ImportFiles(const QStringList& urls, ProjectViewModel *model, Folder *parent);
/**
* @brief Get the currently active tool
*/
const olive::tool::Tool& tool();
/**
* @brief Starts a modal task
*
* This function does NOT take ownership of the Task.
*
* @param t
*/
void StartModalTask(Task* t);
public slots:
/**
* @brief Set the current application-wide tool