pub fn default<T: Data>() -> Menu<T> {
            Menu::new(LocalizedString::new("common-menu-file-menu"))
                .entry(new_file())
                .entry(open_file())
                // open recent?
                .separator()
                .entry(close())
                .entry(save().enabled(false))
                .entry(save_as().enabled(false))
                // revert to saved?
                .separator()
                .entry(page_setup().enabled(false))
                .entry(print().enabled(false))
        }
/// A default file menu.
///
/// This will not be suitable for many applications; you should
/// build the menu you need manually, using the items defined here
/// where appropriate.
A default file menu.
This will not be suitable for many applications; you should
build the menu you need manually, using the items defined here
where appropriate.
A default file menu . This will not be suitable for many applications ; you should build the menu you need manually using the items defined here where appropriate .
pub fn default<T: Data>() -> Menu<T> {
            Menu::new(LocalizedString::new("common-menu-file-menu"))
                .entry(new_file())
                .entry(open_file())
                // open recent?
                .separator()
                .entry(close())
                .entry(save().enabled(false))
                .entry(save_as().enabled(false))
                // revert to saved?
                .separator()
                .entry(page_setup().enabled(false))
                .entry(print().enabled(false))
        }
pub fn default < T : Data > ( ) -> Menu < T > { Menu :: new ( LocalizedString :: new ( " " ) ) . entry ( new_file ( ) ) . entry ( open_file ( ) ) // open recent? . separator ( ) . entry ( close ( ) ) . entry ( save ( ) . enabled ( false ) ) . entry ( save_as ( ) . enabled ( false ) ) // revert to saved? . separator ( ) . entry ( page_setup ( ) . enabled ( false ) ) . entry ( print ( ) . enabled ( false ) ) }
A default file menu.
A default file menu .