Go to
the documentation of this file.
00001 #ifndef __FBMANIPULATORLAYOUT_H__
00002 #define __FBMANIPULATORLAYOUT_H__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00043 #include <kaydaradef.h>
00044 #ifndef FBSDK_DLL
00045
00048 #define FBSDK_DLL K_DLLIMPORT
00049 #endif
00050
00051
00052 #include <fbsdk/fbmanipulator.h>
00053
00054
00055 #include <fbcontrols/fbcontrols.h>
00056
00057
00058 #ifdef FBSDKUseNamespace
00059 namespace FBSDKNamespace {
00060 #endif
00061
00067 #define FBRegisterManipulatorLayout( ClassName,UniqueNameStr, IconFilename ) \
00068 HIObject RegisterManipulatorLayout##ClassName( HIObject ,char * ,void *pData) \
00069 {\
00070 ClassName *Class = new ClassName( (HFBManipulator)FBGetFBObject((HIObject)pData) ); \
00071 Class->mAllocated = true; \
00072 if (Class->FBCreate()) { \
00073 return Class->GetHIObject(); \
00074 } else { \
00075 delete Class; \
00076 return NULL; \
00077 } \
00078 } \
00079 FBLibraryModule( ClassName ) \
00080 { \
00081 FBRegisterObject( ClassName,"UI_Associated_ClassName",UniqueNameStr,UniqueNameStr" Manipulator Layout",RegisterManipulatorLayout##ClassName, true, IconFilename ); \
00082 }
00083
00088 #define FBManipulatorLayoutDeclare( ClassName,Parent ) \
00089 FBClassDeclare( ClassName,Parent ); \
00090 public: \
00091 ClassName(HFBManipulator pManipulator):Parent(pManipulator) { FBClassInit; } \
00092 private:
00093
00097 #define FBManipulatorLayoutImplementation( ThisComponent ) \
00098 FBClassImplementation( ThisComponent )
00099
00101
00103 __FB_FORWARD( FBManipulatorLayout );
00104
00106 class FBSDK_DLL FBManipulatorLayout : public FBLayout
00107 {
00108 __FBClassDeclare( FBManipulatorLayout, FBLayout );
00109
00110 public:
00114 FBManipulatorLayout( HFBManipulator pManipulator = NULL );
00115
00116 FBPropertyInt StartSize [2];
00117 FBPropertyInt MaxSize [2];
00118 FBPropertyInt MinSize [2];
00119
00120 FBPropertyManipulator Manipulator;
00121 };
00122
00123 #ifdef FBSDKUseNamespace
00124 }
00125 #endif
00126 #endif