diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/vgui_controls/RotatingProgressBar.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/vgui_controls/RotatingProgressBar.h')
| -rw-r--r-- | mp/src/public/vgui_controls/RotatingProgressBar.h | 132 |
1 files changed, 66 insertions, 66 deletions
diff --git a/mp/src/public/vgui_controls/RotatingProgressBar.h b/mp/src/public/vgui_controls/RotatingProgressBar.h index e06e3dcd..400838c3 100644 --- a/mp/src/public/vgui_controls/RotatingProgressBar.h +++ b/mp/src/public/vgui_controls/RotatingProgressBar.h @@ -1,67 +1,67 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef ROTATINGPROGRESSBAR_H
-#define ROTATINGPROGRESSBAR_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <vgui/VGUI.h>
-#include <vgui_controls/Panel.h>
-#include <vgui_controls/ProgressBar.h>
-
-namespace vgui
-{
-
- //-----------------------------------------------------------------------------
- // Purpose: Progress Bar that rotates an image around its center
- //-----------------------------------------------------------------------------
- class RotatingProgressBar : public ProgressBar
- {
- DECLARE_CLASS_SIMPLE( RotatingProgressBar, ProgressBar );
-
- public:
- RotatingProgressBar(Panel *parent, const char *panelName);
- ~RotatingProgressBar();
-
- virtual void ApplySettings(KeyValues *inResourceData);
- virtual void ApplySchemeSettings(IScheme *pScheme);
-
- void SetImage( const char *imageName );
-
- protected:
- virtual void Paint();
- virtual void PaintBackground();
- virtual void OnTick();
-
- private:
- int m_nTextureId;
- char *m_pszImageName;
-
- float m_flStartRadians;
- float m_flEndRadians;
-
- float m_flLastAngle;
-
- float m_flTickDelay;
- float m_flApproachSpeed;
-
- float m_flRotOriginX;
- float m_flRotOriginY;
-
- float m_flRotatingX;
- float m_flRotatingY;
- float m_flRotatingWide;
- float m_flRotatingTall;
-
- };
-
-} // namespace vgui
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef ROTATINGPROGRESSBAR_H +#define ROTATINGPROGRESSBAR_H + +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui/VGUI.h> +#include <vgui_controls/Panel.h> +#include <vgui_controls/ProgressBar.h> + +namespace vgui +{ + + //----------------------------------------------------------------------------- + // Purpose: Progress Bar that rotates an image around its center + //----------------------------------------------------------------------------- + class RotatingProgressBar : public ProgressBar + { + DECLARE_CLASS_SIMPLE( RotatingProgressBar, ProgressBar ); + + public: + RotatingProgressBar(Panel *parent, const char *panelName); + ~RotatingProgressBar(); + + virtual void ApplySettings(KeyValues *inResourceData); + virtual void ApplySchemeSettings(IScheme *pScheme); + + void SetImage( const char *imageName ); + + protected: + virtual void Paint(); + virtual void PaintBackground(); + virtual void OnTick(); + + private: + int m_nTextureId; + char *m_pszImageName; + + float m_flStartRadians; + float m_flEndRadians; + + float m_flLastAngle; + + float m_flTickDelay; + float m_flApproachSpeed; + + float m_flRotOriginX; + float m_flRotOriginY; + + float m_flRotatingX; + float m_flRotatingY; + float m_flRotatingWide; + float m_flRotatingTall; + + }; + +} // namespace vgui + #endif // ROTATINGPROGRESSBAR_H
\ No newline at end of file |