wx: add Connect parts to the Edit menu
Third editing op in the wx GUI. No core change — app::connect_parts was already extracted and unit-tested; this is pure wiring. Edit ▸ Connect parts… picks two parts (PickPart twice, now caption-parameterised to label "first/second part"), derives their parent modules from Part::prnt, calls app::connect_parts and renders the same outcomes the TUI does: refused / identity NC fill / connected (N wires) / failed. wx builds clean, window opens with no asserts; tui + tests unaffected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -24,13 +24,15 @@ private:
|
||||
void OnExport(wxCommandEvent &);
|
||||
void OnSetConnectorType(wxCommandEvent &);
|
||||
void OnAttachBsdl(wxCommandEvent &);
|
||||
void OnConnect(wxCommandEvent &);
|
||||
void OnVerify(wxCommandEvent &);
|
||||
void OnQuit(wxCommandEvent &);
|
||||
void OnAbout(wxCommandEvent &);
|
||||
|
||||
// Prompt the user to pick a module then a part from the current System.
|
||||
// Returns nullptr if there is nothing to pick or the user cancels.
|
||||
class Part *PickPart();
|
||||
// `caption` titles the dialogs (e.g. to distinguish two picks). Returns
|
||||
// nullptr if there is nothing to pick or the user cancels.
|
||||
class Part *PickPart(const wxString &caption = "Select part");
|
||||
|
||||
void RebuildModelView(); ///< refresh tree + overview from the System
|
||||
void Log(const wxString &line); ///< append a line to the log pane
|
||||
|
||||
Reference in New Issue
Block a user