mainFrame.setEnabled(true);
}
// Change minimum size of scan window
else if (incomingEvent instanceof EventChangeScanWindowSize) {
EventChangeScanWindowSize event = (EventChangeScanWindowSize) incomingEvent;
MainController.getInstance().setScanWindowSize(event.getNewSize());
mainFrame.browserTab.getImagePanel().repaint();
}
// Update menu bar
else if (incomingEvent instanceof EventUpdateMenuBar) {
EventUpdateMenuBar event = (EventUpdateMenuBar) incomingEvent;
mainFrame.browserTab.getMenuBar().update(event.isDetectionAllowed());
}
// Shut down application and save settings
else if (incomingEvent instanceof EventShutdownMainFrame) {
MainController.getInstance().getDetectionHotSpot().serializeContent();