indexing
description: "EiffelVision font selection dialog, mswindows implementation."
legal: "See notice at end of class."
status: "See notice at end of class."
date: "$Date: 2006-07-12 18:00:16 -0700 (Wed, 12 Jul 2006) $"
revision: "$Revision: 61268 $"
class interface
EV_FONT_DIALOG_IMP
create
make (an_interface: like interface)
`Current'`an_interface'
require EV_ANY_I
an_interface_not_void: an_interface /= Void
ensure EV_ANY_I
interface_assigned: interface = an_interface
base_make_called: base_make_called
feature
blocking_window: EV_WINDOW
EV_STANDARD_DIALOG_IMP
color: WEL_COLOR_REF
WEL_CHOOSE_FONT_DIALOG
require WEL_CHOOSE_FONT_DIALOG
exits: exists
ensure WEL_CHOOSE_FONT_DIALOG
result_not_void: Result /= Void
flags: INTEGER_32
WEL_CHOOSE_FONT_DIALOG
font: EV_FONT
`Current'
font_type: INTEGER_32
WEL_CHOOSE_FONT_DIALOG
require WEL_CHOOSE_FONT_DIALOG
selected: selected
ensure WEL_CHOOSE_FONT_DIALOG
valid_font_type: valid_font_type_constant (Result)
generating_type: STRING_8
ANY
generator: STRING_8
ANY
item: POINTER
WEL_ANY
log_font: WEL_LOG_FONT
WEL_CHOOSE_FONT_DIALOG
maximum_size: INTEGER_32
WEL_CHOOSE_FONT_DIALOG
minimum_size: INTEGER_32
WEL_CHOOSE_FONT_DIALOG
point_size: INTEGER_32
WEL_CHOOSE_FONT_DIALOG
require WEL_CHOOSE_FONT_DIALOG
selected: selected
title: STRING_32
`Current'
feature
structure_size: INTEGER_32
WEL_CHOOSE_FONT_DIALOG
ensure WEL_STRUCTURE
positive_result: Result > 0
feature
frozen deep_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
shallow_implies_deep: standard_equal (some, other) implies Result
both_or_none_void: (some = Void) implies (Result = (other = Void))
same_type: (Result and (some /= Void)) implies some.same_type (other)
symmetric: Result implies deep_equal (other, some)
frozen equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.is_equal (other))
frozen standard_equal (some: ANY; other: like arg #1): BOOLEAN
`some'`other'
ANY
ensure ANY
definition: Result = (some = Void and other = Void) or else ((some /= Void and other /= Void) and then some.standard_is_equal (other))
frozen standard_is_equal (other: like Current): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
same_type: Result implies same_type (other)
symmetric: Result implies other.standard_is_equal (Current)
feature
conforms_to (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
exists: BOOLEAN
item
WEL_ANY
ensure WEL_ANY
Result = (item /= default_pointer)
has_flag (a_flags: INTEGER_32): BOOLEAN
`a_flags'flags
`a_flags'
WEL_CHOOSE_FONT_DIALOG
same_type (other: ANY): BOOLEAN
`other'
ANY
require ANY
other_not_void: other /= Void
ensure ANY
definition: Result = (conforms_to (other) and other.conforms_to (Current))
selected: BOOLEAN
WEL_STANDARD_DIALOG
selected_button: STRING_32
EV_STANDARD_DIALOG_IMP
shared: BOOLEAN
item
item
destroy_item
item
WEL_ANY
feature {ANY}
valid_font_type_constant (c: INTEGER_32): BOOLEAN
`c'
WEL_FONT_TYPE_CONSTANTS
feature
set_blocking_window (a_window: EV_WINDOW)
`a_window'
EV_STANDARD_DIALOG_IMP
set_shared
shared
WEL_ANY
ensure WEL_ANY
shared: shared
set_unshared
shared
WEL_ANY
ensure WEL_ANY
unshared: not shared
show_modal_to_window (a_window: EV_WINDOW)
EV_STANDARD_DIALOG_IMP
require EV_STANDARD_DIALOG_I
True
feature
add_flag (a_flags: INTEGER_32)
`a_flags'flags
`a_flags'
WEL_CHOOSE_FONT_DIALOG
ensure WEL_CHOOSE_FONT_DIALOG
has_flag: has_flag (a_flags)
remove_flag (a_flags: INTEGER_32)
`a_flags'flags
`a_flags'
WEL_CHOOSE_FONT_DIALOG
ensure WEL_CHOOSE_FONT_DIALOG
has_not_flag: not has_flag (a_flags)
set_color (a_color: WEL_COLOR_REF)
color`a_color'
WEL_CHOOSE_FONT_DIALOG
ensure WEL_CHOOSE_FONT_DIALOG
color_set: color.is_equal (a_color)
set_dc (a_dc: WEL_DC)
`a_dc'
WEL_CHOOSE_FONT_DIALOG
require WEL_CHOOSE_FONT_DIALOG
a_dc_not_void: a_dc /= Void
a_dc_exists: a_dc.exists
set_flags (a_flags: INTEGER_32)
flags`a_flags'
`a_flags'
WEL_CHOOSE_FONT_DIALOG
ensure WEL_CHOOSE_FONT_DIALOG
flags_set: flags = a_flags
set_font (a_font: EV_FONT)
`a_font'
require EV_FONT_DIALOG_I
a_font_not_void: a_font /= Void
set_item (an_item: POINTER)
item`an_item'
WEL_ANY
ensure WEL_ANY
item_set: item = an_item
set_log_font (a_log_font: WEL_LOG_FONT)
log_font`a_log_font'
WEL_CHOOSE_FONT_DIALOG
require WEL_CHOOSE_FONT_DIALOG
a_log_font_not_void: a_log_font /= Void
ensure WEL_CHOOSE_FONT_DIALOG
log_font_set: log_font.item = a_log_font.item
set_maximum_size (size: INTEGER_32)
maximum_size`size'
WEL_CHOOSE_FONT_DIALOG
ensure WEL_CHOOSE_FONT_DIALOG
maximum_size_set: maximum_size = size
set_minimum_size (size: INTEGER_32)
minimum_size`size'
WEL_CHOOSE_FONT_DIALOG
ensure WEL_CHOOSE_FONT_DIALOG
minimum_size_set: minimum_size = size
set_title (new_title: STRING_GENERAL)
`new_title'title
feature
height: INTEGER_32
minimum_height: INTEGER_32
minimum_width: INTEGER_32
screen_x: INTEGER_32
screen_y: INTEGER_32
set_height (a: INTEGER_32)
require EV_POSITIONABLE_I
a_height_positive_or_zero: a >= 0
ensure EV_POSITIONABLE_I
height_assigned: height = minimum_height or else height = a
set_position (a, b: INTEGER_32)
ensure EV_POSITIONABLE_I
x_position_assigned: x_position = a
y_position_assigned: y_position = b
set_size (a, b: INTEGER_32)
require EV_POSITIONABLE_I
a_width_positive_or_zero: a >= 0
a_height_positive_or_zero: b >= 0
ensure EV_POSITIONABLE_I
width_assigned: width = minimum_width or else width = a
height_assigned: height = minimum_height or else height = b
set_width (a: INTEGER_32)
require EV_POSITIONABLE_I
a_width_positive_or_zero: a >= 0
ensure EV_POSITIONABLE_I
width_assigned: width = minimum_width or else width = a
set_x_position (a: INTEGER_32)
ensure EV_POSITIONABLE_I
x_position_assigned: x_position = a
set_y_position (a: INTEGER_32)
ensure EV_POSITIONABLE_I
y_position_assigned: y_position = a
width: INTEGER_32
x_position: INTEGER_32
y_position: INTEGER_32
feature
dispose
`Current'
`Current'
WEL_ANY
feature
frozen deep_copy (other: like Current)
copy`other'deep_twin
ANY
require ANY
other_not_void: other /= Void
ensure ANY
deep_equal: deep_equal (Current, other)
frozen deep_twin: like Current
ANY
ensure ANY
deep_equal: deep_equal (Current, Result)
frozen standard_copy (other: like Current)
`other'
ANY
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_standard_equal: standard_is_equal (other)
frozen standard_twin: like Current
`other'
ANY
ensure ANY
standard_twin_not_void: Result /= Void
equal: standard_equal (Result, Current)
frozen twin: like Current
`Current'
twincopycopy
ANY
ensure ANY
twin_not_void: Result /= Void
is_equal: Result.is_equal (Current)
feature
activate (a_parent: WEL_COMPOSITE_WINDOW)
`a_parent'
WEL_CHOOSE_FONT_DIALOG
require WEL_STANDARD_DIALOG
a_parent_not_void: a_parent /= Void
a_parent_exists: a_parent.exists
require EV_STANDARD_DIALOG_IMP
True
copy (other: like Current)
`other'
WEL_STRUCTURE
require ANY
other_not_void: other /= Void
type_identity: same_type (other)
ensure ANY
is_equal: is_equal (other)
frozen default: like Current
ANY
frozen default_pointer: POINTER
`POINTER'
`p'default
`p'`POINTER'
ANY
default_rescue
ANY
frozen do_nothing
ANY
structure_initialize
WEL_STRUCTURE
require WEL_STRUCTURE
exists: exists
initialize_with_character (a_character: CHARACTER_8)
`a_character'
WEL_STRUCTURE
require WEL_STRUCTURE
exists: exists
is_equal (other: like Current): BOOLEAN
`other'
WEL_STRUCTURE
require ANY
other_not_void: other /= Void
ensure ANY
symmetric: Result implies other.is_equal (Current)
consistent: standard_is_equal (other) implies Result
memory_copy (source_pointer: POINTER; length: INTEGER_32)
`length'`source_pointer'item
WEL_STRUCTURE
require WEL_STRUCTURE
length_small_enough: length <= structure_size
length_large_enough: length > 0
exists: exists
feature
cancel_actions: EV_NOTIFY_ACTION_SEQUENCE
EV_STANDARD_DIALOG_ACTION_SEQUENCES_I
ensure EV_STANDARD_DIALOG_ACTION_SEQUENCES_I
not_void: Result /= Void
create_cancel_actions: EV_NOTIFY_ACTION_SEQUENCE
EV_STANDARD_DIALOG_ACTION_SEQUENCES_IMP
require EV_STANDARD_DIALOG_ACTION_SEQUENCES_I
True
create_ok_actions: EV_NOTIFY_ACTION_SEQUENCE
EV_STANDARD_DIALOG_ACTION_SEQUENCES_IMP
require EV_STANDARD_DIALOG_ACTION_SEQUENCES_I
True
ok_actions: EV_NOTIFY_ACTION_SEQUENCE
EV_STANDARD_DIALOG_ACTION_SEQUENCES_I
ensure EV_STANDARD_DIALOG_ACTION_SEQUENCES_I
not_void: Result /= Void
feature
io: STD_FILES
ANY
out: STRING_8
ANYtagged_out
ANY
print (some: ANY)
`some'
ANY
frozen tagged_out: STRING_8
ANYout
ANY
feature
operating_environment: OPERATING_ENVIRONMENT
ANY
invariant
EV_ANY_I
interface_coupled: is_usable implies interface /= Void and then interface.implementation = Current
base_make_called: base_make_called
ANY
reflexive_equality: standard_is_equal (Current)
reflexive_conformance: conforms_to (Current)
EV_POSITIONED_I
minimum_width_positive_or_zero: is_usable implies minimum_width >= 0
minimum_height_positive_or_zero: is_usable implies minimum_height >= 0
indexing
copyright: "Copyright (c) 1984-2006, Eiffel Software and others"
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
source: "[
Eiffel Software
356 Storke Road, Goleta, CA 93117 USA
Telephone 805-685-1006, Fax 805-685-6869
Website http://www.eiffel.com
Customer support http://support.eiffel.com
]"
end EV_FONT_DIALOG_IMP