source-engine/tracker/AdminServer/VarEditDialog.h
FluorescentCIAAfricanAmerican 3bf9df6b27 1
2020-04-22 12:56:21 -04:00

46 lines
1.0 KiB
C++

//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================
#ifndef VAREDITDIALOG_H
#define VAREDITDIALOG_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui_controls/Frame.h>
//-----------------------------------------------------------------------------
// Purpose: Handles editing of cvars
//-----------------------------------------------------------------------------
class CVarEditDialog : public vgui::Frame
{
public:
CVarEditDialog(vgui::Panel *parent, const char *name);
~CVarEditDialog();
void Activate(vgui::Panel *actionSignalTarget, KeyValues *rules);
protected:
virtual void OnCommand(const char *command);
virtual void OnClose();
void ApplyChanges();
private:
vgui::Button *m_pOKButton;
vgui::Button *m_pCancelButton;
vgui::TextEntry *m_pStringEdit;
vgui::ComboBox *m_pComboEdit;
KeyValues *m_pRules;
typedef vgui::Frame BaseClass;
};
#endif // VAREDITDIALOG_H