UbuntuUserInterfaceToolkit.overview-ubuntu-sdk

General Topics

Basic QML Types

Available through:

import Ubuntu.Components 1.3

AbstractButton

Defines the behavior of the button

Action

Describe an action that can be re-used and shared between different components

ActionBar

Show a row of buttons that trigger actions. When the number of visible actions specified is larger than numberOfSlots, an overflow button will be shown which triggers an overflow panel that shows the remaining actions

ActionContext

Groups actions together and by providing multiple contexts the developer is able to control the visibility of the actions. The ActionManager then exposes the actions from these different contexts

ActionItem

A visual representation of an Action. The API of ActionItem is a copy of the API of Action, with additional properties to define visual aspects of the ActionItem

ActionList

List of Action items An ActionList provies a way of grouping actions together

ActionManager

Manages actions and action contexts withion an application

ActivityIndicator

Component visually indicates that a task of unknown duration is in progress, e.g. busy indication, connection in progress indication, etc

AdaptivePageLayout

View with multiple columns of Pages

BottomEdge

A component to handle bottom edge gesture and content

BottomEdgeHint

Shows the availability of extra features available from the bottom edge of the application

BottomEdgeRegion

Defines an active region within the BottomEdge component

Button

Standard Ubuntu button

CheckBox

Component with two states, checked or unchecked. It can be used to set boolean options. The behavior is the same as Switch, the only difference is the graphical style

Clipboard

This is a singleton type providing access to the system clipboard

ComboButton

Ubuntu button providing a drop-down panel visualizing custom options

CrossFadeImage

An Image like component which smoothly fades when its source is updated

ExclusiveGroup

Way to declare several checkable controls as mutually exclusive

FontUtils

Context property, which provides utility functions for font manipulations

Header

Bar that can contain the title and controls for the current view

Icon

Component displays an icon from the icon theme

InverseMouse

Attached object filtering mouse events occured outside the owner

InverseMouseArea

Captures mouse events happening outside of a given area

Label

Extended Text item with Ubuntu styling

ListItemLayout

Easy way to create list items which follow Ubuntu design standards, thus making them visually appealing and consistent with the rest of the platform without effort

LiveTimer

A live timing source providing peridioc updates

MainView

The root Item that should be used for all applications

Menu

Defines a context menu or submenu structure of a MenuBar

MenuBar

Defines an application menu bar structure

MenuGroup

Logical list of items for a menu

MimeData

Type provides interface to access and store data to the Clipboard

Mouse

Attached property filtering mouse events occured inside the owner

OrientationHelper

Automatically rotates its children following the orientation of the device

Page

A page is the basic Item that represents a single view in an Ubuntu application. It is recommended to use the Page inside the MainView or AdaptivePageLayout

PageColumn

Component configuring the metrics of a column in AdaptivePageLayout

PageColumnsLayout

Component configuring a layout in an AdaptivePageLayout component

PageHeader

Shows a title with a leading and a trailing ActionBar that add action buttons to the header

PageStack

A stack of Page items that is used for inter-Page navigation. Pages on the stack can be popped, and new Pages can be pushed. The page on top of the stack is the visible one

Panel

A panel that can be swiped in and out from an edge of the window by the user. For most applications, it is highly recommended to use the MainView instead which includes a toolbar at its bottom that can be swiped in or out

PopupContext

A special ActionContext used in Dialogs and Popups

ProgressBar

Component visually indicates the progress of a process of determinate or indeterminate duration

ProgressionSlot

Holds an icon representing the progression symbol

ProportionalShape

Extended UbuntuShape mostly used for icons and vignettes

PullToRefresh

Pull-to-refresh component for Flickables to reload a model upon pull

ScrollView

Scrollable view that features scrollbars and scrolling via keyboard keys

Scrollbar

Component provides scrolling functionality for scrollable views (i.e. Flickable, ListView)

Sections

Display a list of sections that the user can select. By tapping on a section name the selectedIndex will be updated, and the associated Action is triggered

Slider

