diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/public/vgui_controls/PropertyPage.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/public/vgui_controls/PropertyPage.h')
| -rw-r--r-- | mp/src/public/vgui_controls/PropertyPage.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/mp/src/public/vgui_controls/PropertyPage.h b/mp/src/public/vgui_controls/PropertyPage.h new file mode 100644 index 00000000..74b37e7c --- /dev/null +++ b/mp/src/public/vgui_controls/PropertyPage.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef PROPERTYPAGE_H
+#define PROPERTYPAGE_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include <vgui_controls/EditablePanel.h>
+#include <vgui_controls/PHandle.h>
+
+namespace vgui
+{
+
+//-----------------------------------------------------------------------------
+// Purpose: Property page, as held by a set of property sheets
+//-----------------------------------------------------------------------------
+class PropertyPage : public EditablePanel
+{
+ DECLARE_CLASS_SIMPLE( PropertyPage, EditablePanel );
+
+public:
+ PropertyPage(Panel *parent, const char *panelName);
+ ~PropertyPage();
+
+ // Called when page is loaded. Data should be reloaded from document into controls.
+ MESSAGE_FUNC( OnResetData, "ResetData" );
+
+ // Called when the OK / Apply button is pressed. Changed data should be written into document.
+ MESSAGE_FUNC( OnApplyChanges, "ApplyChanges" );
+
+ // called when the page is shown/hidden
+ MESSAGE_FUNC( OnPageShow, "PageShow" );
+ MESSAGE_FUNC( OnPageHide, "PageHide" );
+
+ virtual void OnKeyCodeTyped(KeyCode code);
+ virtual bool HasUserConfigSettings() { return true; }
+
+ virtual void SetVisible(bool state);
+
+protected:
+ // called to be notified of the tab button used to Activate this page
+ // if overridden this must be chained back to
+ MESSAGE_FUNC_PTR( OnPageTabActivated, "PageTabActivated", panel );
+
+private:
+ PHandle _pageTab;
+};
+
+} // namespace vgui
+
+#endif // PROPERTYPAGE_H
|