Commit Graph

753 Commits

Author SHA1 Message Date
Manfred Karrer
3811cabba1 Rename Preferences to Settings (#272) 2014-11-14 14:28:08 +01:00
Manfred Karrer
45f7a3b8fc Merge remote-tracking branch 'origin/master' 2014-11-14 14:12:11 +01:00
Manfred Karrer
745c62ab82 Use darwin as alternative for mac 2014-11-14 14:06:43 +01:00
Manfred Karrer
24c75a884e Fix os name for linux 2014-11-14 14:02:26 +01:00
Chris Beams
1d5673ebb1
Polish
- Use AtomicBoolean vs. SimpleBooleanProperty in TomP2PTests to avoid
   use of javax.* classes where they aren't otherwise necessary.

 - Reformat code globally to eliminate trailing whitespace and fix
   indentation

 - Optimize imports globally to eliminate unused imports
2014-11-14 08:56:06 +01:00
Manfred Karrer
c8ece38889 Use external IP not internal 2014-11-14 03:01:36 +01:00
Manfred Karrer
745cba983d Use currencyCode instead of locationKey 2014-11-14 03:01:01 +01:00
Manfred Karrer
61012bf6f9 Add logs at peer insert and remove 2014-11-14 02:08:12 +01:00
Manfred Karrer
9a010a1a4d Update to latest master 2014-11-14 01:34:44 +01:00
Manfred Karrer
ffbd991a3f Add btc network info at splash screen 2014-11-14 01:08:17 +01:00
Manfred Karrer
d6f97c65c4 Add new test (testParallelStartupWithPutGet) 2014-11-14 00:49:23 +01:00
Manfred Karrer
aedc58600a Update icon 2014-11-13 21:48:14 +01:00
Manfred Karrer
ead6db405a Update icon 2014-11-13 21:44:35 +01:00
Manfred Karrer
e42ab6c849 Update icon 2014-11-13 21:40:06 +01:00
Manfred Karrer
1b96f191e7 Update icon 2014-11-13 21:37:34 +01:00
Manfred Karrer
8ea9382383 Update icon 2014-11-13 21:32:37 +01:00
Manfred Karrer
b2ad621d9d Update icon 2014-11-13 21:30:39 +01:00
Manfred Karrer
805862289d Update icons 2014-11-13 21:24:40 +01:00
Manfred Karrer
3254417d2a Update icons 2014-11-13 21:20:13 +01:00
Manfred Karrer
95eaf2825c Add linux icon 2014-11-13 21:14:48 +01:00
Manfred Karrer
ff0b4c46d1 Use separate icons for windows and linux 2014-11-13 21:12:49 +01:00
Manfred Karrer
2be612513f Update alternative icon and fix path 2014-11-13 20:57:58 +01:00
Manfred Karrer
8e05b4446c Add alternative icon for linux 2014-11-13 20:48:14 +01:00
Manfred Karrer
8149611e0b Handle retina system tray icon 2014-11-13 15:00:58 +01:00
Chris Beams
f8c4ad27b7
Fix accidental renaming of command line property source 2014-11-13 12:51:48 +01:00
Chris Beams
f4eeb81390
Merge branch 'cbeams'
* cbeams:
  Polish FeePolicy
  Use BitcoinNetwork vs. BitcoinJ's NetworkParameters
  Use #ofType in commandline parsing for type safety
  Introduce customized JOptCommandLinePropertySource
  Expose network information to GUI cleanly

Conflicts:
	src/main/java/io/bitsquare/msg/tomp2p/TomP2PNode.java
2014-11-13 12:45:34 +01:00
Chris Beams
b0411393f5
Polish FeePolicy
- Convert static fields to final instance fields

 - Remove commented code

 - Rethrow any AddressFormatException as a BitsquareException instead of
   logging and returning null (doing so would cause NPEs in BitcoinJ
   internals).
2014-11-13 12:37:19 +01:00
Chris Beams
b911cd2a95
Use BitcoinNetwork vs. BitcoinJ's NetworkParameters
BitcoinNetwork now supports a #getParameters method that returns the
BitcoinJ NetworkParameters instance associated with the given
BitcoinNetwork enum label (e.g. TESTNET.getParameters() returns
TestNet3Params, etc).

BitcoinModule#BITCOIN_NETWORK_KEY and #DEFAULT_BITCOIN_NETWORK have been
moved to BitcoinNetwork#KEY and BitcoinNetwork#DEFAULT respectively.

Customzing the bitcoin network to use on the command line has been
improved. Values may be upper or lower case (e.g. "testnet", "TESTNET"),
and the value passed is converted to the correct BitcoinNetwork enum
value with the new EnumValueConverter class.

Finally, a BitcoinNetwork instance is now made available for injection
by BitcoinModule as opposed to binding a NetworkParameters instance. All
injection targets (constructors) throughout the codebase have been
updated to reflect this change, and the result is cleaner, enum-based
processing everywhere possible. And where it's necessary to drop down to
BitcoinJ's NetworkParameters, that's easy to do by calling
BitcoinNetwork#getParameters.
2014-11-13 12:31:47 +01:00
Manfred Karrer
14cdc3e4c2 Revert "Rename BootstrappedPeerFactory to BootstrappedPeerDHTBuilder"
This reverts commit 00455dfd7a.
2014-11-13 12:21:48 +01:00
Manfred Karrer
00455dfd7a Rename BootstrappedPeerFactory to BootstrappedPeerDHTBuilder 2014-11-13 12:13:51 +01:00
Manfred Karrer
a134c85f24 Remove double future callback in TomP2PNode, refactoring, cleanup 2014-11-13 12:12:49 +01:00
Chris Beams
8d70e23ba5
Use #ofType in commandline parsing for type safety
- Remove Node#getPortAsString; it is now no longer necessary
2014-11-13 12:10:22 +01:00
Chris Beams
0e167bed6c
Introduce customized JOptCommandLinePropertySource
This temporary subclass introduces the same change proposed in
spring-projects/spring-framework#693, and should be removed when that
pull request is merged and made available.
2014-11-13 12:09:37 +01:00
Chris Beams
c7f7b37572
Expose network information to GUI cleanly
This commit introduces io.bitsquare.network.ClientNode--an interface
whose name and structure will surely change--as a simplistic abstraction
over TomP2PNode that allows for exposing information to the "Network"
tab of the Preferences section of the GUI without actually requiring the
injection of TomP2PNode and other tomp2p internals into the GUI layer.

Changes to 'network' and 'msg' packages:
----------------------------------------

 - Move ConnectionType enum from test into main tree, and expose
   ClientNode#getConnectionType.

 - Both ClientNode and TomP2P are now available for injection. Both
   types are bound to the same TomP2P singleton instance. Note
   especially how NetworkPreferencesViewCB now receives a ClientNode
   instead of a TomP2PNode.

 - Restore package-private visibility to BootstrappedPeerFactory

 - Remove no longer necessary TomP2PNode#getPeerDHT

 - Expose getter for BootstrappedPeerFactory#bootstrapState

Changes to 'gui' package:
-------------------------

 - NetworkPreferencesViewCB has been simplified. All no-op methods have
   been removed, and the class now simply implements JavaFX's
   Initializable interface as opposed to Bitsquare's own ViewCB
   hierarchy, because the latter is not actually necessary (no caching
   is required for the data handled by this controller, etc.

 - In order to make the above possible, PreferencesViewCB now tolerates
   adding non-ViewCB child controllers.

 - NetworkPreferencesPM has been removed (perhaps temporarily), in an
   experiment to see "just how simple" CB controller classes can be.

 - Text fields in NetworkPreferencesView have been renamed.

Notes:
------

The data that now shows up in the "Network" tab is no longer formatted
as it once was; values are essentially nothing more than their #toString
representations. Again, this can be tweaked further, but leaving things
in this raw state provides an opportunity to discuss the current
presentation model approach, ViewCB hierarchy, etc.
2014-11-13 11:47:56 +01:00
Manfred Karrer
dc3911883c Handle shutdown in BootstrappedPeerFactory 2014-11-13 11:20:02 +01:00
Manfred Karrer
2521023025 Add null checks 2014-11-13 11:19:14 +01:00
Manfred Karrer
fe0dcb510c Add IndirectReplication 2014-11-13 11:03:18 +01:00
Manfred Karrer
ba64b79d3d Remove mBit from selection (see #271) 2014-11-13 03:31:40 +01:00
Manfred Karrer
0384c683c7 Fix wrong close handler (#270) 2014-11-13 03:09:12 +01:00
Manfred Karrer
d146a5a338 Add scaling for system tray icon (#242) 2014-11-13 02:52:49 +01:00
Manfred Karrer
704230fbdd Deactivate close tab button when funds are paid (#130) 2014-11-13 02:35:33 +01:00
Manfred Karrer
e459ce8419 Fix tx history update bug (#234) 2014-11-13 02:00:40 +01:00
Manfred Karrer
a86add2d9b Fix nullpointer 2014-11-13 01:45:39 +01:00
Manfred Karrer
19e0763ff5 Fix missing update in open trade screen (#244) 2014-11-13 01:43:48 +01:00
Manfred Karrer
f92f7de138 Cleanup 2014-11-13 01:02:43 +01:00
Manfred Karrer
f71d7c3bd4 Fix sorting bug in open trades (#239) 2014-11-13 00:52:16 +01:00
Manfred Karrer
2d5f1fb0e6 Remove web view for help 2014-11-13 00:41:33 +01:00
Manfred Karrer
59db93dbdc Use Utilities.openURL instead of Desktop.getDesktop().browse 2014-11-13 00:40:58 +01:00
Manfred Karrer
57faf40759 Fix missing update in open trades table (part of #239) 2014-11-13 00:28:33 +01:00
Chris Beams
d657763596
Merge branch 'cbeams'
* cbeams:
  Refactor SignatureService
  Polish formatting
  Rename io.bitsquare.crypto.{Crypto=>Signature}Service
  Replace 'Facade' naming with 'Service' naming
2014-11-12 14:07:13 +01:00