Action Button

From Openmoko

Jump to: navigation, search
Progress unknown: This article or section documents one or more features whose implementation has progress unknown.


Contents

Overview

The Phone Number Field Widget provides a general method to handle interactions with phone numbers

Usages Cases

Appearance & Interaction

View Mode

On Tap

image:Widget_field_phone_number.png

  • Dial

On Tap with Hold

Item Action Constraints
Dial Dials this number
Send SMS Opens the Messages application with a new SMS addressed to this number
Add to Contact Adds this number to a contact Grayed-out if number is within existing contact
Copy to Clipboard Copies event to clipboard

Edit Mode

image:Widget_field_phone_number_edit.png

While in Edit Mode, the Phone Field Widget, has the following modifiable regions:

  • 1) Remove Field -- On Tap will remove this widget.
  • 2) Add New Field -- On Tap will add a new copy of this widget (empty, but of the same type)
  • 3) Type
  • 4) Type Selector -- On Tap will open Popup Menu with the following structure:
  • 5) Text Field
Item Action Constraints
Mobile Sets phone number type to Mobile
Home Sets phone number type to Home
Work Sets phone number type to Work
Main Sets phone number type to Main
Fax Sets phone number type to Fax
Pager Sets phone number type to Pager
Other Sets phone number type to Other
Custom Opens Dialog prompting for custom type name

Constraints

(TBD)

UI Position

Image:Widget field edit phone p.png

Architectural Details

(TBD)

Implementation Recommendations

  • Could be derived from a GtkHBox
  • In View Mode, the actual phone number is shown using a GtkLabel
  • In Edit Mode, the actual phone number is shown using a GtkEntry

Cross-Widget Interactions

(TBD)

Unresolved Issues

  • How do we want to handle Custom types?
  • We are going to need to have a few non-removable fields. Otherwise, with this interface there is no way to (say) add another phone number, if there is only one, and it's removed.

Questions and Answers

(None)

Personal tools