Skip to content

Commit

Permalink
Merge branch 'idauifixes' into 'master'
Browse files Browse the repository at this point in the history
#99 UI changes

See merge request tdt4140-2018/02!48
  • Loading branch information
idaame committed Apr 16, 2018
2 parents 99d9bb1 + dab2ba8 commit 52a0408
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

public final class BackendConnector {

static String baseUrl = "http://10.22.62.15:8000/";
static String baseUrl = "http://10.22.36.132:8000/";
public static JSONObject makeRequest(HashMap<String, String> dict, String path) throws Exception {

HttpURLConnection con = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public class SeeWorkoutsController{
@FXML
private Label txtLabelUsername;

@FXML
private Button btSeeWorkout;

private AthleteWorkoutController athleteWorkoutController = new AthleteWorkoutController();
private Workout workout;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<Pane layoutX="159.0" prefHeight="655.0" prefWidth="1127.0">
<children>
<TextField fx:id="filepathTextField" layoutX="29.0" layoutY="65.0" prefHeight="27.0" prefWidth="501.0" promptText="Enter CSV Filepath" />
<Button fx:id="addButton" layoutX="29.0" layoutY="188.0" mnemonicParsing="false" onAction="#clickAddButton" prefHeight="27.0" prefWidth="107.0" text="Add" />
<Button fx:id="addButton" layoutX="29.0" layoutY="115.0" mnemonicParsing="false" onAction="#clickAddButton" prefHeight="27.0" prefWidth="107.0" text="Add" />
</children></Pane>
</children>
</AnchorPane>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,31 @@
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0">
<children>
<Label fx:id="dateLabel" layoutX="66.0" layoutY="31.0" prefHeight="17.0" prefWidth="145.0" />
<Label fx:id="typeLabel" layoutX="77.0" layoutY="84.0" prefHeight="17.0" prefWidth="164.0" />
<Label fx:id="durationLabel" layoutX="91.0" layoutY="133.0" prefHeight="17.0" prefWidth="96.0" />
<Label fx:id="maxHRLabel" layoutX="88.0" layoutY="231.0" prefHeight="17.0" prefWidth="135.0" />
<Text layoutX="27.0" layoutY="45.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Date:">
<Label fx:id="dateLabel" layoutX="103.0" layoutY="73.0" prefHeight="17.0" prefWidth="145.0" />
<Label fx:id="typeLabel" layoutX="114.0" layoutY="126.0" prefHeight="17.0" prefWidth="164.0" />
<Label fx:id="durationLabel" layoutX="128.0" layoutY="175.0" prefHeight="17.0" prefWidth="96.0" />
<Label fx:id="maxHRLabel" layoutX="125.0" layoutY="273.0" prefHeight="17.0" prefWidth="135.0" />
<Text layoutX="64.0" layoutY="87.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Date:">
<font>
<Font name="System Bold" size="14.0" />
</font>
</Text>
<Text layoutX="29.0" layoutY="98.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Type:">
<Text layoutX="66.0" layoutY="140.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Type:">
<font>
<Font name="System Bold" size="14.0" />
</font>
</Text>
<Text layoutX="27.0" layoutY="245.0" strokeType="OUTSIDE" strokeWidth="0.0" text="MaxHR:">
<Text layoutX="64.0" layoutY="287.0" strokeType="OUTSIDE" strokeWidth="0.0" text="MaxHR:">
<font>
<Font size="14.0" />
</font>
</Text>
<Text layoutX="27.0" layoutY="147.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Duration:">
<Text layoutX="64.0" layoutY="189.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Duration:">
<font>
<Font size="14.0" />
</font>
</Text>
<PieChart fx:id="pulszonesChart" layoutX="571.0" layoutY="51.0" prefHeight="248.0" prefWidth="262.0" title="Puls zones" />
<PieChart fx:id="pulszonesChart" layoutX="609.0" layoutY="51.0" prefHeight="286.0" prefWidth="430.0" title="Puls zones" />
<LineChart fx:id="pulsLine" layoutX="18.0" layoutY="354.0" prefHeight="248.0" prefWidth="1048.0">
<xAxis>
<CategoryAxis side="BOTTOM" fx:id="xAxis" />
Expand All @@ -77,12 +77,12 @@
<NumberAxis fx:id="yAxis" side="LEFT" />
</yAxis>
</LineChart>
<Text layoutX="28.0" layoutY="198.0" strokeType="OUTSIDE" strokeWidth="0.0" text="AvgHR:">
<Text layoutX="65.0" layoutY="240.0" strokeType="OUTSIDE" strokeWidth="0.0" text="AvgHR:">
<font>
<Font size="14.0" />
</font>
</Text>
<Label fx:id="avgHRLabel" layoutX="91.0" layoutY="184.0" prefHeight="17.0" prefWidth="107.0" />
<Label fx:id="avgHRLabel" layoutX="128.0" layoutY="226.0" prefHeight="17.0" prefWidth="107.0" />
<Label fx:id="athleteLabel" layoutX="385.0" layoutY="14.0" prefWidth="250.0">
<font>
<Font name="System Bold" size="18.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
<Pane layoutX="159.0" prefHeight="650.0" prefWidth="1121.0">
<children>
<HBox layoutX="56.0" layoutY="232.0" prefHeight="64.0" prefWidth="532.0" />
<PieChart fx:id="zoneChart" layoutX="379.0" layoutY="83.0" prefHeight="349.0" prefWidth="418.0" />
<Text layoutX="383.0" layoutY="470.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Low:" />
<Text layoutX="494.0" layoutY="470.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Moderate:" />
<Text layoutX="638.0" layoutY="470.0" strokeType="OUTSIDE" strokeWidth="0.0" text="High:" />
<PieChart fx:id="zoneChart" layoutX="334.0" layoutY="90.0" prefHeight="349.0" prefWidth="418.0" />
<Text layoutX="369.0" layoutY="470.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Low:" />
<Text layoutX="480.0" layoutY="470.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Moderate:" />
<Text layoutX="624.0" layoutY="470.0" strokeType="OUTSIDE" strokeWidth="0.0" text="High:" />
<Label fx:id="lowLabel" layoutX="417.0" layoutY="457.0" prefHeight="17.0" prefWidth="73.0" />
<Label fx:id="moderateLabel" layoutX="565.0" layoutY="457.0" prefHeight="17.0" prefWidth="63.0" />
<Label fx:id="highLabel" layoutX="675.0" layoutY="457.0" prefHeight="17.0" prefWidth="63.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
<TableColumn fx:id="maxHRColumn" prefWidth="101.0" text="Max HR" />
</columns>
</TableView>
<Button fx:id="hideButton" layoutX="997.0" layoutY="578.0" mnemonicParsing="false" onAction="#hideWorkout" prefHeight="37.0" prefWidth="63.0" text="Hide" />
<Button fx:id="hideButton" layoutX="875.0" layoutY="578.0" mnemonicParsing="false" onAction="#hideWorkout" prefHeight="37.0" prefWidth="63.0" text="Hide" />
<Button fx:id="btSeeWorkout" layoutX="966.0" layoutY="578.0" mnemonicParsing="false" onAction="#clickSeeWorkout" prefHeight="37.0" prefWidth="115.0" text="See Workout" />
</children>
</Pane>
<Line endX="1280.0" startX="-400.0" AnchorPane.bottomAnchor="656.3" AnchorPane.leftAnchor="-391.5" AnchorPane.rightAnchor="518.9000000000001" AnchorPane.topAnchor="-0.5" />
Expand Down

0 comments on commit 52a0408

Please sign in to comment.