# Path: pytripgui/messages.py



import logging
from pytripgui.messages import InfoMessages
            return
        self.set_model_from_view()
        self.user_clicked_save = True
        self.view.exit()

    def _exit(self):
        self.view.exit()

    def set_model_from_view(self):
        self.model.basename = self.view.basename
        self.model.comment = self.view.comment

        self.model.voi_target = self.view.get_selected_target_roi()
        self.model.vois_oar = self.view.get_all_checked_oar_as_list()

        self.model.default_kernel = self.view.get_selected_krenel()
        self.model.target_dose = self.view.target_dose
        self.model.target_dose_percent = self.view.relative_target_dose

        self.model.iterations = self.view.iterations
        self.model.eps = self.view.eps
        self.model.geps = self.view.geps
        self.model.opt_method = self.view.get_selected_opti_method()
        self.model.opt_principle = self.view.get_selected_principle()
        self.model.dose_alg = self.view.get_selected_dose_algorithm()
        self.model.bio_alg = self.view.get_selected_bio_algorithm()
        self.model.opt_alg = self.view.get_selected_opti_algorithm()

        self.model.want_phys_dose = self.view.physical_dose_dist
        self.model.want_bio_dose = self.view.biological_dose_dist

# Path: pytripgui/messages.py



# Path: pytripgui/plan_vc/plan_cont.py
import logging
from pytripgui.messages import InfoMessages

            return
        self.set_model_from_view()
        self.user_clicked_save = True
        self.view.exit()

    def _exit(self):
        self.view.exit()

    def set_model_from_view(self):
        self.model.basename = self.view.basename
        self.model.comment = self.view.comment

        self.model.voi_target = self.view.get_selected_target_roi()
        self.model.vois_oar = self.view.get_all_checked_oar_as_list()

        self.model.default_kernel = self.view.get_selected_krenel()
        self.model.target_dose = self.view.target_dose
        self.model.target_dose_percent = self.view.relative_target_dose

        self.model.iterations = self.view.iterations
        self.model.eps = self.view.eps
        self.model.geps = self.view.geps
        self.model.opt_method = self.view.get_selected_opti_method()
        self.model.opt_principle = self.view.get_selected_principle()
        self.model.dose_alg = self.view.get_selected_dose_algorithm()
        self.model.bio_alg = self.view.get_selected_bio_algorithm()
        self.model.opt_alg = self.view.get_selected_opti_algorithm()

        self.model.want_phys_dose = self.view.physical_dose_dist
        self.model.want_bio_dose = self.view.biological_dose_dist

        self.model.want_dlet = self.view.dose_averaged_let