summaryrefslogtreecommitdiff
path: root/utils/QCGenerator/CQCGenMain.h
diff options
context:
space:
mode:
Diffstat (limited to 'utils/QCGenerator/CQCGenMain.h')
-rw-r--r--utils/QCGenerator/CQCGenMain.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/utils/QCGenerator/CQCGenMain.h b/utils/QCGenerator/CQCGenMain.h
new file mode 100644
index 0000000..7953c2a
--- /dev/null
+++ b/utils/QCGenerator/CQCGenMain.h
@@ -0,0 +1,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