aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/vgui_controls/CircularProgressBar.h
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/vgui_controls/CircularProgressBar.h
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/vgui_controls/CircularProgressBar.h')
-rw-r--r--mp/src/public/vgui_controls/CircularProgressBar.h146
1 files changed, 73 insertions, 73 deletions
diff --git a/mp/src/public/vgui_controls/CircularProgressBar.h b/mp/src/public/vgui_controls/CircularProgressBar.h
index 6d1d0676..2a31f504 100644
--- a/mp/src/public/vgui_controls/CircularProgressBar.h
+++ b/mp/src/public/vgui_controls/CircularProgressBar.h
@@ -1,74 +1,74 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef CIRCULARPROGRESSBAR_H
-#define CIRCULARPROGRESSBAR_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <vgui/VGUI.h>
-#include <vgui_controls/Panel.h>
-#include <vgui_controls/ProgressBar.h>
-
-enum progress_textures_t
-{
- PROGRESS_TEXTURE_FG,
- PROGRESS_TEXTURE_BG,
-
- NUM_PROGRESS_TEXTURES,
-};
-
-namespace vgui
-{
-
-//-----------------------------------------------------------------------------
-// Purpose: Progress Bar in the shape of a pie graph
-//-----------------------------------------------------------------------------
-class CircularProgressBar : public ProgressBar
-{
- DECLARE_CLASS_SIMPLE( CircularProgressBar, ProgressBar );
-
-public:
- CircularProgressBar(Panel *parent, const char *panelName);
- ~CircularProgressBar();
-
- virtual void ApplySettings(KeyValues *inResourceData);
- virtual void ApplySchemeSettings(IScheme *pScheme);
-
- void SetFgImage(const char *imageName) { SetImage( imageName, PROGRESS_TEXTURE_FG ); }
- void SetBgImage(const char *imageName) { SetImage( imageName, PROGRESS_TEXTURE_BG ); }
-
- enum CircularProgressDir_e
- {
- PROGRESS_CW,
- PROGRESS_CCW
- };
- int GetProgressDirection() const { return m_iProgressDirection; }
- void SetProgressDirection( int val ) { m_iProgressDirection = val; }
- void SetStartSegment( int val ) { m_iStartSegment = val; }
-
-protected:
- virtual void Paint();
- virtual void PaintBackground();
-
- void DrawCircleSegment( Color c, float flEndDegrees, bool clockwise /* = true */ );
- void SetImage(const char *imageName, progress_textures_t iPos);
-
-private:
- int m_iProgressDirection;
- int m_iStartSegment;
-
- int m_nTextureId[NUM_PROGRESS_TEXTURES];
- char *m_pszImageName[NUM_PROGRESS_TEXTURES];
- int m_lenImageName[NUM_PROGRESS_TEXTURES];
-};
-
-} // namespace vgui
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CIRCULARPROGRESSBAR_H
+#define CIRCULARPROGRESSBAR_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui/VGUI.h>
+#include <vgui_controls/Panel.h>
+#include <vgui_controls/ProgressBar.h>
+
+enum progress_textures_t
+{
+ PROGRESS_TEXTURE_FG,
+ PROGRESS_TEXTURE_BG,
+
+ NUM_PROGRESS_TEXTURES,
+};
+
+namespace vgui
+{
+
+//-----------------------------------------------------------------------------
+// Purpose: Progress Bar in the shape of a pie graph
+//-----------------------------------------------------------------------------
+class CircularProgressBar : public ProgressBar
+{
+ DECLARE_CLASS_SIMPLE( CircularProgressBar, ProgressBar );
+
+public:
+ CircularProgressBar(Panel *parent, const char *panelName);
+ ~CircularProgressBar();
+
+ virtual void ApplySettings(KeyValues *inResourceData);
+ virtual void ApplySchemeSettings(IScheme *pScheme);
+
+ void SetFgImage(const char *imageName) { SetImage( imageName, PROGRESS_TEXTURE_FG ); }
+ void SetBgImage(const char *imageName) { SetImage( imageName, PROGRESS_TEXTURE_BG ); }
+
+ enum CircularProgressDir_e
+ {
+ PROGRESS_CW,
+ PROGRESS_CCW
+ };
+ int GetProgressDirection() const { return m_iProgressDirection; }
+ void SetProgressDirection( int val ) { m_iProgressDirection = val; }
+ void SetStartSegment( int val ) { m_iStartSegment = val; }
+
+protected:
+ virtual void Paint();
+ virtual void PaintBackground();
+
+ void DrawCircleSegment( Color c, float flEndDegrees, bool clockwise /* = true */ );
+ void SetImage(const char *imageName, progress_textures_t iPos);
+
+private:
+ int m_iProgressDirection;
+ int m_iStartSegment;
+
+ int m_nTextureId[NUM_PROGRESS_TEXTURES];
+ char *m_pszImageName[NUM_PROGRESS_TEXTURES];
+ int m_lenImageName[NUM_PROGRESS_TEXTURES];
+};
+
+} // namespace vgui
+
#endif // CIRCULARPROGRESSBAR_H \ No newline at end of file