Skip to content

Commit

Permalink
shortcut to upload genome + layout
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Sep 23, 2023
1 parent 4231939 commit 8711bb3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions imgui.ini
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ Pos=345,242
Size=1100,632
Collapsed=0

[Window][Delete user]
Pos=623,480
Size=501,168
Collapsed=0

[Table][0xFB3C2B09,3]
RefScale=13
Column 0 Sort=0v
Expand Down
7 changes: 5 additions & 2 deletions source/Gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,14 +424,14 @@ void _MainWindow::processMenubar()
}
ImGui::EndDisabled();
ImGui::BeginDisabled(!_networkController->getLoggedInUserName());
if (ImGui::MenuItem("Upload genome", "")) {
if (ImGui::MenuItem("Upload genome", "ALT+Q")) {
_uploadSimulationDialog->open(DataType_Genome);
}
ImGui::EndDisabled();

ImGui::Separator();
ImGui::BeginDisabled(!_networkController->getLoggedInUserName());
if (ImGui::MenuItem("Delete", "ALT+J")) {
if (ImGui::MenuItem("Delete user", "ALT+J")) {
_deleteUserDialog->open();
}
ImGui::EndDisabled();
Expand Down Expand Up @@ -611,6 +611,9 @@ void _MainWindow::processMenubar()
if (io.KeyAlt && ImGui::IsKeyPressed(GLFW_KEY_D) && _networkController->getLoggedInUserName()) {
_uploadSimulationDialog->open(DataType_Simulation);
}
if (io.KeyAlt && ImGui::IsKeyPressed(GLFW_KEY_Q) && _networkController->getLoggedInUserName()) {
_uploadSimulationDialog->open(DataType_Genome);
}
if (io.KeyAlt && ImGui::IsKeyPressed(GLFW_KEY_J) && _networkController->getLoggedInUserName()) {
_deleteUserDialog->open();
}
Expand Down

0 comments on commit 8711bb3

Please sign in to comment.