summaryrefslogtreecommitdiff
path: root/utils/hlmv/attachments_window.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /utils/hlmv/attachments_window.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'utils/hlmv/attachments_window.h')
-rw-r--r--utils/hlmv/attachments_window.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/utils/hlmv/attachments_window.h b/utils/hlmv/attachments_window.h
new file mode 100644
index 0000000..481d62a
--- /dev/null
+++ b/utils/hlmv/attachments_window.h
@@ -0,0 +1,63 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef ATTACHMENTS_WINDOW_H
+#define ATTACHMENTS_WINDOW_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#ifndef INCLUDED_MXWINDOW
+#include <mxtk/mxWindow.h>
+#endif
+#include <mxtk/mx.h>
+#include "mxLineEdit2.h"
+#include "mathlib/vector.h"
+
+
+class ControlPanel;
+
+
+class CAttachmentsWindow : public mxWindow
+{
+public:
+ CAttachmentsWindow( ControlPanel* pParent );
+ void Init( );
+
+ void OnLoadModel();
+
+ void OnTabSelected();
+ void OnTabUnselected();
+
+ virtual int handleEvent( mxEvent *event );
+
+
+private:
+
+ void OnSelChangeAttachmentList();
+
+ void PopulateAttachmentsList();
+ void PopulateBoneList();
+ void UpdateStrings( bool bUpdateQC=true, bool bUpdateTranslation=true, bool bUpdateRotation=true );
+
+ Vector GetCurrentTranslation();
+ Vector GetCurrentRotation();
+
+
+private:
+
+ ControlPanel *m_pControlPanel;
+ mxListBox *m_cAttachmentList;
+ mxListBox *m_cBoneList;
+
+ mxLineEdit2 *m_cTranslation;
+ mxLineEdit2 *m_cRotation;
+ mxLineEdit2 *m_cQCString;
+};
+
+
+#endif // ATTACHMENTS_WINDOW_H