diff --git a/src/graphicswin.cpp b/src/graphicswin.cpp index 0d520dd2..95a4ad02 100644 --- a/src/graphicswin.cpp +++ b/src/graphicswin.cpp @@ -74,6 +74,12 @@ const MenuEntry Menu[] = { { 1, N_("Select &Edge Chain"), Command::SELECT_CHAIN, C|'e', KN, mEdit }, { 1, N_("Select &All"), Command::SELECT_ALL, C|'a', KN, mEdit }, { 1, N_("&Unselect All"), Command::UNSELECT_ALL, '\x1b', KN, mEdit }, +{ 1, NULL, Command::NONE, 0, KN, NULL }, +{ 1, N_("&Line Styles..."), Command::EDIT_LINE_STYLES, 0, KN, mEdit }, +{ 1, N_("&View Projection..."), Command::VIEW_PROJECTION, 0, KN, mEdit }, +#ifndef __APPLE__ +{ 1, N_("Con&figuration..."), Command::CONFIGURATION, 0, KN, mEdit }, +#endif { 0, N_("&View"), Command::NONE, 0, KN, mView }, { 1, N_("Zoom &In"), Command::ZOOM_IN, '+', KN, mView }, @@ -1183,6 +1189,22 @@ void GraphicsWindow::MenuEdit(Command id) { SS.ScheduleShowTW(); break; + case Command::EDIT_LINE_STYLES: + SS.TW.GoToScreen(TextWindow::Screen::LIST_OF_STYLES); + SS.GW.ForceTextWindowShown(); + SS.ScheduleShowTW(); + break; + case Command::VIEW_PROJECTION: + SS.TW.GoToScreen(TextWindow::Screen::EDIT_VIEW); + SS.GW.ForceTextWindowShown(); + SS.ScheduleShowTW(); + break; + case Command::CONFIGURATION: + SS.TW.GoToScreen(TextWindow::Screen::CONFIGURATION); + SS.GW.ForceTextWindowShown(); + SS.ScheduleShowTW(); + break; + default: ssassert(false, "Unexpected menu ID"); } } diff --git a/src/ui.h b/src/ui.h index 7d24e84d..2a068dc7 100644 --- a/src/ui.h +++ b/src/ui.h @@ -105,6 +105,9 @@ enum class Command : uint32_t { ROTATE_90, UNSELECT_ALL, REGEN_ALL, + EDIT_LINE_STYLES, + VIEW_PROJECTION, + CONFIGURATION, // Request SEL_WORKPLANE, FREE_IN_3D,