Exemplo n.º 1
0
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;
}
Exemplo n.º 2
0
//add icons acoording to icons array
static void addIcons(const int *pIcons,unsigned int iSize)
{
    unsigned int i;
    for( i=0;i<iSize;i++)
    {
        tbAppendPlatformIcon(toolbarChannel,ER_SCRIBBLE_UA_ID,
                             pIcons[i],ccVwrToolbar);
    }
}
Exemplo n.º 3
0
void IliadToolbar::addIcon(int icon, int state, int signal)
{
    tbAppendPlatformIcon(  ertoolbarChannel, iconSet, icon, signal);
    tbSetStatePlatformIcon(ertoolbarChannel, iconSet, icon, state );
}