delete redundant operations hub method
This commit is contained in:
@@ -678,46 +678,6 @@ class App:
|
|||||||
with imscope.tab_item("Takes") as (exp, _):
|
with imscope.tab_item("Takes") as (exp, _):
|
||||||
if exp: self._render_takes_panel()
|
if exp: self._render_takes_panel()
|
||||||
|
|
||||||
def _render_operations_hub(self) -> None:
|
|
||||||
imgui.push_style_var(imgui.StyleVar_.item_spacing, imgui.ImVec2(10, 4))
|
|
||||||
ch1, self.ui_separate_tool_calls_panel = imgui.checkbox("Pop Out Tool Calls", self.ui_separate_tool_calls_panel)
|
|
||||||
if ch1: self.show_windows["Tool Calls"] = self.ui_separate_tool_calls_panel
|
|
||||||
imgui.same_line()
|
|
||||||
ch2, self.ui_separate_usage_analytics = imgui.checkbox("Pop Out Usage Analytics", self.ui_separate_usage_analytics)
|
|
||||||
if ch2: self.show_windows["Usage Analytics"] = self.ui_separate_usage_analytics
|
|
||||||
imgui.same_line()
|
|
||||||
ch3, self.ui_separate_external_tools = imgui.checkbox('Pop Out External Tools', self.ui_separate_external_tools)
|
|
||||||
if ch3: self.show_windows['External Tools'] = self.ui_separate_external_tools
|
|
||||||
imgui.pop_style_var()
|
|
||||||
show_tc_tab, show_usage_tab = not self.ui_separate_tool_calls_panel, not self.ui_separate_usage_analytics
|
|
||||||
with imscope.tab_bar("ops_tabs"):
|
|
||||||
with imscope.tab_item("Comms History") as (exp, _):
|
|
||||||
if exp: self._render_comms_history_panel()
|
|
||||||
if show_tc_tab:
|
|
||||||
with imscope.tab_item("Tool Calls") as (exp, _):
|
|
||||||
if exp: self._render_tool_calls_panel()
|
|
||||||
if show_usage_tab:
|
|
||||||
with imscope.tab_item("Usage Analytics") as (exp, _):
|
|
||||||
if exp: self._render_usage_analytics_panel()
|
|
||||||
if not self.ui_separate_external_tools:
|
|
||||||
with imscope.tab_item("External Tools") as (exp, _):
|
|
||||||
if exp:
|
|
||||||
self._render_external_tools_panel()
|
|
||||||
imgui.separator(); imgui.text("")
|
|
||||||
try: self._render_external_editor_panel()
|
|
||||||
except Exception as e: imgui.text_colored(vec4(1, 0.3, 0.3, 1), f"Error: {str(e)}")
|
|
||||||
with imscope.tab_item("Workspace Layouts") as (exp, _):
|
|
||||||
if exp:
|
|
||||||
imgui.text("Experimental: Auto-switch layout by Tier")
|
|
||||||
ch, self.controller.ui_auto_switch_layout = imgui.checkbox("Enable Auto-Switch", self.controller.ui_auto_switch_layout)
|
|
||||||
if self.controller.ui_auto_switch_layout:
|
|
||||||
imgui.separator(); imgui.text("Tier Bindings (select profile for each tier)")
|
|
||||||
profiles = [""] + [p.name for p in self.controller.workspace_profiles.values()]
|
|
||||||
for t in ["Tier 1", "Tier 2", "Tier 3", "Tier 4"]:
|
|
||||||
curr = self.controller.ui_tier_layout_bindings.get(t, ""); idx = profiles.index(curr) if curr in profiles else 0
|
|
||||||
ch_combo, new_idx = imgui.combo(t, idx, profiles)
|
|
||||||
if ch_combo: self.controller.ui_tier_layout_bindings[t] = profiles[new_idx]
|
|
||||||
|
|
||||||
def _show_menus(self) -> None:
|
def _show_menus(self) -> None:
|
||||||
"""
|
"""
|
||||||
[C: tests/test_gui_window_controls.py:test_gui_window_controls_minimize_maximize_close]
|
[C: tests/test_gui_window_controls.py:test_gui_window_controls_minimize_maximize_close]
|
||||||
|
|||||||
Reference in New Issue
Block a user