Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/system/ProgressBar.h')
-rw-r--r--source/blender/freestyle/intern/system/ProgressBar.h111
1 files changed, 56 insertions, 55 deletions
diff --git a/source/blender/freestyle/intern/system/ProgressBar.h b/source/blender/freestyle/intern/system/ProgressBar.h
index d3589987202..b3a1f98f15e 100644
--- a/source/blender/freestyle/intern/system/ProgressBar.h
+++ b/source/blender/freestyle/intern/system/ProgressBar.h
@@ -25,71 +25,72 @@
#include <string>
#ifdef WITH_CXX_GUARDEDALLOC
-#include "MEM_guardedalloc.h"
+# include "MEM_guardedalloc.h"
#endif
using namespace std;
namespace Freestyle {
-class ProgressBar
-{
-public:
- inline ProgressBar()
- {
- _numtotalsteps = 0;
- _progress = 0;
- }
-
- virtual ~ProgressBar() {}
-
- virtual void reset()
- {
- _numtotalsteps = 0;
- _progress = 0;
- }
-
- virtual void setTotalSteps(unsigned n)
- {
- _numtotalsteps = n;
- }
-
- virtual void setProgress(unsigned i)
- {
- _progress = i;
- }
-
- virtual void setLabelText(const string& s)
- {
- _label = s;
- }
-
- /*! accessors */
- inline unsigned int getTotalSteps() const
- {
- return _numtotalsteps;
- }
-
- inline unsigned int getProgress() const
- {
- return _progress;
- }
-
- inline string getLabelText() const
- {
- return _label;
- }
-
-protected:
- unsigned _numtotalsteps;
- unsigned _progress;
- string _label;
+class ProgressBar {
+ public:
+ inline ProgressBar()
+ {
+ _numtotalsteps = 0;
+ _progress = 0;
+ }
+
+ virtual ~ProgressBar()
+ {
+ }
+
+ virtual void reset()
+ {
+ _numtotalsteps = 0;
+ _progress = 0;
+ }
+
+ virtual void setTotalSteps(unsigned n)
+ {
+ _numtotalsteps = n;
+ }
+
+ virtual void setProgress(unsigned i)
+ {
+ _progress = i;
+ }
+
+ virtual void setLabelText(const string &s)
+ {
+ _label = s;
+ }
+
+ /*! accessors */
+ inline unsigned int getTotalSteps() const
+ {
+ return _numtotalsteps;
+ }
+
+ inline unsigned int getProgress() const
+ {
+ return _progress;
+ }
+
+ inline string getLabelText() const
+ {
+ return _label;
+ }
+
+ protected:
+ unsigned _numtotalsteps;
+ unsigned _progress;
+ string _label;
#ifdef WITH_CXX_GUARDEDALLOC
- MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ProgressBar")
+ MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:ProgressBar")
#endif
};
} /* namespace Freestyle */
-#endif // __FREESTYLE_PROGRESS_BAR_H__
+#endif // __FREESTYLE_PROGRESS_BAR_H__