21 #ifndef _IMPORTMODULE_H
22 #define _IMPORTMODULE_H
24 #include <tulip/Plugin.h>
31 static const std::string IMPORT_CATEGORY =
"Import";
50 virtual std::list<std::string> fileExtensions()
const {
51 return std::list<std::string>();
54 std::string category()
const override {
55 return IMPORT_CATEGORY;
58 std::string icon()
const override {
59 return ":/tulip/gui/icons/64/document-import.png";
77 PluginProgress *pluginProgress;
89 class TLP_SCOPE ImportFileModule :
public ImportModule {
99 std::list<std::string> extensions;
102 ImportFileModule(
const tlp::PluginContext *context, std::list<std::string> exts = {});
107 std::list<std::string> fileExtensions()
const override {
114 virtual bool check();
119 virtual bool importFile() = 0;
Contains runtime parameters for a plugin.
Top-level interface for plug-ins.
Graph * importGraph(const std::string &format, DataSet &dataSet, PluginProgress *progress=nullptr, Graph *newGraph=nullptr)
Imports a graph using the specified import plugin with the parameters stored in the DataSet.