Added preferences for mouse button assignments
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / MainPreferencePage.java
index b647a08..7bac991 100644 (file)
@@ -27,6 +27,16 @@ public class MainPreferencePage extends FieldEditorPreferencePage implements IWo
                addField(new BooleanFieldEditor("net.mograsim.logic.model.debug.openhlsshell", "Open the debug HLS shell", parent));
                addField(new IntegerFieldEditor("net.mograsim.logic.model.debug.hlsshelldepth",
                                "Depth of components to list in the debug HLS shell", parent));
+               IntegerFieldEditor editor;
+               editor = new IntegerFieldEditor("net.mograsim.logic.model.button.action", "Mouse button for actions", parent);
+               editor.setValidRange(1, 5);
+               addField(editor);
+               editor = new IntegerFieldEditor("net.mograsim.logic.model.button.drag", "Mouse button for dragging", parent);
+               editor.setValidRange(1, 5);
+               addField(editor);
+               editor = new IntegerFieldEditor("net.mograsim.logic.model.button.zoom", "Mouse button for zooming", parent);
+               editor.setValidRange(1, 5);
+               addField(editor);
                // TODO add other preferences
        }
 }
\ No newline at end of file