Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public SummaryShowingComponent(@NonNull Summary summary, @NonNull Runnable regen
@FXML
private void initialize() {
initializeWebView();
updateContent(false); // Start in plain text mode
updateContent(true); // Start in Markdown mode
updateInfoText();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,59 @@
<?import javafx.scene.control.MenuButton?>
<?import javafx.scene.control.MenuItem?>
<?import org.jabref.gui.icon.JabRefIconView?>
<fx:root alignment="TOP_CENTER" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="400.0" minWidth="-Infinity" spacing="8.0" type="VBox" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.jabref.gui.ai.components.summary.SummaryShowingComponent">
<children>
<BorderPane minHeight="30.0">
<left>
<CheckBox fx:id="markdownCheckbox" mnemonicParsing="false" onAction="#onMarkdownToggle" text="Markdown" />
</left>
<center>
<Button mnemonicParsing="false" onAction="#onRegenerateButtonClick" text="%Regenerate" translateX="-40" />
</center>
<right>
<MenuButton text="%Export" >
<graphic>
<JabRefIconView glyph="SAVE"/>
</graphic>
<items>
<MenuItem text="%Export to Markdown" onAction="#exportMarkdown"/>
<MenuItem text="%Export to JSON" onAction="#exportJson"/>
</items>
</MenuButton>
</right>
</BorderPane>
<Text fx:id="summaryInfoText" strokeType="OUTSIDE" strokeWidth="0.0" text="%Generated at %0 by %1" />
</children>
<fx:root
alignment="TOP_CENTER"
maxHeight="1.7976931348623157E308"
maxWidth="1.7976931348623157E308"
minHeight="400.0"
minWidth="-Infinity"
spacing="8.0"
type="VBox"
xmlns="http://javafx.com/javafx/17.0.2-ea"
xmlns:fx="http://javafx.com/fxml/1"
fx:controller="org.jabref.gui.ai.components.summary.SummaryShowingComponent">
<padding>
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
<Insets bottom="8.0"
left="8.0"
right="8.0"
top="8.0"/>
</padding>
<BorderPane
minHeight="30.0">
<left>
<CheckBox
fx:id="markdownCheckbox"
mnemonicParsing="false"
onAction="#onMarkdownToggle"
Comment on lines 23 to +35
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file underwent IntelliJ formatting I think

text="Markdown"
selected="true"/>
</left>
<center>
<Button mnemonicParsing="false"
onAction="#onRegenerateButtonClick"
text="%Regenerate"
translateX="-40"/>
</center>
<right>
<MenuButton
text="%Export">
<graphic>
<JabRefIconView
glyph="SAVE"/>
</graphic>
<items>
<MenuItem
text="%Export to Markdown"
onAction="#exportMarkdown"/>
<MenuItem
text="%Export to JSON"
onAction="#exportJson"/>
</items>
</MenuButton>
</right>
</BorderPane>
<Text fx:id="summaryInfoText"
strokeType="OUTSIDE"
strokeWidth="0.0"
text="%Generated at %0 by %1"/>
</fx:root>
Loading