OROCHI
 
Loading...
Searching...
No Matches
GxToolResourceViewBase.h
Go to the documentation of this file.
1//===========================================================================
9//===========================================================================
10#pragma once
11
12#if GX_DEVELOP
13
14GX_CORE_NAMESPACE_BEGIN()
15
16//===========================================================================
18//===========================================================================
19class GxToolResourceViewBase : public GxToolBase
20{
21 //-------------------------------------------------------------
23 //-------------------------------------------------------------
25public:
26 // RTTI定義
27 GX_RTTI_ABSTRACT_CLASS_NAME_ICON( GxToolResourceViewBase, GxToolBase, "リソース表示ツール", GxRtti::ICON_TYPE::TOOL_EDITOR )
28 // ClassBaseReference継承クラス用禁止宣言
29 GX_PROHIBIT_CLASS_BASE_REFERENCE( GxToolResourceViewBase )
30
31
32 //-------------------------------------------------------------
34 //-------------------------------------------------------------
36
38 GxToolResourceViewBase( const GxRttiResource* pResRtti, const u32 attribute = 0 );
39protected:
41 GxToolResourceViewBase( void ) {}
42
44 //-------------------------------------------------------------
46 //-------------------------------------------------------------
48protected:
50 void cleanup(void) override;
51
53 //-------------------------------------------------------------
55 //-------------------------------------------------------------
57public:
62 virtual void setResource(GxResBase* pResource);
64 constexpr GxResBase* getResource(void) const { return _pResource; }
66 GX_FORCE_INLINE const GxRttiResource* getRttiResource(void) { return _pRttiResource; }
67protected:
69 void setFilenameToCaption(void);
70
72 //-------------------------------------------------------------
74 //-------------------------------------------------------------
76protected:
77 GxResBase* _pResource;
78 const GxRttiResource* _pRttiResource;
79
81};
82
83GX_CORE_NAMESPACE_END()
84
85#endif // GX_DEVELOP
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
リソース基底クラス
Definition GxResBase.h:23
@ TOOL_EDITOR
エディター
リソース実行時型情報クラス
Definition GxRttiResource.h:188