mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-02-18 02:12:18 -07:00
ENH:show n3f/n3s version info
jira:[for n3s] Change-Id: Ia0056dfdf7157036008cc63a37c9fd8076063a6a (cherry picked from commit a44ff5a95a6774b4eed1238bde12d0a750c24a10)
This commit is contained in:
parent
eba2e0af78
commit
21c69a99e6
3 changed files with 37 additions and 11 deletions
|
|
@ -3676,11 +3676,17 @@ void GUI_App::load_gcode(wxWindow* parent, wxString& input_file) const
|
|||
|
||||
wxString GUI_App::transition_tridid(int trid_id)
|
||||
{
|
||||
//wxString maping_dict = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
wxString maping_dict[] = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
|
||||
int id_index = ceil(trid_id / 4);
|
||||
int id_suffix = (trid_id + 1) % 4 == 0 ? 4 : (trid_id + 1) % 4;
|
||||
return wxString::Format("%s%d", maping_dict[id_index], id_suffix);
|
||||
wxString maping_dict[] = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" };
|
||||
|
||||
if (trid_id >= 128 * 4) {
|
||||
int id_index = 4 + trid_id % 128;
|
||||
return wxString::Format("%s", maping_dict[id_index]);
|
||||
}
|
||||
else {
|
||||
int id_index = ceil(trid_id / 4);
|
||||
int id_suffix = id_suffix = (trid_id + 1) % 4 == 0 ? 4 : (trid_id + 1) % 4;
|
||||
return wxString::Format("%s%d", maping_dict[id_index], id_suffix);
|
||||
}
|
||||
}
|
||||
|
||||
//BBS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue