summaryrefslogtreecommitdiff
path: root/src/gui/widgets/progressbar.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-31 14:23:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-31 14:23:11 +0300
commitd7c67fa2b6faa3e81269244224da4b72f045d659 (patch)
tree596010d034e44ff46eabccca3c77d995626fca88 /src/gui/widgets/progressbar.h
parentb072723595e729eed79199f246439ffed62cdbb5 (diff)
downloadmv-d7c67fa2b6faa3e81269244224da4b72f045d659.tar.gz
mv-d7c67fa2b6faa3e81269244224da4b72f045d659.tar.bz2
mv-d7c67fa2b6faa3e81269244224da4b72f045d659.tar.xz
mv-d7c67fa2b6faa3e81269244224da4b72f045d659.zip
Convert ProgressColorId enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets/progressbar.h')
-rw-r--r--src/gui/widgets/progressbar.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/widgets/progressbar.h b/src/gui/widgets/progressbar.h
index 053710ae8..571568e6c 100644
--- a/src/gui/widgets/progressbar.h
+++ b/src/gui/widgets/progressbar.h
@@ -23,6 +23,8 @@
#ifndef GUI_WIDGETS_PROGRESSBAR_H
#define GUI_WIDGETS_PROGRESSBAR_H
+#include "enums/gui/progresscolorid.h"
+
#include "gui/widgets/widget.h"
#include "listeners/widgetlistener.h"
@@ -50,7 +52,7 @@ class ProgressBar final : public Widget,
float progress,
const int width,
const int height,
- const int backColor,
+ const ProgressColorIdT backColor,
const std::string &skin,
const std::string &skinFill);
@@ -90,7 +92,7 @@ class ProgressBar final : public Widget,
* Change the ProgressPalette for this ProgressBar to follow or -1 to
* disable this and manage color manually.
*/
- void setProgressPalette(const int progressPalette);
+ void setProgressPalette(const ProgressColorIdT progressPalette);
/**
* Change the color of the progress bar.
@@ -146,7 +148,7 @@ class ProgressBar final : public Widget,
std::string mText;
ImageCollection *mVertexes;
- int mProgressPalette; /** < Entry in ProgressPalette or -1 for none. */
+ ProgressColorIdT mProgressPalette;
unsigned int mPadding;
unsigned int mFillPadding;