dsrc isn't necessary for this repo
[client-tools.git] / src / external / 3rd / application / UiBuilder / ObjectInspector.h
blob99246ea3829f1872c2e51db8d12866d6a7b5a778
1 #ifndef __OBJECTINSPECTOR_H__
2 #define __OBJECTINSPECTOR_H__
4 #include "UITypes.h"
5 #include "UIString.h"
6 #include "UIBaseObject.h"
8 class ObjectInspector
10 public:
12 ObjectInspector( HWND hWnd );
13 ~ObjectInspector( void );
15 void SetObject( UIBaseObject * );
16 UIBaseObject *GetObject( void ) const;
18 bool GetSelectedPropertyName( UINarrowString &Out );
19 void SendKeyDown( unsigned KeyCode );
21 HWND GetTextControl( void ) const { return mTextOverlay; };
23 private:
25 static LRESULT CALLBACK StaticWindowProc( HWND, UINT, WPARAM, LPARAM );
26 LRESULT WindowProc( HWND, UINT, WPARAM, LPARAM );
28 static LRESULT CALLBACK StaticTextboxWindowProc( HWND, UINT, WPARAM, LPARAM );
29 LRESULT TextboxWindowProc( HWND, UINT, WPARAM, LPARAM );
31 void LoadListboxWithObjectProperties( void );
32 void UpdateButtonEnabledState( void );
34 void ShowTextControl( void );
35 void UpdateTextControlFromProperty( void );
36 void UpdatePropertyFromTextControl( void );
38 HWND mPropertyListbox;
39 HWND mTextOverlay;
40 WNDPROC mOldWindowProc;
41 WNDPROC mOldTextboxWindowProc;
43 UIBaseObject::UIBaseObjectPointer mObject;
44 UINarrowString mCurrentPropertyName;
46 unsigned int mTimerID;
48 HWND mPathWindow;
51 #endif /* __OBJECTINSPECTOR_H__ */