src/viewer/svpaint.cpp
void SVPaint::Notify(const SVEvent *sv_event) {
  if (sv_event->type == SVET_CLICK) {
    ClickHandler(sv_event);
  } else if (sv_event->type == SVET_SELECTION) {
    SelectionHandler(sv_event);
  } else if (sv_event->type == SVET_MENU) {
    MenuBarHandler(sv_event);
  } else if (sv_event->type == SVET_POPUP) {
    PopupHandler(sv_event);
  }
  // throw other events away
}
// The event handling function from ScrollView which we have to overwrite.
// We handle CLICK, SELECTION, MENU and POPUP and throw away all other events.
The event handling function from ScrollView which we have to overwrite.
The event handling function from ScrollView which we have to overwrite .
void SVPaint::Notify(const SVEvent *sv_event) {
  if (sv_event->type == SVET_CLICK) {
    ClickHandler(sv_event);
  } else if (sv_event->type == SVET_SELECTION) {
    SelectionHandler(sv_event);
  } else if (sv_event->type == SVET_MENU) {
    MenuBarHandler(sv_event);
  } else if (sv_event->type == SVET_POPUP) {
    PopupHandler(sv_event);
  }
}
void SVPaint :: Notify ( const SVEvent * sv_event ) { if ( sv_event -> type == SVET_CLICK ) { ClickHandler ( sv_event ) ; } else if ( sv_event -> type == SVET_SELECTION ) { SelectionHandler ( sv_event ) ; } else if ( sv_event -> type == SVET_MENU ) { MenuBarHandler ( sv_event ) ; } else if ( sv_event -> type == SVET_POPUP ) { PopupHandler ( sv_event ) ; } }
The event handling function from ScrollView which we have to overwrite.
The event handling function from ScrollView which we have to overwrite .
// throw other events away