From 9acc6cfd4b4789e76e1138820697161327e7c5b5 Mon Sep 17 00:00:00 2001 From: Ruslan Molchanov Date: Fri, 31 Aug 2018 20:23:09 +0300 Subject: [PATCH 1/7] Issue #26 --- .../vkmusic/controller/MainController.kt | 46 +++++++++++++++---- src/main/resources/views/main.fxml | 37 +++++++++------ 2 files changed, 59 insertions(+), 24 deletions(-) diff --git a/src/main/kotlin/me/ruslanys/vkmusic/controller/MainController.kt b/src/main/kotlin/me/ruslanys/vkmusic/controller/MainController.kt index eee35ed..6b83c08 100644 --- a/src/main/kotlin/me/ruslanys/vkmusic/controller/MainController.kt +++ b/src/main/kotlin/me/ruslanys/vkmusic/controller/MainController.kt @@ -1,17 +1,15 @@ package me.ruslanys.vkmusic.controller +import javafx.animation.PauseTransition import javafx.collections.FXCollections -import javafx.collections.ObservableList import javafx.fxml.FXML -import javafx.scene.control.MenuItem -import javafx.scene.control.SelectionMode -import javafx.scene.control.TableColumn -import javafx.scene.control.TableView +import javafx.scene.control.* import javafx.scene.control.cell.PropertyValueFactory import javafx.scene.image.Image import javafx.scene.image.ImageView import javafx.scene.layout.Pane import javafx.stage.DirectoryChooser +import javafx.util.Duration import me.ruslanys.vkmusic.annotation.FxmlController import me.ruslanys.vkmusic.component.VkClient import me.ruslanys.vkmusic.domain.Audio @@ -33,16 +31,21 @@ class MainController( private val downloadService: DownloadService) : ApplicationListener, BaseController() { @FXML private lateinit var loadingView: Pane + @FXML private lateinit var mainView: Pane + @FXML private lateinit var loadingImageView: ImageView @FXML private lateinit var tableView: TableView