From 681f2d55b8a5861fd63de8c9dcd4390865dda1a0 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Tue, 26 Aug 2014 08:55:13 +0200 Subject: [PATCH] Convert sources to unix line endings Performed with the following command: $ git ls-files | xargs dos2unix --- .../bitsquare/gui/funds/FundsController.java | 172 +- .../io/bitsquare/gui/funds/FundsView.fxml | 62 +- .../io/bitsquare/gui/home/HomeController.java | 252 +-- .../java/io/bitsquare/gui/home/HomeView.fxml | 70 +- .../io/bitsquare/gui/msg/MsgController.java | 190 +- .../gui/orders/OrdersController.java | 206 +- .../gui/settings/SettingsController.java | 1732 ++++++++--------- 7 files changed, 1342 insertions(+), 1342 deletions(-) diff --git a/src/main/java/io/bitsquare/gui/funds/FundsController.java b/src/main/java/io/bitsquare/gui/funds/FundsController.java index 5a02592dd0..1f461b5699 100644 --- a/src/main/java/io/bitsquare/gui/funds/FundsController.java +++ b/src/main/java/io/bitsquare/gui/funds/FundsController.java @@ -1,86 +1,86 @@ -/* - * This file is part of Bitsquare. - * - * Bitsquare 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. - * - * Bitsquare 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 Bitsquare. If not, see . - */ - -package io.bitsquare.gui.funds; - -import io.bitsquare.gui.CachedViewController; -import io.bitsquare.gui.NavigationItem; -import io.bitsquare.gui.ViewController; -import io.bitsquare.gui.components.CachingTabPane; -import io.bitsquare.storage.Persistence; -import java.net.URL; -import java.util.ResourceBundle; -import javax.inject.Inject; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class FundsController extends CachedViewController -{ - private static final Logger log = LoggerFactory.getLogger(FundsController.class); - private final Persistence persistence; - private ViewController childController; - - - /////////////////////////////////////////////////////////////////////////////////////////// - // Constructor - /////////////////////////////////////////////////////////////////////////////////////////// - - @Inject - private FundsController(Persistence persistence) - { - this.persistence = persistence; - } - - - /////////////////////////////////////////////////////////////////////////////////////////// - // Lifecycle - /////////////////////////////////////////////////////////////////////////////////////////// - - @Override - public void initialize(URL url, ResourceBundle rb) - { - super.initialize(url, rb); - - ((CachingTabPane) root).initialize(this, persistence, NavigationItem.DEPOSIT.getFxmlUrl(), NavigationItem.WITHDRAWAL.getFxmlUrl(), NavigationItem.TRANSACTIONS.getFxmlUrl()); - } - - @Override - public void deactivate() - { - super.deactivate(); - } - - @Override - public void activate() - { - super.activate(); - } - - - /////////////////////////////////////////////////////////////////////////////////////////// - // Navigation - /////////////////////////////////////////////////////////////////////////////////////////// - - @Override - public ViewController loadViewAndGetChildController(NavigationItem navigationItem) - { - childController = ((CachingTabPane) root).loadViewAndGetChildController(navigationItem.getFxmlUrl()); - return childController; - } - -} - +/* + * This file is part of Bitsquare. + * + * Bitsquare 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. + * + * Bitsquare 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 Bitsquare. If not, see . + */ + +package io.bitsquare.gui.funds; + +import io.bitsquare.gui.CachedViewController; +import io.bitsquare.gui.NavigationItem; +import io.bitsquare.gui.ViewController; +import io.bitsquare.gui.components.CachingTabPane; +import io.bitsquare.storage.Persistence; +import java.net.URL; +import java.util.ResourceBundle; +import javax.inject.Inject; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class FundsController extends CachedViewController +{ + private static final Logger log = LoggerFactory.getLogger(FundsController.class); + private final Persistence persistence; + private ViewController childController; + + + /////////////////////////////////////////////////////////////////////////////////////////// + // Constructor + /////////////////////////////////////////////////////////////////////////////////////////// + + @Inject + private FundsController(Persistence persistence) + { + this.persistence = persistence; + } + + + /////////////////////////////////////////////////////////////////////////////////////////// + // Lifecycle + /////////////////////////////////////////////////////////////////////////////////////////// + + @Override + public void initialize(URL url, ResourceBundle rb) + { + super.initialize(url, rb); + + ((CachingTabPane) root).initialize(this, persistence, NavigationItem.DEPOSIT.getFxmlUrl(), NavigationItem.WITHDRAWAL.getFxmlUrl(), NavigationItem.TRANSACTIONS.getFxmlUrl()); + } + + @Override + public void deactivate() + { + super.deactivate(); + } + + @Override + public void activate() + { + super.activate(); + } + + + /////////////////////////////////////////////////////////////////////////////////////////// + // Navigation + /////////////////////////////////////////////////////////////////////////////////////////// + + @Override + public ViewController loadViewAndGetChildController(NavigationItem navigationItem) + { + childController = ((CachingTabPane) root).loadViewAndGetChildController(navigationItem.getFxmlUrl()); + return childController; + } + +} + diff --git a/src/main/java/io/bitsquare/gui/funds/FundsView.fxml b/src/main/java/io/bitsquare/gui/funds/FundsView.fxml index 76d775b25e..dc924725e5 100644 --- a/src/main/java/io/bitsquare/gui/funds/FundsView.fxml +++ b/src/main/java/io/bitsquare/gui/funds/FundsView.fxml @@ -1,31 +1,31 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/src/main/java/io/bitsquare/gui/home/HomeController.java b/src/main/java/io/bitsquare/gui/home/HomeController.java index 839565d1d1..01bcac0eb1 100644 --- a/src/main/java/io/bitsquare/gui/home/HomeController.java +++ b/src/main/java/io/bitsquare/gui/home/HomeController.java @@ -1,126 +1,126 @@ -/* - * This file is part of Bitsquare. - * - * Bitsquare 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. - * - * Bitsquare 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 Bitsquare. If not, see . - */ - -package io.bitsquare.gui.home; - -import io.bitsquare.BitSquare; -import io.bitsquare.di.GuiceFXMLLoader; -import io.bitsquare.gui.CachedViewController; -import io.bitsquare.gui.NavigationItem; -import io.bitsquare.gui.ViewController; -import io.bitsquare.gui.arbitrators.registration.ArbitratorRegistrationController; -import java.io.IOException; -import java.net.URL; -import java.util.ResourceBundle; -import javafx.fxml.FXML; -import javafx.scene.Parent; -import javafx.scene.Scene; -import javafx.stage.Modality; -import javafx.stage.Stage; - -public class HomeController extends CachedViewController -{ - private ArbitratorRegistrationController arbitratorRegistrationController; - - /////////////////////////////////////////////////////////////////////////////////////////// - // Lifecycle - /////////////////////////////////////////////////////////////////////////////////////////// - - @Override - public void initialize(URL url, ResourceBundle rb) - { - super.initialize(url, rb); - } - - @Override - public void terminate() - { - super.terminate(); - } - - @Override - public void deactivate() - { - super.deactivate(); - } - - @Override - public void activate() - { - super.activate(); - } - - - /////////////////////////////////////////////////////////////////////////////////////////// - // Navigation - /////////////////////////////////////////////////////////////////////////////////////////// - - @Override - public ViewController loadViewAndGetChildController(NavigationItem navigationItem) - { - // don't use caching here, cause exc. -> need to investigate and is rarely called so no caching is better - final GuiceFXMLLoader loader = new GuiceFXMLLoader(getClass().getResource(navigationItem.getFxmlUrl()), false); - try - { - final Parent view = loader.load(); - arbitratorRegistrationController = loader.getController(); - arbitratorRegistrationController.setParentController(this); - - final Stage rootStage = BitSquare.getPrimaryStage(); - final Stage stage = new Stage(); - stage.setTitle("Arbitrator"); - stage.setMinWidth(800); - stage.setMinHeight(400); - stage.setWidth(800); - stage.setHeight(600); - stage.setX(rootStage.getX() + 50); - stage.setY(rootStage.getY() + 50); - stage.initModality(Modality.WINDOW_MODAL); - stage.initOwner(rootStage); - Scene scene = new Scene(view, 800, 600); - stage.setScene(scene); - stage.show(); - - return arbitratorRegistrationController; - } catch (IOException e) - { - e.printStackTrace(); - } - return null; - } - - - /////////////////////////////////////////////////////////////////////////////////////////// - // UI Handlers - /////////////////////////////////////////////////////////////////////////////////////////// - - @FXML - public void onArbitratorRegistration() - { - loadViewAndGetChildController(NavigationItem.ARBITRATOR_REGISTRATION); - } - - @FXML - public void onArbitratorEdit() - { - loadViewAndGetChildController(NavigationItem.ARBITRATOR_REGISTRATION); - arbitratorRegistrationController.setEditMode(true); - } - - -} - +/* + * This file is part of Bitsquare. + * + * Bitsquare 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. + * + * Bitsquare 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 Bitsquare. If not, see . + */ + +package io.bitsquare.gui.home; + +import io.bitsquare.BitSquare; +import io.bitsquare.di.GuiceFXMLLoader; +import io.bitsquare.gui.CachedViewController; +import io.bitsquare.gui.NavigationItem; +import io.bitsquare.gui.ViewController; +import io.bitsquare.gui.arbitrators.registration.ArbitratorRegistrationController; +import java.io.IOException; +import java.net.URL; +import java.util.ResourceBundle; +import javafx.fxml.FXML; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Modality; +import javafx.stage.Stage; + +public class HomeController extends CachedViewController +{ + private ArbitratorRegistrationController arbitratorRegistrationController; + + /////////////////////////////////////////////////////////////////////////////////////////// + // Lifecycle + /////////////////////////////////////////////////////////////////////////////////////////// + + @Override + public void initialize(URL url, ResourceBundle rb) + { + super.initialize(url, rb); + } + + @Override + public void terminate() + { + super.terminate(); + } + + @Override + public void deactivate() + { + super.deactivate(); + } + + @Override + public void activate() + { + super.activate(); + } + + + /////////////////////////////////////////////////////////////////////////////////////////// + // Navigation + /////////////////////////////////////////////////////////////////////////////////////////// + + @Override + public ViewController loadViewAndGetChildController(NavigationItem navigationItem) + { + // don't use caching here, cause exc. -> need to investigate and is rarely called so no caching is better + final GuiceFXMLLoader loader = new GuiceFXMLLoader(getClass().getResource(navigationItem.getFxmlUrl()), false); + try + { + final Parent view = loader.load(); + arbitratorRegistrationController = loader.getController(); + arbitratorRegistrationController.setParentController(this); + + final Stage rootStage = BitSquare.getPrimaryStage(); + final Stage stage = new Stage(); + stage.setTitle("Arbitrator"); + stage.setMinWidth(800); + stage.setMinHeight(400); + stage.setWidth(800); + stage.setHeight(600); + stage.setX(rootStage.getX() + 50); + stage.setY(rootStage.getY() + 50); + stage.initModality(Modality.WINDOW_MODAL); + stage.initOwner(rootStage); + Scene scene = new Scene(view, 800, 600); + stage.setScene(scene); + stage.show(); + + return arbitratorRegistrationController; + } catch (IOException e) + { + e.printStackTrace(); + } + return null; + } + + + /////////////////////////////////////////////////////////////////////////////////////////// + // UI Handlers + /////////////////////////////////////////////////////////////////////////////////////////// + + @FXML + public void onArbitratorRegistration() + { + loadViewAndGetChildController(NavigationItem.ARBITRATOR_REGISTRATION); + } + + @FXML + public void onArbitratorEdit() + { + loadViewAndGetChildController(NavigationItem.ARBITRATOR_REGISTRATION); + arbitratorRegistrationController.setEditMode(true); + } + + +} + diff --git a/src/main/java/io/bitsquare/gui/home/HomeView.fxml b/src/main/java/io/bitsquare/gui/home/HomeView.fxml index b96415b9b7..fdf20c6f20 100644 --- a/src/main/java/io/bitsquare/gui/home/HomeView.fxml +++ b/src/main/java/io/bitsquare/gui/home/HomeView.fxml @@ -1,35 +1,35 @@ - - - - - - - - - - - -