diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /tracker/AdminServer/ConfigPanel.h | |
| download | archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip | |
Diffstat (limited to 'tracker/AdminServer/ConfigPanel.h')
| -rw-r--r-- | tracker/AdminServer/ConfigPanel.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/tracker/AdminServer/ConfigPanel.h b/tracker/AdminServer/ConfigPanel.h new file mode 100644 index 0000000..270cad4 --- /dev/null +++ b/tracker/AdminServer/ConfigPanel.h @@ -0,0 +1,54 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//============================================================================= + +#ifndef CONFIGPANEL_H +#define CONFIGPANEL_H +#ifdef _WIN32 +#pragma once +#endif + +#include <vgui_controls/Frame.h> + +//----------------------------------------------------------------------------- +// Purpose: Dialog for displaying information about a game server +//----------------------------------------------------------------------------- +class CConfigPanel : public vgui::Frame +{ + DECLARE_CLASS_SIMPLE( CConfigPanel, vgui::Frame ); +public: + CConfigPanel(vgui::Panel *parent, bool autorefresh,bool savercon,int refreshtime,bool graphs, int graphsrefreshtime,bool getlogs); + ~CConfigPanel(); + + void Run(); + +protected: + // message handlers + MESSAGE_FUNC_PTR( OnButtonToggled, "ButtonToggled", panel ); + MESSAGE_FUNC_PTR( OnRadioButtonChecked, "RadioButtonChecked", panel ) + { + OnButtonToggled( panel ); + } + + // vgui overrides + virtual void OnClose(); + virtual void OnCommand(const char *command); + +private: + + void SetControlText(const char *textEntryName, const char *text); + + vgui::Button *m_pOkayButton; + vgui::Button *m_pCloseButton; + vgui::CheckButton *m_pRconCheckButton; + vgui::CheckButton *m_pRefreshCheckButton; + vgui::TextEntry *m_pRefreshTextEntry; + vgui::CheckButton *m_pGraphsButton; + vgui::TextEntry *m_pGraphsRefreshTimeTextEntry; + vgui::CheckButton *m_pLogsButton; +}; + +#endif // CONFIGPANEL_H |