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.

63 lines
1.2 KiB

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