pub fn new(controller: controller::Ide, view: ide_view::root::View) -> Self {
        let logger = Logger::new("ide::Integration");
        let project_integration = default();
        let model = Rc::new(Model { logger, controller, view, project_integration });

        frp::new_network! { network
            let welcome_view_frp = &model.view.welcome_screen().frp;
            eval welcome_view_frp.open_project((name) {
                model.open_project(name);
            });
            eval welcome_view_frp.create_project((template) {
                model.create_project(template.as_deref());
            });

            let root_frp = &model.view.frp;
            root_frp.switch_view_to_project <+ welcome_view_frp.create_project.constant(());
            root_frp.switch_view_to_project <+ welcome_view_frp.open_project.constant(());
        }

        Self { model, network }.init()
    }
/// Create the integration of given controller and view.
Create the integration of given controller and view.
Create the integration of given controller and view .
pub fn new(controller: controller::Ide, view: ide_view::root::View) -> Self {
        let logger = Logger::new("ide::Integration");
        let project_integration = default();
        let model = Rc::new(Model { logger, controller, view, project_integration });
        frp::new_network! { network
            let welcome_view_frp = &model.view.welcome_screen().frp;
            eval welcome_view_frp.open_project((name) {
                model.open_project(name);
            });
            eval welcome_view_frp.create_project((template) {
                model.create_project(template.as_deref());
            });
            let root_frp = &model.view.frp;
            root_frp.switch_view_to_project <+ welcome_view_frp.create_project.constant(());
            root_frp.switch_view_to_project <+ welcome_view_frp.open_project.constant(());
        }
        Self { model, network }.init()
    }
pub fn new ( controller : controller :: Ide , view : ide_view :: root :: View ) -> Self { let logger = Logger :: new ( " " ) ; let project_integration = default ( ) ; let model = Rc :: new ( Model { logger , controller , view , project_integration } ) ; frp :: new_network ! { network let welcome_view_frp model view welcome_screen ( ) frp eval welcome_view_frp open_project ( ( name ) { model open_project ( name ) } ) eval welcome_view_frp create_project ( ( template ) { model create_project ( template as_deref ( ) ) } ) let root_frp model view frp root_frp switch_view_to_project welcome_view_frp create_project constant ( ( ) ) root_frp switch_view_to_project welcome_view_frp open_project constant ( ( ) ) } Self { model , network } . init ( ) }
Create the integration of given controller and view.
Create the integration of given controller and view .
controller
controller::Ide
view
ide_view::root::View
controller
controller::Ide
view
ide_view::root::View