forked from qt-creator/qt-creator
Improve TaskList plugin
* Automatically reload task lists. * Add task handler to stop the reloading * Add some really simple API for other plugins to use.
This commit is contained in:
@@ -32,18 +32,22 @@
|
||||
|
||||
#include <coreplugin/ifilefactory.h>
|
||||
|
||||
#include <coreplugin/ifile.h>
|
||||
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
namespace ProjectExplorer {
|
||||
class Project;
|
||||
} // namespace ProjectExplorer
|
||||
|
||||
namespace TaskList {
|
||||
namespace Internal {
|
||||
|
||||
class TaskListManager;
|
||||
|
||||
class TaskFileFactory : public Core::IFileFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TaskFileFactory(TaskListManager *manager);
|
||||
TaskFileFactory(QObject *parent = 0);
|
||||
~TaskFileFactory();
|
||||
|
||||
QStringList mimeTypes() const;
|
||||
@@ -52,10 +56,13 @@ public:
|
||||
QString displayName() const;
|
||||
|
||||
Core::IFile *open(const QString &fileName);
|
||||
Core::IFile *open(ProjectExplorer::Project *context, const QString &fileName);
|
||||
|
||||
void closeAllFiles();
|
||||
|
||||
private:
|
||||
TaskListManager * m_manager;
|
||||
QStringList m_mimeTypes;
|
||||
QList<Core::IFile *> m_openFiles;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user