Component to select a value from a continuous range of values

SortFilterModel

Sorts and filters rows from an existing model

StyleHints

Component holding style specific properties to configure a particular StyledItem's style runtime

StyledItem

Allows items to be styled by the theme

Switch

Component with two states, checked or unchecked. It can be used to set boolean options. The behavior is the same as CheckBox, the only difference is the graphical style

TextArea

Item displays a block of editable, scrollable, formatted text

TextField

Element displays a single line of editable plain text. Input constraints can be set through validator or inputMask. Setting echoMode to an appropriate value enables TextField to be used as password input field

Toolbar

That can be used as an extension for the edit mode header. Example:

Ubuntu

Provides global object with different enums

UbuntuAnimation

Singleton defining standard Ubuntu durations and easing for animations that should be used to ensure that Ubuntu applications are consistent in their animations

UbuntuApplication

QML binding for a subset of QCoreApplication

UbuntuColors

Singleton defining the Ubuntu color palette

UbuntuListView

A ListView with special features tailored for a look and feel fitting the Ubuntu Touch platform. The UbuntuListView works just like a regular ListView, but it adds special features such as expanding/collapsing items (when used together with the Expandable item). It provides features like automatically positioning the expanding item when it expands and collapsing it again when the user taps outside of it

UbuntuNumberAnimation

NumberAnimation that has predefined settings to ensure that Ubuntu applications are consistent in their animations

UbuntuShape

Rounded rectangle containing a source image blended over a background color

UbuntuShapeOverlay

Extended UbuntuShape adding a colored overlay layer

UriHandler

Singleton signalling for opened URIs

dateUtils

Various date utility functions

i18n

Context property that provides internationalization support

mathUtils

Various mathematical utility functions

Gestures

Available through:

import Ubuntu.Components 1.3

SwipeArea

An area which detects axis-aligned single-finger drag gestures

List views, list items

Components with standardized view items, with conditional actions, multiselect and reordering support on scrollable views. Replaces the Ubuntu.Components.ListItems module components.

Available through:

import Ubuntu.Components 1.3

Captions

Container providing captionStyles for a twin-label column that can be used in RowLayout or GridLayout

ListItem

Element provides Ubuntu design standards for list or grid views. The ListItem component was designed to be used in a list view. It does not define any specific layout, but while its contents can be freely chosen by the developer, care must be taken to keep the contents light in order to ensure good performance when used in long list views

ListItemActions

Provides configuration for actions to be added to a ListItem

ListItemDrag

Provides information about a ListItem drag event

ViewItems

A set of properties attached to the ListItem's parent item or ListView

List Items module - deprecated

This module contains the old set of list items.

Available through:

import Ubuntu.Components.ListItems 1.3

Base

Parent class of various list item classes that can have an icon and a progression symbol

Caption

List item that shows a piece of text

Divider

To break up list items into groups

Empty

A list item with no contents

Expandable

An expandable list item with no contents. The Expandable class can be used for generic list items containing other components such as buttons. It subclasses Empty and thus brings all that functionality, but additionally provides means to expand and collapse the item

ExpandablesColumn

A column to be used together with the Expandable item. This lays out its content just like a regular Column inside a Flickable but when used together with items of type Expandable it provides additional features like automatically positioning the expanding item when it expands and collapsing it again when the user taps outside of it

ItemSelector

ListItem displaying either a single selected value or expanded multiple choice with an optional image and subtext when not expanded, when expanding it opens a listing of all the possible values for selection with an additional option of always being expanded. If multiple choice is selected the list is expanded automatically

MultiValue

List item displaying multiple values

SingleControl

A list item containing a single control

SingleValue

A list item displaying a single value

Standard

Standard list item class. It shows a basic list item with a label (text), and optionally an icon, a progression arrow, and it can have an embedded Item (control) that can be used for including Buttons, Switches etc. inside the list item

Subtitled

List item displaying a second string under the main label

ThinDivider

Narrow line used as a divider between ListItems

ValueSelector

