From 7bddf2fdbc271aa1aeb593ca563a156880b1493e Mon Sep 17 00:00:00 2001 From: Denis-Cosmin NUTIU Date: Sun, 7 Apr 2024 11:09:07 +0300 Subject: [PATCH] implement copy tags button --- .../ui/controls/ImageTagsEntryControl.kt | 23 +++++++++++++++++++ .../ui/controls/image-tags-entry.fxml | 11 +++++++++ 2 files changed, 34 insertions(+) diff --git a/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsEntryControl.kt b/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsEntryControl.kt index b076536..e3ce683 100644 --- a/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsEntryControl.kt +++ b/img-ui/src/main/kotlin/dev/nuculabs/imagetagger/ui/controls/ImageTagsEntryControl.kt @@ -3,10 +3,13 @@ package dev.nuculabs.imagetagger.ui.controls import dev.nuculabs.imagetagger.ui.alerts.ErrorAlert import javafx.fxml.FXML import javafx.fxml.FXMLLoader +import javafx.scene.control.Button import javafx.scene.control.Label import javafx.scene.control.TextArea import javafx.scene.image.Image import javafx.scene.image.ImageView +import javafx.scene.input.Clipboard +import javafx.scene.input.ClipboardContent import javafx.scene.input.MouseEvent import javafx.scene.layout.HBox import java.awt.Desktop @@ -39,6 +42,12 @@ class ImageTagsEntryControl(private val imagePath: String, predictions: List + @@ -16,6 +17,16 @@