stlab.adobe.com Adobe Systems Incorporated

Popup widget. More...

#include <platform_popup.hpp>

List of all members.

Public Types

typedef popup_extended_setter_type extended_setter_type
typedef popup_extended_setter_type extended_setter_type
typedef std::vector< menu_item_tmenu_item_set_t
typedef std::pair< std::string,
any_regular_t
menu_item_t
typedef any_regular_t model_type
typedef any_regular_t model_type
typedef popup_setter_type setter_type
typedef popup_setter_type setter_type

Public Member Functions

void display (const any_regular_t &item)
void enable (bool make_enabled)
void measure (extents_t &result)
void monitor (const setter_type &proc)
void monitor_extended (const extended_setter_type &extended_proc)
void monitor_extended (const extended_setter_type &proc)
void place (const place_data_t &place_data)
 popup_t (const std::string &name, const std::string &alt_text, const std::string &custom_item_name, const menu_item_t *first, const menu_item_t *last, theme_t theme)
 popup_t (const std::string &name, const std::string &alt_text, const std::string &custom_item_name, const menu_item_t *first, const menu_item_t *last, theme_t theme)
void reset_menu_item_set (const menu_item_t *first, const menu_item_t *last)
void reset_menu_item_set (const menu_item_set_t &menu_item_set)
void reset_menu_item_set (const menu_item_t *first, const menu_item_t *last)
void reset_menu_item_set (const menu_item_set_t &menu_item_set)
void select_with_text (const std::string &text)
void select_with_text (const std::string &text)
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 any_regular_t &value)
Controller Concept Operations

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

void monitor (const setter_type &proc)
void enable (bool make_enabled)

Public Attributes

std::string alt_text_m
HWND control_m
std::string custom_item_name_m
bool custom_m
extended_setter_type extended_value_proc_m
model_type last_m
menu_item_set_t menu_items_m
label_t name_m
long popup_baseline_m
long popup_height_m
long static_baseline_m
long static_height_m
theme_t theme_m
bool type_2_debounce_m
bool using_label_m
setter_type value_proc_m

Detailed Description

Model Of:

The semantics of a popup are that of a selector between enumerated values. One would use it when you have a specific set of options from which the user may choose one. At this time the selection of multiple options in the popup at once is not supported.

Definition at line 98 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.


Member Typedef Documentation

typedef std::pair<std::string, any_regular_t> menu_item_t

model type for this widget

Definition at line 101 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.

controller callback proc type for this widget

Definition at line 104 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.


Constructor & Destructor Documentation

popup_t ( const std::string &  name,
const std::string &  alt_text,
const std::string &  custom_item_name,
const menu_item_t first,
const menu_item_t last,
theme_t  theme 
)
Parameters:
nameName of the widget
alt_textAdditional help text for the widget when the user pauses over it
custom_item_nameName to be used for when no item in the cell matches a popup item
firstThe first menu item in the list
lastOne-past-the-back of the menu item list
themeTheme for the widget
popup_t ( const std::string &  name,
const std::string &  alt_text,
const std::string &  custom_item_name,
const menu_item_t first,
const menu_item_t last,
theme_t  theme 
)

Member Function Documentation

void display ( const any_regular_t value )
void display ( const any_regular_t item )
void enable ( bool  make_enabled )
void enable ( bool  make_enabled )
void measure ( extents_t result )
void measure ( extents_t result )
void monitor ( const setter_type proc )
void monitor ( const setter_type proc )
void monitor_extended ( const extended_setter_type extended_proc )
void monitor_extended ( const extended_setter_type proc )
void place ( const place_data_t place_data )
void place ( const place_data_t place_data )
void reset_menu_item_set ( const menu_item_t first,
const menu_item_t last 
)
void reset_menu_item_set ( const menu_item_set_t menu_item_set )
void reset_menu_item_set ( const menu_item_t first,
const menu_item_t last 
)
Parameters:
firstThe first menu item in the list
lastOne-past-the-back of the menu item list

Resets the popup with a new list of menu items.

void reset_menu_item_set ( const menu_item_set_t menu_item_set )

Resets the popup with a new list of menu items.

Definition at line 138 of file macintosh/adobe/future/widgets/headers/platform_popup.hpp.

void select_with_text ( const std::string &  text )
Parameters:
textthe text to match to the popup menu entry

Tries to set the currently selected option in the popup by matching a string

void select_with_text ( const std::string &  text )

Member Data Documentation

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