Sort Stations based on location
Filter Stations based on location
Change Terminology
Select Project from a list
Changes to support the iPhone

Sort Stations based on Geo Location
------------------------------------------------

StationsIndexVC:
	Add new control bar button for: Name/Near
	Name option sorts stations based on the station name.
Near option sorts stations based on the distance from current location
Call NBGeoLocation to get current location automatically
If fails call LocatioCell to enter current location manually.
	Drop Find button and replace with side A to Z index.
		DoFind index character and scroll to that row
	Add alert and setGeoLocation methods to support NBGeoLocationDelegate
	Add popup and setInputLocation methods to support LocationCellDelegate

Station:
	setCurLocation: new method to save current location
	distance: new method computes stations distance from current location

NBGeoLocation:
	start: Location Manager to get GeoLocation and set timeOut
		And popup Alert message:“Searching for the current location”
	Location Manager didUpdateLocation
Cancel Location Manager and timeOut
Update alert message to location found
	Location Manager didFailWithError
Cancel Location Manager and timeOut
Update alert message to Error message
	timeOut: Cancel Location Manager
Update alert message to “Search Timed Out”
	stop: Called when alert is cancelled
		If still active, Cancel Location Manager
		Return location (or zero) to caller setGeoLocation method
	textLocation, textLatitude:andLongitude: get location in text form

LocationCell:
	Create Latitude & Longitude pickers to select a location
	For iPad display Action Sheet in Popup View
	For iPhone display Action Sheet at bottom of screen
	Provides getLocation convenience method.
	Internal methods are the same as for other Cell types
	Returns location to caller setInputLocation method

Filter Stations based on location
------------------------------------------

FSStation
	createStation: Call NBRange: checkLocation when stations loaded
This ignores any stations outside the project area.

StationCreateVC
viewDidLoad: add call NBGeoLocation to get current location
automatically
	Add alert and setGeoLocation methods to support NBGeoLocationDelegate
If a valid location is returned use it else default to midpoint of
project.
	On Edit Location call LocationCell to edit the location manually
	Add popup and setInputLocation methods to support LocationCellDelegate
	onSave: call NBRange: alertLocation: verify location is within the
project area.
		If  OK -Create new Station, saveChanges and dismiss page.

NBRange
	Add new checkLocation and alertLocation methods.

NBSettings:
	Add new min and max latitude and longitude methods
Provide default values till the Project.plist files are updated

Project.plist
	Update files to add new min and max latitude and longitude fields

Change Terminology
---------------------------

HomeVC
	Change Project:  button to say Study:

ProjectIndexVC
	Change screen to say “Select a FieldScope Study.”
Change to Enter Site ID to Enter Project ID

Root.plist:
	Change Site ID prompt to Project ID

Select Project from a list
--------------------------------

ProjectIndexVC
	Change text input field to select from list of projects

NBSettings:
	Load SiteList from HomeURL/ProjectList.plist
	Provide default list till file available

ProjectList.plist
	Add a new file to HomeURL to contain the projects list

Changes to support the iPhone
-----------------------------------------

HomeViewController:
	Modify buttons and label fonts for iPhone using NBSettings
	Modify button size for the iPhone using NBSettings

ObservationViewController:
	Add generic Popup display and dismiss methods
	Drop ListPad and NumPad specific methods

PopupViewController:
Provide a common Load method to:
Call Cell specific method to display input form
Scale popup view to fit form

ListPadViewController and NumpadViewController:
	Dropped no longer needed

FieldCell:
	Provides Cell Layouts (Field frames)
	For different device types and orientations

StringCell and NotesCell:
	Scale input area for device type and orientation
	For iPhone Notes provide Save button to dismiss keyboard

RangeCell:
	Scale input area for device type and orientation

ListCell:
	Create Action Sheet to display Option List
	For iPad display Action Sheet in Popup View
	For iPhone display Action Sheet at bottom of screen

NumberCell:
	Create fields to display a Numeric Pad
Provides Cell Layouts (Button frames) for different device type
	For iPad display Action Sheet in Popup View
	For iPhone display Action Sheet at bottom of screen
	Display range errors messages in input area


StationCreateController
	Add Popup View for iPad using PopupViewController
	Use LocationCell to edit the location

LocationCell:
	Create Latitude & Longitude pickers to select a location
	For iPad display Action Sheet in Popup View
	For iPhone display Action Sheet at bottom of screen

TransmitViewController:
	Modify buttons and label fonts for iPhone using NBSettings
	Modify button size for the iPhone using NBSettings

LoginViewController:
	Modify labels and fields for iPhone

NBSettings:
	Provide device type and orientation
	Provide fonts for different device types
	Modify buttons and label fonts for iPhone
	Modify button size for the iPhone

NBRange:
	For iPad create Alerts
	For iPhone return message
Home View Controller
Merge branch 'Richard6'

Conflicts:
	NatureBridge.xcodeproj/project.pbxproj
	NatureBridge/HomeViewController.xib
Resolve conflicts
Resolve conflicts