Procházet zdrojové kódy

Changed position of update metric button and shortcut of Delete

Julian Ohl před 8 roky
rodič
revize
36e43d92a6

+ 1 - 1
scopviz/src/main/java/de/tu_darmstadt/informatik/tk/scopviz/ui/ButtonManager.java

@@ -173,7 +173,7 @@ public final class ButtonManager {
 		
 		//show metricbox/update button
 		if (!(GraphDisplayManager.getCurrentLayer().equals(Layer.MAPPING))){
-			controller.rightSide.getChildren().add(controller.updateButtonAPane);
+			controller.rightSide.getChildren().add(2, controller.updateButtonAPane);
 			controller.metricbox.setVisible(true);
 		}
 				

+ 6 - 6
scopviz/src/main/resources/MainWindow.fxml

@@ -41,7 +41,7 @@
         <Menu mnemonicParsing="false" text="Edit">
           <items>
             <SeparatorMenuItem mnemonicParsing="false" />
-            <MenuItem fx:id="delete" accelerator="Shortcut+D" mnemonicParsing="false" text="Delete" />
+            <MenuItem fx:id="delete" accelerator="DELETE" mnemonicParsing="false" text="Delete" />
             <MenuItem fx:id="undelete" accelerator="Shortcut+Z" mnemonicParsing="false" text="Undelete" />
             <SeparatorMenuItem mnemonicParsing="false" />
             <MenuItem fx:id="updateMetricMI" accelerator="Shortcut+R" mnemonicParsing="false" text="Update metrics" />
@@ -161,6 +161,11 @@
                                                 </TableView>
                                              </children>
                                           </AnchorPane>
+                                          <AnchorPane fx:id="updateButtonAPane" prefHeight="25.0">
+                                             <children>
+                                                <Button fx:id="updateMetricButton" mnemonicParsing="false" prefHeight="25.0" text="Update metrics" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
+                                             </children>
+                                          </AnchorPane>
                                           <ScrollPane fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" prefHeight="200.0" prefWidth="200.0" vbarPolicy="ALWAYS">
                                              <content>
                                                 <TextFlow fx:id="consoleWindow" styleClass="consoleWindow">
@@ -170,11 +175,6 @@
                                                 </TextFlow>
                                              </content>
                                           </ScrollPane>
-                                          <AnchorPane fx:id="updateButtonAPane" prefHeight="25.0">
-                                             <children>
-                                                <Button fx:id="updateMetricButton" mnemonicParsing="false" prefHeight="25.0" text="Update metrics" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
-                                             </children>
-                                          </AnchorPane>
                                        </children>
                                     </VBox>
                                  </children>