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.

83 lines
2.1 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 <vgui_controls/Frame.h>
  12. #include <vgui_controls/ImageList.h>
  13. #include <vgui_controls/SectionedListPanel.h>
  14. #include <vgui_controls/PHandle.h>
  15. #include <vgui_controls/MenuBar.h>
  16. #include <FileSystem.h>
  17. #include "vgui/mousecode.h"
  18. #include "vgui/IScheme.h"
  19. #include "CMDErrorPanel.h"
  20. #include "CMDModulePanel.h"
  21. #include "CMDDetailPanel.h"
  22. #include "isqlwrapper.h"
  23. using namespace vgui;
  24. void VGUIMessageBox( vgui::Panel *pParent, const char *pTitle, PRINTF_FORMAT_STRING const char *pMsg, ... );
  25. //-----------------------------------------------------------------------------
  26. // Purpose: Main dialog for media browser
  27. //-----------------------------------------------------------------------------
  28. class CMDRipperMain : public Frame
  29. {
  30. DECLARE_CLASS_SIMPLE( CMDRipperMain, Frame );
  31. public:
  32. CMDRipperMain(Panel *parent, const char *name);
  33. virtual ~CMDRipperMain();
  34. ISQLWrapper *GetSqlWrapper() { return sqlWrapper; }
  35. protected:
  36. virtual void OnClose();
  37. virtual void OnCommand( const char *command );
  38. virtual bool RequestInfo( KeyValues *outputData );
  39. private:
  40. void SetGlobalConfig( const char *modDir );
  41. vgui::ComboBox *m_pConfigCombo;
  42. bool m_bChanged;
  43. vgui::MenuBar *m_pMenuBar;
  44. vgui::Panel *m_pClientArea;
  45. CMDErrorPanel *m_pErrorPanel;
  46. CMDModulePanel *m_pModulePanel;
  47. CMDDetailPanel *m_pDetailPanel;
  48. MESSAGE_FUNC( OnOpen, "Open" );
  49. MESSAGE_FUNC( OnError, "Error" );
  50. MESSAGE_FUNC( OnRefresh, "refresh" );
  51. MESSAGE_FUNC_PARAMS( OnDetail, "detail", data );
  52. MESSAGE_FUNC_CHARPTR( OnFileSelected, "FileSelected", fullpath );
  53. MESSAGE_FUNC_PARAMS( OnLookUp, "ModuleLookUp", url );
  54. MESSAGE_FUNC_PARAMS( OnDragDrop, "DragDrop", pData );
  55. CSysModule *hSQLWrapper;
  56. ISQLWrapperFactory *sqlWrapperFactory;
  57. ISQLWrapper *sqlWrapper;
  58. // MESSAGE_FUNC( OnManageSelect, "ManageSelect" );
  59. // MESSAGE_FUNC( OnAddSelect, "AddSelect" );
  60. };
  61. extern CMDRipperMain *g_pCMDRipperMain;
  62. #endif // MDRIPPERMAIN_H