summaryrefslogtreecommitdiff
path: root/utils/QCGenerator/CQCGenMain.h
blob: 7953c2a26af9ef6073c8f67633e578b178491906 (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
//=============================================================================//

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

#include "matsys_controls/QCGenerator.h"
#include <vgui_controls/Frame.h>
#include <FileSystem.h>
#include "vgui/IScheme.h"

using namespace vgui;

//-----------------------------------------------------------------------------
// Purpose: Main dialog for media browser
//-----------------------------------------------------------------------------
class CQCGenMain : public Frame
{
	DECLARE_CLASS_SIMPLE( CQCGenMain, Frame );

public:

    CQCGenerator *m_pQCGenerator;
	CQCGenMain(Panel *parent, const char *name, const char *pszMDParam, const char *pszCollisionParam );
	virtual ~CQCGenMain();
		
protected:
	
	virtual void OnClose();
	virtual void OnCommand( const char *command );

private:

	void		SetGlobalConfig( const char *modDir );

	vgui::ComboBox	*m_pConfigCombo;
	bool			m_bChanged;
	vgui::MenuBar	*m_pMenuBar;
	vgui::Panel		*m_pClientArea;
	
	MESSAGE_FUNC( OnRefresh, "refresh" );	
};


extern CQCGenMain *g_pCQCGenMain;


#endif // MDRIPPERMAIN_H