blob: 195cebed6bd9f4e85a45318c8e3bfba23a6ab974 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef LOCALIZATIONDIALOG_H
#define LOCALIZATIONDIALOG_H
#ifdef _WIN32
#pragma once
#endif
#include <VGUI_controls/Frame.h>
namespace vgui
{
class Button;
class ComboBox;
class Label;
class TextEntry;
class ListPanel;
class MenuButton;
};
//-----------------------------------------------------------------------------
// Purpose: Main localization dialog class
//-----------------------------------------------------------------------------
class CLocalizationDialog : public vgui::Frame
{
public:
CLocalizationDialog(const char *fileName);
~CLocalizationDialog();
char const *GetFileName() const;
private:
// vgui overrides
virtual void PerformLayout();
virtual void OnClose();
virtual void OnCommand(const char *command);
// message handlers
virtual void OnTokenSelected();
virtual void OnTextChanged();
virtual void OnApplyChanges();
virtual void OnFileOpen();
virtual void OnFileSave();
virtual void OnCreateToken();
virtual void OnTokenCreated(const char *tokenName);
vgui::ListPanel *m_pTokenList;
vgui::TextEntry *m_pLanguageEdit;
vgui::TextEntry *m_pEnglishEdit;
vgui::MenuButton *m_pFileMenuButton;
vgui::Menu *m_pFileMenu;
vgui::Button *m_pApplyButton;
vgui::Label *m_pTestLabel;
int m_iCurrentToken;
char m_szFileName[512];
DECLARE_PANELMAP();
typedef vgui::Frame BaseClass;
};
#endif // LOCALIZATIONDIALOG_H
|