stlab.adobe.com Adobe Systems Incorporated

Presets widget. More...

#include <platform_presets.hpp>

List of all members.

Public Types

typedef dictionary_t model_type
typedef dictionary_t model_type
typedef popup_t::setter_type setter_type
typedef preset_setter_type setter_type

Public Member Functions

void display (const model_type &value)
void display_additional_preset_set (const array_t &value)
void display_additional_preset_set (const array_t &value)
void do_imbue (const popup_t::model_type &value)
void measure (extents_t &result)
void monitor (const setter_type &proc)
void place (const place_data_t &place_data)
 presets_t (const std::string &name, const std::string &domain, const std::string &alt_text, const array_t &bind_set, const dictionary_t &localization_set, theme_t theme)
 presets_t (const std::string &name, const std::string &domain, const std::string &alt_text, const array_t &bind_set, const dictionary_t &localization_set, theme_t theme)
void snapshot_callback (const model_snapshot_proc_t &proc)
void snapshot_callback (const model_snapshot_proc_t &proc)
Placeable Concept Operations

See the Placeable concept and placeable::hpp for more information.

void measure (extents_t &result)
void place (const place_data_t &place_data)
View Concept Operations

See the View concept and view::hpp for more information.

void display (const model_type &value)
Controller Concept Operations

See the Controller concept and controller::hpp for more information.

void monitor (const setter_type &proc)

Public Attributes

std::string alt_text_m
array_t bind_set_m
popup_t category_popup_m
array_t composite_m
HWND control_m
bool custom_m
array_t default_preset_set_m
std::string domain_m
array_t dynamic_preset_set_m
dictionary_t last_m
dictionary_t localization_set_m
std::string name_m
long popup_height_m
popup_t popup_m
setter_type proc_m
bool selected_m
model_snapshot_proc_t snapshot_proc_m
theme_t theme_m
bool type_2_debounce_m
array_t user_preset_set_m

Detailed Description

UI core presets widget.

Model Of:

The semantics of a preset widget is a widget that can save and restore "snapshots" of the state of the current model. These snapshots are given a name and can be recalled and imposed upon a model at any time, allowing for the user of the model to preserve, well, presets.

The semantics of a preset widget is a widget that can save and restore "snapshots" of the state of the current model. These snapshots are given a name and can be recalled and imposed upon a model at any time, allowing for the user of the model to preserve, well, presets.

Definition at line 80 of file macintosh/adobe/future/widgets/headers/platform_presets.hpp.


Member Typedef Documentation

model type for this widget

Definition at line 83 of file macintosh/adobe/future/widgets/headers/platform_presets.hpp.

typedef preset_setter_type setter_type

controller callback proc type for this widget

Definition at line 86 of file macintosh/adobe/future/widgets/headers/platform_presets.hpp.


Constructor & Destructor Documentation

presets_t ( const std::string &  name,
const std::string &  domain,
const std::string &  alt_text,
const array_t bind_set,
const dictionary_t localization_set,
theme_t  theme 
)
Parameters:
namePreset file name (xyz becomes xyz.preset)
domainDomain of the widget (usually the name of the application)
alt_textAdditional help text for the widget when the user pauses over it
bind_setArray of name/string pairs that area values which will be saved/restored by presets
localization_setSet of named arguments that contain the basic string keys for localization of widget-private resources (e.g., the keys used in the add/delete subdialogs to the preset widget).
themeTheme for the widget
Note:
If the presets is set to a value other than true_value or false_value, the presets gets a 'dash' (undefined) state.
presets_t ( const std::string &  name,
const std::string &  domain,
const std::string &  alt_text,
const array_t bind_set,
const dictionary_t localization_set,
theme_t  theme 
)
Parameters:
namePreset file name (xyz becomes xyz.preset)
domainDomain of the widget (usually the name of the application)
alt_textAdditional help text for the widget when the user pauses over it
bind_setArray of name/string pairs that area values which will be saved/restored by presets
localization_setSet of named arguments that contain the basic string keys for localization of widget-private resources (e.g., the keys used in the add/delete subdialogs to the preset widget).
themeTheme for the widget
Note:
If the presets is set to a value other than true_value or false_value, the presets gets a 'dash' (undefined) state.

Member Function Documentation

void display ( const model_type value )
void display ( const model_type value )
Parameters:
valuePreset settings to which we need to be set
void display_additional_preset_set ( const array_t value )
Note:
This function is to allow for the preset widget to obtain runtime-generated presets from the application (or property model) as is required by the app.
Parameters:
valueSet of additional preset data to be added to the preset listings
void display_additional_preset_set ( const array_t value )
Parameters:
valueSet of additional preset data to be added to the preset listings
void do_imbue ( const popup_t::model_type value )
void measure ( extents_t result )
void measure ( extents_t result )
Parameters:
resultThe ideal extent values for this widget given its current attributes
void monitor ( const setter_type proc )
Parameters:
procProcedure called to imbue the model with preset data

Definition at line 97 of file windows/adobe/future/widgets/headers/platform_presets.hpp.

void monitor ( const setter_type proc )
void place ( const place_data_t place_data )
Parameters:
place_dataPosition information to apply to the widget
void place ( const place_data_t place_data )
void snapshot_callback ( const model_snapshot_proc_t proc )
Parameters:
procProcedure called when a model snapshot is needed

Definition at line 103 of file windows/adobe/future/widgets/headers/platform_presets.hpp.

void snapshot_callback ( const model_snapshot_proc_t proc )
Parameters:
procProcedure called when a model snapshot is needed

Definition at line 157 of file macintosh/adobe/future/widgets/headers/platform_presets.hpp.


Member Data Documentation

std::string name_m

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google