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.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef ATTACHMENTS_WINDOW_H
  7. #define ATTACHMENTS_WINDOW_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #ifndef INCLUDED_MXWINDOW
  12. #include <mxtk/mxWindow.h>
  13. #endif
  14. #include <mxtk/mx.h>
  15. #include "mxLineEdit2.h"
  16. #include "mathlib/vector.h"
  17. class ControlPanel;
  18. class CAttachmentsWindow : public mxWindow
  19. {
  20. public:
  21. CAttachmentsWindow( ControlPanel* pParent );
  22. void Init( );
  23. void OnLoadModel();
  24. void OnTabSelected();
  25. void OnTabUnselected();
  26. virtual int handleEvent( mxEvent *event );
  27. private:
  28. void OnSelChangeAttachmentList();
  29. void PopulateAttachmentsList();
  30. void PopulateBoneList();
  31. void UpdateStrings( bool bUpdateQC=true, bool bUpdateTranslation=true, bool bUpdateRotation=true );
  32. Vector GetCurrentTranslation();
  33. Vector GetCurrentRotation();
  34. private:
  35. ControlPanel *m_pControlPanel;
  36. mxListBox *m_cAttachmentList;
  37. mxListBox *m_cBoneList;
  38. mxLineEdit2 *m_cTranslation;
  39. mxLineEdit2 *m_cRotation;
  40. mxLineEdit2 *m_cQCString;
  41. };
  42. #endif // ATTACHMENTS_WINDOW_H