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.

59 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef VCONFIGDIALOG_H
  7. #define VCONFIGDIALOG_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include <vgui_controls/Frame.h>
  12. #include <vgui_controls/ImageList.h>
  13. #include <vgui_controls/SectionedListPanel.h>
  14. #include <vgui_controls/PHandle.h>
  15. #include <FileSystem.h>
  16. #include "vgui/mousecode.h"
  17. #include "vgui/IScheme.h"
  18. #include "ConfigManager.h"
  19. using namespace vgui;
  20. //-----------------------------------------------------------------------------
  21. // Purpose: Main dialog for media browser
  22. //-----------------------------------------------------------------------------
  23. class CVConfigDialog : public Frame
  24. {
  25. DECLARE_CLASS_SIMPLE( CVConfigDialog, Frame );
  26. public:
  27. CVConfigDialog(Panel *parent, const char *name);
  28. virtual ~CVConfigDialog();
  29. void PopulateConfigList( bool bSelectActiveConfig = true );
  30. protected:
  31. virtual void OnClose();
  32. virtual void OnCommand( const char *command );
  33. private:
  34. void SetGlobalConfig( const char *modDir );
  35. vgui::ComboBox *m_pConfigCombo;
  36. bool m_bChanged;
  37. MESSAGE_FUNC( OnManageSelect, "ManageSelect" );
  38. MESSAGE_FUNC( OnAddSelect, "AddSelect" );
  39. };
  40. extern CVConfigDialog *g_pVConfigDialog;
  41. #endif // VCONFIGDIALOG_H