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.

62 lines
1.5 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef DMESOURCESKINPANEL_H
  7. #define DMESOURCESKINPANEL_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "vgui_controls/EditablePanel.h"
  12. #include "datamodel/dmehandle.h"
  13. //-----------------------------------------------------------------------------
  14. // Forward declarations
  15. //-----------------------------------------------------------------------------
  16. namespace vgui
  17. {
  18. class TextEntry;
  19. class CheckButton;
  20. }
  21. class CDmeSourceSkin;
  22. //-----------------------------------------------------------------------------
  23. // Purpose: Asset builder
  24. //-----------------------------------------------------------------------------
  25. class CDmeSourceSkinPanel : public vgui::EditablePanel
  26. {
  27. DECLARE_CLASS_SIMPLE( CDmeSourceSkinPanel, EditablePanel );
  28. public:
  29. CDmeSourceSkinPanel( vgui::Panel *pParent, const char *pPanelName );
  30. virtual ~CDmeSourceSkinPanel();
  31. void SetDmeElement( CDmeSourceSkin *pSourceSkin );
  32. /*
  33. messages sent:
  34. "DmeElementChanged" The element has been changed
  35. */
  36. private:
  37. MESSAGE_FUNC_PARAMS( OnTextChanged, "TextChanged", kv );
  38. MESSAGE_FUNC_INT( OnCheckButtonChecked, "CheckButtonChecked", state );
  39. // Marks the file as dirty
  40. void SetDirty( );
  41. vgui::TextEntry *m_pSkinName;
  42. vgui::TextEntry *m_pScale;
  43. vgui::CheckButton *m_pFlipTriangles;
  44. CDmeHandle< CDmeSourceSkin > m_hSourceSkin;
  45. };
  46. #endif // DMESOURCESKINPANEL_H