Counter Strike : Global Offensive Source Code
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.

69 lines
1.3 KiB

  1. #pragma once
  2. #include "resource.h"
  3. #include "utlvector.h"
  4. #include "VGuiWnd.h"
  5. #include "matsys_controls\baseassetpicker.h"
  6. namespace vgui
  7. {
  8. class TextEntry;
  9. class Splitter;
  10. class Button;
  11. }
  12. class CModelBrowserPanel;
  13. class CMDLPicker;
  14. #define ID_FIND_ASSET 100
  15. class CModelBrowser : public CDialog
  16. {
  17. DECLARE_DYNAMIC(CModelBrowser)
  18. public:
  19. CModelBrowser(CWnd* pParent = NULL); // standard constructor
  20. virtual ~CModelBrowser();
  21. void SetUsedModelList( CUtlVector<AssetUsageInfo_t> &usedModels );
  22. void SetModelName( const char *pModelName );
  23. void GetModelName( char *pModelName, int length );
  24. void GetSkin( int &nSkin );
  25. void SetSkin( int nSkin );
  26. // Dialog Data
  27. enum { IDD = IDD_MODEL_BROWSER };
  28. protected:
  29. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  30. virtual BOOL PreTranslateMessage( MSG* pMsg );
  31. DECLARE_MESSAGE_MAP()
  32. public:
  33. afx_msg void OnSize(UINT nType, int cx, int cy);
  34. afx_msg void OnDestroy();
  35. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  36. virtual BOOL OnInitDialog();
  37. void UpdateStatusLine();
  38. void SaveLoadSettings( bool bSave );
  39. void Resize( void );
  40. CVGuiPanelWnd m_VGuiWindow;
  41. CMDLPicker *m_pPicker;
  42. vgui::Button *m_pButtonOK;
  43. vgui::Button *m_pButtonCancel;
  44. vgui::TextEntry *m_pStatusLine;
  45. void Show();
  46. void Hide();
  47. };