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.

90 lines
1.9 KiB

  1. //========= Copyright � 1996-2005, 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. mxButton *m_bTranslateXSmallPlus;
  42. mxButton *m_bTranslateYSmallPlus;
  43. mxButton *m_bTranslateZSmallPlus;
  44. mxButton *m_bTranslateXSmallMinus;
  45. mxButton *m_bTranslateYSmallMinus;
  46. mxButton *m_bTranslateZSmallMinus;
  47. mxButton *m_bTranslateXLargePlus;
  48. mxButton *m_bTranslateYLargePlus;
  49. mxButton *m_bTranslateZLargePlus;
  50. mxButton *m_bTranslateXLargeMinus;
  51. mxButton *m_bTranslateYLargeMinus;
  52. mxButton *m_bTranslateZLargeMinus;
  53. mxButton *m_bRotateXSmallPlus;
  54. mxButton *m_bRotateYSmallPlus;
  55. mxButton *m_bRotateZSmallPlus;
  56. mxButton *m_bRotateXSmallMinus;
  57. mxButton *m_bRotateYSmallMinus;
  58. mxButton *m_bRotateZSmallMinus;
  59. mxButton *m_bRotateXLargePlus;
  60. mxButton *m_bRotateYLargePlus;
  61. mxButton *m_bRotateZLargePlus;
  62. mxButton *m_bRotateXLargeMinus;
  63. mxButton *m_bRotateYLargeMinus;
  64. mxButton *m_bRotateZLargeMinus;
  65. };
  66. #endif // ATTACHMENTS_WINDOW_H