1 Star 0 Fork 0

yoyojacky/CSMoE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PropertyPage.h 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
//========= Copyright ?1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef PROPERTYPAGE_H
#define PROPERTYPAGE_H
#ifdef _WIN32
#pragma once
#endif
#include "EditablePanel.h"
#include "PHandle.h"
namespace vgui2
{
//-----------------------------------------------------------------------------
// 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; }
protected:
virtual void SetVisible(bool state);
// 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yoyojacky/CSMoE.git
git@gitee.com:yoyojacky/CSMoE.git
yoyojacky
CSMoE
CSMoE
master

搜索帮助