Definition in file fbtool.h.
#include <kaydaradef.h>
#include <fbcontrols/fbcontrols.h>


Go to the source code of this file.
Classes |
|
| class | FBTool |
| Tool class. More... |
|
Defines |
|
| #define | FBSDK_DLL K_DLLIMPORT |
| Be sure that FBSDK_DLL is defined only once.
|
|
| #define | FBRegisterTool(ClassName, Label, Description, IconFilename) |
| Register a tool. |
|
| #define | FBToolDeclare(ClassName, Parent) |
| Tool class declaration. |
|
| #define | FBToolImplementation(ThisComponent) FBClassImplementation( ThisComponent ) |
| Tool class implementation. |
|
| #define FBRegisterTool | ( | ClassName, | |||
| Label, | |||||
| Description, | |||||
| IconFilename | ) |
Value:
static HIObject RegisterTool##ClassName( HIObject pOwner,char * pName,void * pData) \ {\ ClassName *Class = new ClassName( Label ); \ if( Class->FBCreate() ) {\ return Class->GetHIObject(); \ } else { \ delete Class; \ return NULL; \ } \ } \ FBLibraryModule( ClassName ) \ { \ FBRegisterObject( ClassName,"UI/Tools",Label,Description,RegisterTool##ClassName, false, IconFilename );\ }
| ClassName | Name of tool class to register. | |
| Label | Short description of tool. | |
| Description | Long description of tool. | |
| IconFilename | Filename of associated icon. |
| #define FBSDK_DLL K_DLLIMPORT |
| #define FBToolDeclare | ( | ClassName, | |||
| Parent | ) |
Value:
FBClassDeclare( ClassName,Parent ); \ public: \ ClassName(char *pName=NULL):Parent(pName) { FBClassInit; } \ private:
| ClassName | Name of tool class to declare. | |
| Parent | Name of tool class parent class. |
| #define FBToolImplementation | ( | ThisComponent | ) | FBClassImplementation( ThisComponent ) |