Browse Source

rename idlabel #2

bwt
Craig Raw 5 years ago
parent
commit
30fd16e8d6
  1. 8
      src/main/java/com/sparrowwallet/sparrow/control/IdLabel.java
  2. 4
      src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java
  3. 7
      src/main/java/com/sparrowwallet/sparrow/transaction/InputController.java
  4. 4
      src/main/java/com/sparrowwallet/sparrow/transaction/OutputController.java
  5. 4
      src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml
  6. 6
      src/main/resources/com/sparrowwallet/sparrow/transaction/input.fxml
  7. 4
      src/main/resources/com/sparrowwallet/sparrow/transaction/output.fxml

8
src/main/java/com/sparrowwallet/sparrow/control/IdLabel.java

@ -2,14 +2,12 @@ package com.sparrowwallet.sparrow.control;
import javafx.scene.text.Font;
import java.awt.*;
public class CopyableIdLabel extends CopyableLabel {
public CopyableIdLabel() {
public class IdLabel extends CopyableLabel {
public IdLabel() {
this("");
}
public CopyableIdLabel(String text) {
public IdLabel(String text) {
super(text);
setFont(Font.font("Courier"));
}

4
src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java

@ -2,7 +2,7 @@ package com.sparrowwallet.sparrow.transaction;
import com.sparrowwallet.drongo.protocol.Transaction;
import com.sparrowwallet.sparrow.EventManager;
import com.sparrowwallet.sparrow.control.CopyableIdLabel;
import com.sparrowwallet.sparrow.control.IdLabel;
import com.sparrowwallet.sparrow.control.CopyableLabel;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
@ -21,7 +21,7 @@ public class HeadersController extends TransactionFormController implements Init
private HeadersForm headersForm;
@FXML
private CopyableIdLabel id;
private IdLabel id;
@FXML
private Spinner<Integer> version;

7
src/main/java/com/sparrowwallet/sparrow/transaction/InputController.java

@ -6,7 +6,7 @@ import com.sparrowwallet.drongo.crypto.ECKey;
import com.sparrowwallet.drongo.protocol.*;
import com.sparrowwallet.drongo.psbt.PSBTInput;
import com.sparrowwallet.sparrow.EventManager;
import com.sparrowwallet.sparrow.control.CopyableIdLabel;
import com.sparrowwallet.sparrow.control.IdLabel;
import com.sparrowwallet.sparrow.control.CopyableLabel;
import com.sparrowwallet.sparrow.control.RelativeTimelockSpinner;
import javafx.fxml.FXML;
@ -24,7 +24,6 @@ import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.List;
import java.util.ResourceBundle;
public class InputController extends TransactionFormController implements Initializable {
@ -34,7 +33,7 @@ public class InputController extends TransactionFormController implements Initia
private Fieldset inputFieldset;
@FXML
private CopyableIdLabel outpoint;
private IdLabel outpoint;
@FXML
private Button outpointSelect;
@ -46,7 +45,7 @@ public class InputController extends TransactionFormController implements Initia
private CopyableLabel from;
@FXML
private CopyableIdLabel address;
private IdLabel address;
@FXML
private CodeArea scriptSigArea;

4
src/main/java/com/sparrowwallet/sparrow/transaction/OutputController.java

@ -3,7 +3,7 @@ package com.sparrowwallet.sparrow.transaction;
import com.sparrowwallet.drongo.address.Address;
import com.sparrowwallet.drongo.protocol.NonStandardScriptException;
import com.sparrowwallet.drongo.protocol.TransactionOutput;
import com.sparrowwallet.sparrow.control.CopyableIdLabel;
import com.sparrowwallet.sparrow.control.IdLabel;
import com.sparrowwallet.sparrow.control.CopyableLabel;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
@ -26,7 +26,7 @@ public class OutputController extends TransactionFormController implements Initi
private CopyableLabel to;
@FXML
private CopyableIdLabel address;
private IdLabel address;
@FXML
private CodeArea scriptPubKeyArea;

4
src/main/resources/com/sparrowwallet/sparrow/transaction/headers.fxml

@ -12,7 +12,7 @@
<?import tornadofx.control.Field?>
<?import org.controlsfx.control.SegmentedButton?>
<?import com.sparrowwallet.sparrow.control.CopyableLabel?>
<?import com.sparrowwallet.sparrow.control.CopyableIdLabel?>
<?import com.sparrowwallet.sparrow.control.IdLabel?>
<GridPane hgap="10.0" prefHeight="350.0" prefWidth="600.0" vgap="10.0" alignment="TOP_CENTER" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.sparrowwallet.sparrow.transaction.HeadersController" stylesheets="@headers.css, @../general.css">
<padding>
@ -32,7 +32,7 @@
<Form GridPane.columnIndex="0" GridPane.rowIndex="0" GridPane.columnSpan="2">
<Fieldset text="Transaction" inputGrow="SOMETIMES">
<Field text="Txid:">
<CopyableIdLabel fx:id="id"/>
<IdLabel fx:id="id"/>
</Field>
</Fieldset>
</Form>

6
src/main/resources/com/sparrowwallet/sparrow/transaction/input.fxml

@ -13,7 +13,7 @@
<?import org.controlsfx.control.ToggleSwitch?>
<?import com.sparrowwallet.sparrow.control.RelativeTimelockSpinner?>
<?import com.sparrowwallet.sparrow.control.CopyableLabel?>
<?import com.sparrowwallet.sparrow.control.CopyableIdLabel?>
<?import com.sparrowwallet.sparrow.control.IdLabel?>
<GridPane alignment="TOP_CENTER" hgap="10.0" prefHeight="500.0" prefWidth="620.0" stylesheets="@input.css, @script.css, @../general.css" vgap="10.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.sparrowwallet.sparrow.transaction.InputController">
<padding>
@ -32,7 +32,7 @@
<Form GridPane.columnIndex="0" GridPane.columnSpan="2" GridPane.rowIndex="0">
<Fieldset fx:id="inputFieldset" inputGrow="SOMETIMES" text="Input">
<Field text="Outpoint:" styleClass="label-button">
<CopyableIdLabel fx:id="outpoint" />
<IdLabel fx:id="outpoint" />
<Button fx:id="outpointSelect" maxWidth="25" minWidth="-Infinity" prefWidth="30" text="Ed">
<graphic>
<Glyph fontFamily="FontAwesome" icon="EDIT" prefWidth="15" />
@ -42,7 +42,7 @@
<Field text="Spends:">
<CopyableLabel fx:id="spends" />
<CopyableLabel fx:id="from" text="from" />
<CopyableIdLabel fx:id="address" />
<IdLabel fx:id="address" />
</Field>
</Fieldset>
</Form>

4
src/main/resources/com/sparrowwallet/sparrow/transaction/output.fxml

@ -12,7 +12,7 @@
<?import tornadofx.control.Form?>
<?import javafx.geometry.Insets?>
<?import com.sparrowwallet.sparrow.control.CopyableLabel?>
<?import com.sparrowwallet.sparrow.control.CopyableIdLabel?>
<?import com.sparrowwallet.sparrow.control.IdLabel?>
<GridPane alignment="TOP_CENTER" hgap="10.0" prefHeight="500.0" prefWidth="600.0" stylesheets="@output.css, @script.css, @../general.css" vgap="10.0" xmlns="http://javafx.com/javafx/10.0.2-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.sparrowwallet.sparrow.transaction.OutputController">
<padding>
@ -33,7 +33,7 @@
<Field text="Sends:">
<CopyableLabel fx:id="value"/>
<CopyableLabel fx:id="to" text="to" />
<CopyableIdLabel fx:id="address" />
<IdLabel fx:id="address" />
</Field>
</Fieldset>
</Form>

Loading…
Cancel
Save