def init(self): help = HelpItemWdg( 'Loader', 'The Loader lets you load 3D assets into your 3D applications. Among many options, you can choose to either reference, import, or open the asset through http or the internal file system.' ) self.add(help) pref = PrefSetting.get_value_by_key("use_java_maya") app = WebContainer.get_web().get_app_name_by_uri() if app == "Maya": if not Container.get('GeneralAppletWdg'): self.add(GeneralAppletWdg()) Container.put('GeneralAppletWdg', True) site_menu = SiteMenuWdg() site_menu.add_style("float", "right") site_menu.add_style("margin-top", "-2px") self.add(site_menu) WebContainer.add_js('MayaWebTools.js') WebContainer.add_js('PyMaya.js') tab = MayaTabWdgImpl() tab_value = tab.set_tab_key("maya_tab") #self.handle_tab(tab) #self.add(tab,"tab") self.setup_tab("maya_tab", tab=tab) self.add(ProgressWdg())
def handle_tab(self, tab): # Hide this for now #tab.add( self.get_create_wdg, "Create") #tab.add( self.get_edit_wdg, "Edit" ) tab.add( LoginWdg, _("Users") ) tab.add( LoginGroupWdg, _("Groups") ) tab.add( self.get_user_group_wdg, _("Users -> Groups")) tab.add( self.get_group_user_wdg, _("Groups -> Users") ) tab.add( QueueWdg, _("Queue") ) tab.add( self.get_render_policy_wdg, _("Render Policy") ) #tab.add( PipelineEditorWdg, _("Pipelines") ) tab.add( self.get_pipeline_wdg, _("Pipelines") ) tab.add( self.get_group_notification_wdg, _("Notification -> Group") ) tab.add( self.get_notification_group_wdg, _("Group -> Notification" ) ) tab.add( self.get_milestone_wdg, _("Project Milestones") ) tab.add( self.get_project_settings_wdg, _("Project Settings") ) tab.add( CustomProjectTabWdg, _("Customize Project") ) from setup_tab_wdg import SetupTabWdg tab.add( SetupTabWdg, _("Setup Wizard")) tab.add(self.get_import_wdg, _("Import Data") ) WebContainer.add_js('wz_dragdrop.js')
def handle_tab(my, tab): # Hide this for now #tab.add( my.get_create_wdg, "Create") #tab.add( my.get_edit_wdg, "Edit" ) tab.add(LoginWdg, _("Users")) tab.add(LoginGroupWdg, _("Groups")) tab.add(my.get_user_group_wdg, _("Users -> Groups")) tab.add(my.get_group_user_wdg, _("Groups -> Users")) tab.add(QueueWdg, _("Queue")) tab.add(my.get_render_policy_wdg, _("Render Policy")) #tab.add( PipelineEditorWdg, _("Pipelines") ) tab.add(my.get_pipeline_wdg, _("Pipelines")) tab.add(my.get_group_notification_wdg, _("Notification -> Group")) tab.add(my.get_notification_group_wdg, _("Group -> Notification")) tab.add(my.get_milestone_wdg, _("Project Milestones")) tab.add(my.get_project_settings_wdg, _("Project Settings")) tab.add(CustomProjectTabWdg, _("Customize Project")) from setup_tab_wdg import SetupTabWdg tab.add(SetupTabWdg, _("Setup Wizard")) tab.add(my.get_import_wdg, _("Import Data")) WebContainer.add_js('wz_dragdrop.js')
def init(my): help = HelpItemWdg('Loader', 'The Loader lets you load 3D assets into your 3D applications. Among many options, you can choose to either reference, import, or open the asset through http or the internal file system.') my.add(help) pref = PrefSetting.get_value_by_key("use_java_maya") app = WebContainer.get_web().get_app_name_by_uri() if app == "Maya": if not Container.get('GeneralAppletWdg'): my.add( GeneralAppletWdg() ) Container.put('GeneralAppletWdg', True) site_menu = SiteMenuWdg() site_menu.add_style("float", "right") site_menu.add_style("margin-top", "-2px") my.add(site_menu) WebContainer.add_js('MayaWebTools.js') WebContainer.add_js('PyMaya.js') tab = MayaTabWdgImpl() tab_value = tab.set_tab_key("maya_tab") #my.handle_tab(tab) #my.add(tab,"tab") my.setup_tab("maya_tab", tab=tab) my.add( ProgressWdg() )