// Documented in superclass. void SoWinExaminerViewer::createViewerButtons(HWND parent, SbPList * buttonlist) { inherited::createViewerButtons(parent, buttonlist); SoWinBitmapButton * b = PRIVATE(this)->camerabutton = new SoWinBitmapButton(parent, 24, "perspective", NULL); b->addBitmap(perspective_xpm); b->addBitmap(ortho_xpm); b->setBitmap(0); b->registerClickedProc(SoWinExaminerViewerP::cameraButtonProc, this); buttonlist->append(b); }
void SoWinFullViewer::createViewerButtons(HWND parent, SbPList * buttonlist) { SoWinBitmapButton * button = new SoWinBitmapButton(parent, 24, "pick", NULL); button->addBitmap(pick_xpm); button->setBitmap(0); // use first (and only) bitmap button->registerClickedProc(SoWinFullViewerP::interactbuttonProc, PRIVATE(this)); buttonlist->append(button); button->setPressedState(this->isViewing() ? FALSE : TRUE); button = new SoWinBitmapButton(parent, 24, "view", NULL); button->addBitmap(view_xpm); button->setBitmap(0); // use first (and only) bitmap button->registerClickedProc(SoWinFullViewerP::examinebuttonProc, PRIVATE(this)); buttonlist->append(button); button->setPressedState(this->isViewing()); button = new SoWinBitmapButton(parent, 24, "home", NULL); button->addBitmap(home_xpm); button->setBitmap(0); // use first (and only) bitmap button->registerClickedProc(SoWinFullViewerP::homebuttonProc, PRIVATE(this)); buttonlist->append(button); button = new SoWinBitmapButton(parent, 24, "set_home", NULL); button->addBitmap(set_home_xpm); button->setBitmap(0); button->registerClickedProc(SoWinFullViewerP::sethomebuttonProc, PRIVATE(this)); buttonlist->append(button); button = new SoWinBitmapButton(parent, 24, "view_all", NULL); button->addBitmap(view_all_xpm); button->setBitmap(0); // use first (and only) bitmap button->registerClickedProc(SoWinFullViewerP::viewallbuttonProc, PRIVATE(this)); buttonlist->append(button); button = new SoWinBitmapButton(parent, 24, "seek", NULL); button->addBitmap(seek_xpm); button->setBitmap(0); // use first (and only) bitmap button->registerClickedProc(SoWinFullViewerP::seekbuttonProc, PRIVATE(this)); buttonlist->append(button); }