summaryrefslogtreecommitdiff
path: root/tracker/AdminServer/ChatPanel.h
blob: d99269bd8472944ef8f90c284b2c60d764e46244 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//=============================================================================

#ifndef CHATPANEL_H
#define CHATPANEL_H
#ifdef _WIN32
#pragma once
#endif

#include <KeyValues.h>

#include <vgui_controls/Frame.h>
#include <vgui_controls/PHandle.h>
#include <vgui_controls/ListPanel.h>
#include <vgui_controls/PropertyPage.h>

//-----------------------------------------------------------------------------
// Purpose: Dialog for displaying information about a game server
//-----------------------------------------------------------------------------
class CChatPanel : public vgui::PropertyPage
{
	DECLARE_CLASS_SIMPLE( CChatPanel, vgui::PropertyPage );
public:
	CChatPanel(vgui::Panel *parent, const char *name);
	~CChatPanel();

	// property page handlers
	virtual void OnPageShow();
	virtual void OnPageHide();
	void DoInsertString(const char *str);

private:
	MESSAGE_FUNC( OnSendChat, "SendChat" );

	vgui::RichText *m_pServerChatPanel;
	vgui::TextEntry *m_pEnterChatPanel;
	vgui::Button *m_pSendChatButton;
};

#endif // CHATPANEL_H