21#include "wx/filepicker.h"
26#include "OpenXLSX.hpp"
83 wxStaticBoxSizer *tagSizer =
nullptr;
84 std::vector<wxRadioButton*> tagRadioButtons = {};
85 std::vector<wxRadioButton*> sizeRadioButtons = {};
86 std::vector<std::string> tagOptions = {};
87 wxButton *drawNewButton =
nullptr;
88 wxButton *drawCurrentButton =
nullptr;
89 wxFilePickerCtrl *filePicker;
92 IOList *chosenIOList =
nullptr;
93 std::string chosenJunctionTag;
101 void OnExit(wxCommandEvent& event);
111 void OnSelectFile(wxCommandEvent& event);
120 void OnSelectTagRadio(wxCommandEvent& event);
130 void OnDrawNew(wxCommandEvent& event);
140 void OnDrawCurrent(wxCommandEvent& event);
149 bool BuildIOList(std::string xlPath);
156 void UpdateTagOptions();
163 void UpdateTagRadioButtons();
174 void UpdateSizeRadioButtons(std::string junctionTag);
181 void BlankSizeRadioButtons();
Interface for the IOList class.
JBoxBuilderDialogResult
Definition JBoxBuilderDialog.h:35
@ ID_DRAW_NEW
Indicates "Draw in New File" was selected.
Definition JBoxBuilderDialog.h:36
@ ID_DRAW_CURRENT
Indicates "Draw in Current File" was selected.
Definition JBoxBuilderDialog.h:37
Parses and manages IO and cable data from an Excel file.
Definition IOList.h:27
IOList * GetIOList() const
Retrieve the parsed IOList object from the selected file.
Definition JBoxBuilderDialog.cpp:92
std::string GetJunctionTag() const
Get the currently selected junction tag.
Definition JBoxBuilderDialog.cpp:96
BoxSize GetBoxSize() const
Get the currently selected box size.
Definition JBoxBuilderDialog.cpp:100
JBoxBuilderDialog(wxWindow *parent)
Construct a new JBoxBuilderDialog with a parent window.
Definition JBoxBuilderDialog.cpp:15
Common includes and definitions.
BoxSize
Predefined enclosure footprints supported by the tool.
Definition common.h:45