List item displaying single selected value when not expanded, where expanding it opens a listing of all the possible values for selection

Pickers

Available through:

import Ubuntu.Components.Pickers 1.3

DatePicker

Component provides date and time value picking functionality

Picker

Slot-machine style value selection component

PickerDelegate

Component serves as base for Picker delegates

PickerPanel

Provides a panel for opening a DatePicker in place of the input panel or as Popover, depending on the form factor

Popovers, Sheets and Dialogs

Available through:

import Ubuntu.Components.Popups 1.3

ActionSelectionPopover

A special popover presenting actions to the user. The popover is closed automatically when the action is chosen

Dialog

Caters for cases in which the application requires the user to determine between optional actions. The Dialog will interrupt the user flow and lock the view for further interaction before the user has selected a desired action. It can only be closed by selecting an optional action confirming or cancelling the operation

Popover

A popover allows an application to present additional content without changing the view. A popover has a fixed width and automatic height, depending on is contents. It can be closed by clicking anywhere outside of the popover area

PopupBase

Base class for all dialogs, sheets and popovers. Do not use directly

popupUtils

Popover utility functions

Layouting

Available through:

import Ubuntu.Layouts 1.0

ConditionalLayout

Defines the layout of a given form factor

ItemLayout

Defines a new size & position of a single Item, for the purposes of specifying layouts. This is to be used within a ConditionalLayout definition

Layouts

Component allows one to specify multiple different layouts for a fixed set of Items, and applies the desired layout to those Items

Theming Elements

Available through:

import Ubuntu.Components 1.3

Palette

Of colors from the theme that widgets use to draw themselves

PaletteValues

Color values used for a given widget state

Theme

Facilities to interact with the current theme

ThemeSettings

Facilities to define the theme of a StyledItem

Theme module

Available through:

import Ubuntu.Components.Themes 1.3

Palette

Provides the palette of colors from the theme that widgets use to draw themselves

PaletteValues

Color values used for a given widget state

Style API

The Style API defines the interface components use to style the visuals. Themes must make sure that these interfaces are all implemented. Available through:

import Ubuntu.Components.Styles 1.3

ActionBarStyle

Style API for action bar

ActionItemProperties

Color properties for buttons

BottomEdgeStyle

Style API for BottomEdge content holder panel

ComboButtonStyle

Style API for ComboButton component

ListItemStyle

Style API for ListItem component

PageHeadStyle

Style API for page header

PageHeaderStyle

Style API for page header

PullToRefreshStyle

Style API for PullToRefresh component

SectionsStyle

Style API for Sections

ToolbarStyle

Style API for toolbar

Resolution Independence Items

Available through:

import Ubuntu.Components 1.3

Units

Of measurement for sizes, spacing, margin, etc

Parsing Command-Line Arguments

Available through:

import Ubuntu.Components 1.3

Argument

Specifies what type a given command line parameter should be

Arguments

Way to declare what command line parameters are expected by the application

Services

Available through:

import Ubuntu.Components 1.3

Alarm

Component is a representation of an alarm event

AlarmModel

Holds the list of alarms defined

Haptics

Singleton defining the haptics feedback used in components, where execution of the feedback is controlled by the system settings

ServiceProperties

Component enables accessing service properties from QML

StateSaver

Attached properties to save component property states

Performance Metrics

Available through:

import Ubuntu.PerformanceMetrics 1.0
Labs

The Labs module contains a set of components which have unstable API. Those should not be used in applications as their interface may change any time. Available through:

import Ubuntu.Components.Labs 1.0

SplitView

A view component with a flexible layout configuration setup

SplitViewLayout

Layout configuration for SplitView

ViewColumn

View column metrics configuration for SplitView

Test extensions

Available through:

import Ubuntu Test 1.3

MouseTouchAdaptor

Singleton type turning mouse events into single finger touch events

TestExtras

Singleton type providing additional test functions

UbuntuTestCase

Expands the default TestCase class

UbuntuTestCase13

UbuntuTestCase class expands the default TestCase class

  翻译: