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/ScrollableEditablePanel.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/ScrollableEditablePanel.h')
| -rw-r--r-- | mp/src/public/vgui_controls/ScrollableEditablePanel.h | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/mp/src/public/vgui_controls/ScrollableEditablePanel.h b/mp/src/public/vgui_controls/ScrollableEditablePanel.h index 937f6f39..6796405d 100644 --- a/mp/src/public/vgui_controls/ScrollableEditablePanel.h +++ b/mp/src/public/vgui_controls/ScrollableEditablePanel.h @@ -1,55 +1,55 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================
-
-#ifndef SCROLLABLEEDITABLEPANEL_H
-#define SCROLLABLEEDITABLEPANEL_H
-
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include "vgui_controls/EditablePanel.h"
-
-//-----------------------------------------------------------------------------
-// Forward declarations
-//-----------------------------------------------------------------------------
-namespace vgui
-{
- class ScrollBar;
-}
-
-namespace vgui
-{
-
-//-----------------------------------------------------------------------------
-// An editable panel that has a scrollbar
-//-----------------------------------------------------------------------------
-class ScrollableEditablePanel : public vgui::EditablePanel
-{
- DECLARE_CLASS_SIMPLE( ScrollableEditablePanel, vgui::EditablePanel );
-
-public:
- ScrollableEditablePanel( vgui::Panel *pParent, vgui::EditablePanel *pChild, const char *pName );
- virtual ~ScrollableEditablePanel() {}
-
- virtual void ApplySettings( KeyValues *pInResourceData );
- virtual void PerformLayout();
-
- vgui::ScrollBar *GetScrollbar( void ) { return m_pScrollBar; }
-
- MESSAGE_FUNC( OnScrollBarSliderMoved, "ScrollBarSliderMoved" );
- virtual void OnMouseWheeled(int delta); // respond to mouse wheel events
-
-private:
- vgui::ScrollBar *m_pScrollBar;
- vgui::EditablePanel *m_pChild;
-};
-
-
-} // end namespace vgui
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//============================================================================= + +#ifndef SCROLLABLEEDITABLEPANEL_H +#define SCROLLABLEEDITABLEPANEL_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "vgui_controls/EditablePanel.h" + +//----------------------------------------------------------------------------- +// Forward declarations +//----------------------------------------------------------------------------- +namespace vgui +{ + class ScrollBar; +} + +namespace vgui +{ + +//----------------------------------------------------------------------------- +// An editable panel that has a scrollbar +//----------------------------------------------------------------------------- +class ScrollableEditablePanel : public vgui::EditablePanel +{ + DECLARE_CLASS_SIMPLE( ScrollableEditablePanel, vgui::EditablePanel ); + +public: + ScrollableEditablePanel( vgui::Panel *pParent, vgui::EditablePanel *pChild, const char *pName ); + virtual ~ScrollableEditablePanel() {} + + virtual void ApplySettings( KeyValues *pInResourceData ); + virtual void PerformLayout(); + + vgui::ScrollBar *GetScrollbar( void ) { return m_pScrollBar; } + + MESSAGE_FUNC( OnScrollBarSliderMoved, "ScrollBarSliderMoved" ); + virtual void OnMouseWheeled(int delta); // respond to mouse wheel events + +private: + vgui::ScrollBar *m_pScrollBar; + vgui::EditablePanel *m_pChild; +}; + + +} // end namespace vgui + #endif // SCROLLABLEEDITABLEPANEL_H
\ No newline at end of file |