1 parent
1ded8fdd27
commit
2c020dbcbc
85 files changed
+43
-14487
No files matched your search
@@ -65,7 +65,6 @@ pub mod install;
|
||||
pub mod issue_report;
|
||||
pub mod joint_drag;
|
||||
pub mod keymap;
|
||||
pub mod manufacturing;
|
||||
mod material_card_review;
|
||||
#[cfg(test)]
|
||||
mod measurement_ui_tests;
|
||||
@@ -108,8 +107,6 @@ pub(crate) mod display_lod;
|
||||
#[cfg(test)]
|
||||
mod file_load_ui_tests;
|
||||
#[cfg(test)]
|
||||
mod file_ui_tests;
|
||||
#[cfg(test)]
|
||||
mod fillet_spline_handle_tests;
|
||||
pub(crate) mod navigation;
|
||||
pub mod palette;
|
||||
@@ -274,7 +271,6 @@ pub struct Services {
|
||||
}
|
||||
|
||||
pub struct SolveApp {
|
||||
pub manufacturing: manufacturing::State,
|
||||
pub session: Session,
|
||||
pub ui: UiState,
|
||||
pub cam: Camera,
|
||||
@@ -424,7 +420,6 @@ impl SolveApp {
|
||||
file_picker: None,
|
||||
viewport: viewport::ViewportState::default(),
|
||||
render_workspace,
|
||||
manufacturing: Default::default(),
|
||||
tool: None,
|
||||
dialog: None,
|
||||
params: None,
|
||||
@@ -714,31 +709,6 @@ impl SolveApp {
|
||||
self.set_status(format!("{label}: {why}"), true);
|
||||
return;
|
||||
}
|
||||
match id {
|
||||
"file.save" => {
|
||||
self.home.open = false;
|
||||
return toolbar::save(self);
|
||||
}
|
||||
"file.save_as" => {
|
||||
self.home.open = false;
|
||||
return toolbar::save_as(self);
|
||||
}
|
||||
"doc.open" => {
|
||||
self.pick_open(|app, path| {
|
||||
if let Some(path) = path {
|
||||
app.open_path_async(&path);
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
manufacturing::cancel_editor(self);
|
||||
if id.starts_with("cam.") {
|
||||
self.home.open = false;
|
||||
manufacturing::start(self, id);
|
||||
return;
|
||||
}
|
||||
if id == "material.properties.validate" {
|
||||
self.material_card_review = Some(material_card_review::ReviewWindow::default());
|
||||
self.home.open = false;
|
||||
@@ -1251,9 +1221,6 @@ impl SolveApp {
|
||||
|
||||
/// Per-frame logic before layout.
|
||||
pub fn logic(&mut self, ctx: &egui::Context) {
|
||||
manufacturing::update_exports(self, ctx);
|
||||
#[cfg(target_arch = "wasm32")]
|
||||
manufacturing::advance(self, ctx);
|
||||
file_picker::tick(self, ctx);
|
||||
render_workspace::sync_backend(self);
|
||||
render_workspace::tick(self, ctx);
|
||||
@@ -1391,9 +1358,7 @@ impl SolveApp {
|
||||
timeline::timeline(self, ui);
|
||||
}
|
||||
palette::palette_bar(self, ui);
|
||||
if self.ui.tab == "MILLING" {
|
||||
manufacturing::panel(self, ui);
|
||||
} else if self.ui.show_browser {
|
||||
if self.ui.show_browser {
|
||||
if left_timeline {
|
||||
browser::browser_below_timeline(self, ui);
|
||||
} else {
|
||||
@@ -1415,7 +1380,6 @@ impl SolveApp {
|
||||
}
|
||||
});
|
||||
dialogs::show(self, ui.ctx());
|
||||
manufacturing::editor(self, ui.ctx());
|
||||
issue_report::CadInput::block(self, ui, report_input);
|
||||
sketch_palette::show(self, ui.ctx());
|
||||
self.resolve_fit(ui.ctx());
|
||||
|
||||
Reference in new issue
Block a user