aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/vgui_controls/InputDialog.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/InputDialog.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/InputDialog.h')
-rw-r--r--mp/src/public/vgui_controls/InputDialog.h212
1 files changed, 106 insertions, 106 deletions
diff --git a/mp/src/public/vgui_controls/InputDialog.h b/mp/src/public/vgui_controls/InputDialog.h
index 7ef8d08f..00b8d6f5 100644
--- a/mp/src/public/vgui_controls/InputDialog.h
+++ b/mp/src/public/vgui_controls/InputDialog.h
@@ -1,106 +1,106 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef INPUTDIALOG_H
-#define INPUTDIALOG_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-#include <vgui_controls/Controls.h>
-#include <vgui_controls/Frame.h>
-
-namespace vgui
-{
-
-class Label;
-class Button;
-class TextEntry;
-
-
-//-----------------------------------------------------------------------------
-// Purpose: Utility dialog base class - just has context kv and ok/cancel buttons
-//-----------------------------------------------------------------------------
-class BaseInputDialog : public Frame
-{
- DECLARE_CLASS_SIMPLE( BaseInputDialog, Frame );
-
-public:
- BaseInputDialog( vgui::Panel *parent, const char *title );
- ~BaseInputDialog();
-
- void DoModal( KeyValues *pContextKeyValues = NULL );
-
-protected:
- virtual void PerformLayout();
- virtual void PerformLayout( int x, int y, int w, int h ) {}
-
- // command buttons
- virtual void OnCommand( const char *command );
-
- void CleanUpContextKeyValues();
- KeyValues *m_pContextKeyValues;
-
-private:
- vgui::Button *m_pCancelButton;
- vgui::Button *m_pOKButton;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose: Utility dialog, used to ask yes/no questions of the user
-//-----------------------------------------------------------------------------
-class InputMessageBox : public BaseInputDialog
-{
- DECLARE_CLASS_SIMPLE( InputMessageBox, BaseInputDialog );
-
-public:
- InputMessageBox( vgui::Panel *parent, const char *title, char const *prompt );
- ~InputMessageBox();
-
-protected:
- virtual void PerformLayout( int x, int y, int w, int h );
-
-private:
- vgui::Label *m_pPrompt;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose: Utility dialog, used to let user type in some text
-//-----------------------------------------------------------------------------
-class InputDialog : public BaseInputDialog
-{
- DECLARE_CLASS_SIMPLE( InputDialog, BaseInputDialog );
-
-public:
- InputDialog( vgui::Panel *parent, const char *title, char const *prompt, char const *defaultValue = "" );
- ~InputDialog();
-
- void SetMultiline( bool state );
-
- /* action signals
-
- "InputCompleted"
- "text" - the text entered
-
- "InputCanceled"
- */
- void AllowNumericInputOnly( bool bOnlyNumeric );
-
-protected:
- virtual void PerformLayout( int x, int y, int w, int h );
-
- // command buttons
- virtual void OnCommand(const char *command);
-
-private:
- vgui::Label *m_pPrompt;
- vgui::TextEntry *m_pInput;
-};
-
-} // namespace vgui
-
-
-#endif // INPUTDIALOG_H
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef INPUTDIALOG_H
+#define INPUTDIALOG_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/Controls.h>
+#include <vgui_controls/Frame.h>
+
+namespace vgui
+{
+
+class Label;
+class Button;
+class TextEntry;
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Utility dialog base class - just has context kv and ok/cancel buttons
+//-----------------------------------------------------------------------------
+class BaseInputDialog : public Frame
+{
+ DECLARE_CLASS_SIMPLE( BaseInputDialog, Frame );
+
+public:
+ BaseInputDialog( vgui::Panel *parent, const char *title );
+ ~BaseInputDialog();
+
+ void DoModal( KeyValues *pContextKeyValues = NULL );
+
+protected:
+ virtual void PerformLayout();
+ virtual void PerformLayout( int x, int y, int w, int h ) {}
+
+ // command buttons
+ virtual void OnCommand( const char *command );
+
+ void CleanUpContextKeyValues();
+ KeyValues *m_pContextKeyValues;
+
+private:
+ vgui::Button *m_pCancelButton;
+ vgui::Button *m_pOKButton;
+};
+
+//-----------------------------------------------------------------------------
+// Purpose: Utility dialog, used to ask yes/no questions of the user
+//-----------------------------------------------------------------------------
+class InputMessageBox : public BaseInputDialog
+{
+ DECLARE_CLASS_SIMPLE( InputMessageBox, BaseInputDialog );
+
+public:
+ InputMessageBox( vgui::Panel *parent, const char *title, char const *prompt );
+ ~InputMessageBox();
+
+protected:
+ virtual void PerformLayout( int x, int y, int w, int h );
+
+private:
+ vgui::Label *m_pPrompt;
+};
+
+//-----------------------------------------------------------------------------
+// Purpose: Utility dialog, used to let user type in some text
+//-----------------------------------------------------------------------------
+class InputDialog : public BaseInputDialog
+{
+ DECLARE_CLASS_SIMPLE( InputDialog, BaseInputDialog );
+
+public:
+ InputDialog( vgui::Panel *parent, const char *title, char const *prompt, char const *defaultValue = "" );
+ ~InputDialog();
+
+ void SetMultiline( bool state );
+
+ /* action signals
+
+ "InputCompleted"
+ "text" - the text entered
+
+ "InputCanceled"
+ */
+ void AllowNumericInputOnly( bool bOnlyNumeric );
+
+protected:
+ virtual void PerformLayout( int x, int y, int w, int h );
+
+ // command buttons
+ virtual void OnCommand(const char *command);
+
+private:
+ vgui::Label *m_pPrompt;
+ vgui::TextEntry *m_pInput;
+};
+
+} // namespace vgui
+
+
+#endif // INPUTDIALOG_H