23 #include <tulip/tulipconf.h>
184 virtual void setError(
const std::string &error) = 0;
201 virtual void setTitle(
const std::string &title) = 0;
PluginProcess subclasses are meant to notify about the progress state of some process (typically a pl...
virtual std::string getError()=0
Returns a message describing the error encountered during the process. If no error has been encounter...
virtual void showPreview(bool showPreview)=0
This tells the progress if it can allow the user to decide if the algorithm should draw a preview or ...
virtual void setPreviewMode(bool drawPreview)=0
The preview mode redraws the graph while applying the algorithm, making it slower.
virtual void showText(bool)
This tells the progress if it has to show text indicating execution progression.
virtual ProgressState progress(int step, int max_step)
Notifies the progression of the process.
virtual void setComment(const std::string &comment)=0
Changes the comment about the process progression.
virtual void setTitle(const std::string &title)=0
Changes the title of that plugin progress.
virtual void stop()=0
Sets the state flag to stop, notifying to the process that the user wants to stop it....
virtual ProgressState state() const =0
Gets the current internal state of the PluginProgress.
virtual void setError(const std::string &error)=0
Sets the message describing the error encountered during the process.
virtual bool isPreviewMode() const =0
The preview mode redraws the graph while applying the algorithm, making it slower.
virtual void cancel()=0
Sets the state flag to cancel, notifying to the process that the user wants to cancel it....
virtual void showStops(bool show)=0
This tells the progress if it can allow the user to decide to stop or cancel the plugin execution.
The ProgressPreviewHandler class handles the way a process handled by a PluginProgress is handled.
virtual void progressStateChanged(int step, int max_step)=0
Called back after PluginProgress::progress has been invoked.
ProgressState
This enum describes callback actions for the underlying system when calling tlp::PluginProgress::prog...