OROCHI
 
Loading...
Searching...
No Matches
GxGuiPropertyResourceGmp.h
Go to the documentation of this file.
1//===========================================================================
11//===========================================================================
12#pragma once
13
14#if GX_DEVELOP
15
16GX_MOTION_NAMESPACE_BEGIN()
17
18//===========================================================================
21//===========================================================================
22class GxGuiPropertyResourceGmp : public GxGuiPropertyResource
23{
24 //-----------------------------------------------------------
26 //-----------------------------------------------------------
28public:
29 GX_RTTI_CLASS( GxGuiPropertyResourceGmp, GxGuiPropertyResource )
30 // GxClassBaseReference継承クラス用禁止宣言
31 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxGuiPropertyResourceGmp)
32
33
34 //-----------------------------------------------------------
36 //-----------------------------------------------------------
38
40 GxGuiPropertyResourceGmp(void);
42 GxGuiPropertyResourceGmp( const GxProperty& property, GxTypedObject* pOwner, const GxRtti& rtti, const GxRttiResource& resRtti, u32 index = 0 );
43
45 //-----------------------------------------------------------
47 //-----------------------------------------------------------
49
51 b32 initialize( void ) override;
52
53protected:
55 void onDropFile( GX_CSTR pFilePath ) override;
56
58 void eventSelectFile( void );
60 void openDialog( void );
61
63};
64
65//===========================================================================
67//===========================================================================
68class GxGuiPropertyResourceGmpNotify : public GxGuiPropertyResourceGmp
69{
70 //-----------------------------------------------------------
72 //-----------------------------------------------------------
74public:
75 // RTTI定義
76 GX_RTTI_CLASS(GxGuiPropertyResourceGmpNotify, GxGuiPropertyResourceGmp)
77 // ClassBaseReference継承クラス用禁止宣言
78 GX_PROHIBIT_CLASS_BASE_REFERENCE(GxGuiPropertyResourceGmpNotify)
79
80
81 //-----------------------------------------------------------
83 //-----------------------------------------------------------
85public:
87 GxGuiPropertyResourceGmpNotify(void);
89 GxGuiPropertyResourceGmpNotify(const GxProperty& resourceProperty, GxTypedObject* pOwner, const GxRtti& rtti, const GxRttiResource& resRtti, const GxProperty& resourceChangedEvent, u32 index = 0 );
90
92 //-----------------------------------------------------------
94 //-----------------------------------------------------------
96protected:
98 void onMouseMove(const GxPoint2& position) override;
99
101 //-----------------------------------------------------------
103 //-----------------------------------------------------------
105public:
107 void setResource( GxResBase* pResBase ) override;
108
110 //-----------------------------------------------------------
112 //-----------------------------------------------------------
114private:
115 GxProperty _resourceChangedEvent;
116
118};
119
120GX_MOTION_NAMESPACE_END()
121#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
void GxTypedObject
その他
Definition GxDefine.h:213
プロパティクラス
Definition GxProperty.h:48
リソース基底クラス
Definition GxResBase.h:23
実行時型情報クラス
Definition GxRtti.h:154
リソース実行時型情報クラス
Definition GxRttiResource.h:188
座標
Definition GxStruct.h:867
32bitブーリアン
Definition GxDefine.h:173