MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / showModalMessage

Method showModalMessage

source/MRViewer/ImGuiMenu.cpp:1176–1196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1174}
1175
1176void ImGuiMenu::showModalMessage( const std::string& msg, NotificationType msgType )
1177{
1178 if ( msgType == NotificationType::Error )
1179 spdlog::error( "Error Modal Dialog: {}", msg );
1180 else if ( msgType == NotificationType::Warning )
1181 spdlog::warn( "Warning Modal Dialog: {}", msg );
1182 else // if ( msgType == MessageType::Info )
1183 spdlog::info( "Info Modal Dialog: {}", msg );
1184 showRenameModal_ = false;
1185 showInfoModal_ = true;
1186 needModalBgChange_ = true;
1187 modalMessageType_ = msgType;
1188 ImGui::CloseCurrentPopup();
1189 storedModalMessage_ = msg;
1190 // this is needed to correctly resize modal window
1191 getViewerInstance().incrementForceRedrawFrames( 2, true );
1192
1193 // focus main window
1194 if ( ImGui::isMultiViewportEnabled() )
1195 glfwFocusWindow( getViewerInstance().window );
1196}
1197
1198void ImGuiMenu::setupShortcuts_()
1199{

Callers 1

showModalFunction · 0.80

Calls 2

isMultiViewportEnabledFunction · 0.85

Tested by

no test coverage detected