-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert New entry dialog to javafx (#4312)
* convert the NewEntryType Dialog to javafx * delete useless class file * fix order and empty else statement * fix pdfImport old dialog problem * rework fxml code add title pane add bindings Create view model todo Co-authored-by: 1160300608 <[email protected]> * use managed properties, pass dialog service as argument * fix checkstyle * add new prefereces method for getting and setting last used id based fetchr bind combobox directly to fetcher improve binding pass preferences to constructor delete obsolete gui test class and old dialog * improve layout, move id grid pane to bottom, remove third col * refactor and extract data to ViewModel TODO: merge insertentry and newEntry in basePanel * fix checkstyle * fix result converter * remove newEntry method, replcae with insertEntry fix event handler * refactor task and add value property to select last used fetcher * fix l10nn * fix l10n * refactor code some more * fix checkstyle
- Loading branch information
1 parent
3d1bc8a
commit 4c7194a
Showing
15 changed files
with
501 additions
and
710 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package org.jabref.gui; | ||
|
||
public class AbstractViewModel { | ||
|
||
//empty | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.geometry.Insets?> | ||
<?import javafx.scene.control.ButtonType?> | ||
<?import javafx.scene.control.ComboBox?> | ||
<?import javafx.scene.control.DialogPane?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.control.TextField?> | ||
<?import javafx.scene.control.TitledPane?> | ||
<?import javafx.scene.layout.BorderPane?> | ||
<?import javafx.scene.layout.ColumnConstraints?> | ||
<?import javafx.scene.layout.FlowPane?> | ||
<?import javafx.scene.layout.GridPane?> | ||
<?import javafx.scene.layout.RowConstraints?> | ||
<?import javafx.scene.layout.VBox?> | ||
|
||
<DialogPane xmlns="http://javafx.com/javafx/8.0.141" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.jabref.gui.EntryTypeView"> | ||
<content> | ||
<BorderPane> | ||
<top> | ||
<VBox prefHeight="200.0" prefWidth="400.0" BorderPane.alignment="CENTER"> | ||
<children> | ||
<TitledPane fx:id="biblatexTitlePane" animated="false" collapsible="false" text="Biblatex"> | ||
<content> | ||
<FlowPane fx:id="biblatexPane" prefHeight="200.0" prefWidth="200.0" /> | ||
</content> | ||
</TitledPane> | ||
<TitledPane fx:id="bibTexTitlePane" animated="false" collapsible="false" text="BibTeX"> | ||
<content> | ||
<FlowPane fx:id="bibTexPane" prefHeight="200.0" prefWidth="200.0" /> | ||
</content> | ||
</TitledPane> | ||
<TitledPane fx:id="ieeeTranTitlePane" animated="false" collapsible="false" text="IEEETran"> | ||
<content> | ||
<FlowPane fx:id="ieeetranPane" prefHeight="200.0" prefWidth="200.0" /> | ||
</content> | ||
</TitledPane> | ||
<TitledPane fx:id="customTitlePane" animated="false" collapsible="false" text="%Custom"> | ||
<content> | ||
<FlowPane fx:id="customPane" prefHeight="200.0" prefWidth="200.0" /> | ||
</content> | ||
</TitledPane> | ||
</children> | ||
</VBox> | ||
</top> | ||
<bottom> | ||
<GridPane alignment="CENTER" BorderPane.alignment="CENTER"> | ||
<children> | ||
<Label text="%ID type" /> | ||
<ComboBox fx:id="idBasedFetchers" prefHeight="30.0" prefWidth="300.0" GridPane.columnIndex="1" onAction="#focusTextField" /> | ||
<Label text="%ID" GridPane.rowIndex="1" /> | ||
<TextField fx:id="idTextField" prefHeight="30.0" prefWidth="300.0" GridPane.columnIndex="1" GridPane.rowIndex="1" onAction="#runFetcherWorker"/> | ||
</children> | ||
<columnConstraints> | ||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="122.0" minWidth="10.0" prefWidth="100.0" /> | ||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="146.0" minWidth="10.0" prefWidth="300.0" /> | ||
</columnConstraints> | ||
<opaqueInsets> | ||
<Insets bottom="4.0" left="4.0" right="4.0" top="4.0" /> | ||
</opaqueInsets> | ||
<rowConstraints> | ||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> | ||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> | ||
</rowConstraints> | ||
<padding> | ||
<Insets bottom="4.0" left="4.0" right="4.0" top="4.0" /> | ||
</padding> | ||
</GridPane> | ||
</bottom> | ||
</BorderPane> | ||
</content> | ||
<buttonTypes> | ||
<ButtonType fx:constant="CANCEL" /> | ||
<ButtonType fx:id="generateButton" buttonData="OK_DONE" text="%Generate" /> | ||
</buttonTypes> | ||
</DialogPane> |
Oops, something went wrong.