// TODO make this automatically call all panels' method private void windowClosing() { // TODO force user to cancel any ongoing acquisition before closing acquisitionPanel_.windowClosing(); setupPanelA_.windowClosing(); if (!ASIdiSPIM.oSPIM) { setupPanelB_.windowClosing(); } }
// TODO make this automatically call all panels' method private void saveSettings() { // save selections as needed devices_.saveSettings(); setupPanelA_.saveSettings(); if (!ASIdiSPIM.oSPIM) { setupPanelB_.saveSettings(); } navigationPanel_.saveSettings(); acquisitionPanel_.saveSettings(); settingsPanel_.saveSettings(); // save tab location in prefs (dialog location now handled by MMDialog) prefs_.putInt(MAIN_PREF_NODE, Prefs.Keys.TAB_INDEX, tabbedPane_.getSelectedIndex()); }