<?xml version="1.0" encoding="UTF-8"?>

<!--
  ~ This file is part of Haveno.
  ~
  ~ Haveno is free software: you can redistribute it and/or modify it
  ~ under the terms of the GNU Affero General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or (at
  ~ your option) any later version.
  ~
  ~ Haveno is distributed in the hope that it will be useful, but WITHOUT
  ~ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  ~ FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
  ~ License for more details.
  ~
  ~ You should have received a copy of the GNU Affero General Public License
  ~ along with Haveno. If not, see <http://www.gnu.org/licenses/>.
  -->

<?import bisq.desktop.components.AutoTooltipButton?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Region?>
<?import javafx.scene.layout.VBox?>
<?import javafx.geometry.Insets?>
<?import bisq.desktop.components.list.FilterBox?>
<VBox fx:id="root" fx:controller="bisq.desktop.main.portfolio.closedtrades.ClosedTradesView"
      spacing="10" alignment="CENTER_RIGHT" xmlns:fx="http://javafx.com/fxml">
    <padding>
        <Insets bottom="15.0" left="15.0" right="15.0" top="15.0"/>
    </padding>

    <FilterBox fx:id="filterBox" />
    <TableView fx:id="tableView" VBox.vgrow="ALWAYS">
        <columns>
            <TableColumn fx:id="tradeIdColumn" minWidth="110" maxWidth="120"/>
            <TableColumn fx:id="dateColumn" minWidth="170"/>
            <TableColumn fx:id="marketColumn" minWidth="75"/>
            <TableColumn fx:id="priceColumn" minWidth="100"/>
            <TableColumn fx:id="deviationColumn" minWidth="70"/>
            <TableColumn fx:id="amountColumn" minWidth="110"/>
            <TableColumn fx:id="volumeColumn" minWidth="110"/>
            <TableColumn fx:id="txFeeColumn" visible="false" minWidth="75"/>
            <TableColumn fx:id="tradeFeeColumn" visible="false" minWidth="110"/>
            <TableColumn fx:id="buyerSecurityDepositColumn" visible="false" minWidth="75"/>
            <TableColumn fx:id="sellerSecurityDepositColumn" visible="false" minWidth="75"/>
            <TableColumn fx:id="directionColumn" minWidth="70"/>
            <TableColumn fx:id="stateColumn" minWidth="80"/>
            <TableColumn fx:id="duplicateColumn" minWidth="30" maxWidth="30" sortable="false"/>
            <TableColumn fx:id="avatarColumn" minWidth="40" maxWidth="40"/>
        </columns>
    </TableView>

    <HBox spacing="10">
        <Label fx:id="numItems"/>
        <Region fx:id="footerSpacer"/>
        <AutoTooltipButton fx:id="summaryButton"/>
        <AutoTooltipButton fx:id="exportButton"/>
    </HBox>
</VBox>
