QCAD
Open Source 2D CAD
RProgressHandler.h
Go to the documentation of this file.
1 
20 #ifndef RPROGRESSHANDLER_H
21 #define RPROGRESSHANDLER_H
22 
23 #include "core_global.h"
24 
25 #include <QMetaType>
26 
34 public:
35  RProgressHandler() : progressEnabled(true) {}
36 
37  virtual void setProgress(int value) = 0;
38  virtual void setProgressEnd() = 0;
39  virtual void setProgressText(const QString& text = "") = 0;
40  virtual void setProgressEnabled(bool on) {
41  progressEnabled = on;
42  }
43 
44 protected:
46 };
47 
49 
50 #endif
RProgressHandler()
Definition: RProgressHandler.h:35
#define QCADCORE_EXPORT
Definition: core_global.h:10
bool progressEnabled
Definition: RProgressHandler.h:45
Q_DECLARE_METATYPE(RMath *)
virtual void setProgressEnabled(bool on)
Definition: RProgressHandler.h:40
Copyright (c) 2011-2015 by Andrew Mustun.
Definition: RProgressHandler.h:33