forked from 1b-agent/opencadstudio-upstream
refactor(ui): finish modal and property cleanup
This commit is contained in:
1 parent
cc947e77d3
commit
5ac8cc7c03
4 files changed
+208
-183
No files matched your search
@@ -734,13 +734,17 @@ impl Ribbon {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns the index of the Layout module in the modules list.
|
||||
#[allow(dead_code)] // layout-tab helpers; not yet wired
|
||||
/// Returns the index of the Layout module in the modules list. Kept as a
|
||||
/// routing helper for when the currently suppressed Layout ribbon tab is
|
||||
/// enabled; it has no effect while that module is absent from the tabs.
|
||||
#[allow(dead_code)]
|
||||
pub fn layout_module_index(&self) -> Option<usize> {
|
||||
self.modules.iter().position(|m| m.id() == "layout")
|
||||
}
|
||||
|
||||
/// Returns true if the currently active tab is the Layout module.
|
||||
/// Returns true if the currently active tab is the Layout module. The
|
||||
/// predicate remains useful to the future Layout tab, which is currently
|
||||
/// suppressed by the view layer.
|
||||
#[allow(dead_code)]
|
||||
pub fn active_is_layout(&self) -> bool {
|
||||
self.modules
|
||||
|
||||
@@ -119,8 +119,6 @@ impl Layer {
|
||||
#[derive(Clone)]
|
||||
pub struct LayerPanel {
|
||||
pub layers: Vec<Layer>,
|
||||
#[allow(dead_code)]
|
||||
pub visible: bool,
|
||||
/// Anchor row: the last row clicked. Drives the editable combos and the
|
||||
/// Shift-range origin. Its layer is always part of `selected_multi`.
|
||||
pub selected: Option<usize>,
|
||||
@@ -152,7 +150,6 @@ pub struct LayerPanel {
|
||||
impl Default for LayerPanel {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
visible: false,
|
||||
layers: vec![Layer::new("0", AcadColor::Index(7))],
|
||||
selected: None,
|
||||
selected_multi: Vec::new(),
|
||||
|
||||
Reference in new issue
Block a user