Adobe Source Libraries 1.49.0
A collection of C++ libraries.
Loading...
Searching...
No Matches
Widget Reference
Author
Sean Parent, Adobe Systems Incorporated
Foster Brereton, Adobe Systems Incorporated
Date
January 7, 2005

Abstract

This document serves as a reference guide for the widgets one can define for the current implementation of Adobe Begin.

Table of Contents

  1. Widget Set Overview
  2. Views Reference
    1. Common View Attributes
    2. View Classes
      1. bevel_button
        1. button_beveled
        2. checkbox_beveled
        3. radio_button_beveled
        4. popup_beveled
      2. button
      3. checkbox
      4. edit_number
      5. edit_text
      6. link
      7. popup
      8. progress_bar
      9. radio_button
      10. separator
      11. slider
      12. static_text
  3. Containers Reference
    1. Common Container Attributes
    2. Container Classes
      1. Root-Level Containers
        1. dialog
        2. palette
      2. Nestable Containers
        1. column
        2. group
        3. overlay
        4. panel
        5. row
        6. tab_group

Widget Set Overview

The widget set is best split into two categories: views and containers.
A View is a "leaf node" widget like a button or a separator. A view cannot contain any views inside of it. Views define interface elements presented to the user.
Containers are also views (and inherit all the attributes of a view), but can have subviews within themselves, including other containers. Containment denotes the layout relationships between subviews. Containers do not necessarily add interface elements to the dialog (though they can).
There is also a set of root container classes. Only one root container is allowed per dialog, and it must be the topmost container in the defintion, otherwise the resulting dialog is undefined.

Views Reference

Common View Attributes

attributetypedefaultdescription
indentnumber0Cross-stream indentation in pixels.
horizontalalignmentalign_left
verticalalignmentalign_top
guide_maskarray[ ]guides to suppress - current values are guide_baseline, guide_label.
namestring""displayed name of view
bindnameemptyattached Adam cell
bind_indirectnameemptyAdam cell containing the name of the Adam cell to attach
toucharray[ ]Adam cells to touch when set
identifiernameemptyidentifier for this widget
sizeenumeration@size_normalValid values are one of @size_mini, @size_small, @size_normal. Specifies the size of the text used for the widget.
focusnameemptyattaches Adam cell to keyboard focus (identifier is value)

View Classes

bevel_button

The bevel button is a multi-use widget, and can emulate several other types of widgets. In fact, you cannot specify a bevel_button directly, but must invoke it as emulating another widget. The possible bevel_button variants are:
  • button_beveled
  • checkbox_beveled
  • radio_button_beveled
  • popup_beveled
attributetypedefaultdescription
namestring""Name of the button
value_onanythingn/aValue to set the bound cell to when clicking the button in the off/neutral state. Useful when behaving as a radio button and checkbox.
value_offanythingn/avalue to set the bound cell to when clicking the button in the on state. Useful when behaving as a radio button and checkbox.
popup_bindnameemptyname of cell to which bevel button is bound. Useful when behaving as a popup.
itemsarray[ ]Specifies menu contents. Useful when behaving as a popup.
items[]dictionary{ }Single menu item specification. Useful when behaving as a popup.
items[].namestring""Name of a given menu item. Useful when behaving as a popup.
items[].valuenameemptyValue to set the popup_bind cell to when this item is selected. Useful when behaving as a popup.
popup_placementenumeration@rightValid values are one of @right or @down. Arrow direction and menu location. Useful when behaving as a popup.
bevel_thicknessenumeration@normalValid values are one of @small, @normal, @large, @rounded. Specifies bevel button bevel style

button

attributetypedefaultdescription
defaultbooleanfalseset to true for default button behavior
cancelbooleanfalseset to true for cancel button behavior
actionenumerationrequiredValid values are one of @reset, @cancel, or @dialog. Action for button to perform in the default state
bind_outputnameemptyIf set, imposes value to the bound cell. bind_output and action are mutually exclusive. If both are set for a widget then bind_output will take precedence.
valuestring""When the action is @dialog, specifies the name of the subdialog to open. When bind_output is set, it is the value imposed onto the cell.
itemsarray[ ]Specifies alternate namings of button based on modifier key states
items[]dictionary{ }Alternate button state specification
items[].namestring""Name of button for given modifier key state
items[].actionenumerationrequiredValid values are one of @reset, @cancel, or @dialog. Action button for given modifier key state
items[].valuestring""When the action is @dialog for this state, specifies the name of the subdialog to open
items[].modifiersenumerationno modifiersValid values are some name which is a combination of "opt", "ctl", "cmd" in that order. Specification of the button modifier keys that need to be held down for this state to be in effect. For example, @optctl would set the state to this one when the option and control keys are pressed. Note that the order matters, so @optctl is valid while @ctlopt is not.

