All of the user interface elements available for use with the SDK are defined in this file. These elements (for the most part) derive from the FBVisualComponent base class and provide the functionality required to develop an interface for a plugin.
Definition in file fbcontrols.h.
#include <kaydaradef.h>
#include <fbsdk/fbcomponent.h>
Go to the source code of this file.
#define FBMenuItemActivation | ( | ClassName | ) |
Value:
extern ClassName* g##ClassName; \ g##ClassName = new ClassName; \ g##ClassName->Activate();
ClassName | Menu item class to activate. |
Definition at line 644 of file fbcontrols.h.
#define FBMenuItemDeclare | ( | ClassName, | |||
Parent | ) |
Value:
FBClassDeclare( ClassName,Parent ); \ public: \ ClassName():Parent() { FBClassInit; FBCreate(); } \ private:
ClassName | Name of menu item class to declare. | |
Parent | Name of menu item class's parent class. |
Definition at line 616 of file fbcontrols.h.
#define FBMenuItemHandle | ( | ClassName, | |||
Handle | ) |
Value:
extern ClassName* g##ClassName; \
Handle = g##ClassName;
ClassName | Menu item class to get a handle for. |
Handle | Handle to the menu item. |
Definition at line 653 of file fbcontrols.h.
#define FBMenuItemImplementation | ( | ThisComponent | ) | FBClassImplementation( ThisComponent ) |
Menu item class implementation.
ThisComponent | Menu item class to implement. |
Definition at line 625 of file fbcontrols.h.
#define FBRegisterControl | ( | ClassName, | |||
Path, | |||||
Label, | |||||
Description, | |||||
IconFilename | ) |
Value:
HIObject RegisterControl##ClassName( HIObject /*pOwner*/,char * /*pName*/,void * /*pData*/) \ {\ ClassName *Class = new ClassName; \ return Class->GetHIObject(); \ } \ FBLibraryModule( ClassName )\ {\ FBRegisterObject( ClassName,Path,Label,Description,RegisterControl##ClassName, true, IconFilename );\ FBRegisterObject( ClassName##1,"FBSDK",Label,Description,RegisterControl##ClassName, true, IconFilename );\ }
ClassName | Control class name to register. | |
Path | Internal path to store control. | |
Label | Short description of control. | |
Description | Long description of control. | |
IconFilename | Filename of associated icon. |
Definition at line 84 of file fbcontrols.h.
#define FBRegisterMenuItem | ( | ClassName | ) |
Value:
HIObject RegisterMenuItem##ClassName( HIObject /*pOwner*/,char * /*pName*/,void * /*pData*/) \ {\ return NULL;\ }\ FBLibraryModule( ClassName ) \ { \ } \ ClassName* g##ClassName;
ClassName | Menu item class to register. |
Definition at line 631 of file fbcontrols.h.
#define FBSDK_DLL K_DLLEXPORT |
FBSDKDLL_ K_DLLEXPORT.
Definition at line 50 of file fbcontrols.h.
#define SPLIT_WIDTH 10 |
SPLIT_WIDTH.
Definition at line 74 of file fbcontrols.h.
enum FBAttachType |
Types of attachments between UI regions.
Definition at line 273 of file fbcontrols.h.
enum FBBorderStyle |
Different border types available.
Definition at line 286 of file fbcontrols.h.
enum FBButtonLook |
Button look.
Definition at line 1033 of file fbcontrols.h.
enum FBButtonState |
Possible button states.
Currently, only two button states are possible.
kFBButtonState0 | State is 0, usually meaning not active. |
kFBButtonState1 | State is 1, usually meaning active. |
Definition at line 1006 of file fbcontrols.h.
enum FBButtonStyle |
Style of buttons.
Definition at line 994 of file fbcontrols.h.
enum FBCellStyle |
Different styles of spreadsheet cell styles.
kFBCellStyleDefault | Default cell style. |
kFBCellStyleString | String. |
kFBCellStyleDouble | Double. |
kFBCellStyleInteger | Integer. |
kFBCellStyleButton | Button. |
kFBCellStyle2StatesButton | 2 state button. |
kFBCellStyle3StatesButton | 3 state button. |
kFBCellStyleMenu | Menu. |
kFBCellStyleVoid | Void (no value). |
kFBCellStyleView | View (user definable, you need to specify the view using FBSpread::SetCellView()). |
kFBCellStyleTime | Time. |
Definition at line 1398 of file fbcontrols.h.
enum FBColorIndex |
Definition at line 178 of file fbcontrols.h.
enum FBDragAndDropState |
State of Drag and Drop.
Definition at line 484 of file fbcontrols.h.
enum FBEventTreeWhy |
Tree node different event type.
Definition at line 1725 of file fbcontrols.h.
enum FBFilePopupStyle |
Different types of file popup windows.
kFBFilePopupOpen | Open file popup (Shows 'Open Directory'). |
kFBFilePopupSave | Save file popup (Shows 'Save Directory'). |
Definition at line 1948 of file fbcontrols.h.
enum FBIconPosition |
Different icon positions possible.
Definition at line 1641 of file fbcontrols.h.
enum FBInputKey |
Keyboard inputs.
Definition at line 141 of file fbcontrols.h.
enum FBInputModifier |
Input Modifiers (Ctrl, Alt, Shift).
kFBKeyNone | No modifier. |
kFBKeyShift | Shift was pressed. |
kFBKeyCtrl | Control was pressed. |
kFBKeyAlt | Alt was pressed. |
Definition at line 133 of file fbcontrols.h.
enum FBInputType |
Types of input events.
Definition at line 115 of file fbcontrols.h.
enum FBListStyle |
List style or direction.
Definition at line 1297 of file fbcontrols.h.
enum FBMenuItemType |
Types of menu items available.
kFBMenuItemMotionImport | Motion Files->Import. |
kFBMenuItemSceneImport | Scenes->Import. |
kFBMenuItemMotionExport | Motion Files->Export. |
kFBMenuItemSceneExport | Scenes->Export. |
Definition at line 658 of file fbcontrols.h.
enum FBOrientation |
General directions for UI components.
Definition at line 101 of file fbcontrols.h.
enum FBPopupInputType |
User input types for a popup.
Definition at line 2029 of file fbcontrols.h.
enum FBTextJustify |
Text justification styles.
kFBTextJustifyLeft | Left justify. |
kFBTextJustifyRight | Right justify. |
kFBTextJustifyCenter | Center alignment. |
Definition at line 1014 of file fbcontrols.h.
enum FBTextStyle |
Text appearance styles.
kFBTextStyleNone | Normal. |
kFBTextStyleBold | Bold. |
kFBTextStyleItalic | Italic. |
kFBTextStyleUnderlined | Underlined. |
Definition at line 1023 of file fbcontrols.h.
K_DLLEXPORT int FBMessageBox | ( | char * | pBoxTitle, | |
char * | pMessage, | |||
char * | pButton1Str, | |||
char * | pButton2Str =
NULL , |
|||
char * | pButton3Str =
NULL , |
|||
int | pDefaultButton =
0 , |
|||
int | pScrolledMessage =
0 |
|||
) |
Dialog popup box.
Opens a message box containing a message and up to three buttons. Waits for the user to click a button.
pBoxTitle | Title of message box. | |
pMessage | Message to place in box. | |
pButton1Str | String for first button (Cannot be NULL). | |
pButton2Str | String for second button (NULL will not create a button). | |
pButton3Str | String for third button (NULL will not create a button). | |
pDefaultButton | Indicates the default (pre-selected) button (default is 0). | |
pScrolledMessage | Scroll message (default is 0). |
K_DLLEXPORT int FBMessageBoxGetUserValue | ( | char * | pBoxTitle, | |
char * | pMessage, | |||
void * | pValue, | |||
FBPopupInputType | pValueType, | |||
char * | pButton1Str, | |||
char * | pButton2Str =
NULL , |
|||
char * | pButton3Str =
NULL , |
|||
int | pDefaultButton =
0 , |
|||
bool | pLastButtonCancel =
true |
|||
) |
Dialog popup box to get user input.
Opens a message box, with up to three buttons, asking the user to enter data. The type of data to be entered is specified by the pValue and pValueType parameters.
pBoxTitle | Title of message box. | |
pMessage | Message to place in box. |
pValue | Value entered by user (must correspond with pValueType). |
pValueType | Type of pointer specified in pValue. | |
pButton1Str | String for first button (Cannot be NULL). | |
pButton2Str | String for second button (NULL will not create a button). | |
pButton3Str | String for third button (NULL will not create a button). | |
pDefaultButton | Indicates the default (pre-selected) button(default=0). | |
pLastButtonCancel | Indicates the last button is Cancel (if more than one button) so pValue won't be updated if the last button is clicked. |
K_DLLEXPORT int FBMessageBoxWithCheck | ( | char * | pBoxTitle, | |
char * | pMessage, | |||
char * | pButton1Str, | |||
char * | pButton2Str, | |||
char * | pButton3Str, | |||
char * | pCheckBoxStr, | |||
bool & | pCheckBoxValue, | |||
int | pDefaultButton =
0 , |
|||
int | pScrolledMessage =
0 |
|||
) |
Dialog popup box with a check box.
Opens a message box containing a message, up to three buttons and a check box. Waits for the user to click a button.
pBoxTitle | Title of message box. | |
pMessage | Message to place in box. | |
pButton1Str | String for first button (Cannot be NULL). | |
pButton2Str | String for second button (NULL will not create a button). | |
pButton3Str | String for third button (NULL will not create a button). | |
pCheckBoxStr | Check box string (Cannot be NULL). |
pCheckBoxValue | Check box value. |
pDefaultButton | Indicates the default (pre-selected) button (default is 0). | |
pScrolledMessage | Scroll message (default is 0). |