-
-
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.
Integrated CustomizeExternalFileTypesDialog into Preferences (#8341)
* Integrated CustomizeExternalFileTypesDialog into prefs dialog * CHANGELOG.md * Fixed merge conflict after 5.4
- Loading branch information
Showing
11 changed files
with
76 additions
and
99 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
39 changes: 0 additions & 39 deletions
39
src/main/java/org/jabref/gui/externalfiletype/CustomizeExternalFileTypesDialog.fxml
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
src/main/java/org/jabref/gui/externalfiletype/EditExternalFileTypesAction.java
This file was deleted.
Oops, something went wrong.
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
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
40 changes: 40 additions & 0 deletions
40
src/main/java/org/jabref/gui/preferences/externalfiletypes/ExternalFileTypesTab.fxml
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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Button?> | ||
<?import javafx.scene.control.Label?> | ||
<?import javafx.scene.control.TableColumn?> | ||
<?import javafx.scene.control.TableView?> | ||
<?import javafx.scene.layout.HBox?> | ||
<?import javafx.scene.layout.VBox?> | ||
<?import org.jabref.gui.icon.JabRefIconView?> | ||
<fx:root spacing="10.0" type="VBox" | ||
xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml" | ||
fx:controller="org.jabref.gui.preferences.externalfiletypes.ExternalFileTypesTab"> | ||
<Label styleClass="titleHeader" text="%External file types"/> | ||
<TableView fx:id="fileTypesTable" VBox.vgrow="ALWAYS"> | ||
<columns> | ||
<TableColumn fx:id="fileTypesTableIconColumn" minWidth="40.0" maxWidth="40.0"/> | ||
<TableColumn fx:id="fileTypesTableNameColumn" text="%Name"/> | ||
<TableColumn fx:id="fileTypesTableExtensionColumn" text="%Extension" prefWidth="120"/> | ||
<TableColumn fx:id="fileTypesTableTypeColumn" text="%MIME type" prefWidth="150"/> | ||
<TableColumn fx:id="fileTypesTableApplicationColumn" text="%Application" prefWidth="100"/> | ||
<TableColumn fx:id="fileTypesTableEditColumn" minWidth="40.0" maxWidth="40.0"/> | ||
<TableColumn fx:id="fileTypesTableDeleteColumn" minWidth="40.0" maxWidth="40.0"/> | ||
</columns> | ||
<columnResizePolicy> | ||
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY"/> | ||
</columnResizePolicy> | ||
</TableView> | ||
<HBox alignment="BASELINE_RIGHT" spacing="10.0"> | ||
<Button text="%Add new file type" onAction="#addNewType"> | ||
<graphic> | ||
<JabRefIconView glyph="ADD_NOBOX"/> | ||
</graphic> | ||
</Button> | ||
<Button text="%Reset to default" onAction="#resetToDefault"> | ||
<graphic> | ||
<JabRefIconView glyph="REFRESH"/> | ||
</graphic> | ||
</Button> | ||
</HBox> | ||
</fx:root> |
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
28 changes: 17 additions & 11 deletions
28
.../CustomizeExternalFileTypesViewModel.java → ...etypes/ExternalFileTypesTabViewModel.java
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