checkbox

attributetypedefaultdescription
valueanyrequiredValue to impose upon the cell when the checkbox is clicked; also the value the cell must be set to in order for the checkbox to display selected.
toucharray of cell names[ ]When a checkbox is hit, specifies the other cells that should be made recently changed as well

edit_number

attributetypedefaultdescription
digitsnumber5specifies width as approximate number of characters
display_disableboolfalseWhen field is disabled, this will replace the edit text field with a static text field
toucharray of cell names[ ]When a field is modified, specifies the other cells that should be made recently changed as well
formatstring or name"#.00"printf style format for Adam cell containing format
unitsarray[ ]Specifies unit popup contents (See adobe::unit_t)

edit_text

attributetypedefaultdescription
charactersnumber10Specifies width as approximate number of characters (columns)
linesint1Number of lines (rows) tall the edit text field should be
monospacedboolfalseSpecifies whether or not to use a monospaced 10-point font in this control
scrollableboolfalseSpecifies whether or not to attach horizontal and vertical scrollers to this text field.
passwordboolfalseSpecifies whether or not to hide the characters entered into this text field.

link

attributetypedefaultdescription
countnumber2number of prongs drawn in linkage
value_onanyn/aValue that must be set in cell for link to be displayed
value_offanyn/aValue to impose upon bound cell when the link is clicked on

popup

attributetypedefaultdescription
itemsarray[ ]array of menu item elements
items[]dictionaryn/amenu item element
items[].namestringn/aname of menu item
items[].valueanyn/avalue of menu item

progress_bar

attributetypedefaultdescription
formatdictionary{ }Semantic specification of the progress bar
format.firstlong0minimum value allowed
format.lastlong100maximum value allowed
format.intervallong1Step value for increments between first and last
is_indeterminateboolfalseSpecifies an indeterminate (aka barber-pole) progress bar style
is_relevanceboolfalseSpecifies an relevance bar style
orientationidentifier@horizontalCould also be @vertical. Specifies the direction of the progress bar.

radio_button

attributetypedefaultdescription
valueanyrequiredValue to impose upon the cell when the button is clicked; also the value the cell must be set to in order for the button to display selected.
toucharray of cell names[ ]When a radio button is hit, specifies the other cells that should be made recently changed as well

separator

attributetypedefaultdescription
orientationenumeration@horizontal(could also be @vertical). Specifies the direction of the separator's growth. Alignment for that direction will be set to align_fill.

slider

attributetypedefaultdescription
formatdictionary{ }Semantic specification of the slider
format.firstlong0minimum value allowed
format.lastlong100maximum value allowed
format.intervallong1Step value for increments between first and last

static_text

attributetypedefaultdescription
wrapbooleanfalseif true, text is wrapped to available space

Containers Reference

Common Container Attributes

attributetypedefaultdescription
placementplacementplace_column
child_horizontalalignmentalign_left
child_verticalalignmentalign_top
spacingnumber or arrayspace_normal

Container Classes

dialog

This is a root container class.
attributetypedefaultdescription
placementplacementplace_rowdifferent default than container
metalboolfalseAllows for the metallic look on a dialog
growboolfalseallows for the dialog to be resized by the user

palette

This is a root container class.
attributetypedefaultdescription
metalboolfalseAllows for the metallic look on a dialog
growboolfalseallows for the dialog to be resized by the user

column

attributetypedefaultdescription
placementplacementplace_columna simple column container

group

attributetypedefaultdescription
namestring""Name of this group

overlay

attributetypedefaultdescription
placementplacementplace_overlaya simple overlay container
horizontalalignmentalign_fill
verticalalignmentalign_fill

panel

attributetypedefaultdescription

row

attributetypedefaultdescription
placementplacementplace_rowa simple row container

tab_group

attributetypedefaultdescription
items[]dictionaryrequiredtab specification
items[].namestringrequiredname of the tab
items[].valueanyn/avalue of the tab