From 79367fa5b9564b383a4aaecbb2437a649aabd593 Mon Sep 17 00:00:00 2001 From: ricantech Date: Tue, 12 Feb 2019 20:14:11 +0100 Subject: [PATCH 01/12] Design of content selector dialog + initial view commit --- .../ContentSelectorDialog.fxml | 67 +++++++++++++++++++ .../ContentSelectorDialogView.java | 21 ++++++ 2 files changed, 88 insertions(+) create mode 100644 src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.fxml create mode 100644 src/main/java/org/jabref/gui/contentselector/ContentSelectorDialogView.java diff --git a/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.fxml b/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.fxml new file mode 100644 index 00000000000..918da614988 --- /dev/null +++ b/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.fxml @@ -0,0 +1,67 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialogView.java b/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialogView.java new file mode 100644 index 00000000000..d7a3d273531 --- /dev/null +++ b/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialogView.java @@ -0,0 +1,21 @@ +package org.jabref.gui.contentselector; + +import javafx.fxml.FXML; +import javafx.scene.control.Button; +import javafx.scene.control.ButtonType; +import javafx.scene.control.ListView; +import org.jabref.gui.util.BaseDialog; + +public class ContentSelectorDialogView extends BaseDialog { + + @FXML private Button addFieldNameButton; + @FXML private Button removeFieldNameButton; + @FXML private Button addKeywordButton; + @FXML private Button removeKeywordButton; + @FXML private ListView fieldNamesListView; + @FXML private ListView keywordsListView; + @FXML private ButtonType saveButton; + + + +} From 27e44b12b1883b481afb4c4fdd50ee2673b98815 Mon Sep 17 00:00:00 2001 From: ricantech Date: Wed, 13 Feb 2019 22:00:31 +0100 Subject: [PATCH 02/12] Restyle dialog design + add basic functionalities for field names --- .../actions/ManageContentSelectorAction.java | 18 +++++++ .../ContentSelectorDialog.fxml | 12 ++--- .../ContentSelectorDialogView.java | 51 ++++++++++++++++++ .../ContentSelectorDialogViewModel.java | 54 +++++++++++++++++++ 4 files changed, 129 insertions(+), 6 deletions(-) create mode 100644 src/main/java/org/jabref/gui/actions/ManageContentSelectorAction.java create mode 100644 src/main/java/org/jabref/gui/contentselector/ContentSelectorDialogViewModel.java diff --git a/src/main/java/org/jabref/gui/actions/ManageContentSelectorAction.java b/src/main/java/org/jabref/gui/actions/ManageContentSelectorAction.java new file mode 100644 index 00000000000..529dedc7ddb --- /dev/null +++ b/src/main/java/org/jabref/gui/actions/ManageContentSelectorAction.java @@ -0,0 +1,18 @@ +package org.jabref.gui.actions; + +import org.jabref.gui.JabRefFrame; +import org.jabref.gui.contentselector.ContentSelectorDialogView; + +public class ManageContentSelectorAction extends SimpleCommand { + + private final JabRefFrame jabRefFrame; + + public ManageContentSelectorAction(JabRefFrame jabRefFrame) { + this.jabRefFrame = jabRefFrame; + } + + @Override + public void execute() { + new ContentSelectorDialogView(jabRefFrame).show(); + } +} diff --git a/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.fxml b/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.fxml index 918da614988..1fadff458e0 100644 --- a/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.fxml +++ b/src/main/java/org/jabref/gui/contentselector/ContentSelectorDialog.fxml @@ -17,21 +17,21 @@