- update controlFX to 8.20.6
- support JDK 8u25 - refactoring models
This commit is contained in:
@@ -14,8 +14,12 @@
|
||||
<MenuItem text="%main.menu.file.import" onAction="#importWorld"/>
|
||||
</Menu>
|
||||
<Menu text="%main.menu.edit">
|
||||
<MenuItem text="%main.menu.edit.addStation" onAction="#addVendor"/>
|
||||
<MenuItem text="%main.menu.edit.editStation" onAction="#editVendor"/>
|
||||
<MenuItem text="%main.menu.edit.addSystem" onAction="#addSystem"/>
|
||||
<MenuItem text="%main.menu.edit.editSystem" onAction="#editSystem"/>
|
||||
<MenuItem text="%main.menu.edit.removeSystem" onAction="#removeSystem"/>
|
||||
<MenuItem text="%main.menu.edit.addStation" onAction="#addStation"/>
|
||||
<MenuItem text="%main.menu.edit.editStation" onAction="#editStation"/>
|
||||
<MenuItem text="%main.menu.edit.removeStation" onAction="#removeStation"/>
|
||||
</Menu>
|
||||
<Menu text="%main.menu.settings">
|
||||
<MenuItem text="%main.menu.settings.parameters" onAction="#editSettings"/>
|
||||
@@ -28,7 +32,7 @@
|
||||
<Tab text="%market.items">
|
||||
<fx:include fx:id="items" source="items.fxml"/>
|
||||
</Tab>
|
||||
<Tab text="%market.vendors">
|
||||
<Tab text="%market.systems">
|
||||
<fx:include fx:id="offers" source="offers.fxml"/>
|
||||
</Tab>
|
||||
<Tab text="%routes">
|
||||
|
||||
@@ -9,24 +9,38 @@
|
||||
<?import ru.trader.view.support.cells.OfferCellValueImpl?>
|
||||
|
||||
<?import ru.trader.view.support.cells.DoubleCell?>
|
||||
<HBox xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
|
||||
<?import org.controlsfx.glyphfont.Glyph?>
|
||||
<?import org.controlsfx.control.SegmentedButton?>
|
||||
<GridPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"
|
||||
fx:controller="ru.trader.controllers.OffersController">
|
||||
<TitledPane text="%market.vendors" minWidth="250" prefHeight="510" collapsible="false">
|
||||
<ListView fx:id="vendors">
|
||||
|
||||
<fx:define><Insets fx:id="stationsMargin" left="5" right="5" /></fx:define>
|
||||
<fx:define><Insets fx:id="stationsPadding" left="12" right="10" /></fx:define>
|
||||
|
||||
<columnConstraints>
|
||||
<ColumnConstraints minWidth="250" maxWidth="250"/>
|
||||
<ColumnConstraints fillWidth="true"/>
|
||||
</columnConstraints>
|
||||
|
||||
<TitledPane GridPane.rowSpan="2" text="%market.systems" minWidth="250" prefHeight="510" collapsible="false">
|
||||
<ListView fx:id="systems">
|
||||
<contextMenu>
|
||||
<ContextMenu>
|
||||
<items>
|
||||
<MenuItem text="%main.menu.edit.addStation" onAction="#addVendor" />
|
||||
<MenuItem text="%main.menu.edit.editStation" onAction="#editVendor" />
|
||||
<MenuItem text="%main.menu.edit.addStation" onAction="#addStation" />
|
||||
<MenuItem text="%main.menu.edit.editStation" onAction="#editStation" />
|
||||
</items>
|
||||
</ContextMenu>
|
||||
</contextMenu>
|
||||
</ListView>
|
||||
</TitledPane>
|
||||
|
||||
<Accordion HBox.hgrow="ALWAYS">
|
||||
<panes>
|
||||
<TitledPane fx:id="sells" animated="false" text="%offers.pane.sell">
|
||||
<TitledPane GridPane.columnIndex="1" text="%market.stations" maxHeight="60" collapsible="false">
|
||||
<SegmentedButton fx:id="stationsBar" />
|
||||
</TitledPane>
|
||||
<Accordion GridPane.rowIndex="1" GridPane.columnIndex="1" GridPane.hgrow="ALWAYS" GridPane.vgrow="ALWAYS">
|
||||
<panes>
|
||||
<TitledPane fx:id="paneSells" animated="false" text="%offers.pane.sell">
|
||||
<TableView fx:id="tblSell" editable="true">
|
||||
<columns>
|
||||
<TableColumn minWidth="230.0" text="%market.item.name">
|
||||
@@ -36,6 +50,9 @@
|
||||
<cellFactory><PriceCellImpl/></cellFactory>
|
||||
<cellValueFactory><PropertyValueFactory property="price"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn minWidth="80.0" text="%market.offer.supply">
|
||||
<cellValueFactory><PropertyValueFactory property="count"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="sortSell" minWidth="90.0" text="%market.order.profit" sortType="DESCENDING">
|
||||
<cellFactory><DoubleCell/></cellFactory>
|
||||
<cellValueFactory><PropertyValueFactory property="profit"/></cellValueFactory>
|
||||
@@ -70,8 +87,8 @@
|
||||
<fx:reference source="sortSell"/>
|
||||
</sortOrder>
|
||||
</TableView>
|
||||
</TitledPane>
|
||||
<TitledPane animated="false" text="%offers.pane.buy">
|
||||
</TitledPane>
|
||||
<TitledPane animated="false" text="%offers.pane.buy">
|
||||
<TableView fx:id="tblBuy" editable="true">
|
||||
<columns>
|
||||
<TableColumn minWidth="230.0" text="%market.item.name">
|
||||
@@ -81,6 +98,9 @@
|
||||
<cellFactory><PriceCellImpl/></cellFactory>
|
||||
<cellValueFactory><PropertyValueFactory property="price"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn minWidth="80.0" text="%market.offer.demand">
|
||||
<cellValueFactory><PropertyValueFactory property="count"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn fx:id="sortBuy" minWidth="90.0" text="%market.order.profit" sortType="DESCENDING">
|
||||
<cellFactory><DoubleCell/></cellFactory>
|
||||
<cellValueFactory><PropertyValueFactory property="profit"/></cellValueFactory>
|
||||
@@ -115,10 +135,10 @@
|
||||
<fx:reference source="sortBuy"/>
|
||||
</sortOrder>
|
||||
</TableView>
|
||||
</TitledPane>
|
||||
</panes>
|
||||
<expandedPane>
|
||||
<fx:reference source="sells"/>
|
||||
</expandedPane>
|
||||
</TitledPane>
|
||||
</panes>
|
||||
<expandedPane>
|
||||
<fx:reference source="paneSells"/>
|
||||
</expandedPane>
|
||||
</Accordion>
|
||||
</HBox>
|
||||
</GridPane>
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<TableView fx:id="tblOrders" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn minWidth="210.0" text="%market.order.seller">
|
||||
<cellValueFactory><PropertyValueFactory property="vendor"/></cellValueFactory>
|
||||
<cellValueFactory><PropertyValueFactory property="station"/></cellValueFactory>
|
||||
</TableColumn>
|
||||
<TableColumn minWidth="180.0" text="%market.item.name">
|
||||
<cellValueFactory><PropertyValueFactory property="name"/></cellValueFactory>
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
</columnConstraints>
|
||||
<Label text="%settings.emdn" styleClass="settings-group" GridPane.halignment="CENTER" GridPane.columnSpan="2"/>
|
||||
<Label text="%settings.emdn.on" GridPane.rowIndex="1"/>
|
||||
<CheckBox fx:id="emdnOn" GridPane.columnIndex="1" GridPane.rowIndex="1"/>
|
||||
<CheckBox fx:id="emdnOn" GridPane.columnIndex="1" GridPane.rowIndex="1" disable="true"/>
|
||||
<Label text="%settings.emdn.sub" GridPane.rowIndex="2" />
|
||||
<TextField fx:id="emdnSubServ" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
||||
<Label text="%settings.emdn.updateOnly" GridPane.rowIndex="3" />
|
||||
|
||||
@@ -61,7 +61,7 @@ HBox.fields-group hbox-margin{
|
||||
-fx-fill-height: true;
|
||||
}
|
||||
|
||||
.path-vendor {
|
||||
.path-system {
|
||||
-fx-alignment: center-left;
|
||||
-fx-text-alignment: left;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<?import ru.trader.view.support.NumberField?>
|
||||
<?import javafx.geometry.Insets?>
|
||||
<GridPane xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/8"
|
||||
fx:controller="ru.trader.controllers.VendorEditorController" styleClass="dialog"
|
||||
fx:controller="ru.trader.controllers.StationEditorController" styleClass="dialog"
|
||||
vgap="10" hgap="4">
|
||||
<fx:define><Insets fx:id="hbox_margin" left="10" /></fx:define>
|
||||
<TextField fx:id="name" GridPane.columnSpan="2" alignment="CENTER" />
|
||||
|
||||
Reference in New Issue
Block a user