Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef MDRIPPERMAIN_H
  7. #define MDRIPPERMAIN_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "matsys_controls/QCGenerator.h"
  12. #include <vgui_controls/Frame.h>
  13. #include <FileSystem.h>
  14. #include "vgui/IScheme.h"
  15. using namespace vgui;
  16. //-----------------------------------------------------------------------------
  17. // Purpose: Main dialog for media browser
  18. //-----------------------------------------------------------------------------
  19. class CQCGenMain : public Frame
  20. {
  21. DECLARE_CLASS_SIMPLE( CQCGenMain, Frame );
  22. public:
  23. CQCGenerator *m_pQCGenerator;
  24. CQCGenMain(Panel *parent, const char *name, const char *pszMDParam, const char *pszCollisionParam );
  25. virtual ~CQCGenMain();
  26. protected:
  27. virtual void OnClose();
  28. virtual void OnCommand( const char *command );
  29. private:
  30. void SetGlobalConfig( const char *modDir );
  31. vgui::ComboBox *m_pConfigCombo;
  32. bool m_bChanged;
  33. vgui::MenuBar *m_pMenuBar;
  34. vgui::Panel *m_pClientArea;
  35. MESSAGE_FUNC( OnRefresh, "refresh" );
  36. };
  37. extern CQCGenMain *g_pCQCGenMain;
  38. #endif // MDRIPPERMAIN_H