Skip to content

Commit

Permalink
Fix spacing in Cleanup dialog JabRef#10081
Browse files Browse the repository at this point in the history
  • Loading branch information
pcabaniss committed Jul 14, 2023
1 parent fd82bef commit 9e411b7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 22 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"type": "java",
"name": "Current File",
"request": "launch",
"mainClass": "${file}"
}
]
}
2 changes: 1 addition & 1 deletion src/main/java/org/jabref/gui/cleanup/CleanupDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public CleanupDialog(BibDatabaseContext databaseContext, CleanupPreferences init
setTitle(Localization.lang("Cleanup entries"));
getDialogPane().setPrefSize(600, 650);
getDialogPane().getButtonTypes().setAll(ButtonType.OK, ButtonType.CANCEL);

CleanupPresetPanel presetPanel = new CleanupPresetPanel(databaseContext, initialPreset, filePreferences);

// placing the content of the presetPanel in a scroll pane
Expand Down
43 changes: 22 additions & 21 deletions src/main/java/org/jabref/gui/cleanup/CleanupPresetPanel.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,32 @@
<ToggleGroup fx:id="timestampCleanup"/>
</fx:define>

<CheckBox fx:id="cleanUpDOI" text="%Move DOIs from note and URL field to DOI field and remove http prefix"/>
<CheckBox fx:id="cleanUpEprint"
<VBox spacing="1.0">
<CheckBox fx:id="cleanUpDOI" text="%Move DOIs from note and URL field to DOI field and remove http prefix"/>
<CheckBox fx:id="cleanUpEprint"
text="%Move preprint information from 'URL' and 'journal' field to the 'eprint' field"/>
<CheckBox fx:id="cleanUpURL" text="%Move URL in note field to url field"/>
<CheckBox fx:id="cleanUpISSN" text="%Reformat ISSN"/>
<CheckBox fx:id="cleanUpUpgradeExternalLinks"/>
<CheckBox fx:id="cleanUpMovePDF"/>
<CheckBox fx:id="cleanUpMakePathsRelative" text="%Make paths of linked files relative (if possible)"/>
<CheckBox fx:id="cleanUpRenamePDF" text="%Rename PDFs to given filename format pattern"/>
<VBox spacing="5.0">
<Label fx:id="cleanupRenamePDFLabel"/>
<CheckBox fx:id="cleanUpRenamePDFonlyRelativePaths" text="%Rename only PDFs having a relative path"/>
<VBox.margin>
<Insets left="40.0"/>
</VBox.margin>
</VBox>
<CheckBox fx:id="cleanUpURL" text="%Move URL in note field to url field"/>
<CheckBox fx:id="cleanUpISSN" text="%Reformat ISSN"/>
<CheckBox fx:id="cleanUpUpgradeExternalLinks"/>
<CheckBox fx:id="cleanUpMovePDF"/>
<CheckBox fx:id="cleanUpMakePathsRelative" text="%Make paths of linked files relative (if possible)"/>
<CheckBox fx:id="cleanUpRenamePDF" text="%Rename PDFs to given filename format pattern"/>
<VBox spacing="5.0">
<Label fx:id="cleanupRenamePDFLabel"/>
<CheckBox fx:id="cleanUpRenamePDFonlyRelativePaths" text="%Rename only PDFs having a relative path"/>
<VBox.margin>
<Insets left="40.0"/>
</VBox.margin>
</VBox>

<CheckBox fx:id="cleanUpBiblatex"
<CheckBox fx:id="cleanUpBiblatex"
text="%Convert to biblatex format (e.g., store publication date in date field)"/>
<CheckBox fx:id="cleanUpBibtex"
<CheckBox fx:id="cleanUpBibtex"
text="%Convert to BibTeX format (e.g., store publication date in year and month fields)"/>
<CheckBox fx:id="cleanUpTimestampToCreationDate"
<CheckBox fx:id="cleanUpTimestampToCreationDate"
text="%Convert timestamp field to field 'creationdate'"/>
<CheckBox fx:id="cleanUpTimestampToModificationDate"
<CheckBox fx:id="cleanUpTimestampToModificationDate"
text="%Convert timestamp field to field 'modificationdate'"/>

<FieldFormatterCleanupsPanel fx:id="formatterCleanupsPanel"/>
<FieldFormatterCleanupsPanel fx:id="formatterCleanupsPanel"/>
</VBox>
</fx:root>

0 comments on commit 9e411b7

Please sign in to comment.