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 /sp/src/public/vgui_controls/ExpandButton.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 'sp/src/public/vgui_controls/ExpandButton.h')
| -rw-r--r-- | sp/src/public/vgui_controls/ExpandButton.h | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/sp/src/public/vgui_controls/ExpandButton.h b/sp/src/public/vgui_controls/ExpandButton.h index 6c89a4ff..2dbf8493 100644 --- a/sp/src/public/vgui_controls/ExpandButton.h +++ b/sp/src/public/vgui_controls/ExpandButton.h @@ -1,61 +1,61 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: A button with no borders that shows a left-pointing or down-pointing triangle
-//
-// $NoKeywords: $
-//===========================================================================//
-
-#ifndef EXPANDBUTTON_H
-#define EXPANDBUTTON_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <vgui/VGUI.h>
-#include <vgui_controls/ToggleButton.h>
-
-
-namespace vgui
-{
-
-//-----------------------------------------------------------------------------
-// Purpose: A button with no borders that shows a left-pointing or down-pointing arrow
-//-----------------------------------------------------------------------------
-class ExpandButton : public ToggleButton
-{
- DECLARE_CLASS_SIMPLE( ExpandButton, ToggleButton );
-
-public:
- ExpandButton( Panel *parent, const char *panelName );
- ~ExpandButton();
-
- // Expand the button (selected == expanded)
- virtual void SetSelected( bool bExpand );
-
- // sets whether or not the state of the check can be changed
- // if this is set to false, then no input in the code or by the user can change it's state
- void SetExpandable(bool state);
-
- virtual void Paint();
-
-protected:
- virtual void ApplySchemeSettings(IScheme *pScheme);
- MESSAGE_FUNC_PTR( OnExpanded, "Expanded", panel );
-
- virtual IBorder *GetBorder(bool depressed, bool armed, bool selected, bool keyfocus);
-
- /* MESSAGES SENT
- "Expanded" - sent when the expand button state is changed
- "state" - button state: 1 is expanded, 0 is unexpanded
- */
-
-private:
- bool m_bExpandable;
- HFont m_hFont;
- Color m_Color;
-};
-
-} // namespace vgui
-
-#endif // EXPANDBUTTON_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: A button with no borders that shows a left-pointing or down-pointing triangle +// +// $NoKeywords: $ +//===========================================================================// + +#ifndef EXPANDBUTTON_H +#define EXPANDBUTTON_H + +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui/VGUI.h> +#include <vgui_controls/ToggleButton.h> + + +namespace vgui +{ + +//----------------------------------------------------------------------------- +// Purpose: A button with no borders that shows a left-pointing or down-pointing arrow +//----------------------------------------------------------------------------- +class ExpandButton : public ToggleButton +{ + DECLARE_CLASS_SIMPLE( ExpandButton, ToggleButton ); + +public: + ExpandButton( Panel *parent, const char *panelName ); + ~ExpandButton(); + + // Expand the button (selected == expanded) + virtual void SetSelected( bool bExpand ); + + // sets whether or not the state of the check can be changed + // if this is set to false, then no input in the code or by the user can change it's state + void SetExpandable(bool state); + + virtual void Paint(); + +protected: + virtual void ApplySchemeSettings(IScheme *pScheme); + MESSAGE_FUNC_PTR( OnExpanded, "Expanded", panel ); + + virtual IBorder *GetBorder(bool depressed, bool armed, bool selected, bool keyfocus); + + /* MESSAGES SENT + "Expanded" - sent when the expand button state is changed + "state" - button state: 1 is expanded, 0 is unexpanded + */ + +private: + bool m_bExpandable; + HFont m_hFont; + Color m_Color; +}; + +} // namespace vgui + +#endif // EXPANDBUTTON_H |