void IliadToolbar::initialize() { //initialize events eventHandler = new ToolBarEventHandler(); // busy indicator erIpcStartClient(ER_BUSYD_CHANNEL, &erbusyChannel); // pagebar erIpcStartClient(ER_PAGEBAR_CHANNEL, &erpagebarChannel); // toolbar erIpcStartClient(ER_TOOLBAR_CHANNEL, &ertoolbarChannel); tbSelectIconSet(ertoolbarChannel, ER_PDF_VIEWER_UA_ID); // disable redraw tbDisableUpdate(ertoolbarChannel, ER_PDF_VIEWER_UA_ID); tbClearIconSet(ertoolbarChannel, ER_PDF_VIEWER_UA_ID); // trashcan tbAppendPlatformIcon( ertoolbarChannel, ER_PDF_VIEWER_UA_ID, iconID_trashcan, -1); tbSetStatePlatformIcon(ertoolbarChannel, ER_PDF_VIEWER_UA_ID, iconID_trashcan, iconState_grey ); // keyboard tbAppendPlatformIcon( ertoolbarChannel, ER_PDF_VIEWER_UA_ID, iconID_keyboard, -1); tbSetStatePlatformIcon(ertoolbarChannel, ER_PDF_VIEWER_UA_ID, iconID_keyboard, iconState_grey ); tbEnableUpdate(ertoolbarChannel, ER_PDF_VIEWER_UA_ID); //nPanState = nZoominState = nZoomoutState = iconState_normal; //nZoombackState = iconState_grey; //nContinousState = iconState_normal; //nRotateState = PortraitToLandscape; //nBackwardState = nForwardState = iconState_grey; }
void toolbar_init() { int returnValue; SB_IPCPRINTF("\n\n\nentry,ER_TOOLBAR_CHANNEL=%d\n\n", ER_TOOLBAR_CHANNEL); toolbarChannel=NULL; // create/init channel to communicate with the toolbar service returnValue = erIpcStartClient(ER_TOOLBAR_CHANNEL, &toolbarChannel); if (returnValue != 0) { SB_ERRORPRINTF("erIpcStartClient returned %d\n", returnValue); return; } // tell toolbar which icons set to display tbSelectIconSet(toolbarChannel, ER_SCRIBBLE_UA_ID); }