| 498 | } |
| 499 | |
| 500 | void TOPPViewBase::preferencesDialog() |
| 501 | { |
| 502 | Internal::TOPPViewPrefDialog dlg(this); |
| 503 | dlg.setParam(param_.copy(user_section, true)); |
| 504 | |
| 505 | // -------------------------------------------------------------------- |
| 506 | // Execute dialog and update parameter object with user modified values |
| 507 | if (dlg.exec()) |
| 508 | { |
| 509 | param_.remove(user_section); |
| 510 | param_.insert(user_section, dlg.getParam()); |
| 511 | savePreferences(); |
| 512 | } |
| 513 | } |
| 514 | |
| 515 | TOPPViewBase::LOAD_RESULT TOPPViewBase::addDataFile(const String& filename, bool show_options, bool add_to_recent, String caption, UInt window_id, Size spectrum_id) |
| 516 | { |