def __init__(self, project_code, parent=None): super(self.__class__, self).__init__(parent=parent) env_inst.ui_main_tabs[project_code] = self self.settings = QtCore.QSettings('{0}/settings/{1}/{2}/{3}/main_ui_config.ini'.format( env_mode.get_current_path(), env_mode.get_node(), env_server.get_cur_srv_preset(), env_mode.get_mode()), QtCore.QSettings.IniFormat) self.setupUi(self) self.checkin_out_config_projects = cfg_controls.get_checkin_out_projects() self.checkin_out_config = cfg_controls.get_checkin_out() self.isCreated = False self.project = env_inst.projects.get(project_code) self.current_project = self.project.info['code'] self.current_namespace = self.project.info['type'] if self.checkin_out_config_projects and self.checkin_out_config: if gf.get_value_from_config(self.checkin_out_config, 'controlsTabsFilterGroupBox'): self.customize_controls_tabs() self.create_ui_main_tabs()
def __init__(self, project, parent=None): super(self.__class__, self).__init__(parent=parent) env_inst.ui_check_tabs['checkin'] = self self.settings = QtCore.QSettings('{0}/settings/{1}/{2}/{3}/checkin_ui_config.ini'.format( env_mode.get_current_path(), env_mode.get_node(), env_server.get_cur_srv_preset(), env_mode.get_mode()), QtCore.QSettings.IniFormat) self.checkin_out_config_projects = cfg_controls.get_checkin_out_projects() self.checkin_out_config = cfg_controls.get_checkin_out() self.setupUi(self) self.ui_tree = [] # self.context_items = context_items self.project = project self.current_project = self.project.info['code'] self.current_namespace = self.project.info['type'] self.stypes_items = project.stypes if self.stypes_items: self.add_items_to_tabs() self.add_items_to_stypes_tree() self.tab_bar_customization() self.controls_actions() self.stypes_tree_visible = False self.readSettings()
def __init__(self, project, layout_widget, parent=None): super(self.__class__, self).__init__(parent=parent) self.project = project self.current_project = self.project.info['code'] env_inst.set_control_tab(self.current_project, 'checkin_out', self) self.setupUi(self) # self.ui_tree = [] self.all_search_tabs = [] self.current_tab_idx = 0 # self.visible_search_tabs = [] self.main_tabs_widget = parent # main tabs widget self.layout_widget = layout_widget self.current_namespace = self.project.info['type'] self.stypes_items = self.project.stypes self.settings = QtCore.QSettings( '{0}/settings/{1}/{2}/{3}/checkin_out_ui_config.ini'.format( env_mode.get_current_path(), env_mode.get_node(), env_server.get_cur_srv_preset(), env_mode.get_mode()), QtCore.QSettings.IniFormat) self.checkin_out_config_projects = cfg_controls.get_checkin_out_projects( ) self.checkin_out_config = cfg_controls.get_checkin_out() # self.context_items = context_items self.is_created = False self.stypes_tree_visible = False self.tab_bar_customization()
def __init__(self, project_code, parent=None): super(self.__class__, self).__init__(parent=parent) env_inst.ui_main_tabs[project_code] = self self.settings = QtCore.QSettings('{0}/settings/{1}/{2}/{3}/main_ui_config.ini'.format( env_mode.get_current_path(), env_mode.get_node(), env_server.get_cur_srv_preset(), env_mode.get_mode()), QtCore.QSettings.IniFormat) self.setupUi(self) self.checkin_out_config_projects = cfg_controls.get_checkin_out_projects() self.checkin_out_config = cfg_controls.get_checkin_out() self.isCreated = False self.project = env_inst.projects.get(project_code) self.current_project = self.project.info['code'] self.current_namespace = self.project.info['type'] if self.checkin_out_config_projects and self.checkin_out_config: if gf.get_value_from_config(self.checkin_out_config, 'controlsTabsFilterGroupBox', 'QGroupBox'): self.customize_controls_tabs() self.create_ui_main_tabs()