summaryrefslogtreecommitdiff
path: root/utils/hlmv/attachments_window.h
blob: 481d62af1ecf61ef1520515d7679ab34adcc4240 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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