@@ -98,6 +98,9 @@ def draw_work_schedule_ui(self, work_schedule_id, work_schedule):
9898 if self .props .active_work_schedule_id and self .props .active_work_schedule_id == work_schedule_id :
9999 if self .props .is_editing == "WORK_SCHEDULE" :
100100 row .operator ("bim.edit_work_schedule" , text = "" , icon = "CHECKMARK" )
101+ elif self .props .is_editing == "TASKS" :
102+ row .prop (self .props , "should_show_times" , text = "" , icon = "TIME" )
103+ row .operator ("bim.add_summary_task" , text = "" , icon = "ADD" ).work_schedule = work_schedule_id
101104 row .operator ("bim.disable_editing_work_schedule" , text = "" , icon = "CANCEL" )
102105 elif self .props .active_work_schedule_id :
103106 row .operator ("bim.remove_work_schedule" , text = "" , icon = "X" ).work_schedule = work_schedule_id
@@ -124,9 +127,6 @@ def draw_editable_work_schedule_ui(self):
124127 row .prop (attribute , "is_null" , icon = "RADIOBUT_OFF" if attribute .is_null else "RADIOBUT_ON" , text = "" )
125128
126129 def draw_editable_task_ui (self , work_schedule_id ):
127- row = self .layout .row (align = True )
128- row .label (text = "X Summary Tasks" )
129- row .operator ("bim.add_summary_task" , text = "" , icon = "ADD" ).work_schedule = work_schedule_id
130130 self .layout .template_list (
131131 "BIM_UL_tasks" ,
132132 "" ,
@@ -256,9 +256,10 @@ def draw_item(self, context, layout, data, item, icon, active_data, active_propn
256256 row .prop (item , "identification" , emboss = False , text = "" )
257257 row .prop (item , "name" , emboss = False , text = "" )
258258
259- row .prop (item , "start" , emboss = False , text = "" )
260- row .prop (item , "finish" , emboss = False , text = "" )
261- row .prop (item , "duration" , emboss = False , text = "" )
259+ if props .should_show_times :
260+ row .prop (item , "start" , emboss = False , text = "" )
261+ row .prop (item , "finish" , emboss = False , text = "" )
262+ row .prop (item , "duration" , emboss = False , text = "" )
262263
263264 if props .active_task_id == item .ifc_definition_id :
264265 if props .active_task_time_id :
@@ -289,6 +290,6 @@ def draw_item(self, context, layout, data, item, icon, active_data, active_propn
289290 row .operator ("bim.remove_task" , text = "" , icon = "X" ).task = item .ifc_definition_id
290291 else :
291292 row .operator ("bim.enable_editing_task_time" , text = "" , icon = "TIME" ).task = item .ifc_definition_id
292- row .operator ("bim.add_task" , text = "" , icon = "ADD" ).task = item .ifc_definition_id
293293 row .operator ("bim.enable_editing_task" , text = "" , icon = "GREASEPENCIL" ).task = item .ifc_definition_id
294+ row .operator ("bim.add_task" , text = "" , icon = "ADD" ).task = item .ifc_definition_id
294295 row .operator ("bim.remove_task" , text = "" , icon = "X" ).task = item .ifc_definition_id
0 commit comments