Automatic generation produced by ISE Eiffel

Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:
note description: "SD_STATE for  SD_AUTO_HIDE_ZONE." legal: "See notice at end of class." status: "See notice at end of class." date: "$Date: 2017-04-18 10:22:38 -0800 (Tue, 18 Apr 2017) $" revision: "$Revision: 100223 $" class interface SD_AUTO_HIDE_STATE create make (a_content: SD_CONTENT; a_direction: INTEGER_32) -- Creation method require a_content_not_void: a_content /= Void a_direction_valid: a_direction = {SD_ENUMERATION}.top or a_direction = {SD_ENUMERATION}.bottom or a_direction = {SD_ENUMERATION}.left or a_direction = {SD_ENUMERATION}.right ensure set: internal_content = a_content set: direction = a_direction make_with_size (a_content: SD_CONTENT; a_direction: INTEGER_32; a_width_height: INTEGER_32) -- Creation with a size require a_content_not_void: a_content /= Void a_direction_valid: a_direction = {SD_ENUMERATION}.top or a_direction = {SD_ENUMERATION}.bottom or a_direction = {SD_ENUMERATION}.left or a_direction = {SD_ENUMERATION}.right ensure set: width_height = max_size_by_zone (a_width_height) make_with_friend (a_content: SD_CONTENT; a_friend: SD_CONTENT) -- Make with a_friend, so tab together feature -- Access generating_type: TYPE [detachable SD_AUTO_HIDE_STATE] -- Type of current object -- (type of which it is a direct instance) -- (from ANY) ensure -- from ANY generating_type_not_void: Result /= Void generator: STRING_8 -- Name of current object's generating class -- (base class of the type of which it is a direct instance) -- (from ANY) ensure -- from ANY generator_not_void: Result /= Void generator_not_empty: not Result.is_empty feature -- Comparison frozen deep_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void -- or attached to isomorphic object structures? -- (from ANY) ensure -- from ANY instance_free: class shallow_implies_deep: standard_equal (a, b) implies Result both_or_none_void: (a = Void) implies (Result = (b = Void)) same_type: (Result and (a /= Void)) implies (b /= Void and then a.same_type (b)) symmetric: Result implies deep_equal (b, a) frozen equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached -- to objects considered equal? -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.is_equal (b)) frozen is_deep_equal alias "≡≡≡" (other: SD_AUTO_HIDE_STATE): BOOLEAN -- Are Current and other attached to isomorphic object structures? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY shallow_implies_deep: standard_is_equal (other) implies Result same_type: Result implies same_type (other) symmetric: Result implies other.is_deep_equal (Current) is_equal (other: SD_AUTO_HIDE_STATE): BOOLEAN -- Is other attached to an object considered -- equal to current object? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY symmetric: Result implies other ~ Current consistent: standard_is_equal (other) implies Result frozen standard_equal (a: detachable ANY; b: like arg #1): BOOLEAN -- Are a and b either both void or attached to -- field-by-field identical objects of the same type? -- Always uses default object comparison criterion. -- (from ANY) ensure -- from ANY instance_free: class definition: Result = (a = Void and b = Void) or else ((a /= Void and b /= Void) and then a.standard_is_equal (b)) frozen standard_is_equal alias "" (other: SD_AUTO_HIDE_STATE): BOOLEAN -- Is other attached to an object of the same type -- as current object, and field-by-field identical to it? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY same_type: Result implies same_type (other) symmetric: Result implies other.standard_is_equal (Current) feature -- Status report conforms_to (other: ANY): BOOLEAN -- Does type of current object conform to type -- of other (as per Eiffel: The Language, chapter 13)? -- (from ANY) require -- from ANY other_not_void: other /= Void content_count_valid (a_titles: ARRAYED_LIST [READABLE_STRING_GENERAL]): BOOLEAN -- If a_titles vaild? -- (from SD_STATE) require -- from SD_STATE a_titles_not_void: a_titles /= Void content_void: BOOLEAN -- If current a_content void? -- (from SD_STATE_WITH_CONTENT) debug_output: STRING_32 -- String that should be displayed in debugger to represent Current. -- (from SD_STATE) ensure -- from DEBUG_OUTPUT result_not_void: Result /= Void has (a_content: SD_CONTENT): BOOLEAN -- If Current has a_content? -- (from SD_STATE_WITH_CONTENT) require -- from SD_STATE_WITH_CONTENT a_content_not_void: a_content /= Void is_dock_at_top (a_multi_dock_area: SD_MULTI_DOCK_AREA): BOOLEAN -- If `zone` dock at top level of a_multi_dock_area? -- (from SD_STATE) same_type (other: ANY): BOOLEAN -- Is type of current object identical to type of other? -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY definition: Result = (conforms_to (other) and other.conforms_to (Current)) feature -- Duplication copy (other: SD_AUTO_HIDE_STATE) -- Update current object using fields of object attached -- to other, so as to yield equal objects. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_equal: Current ~ other frozen deep_copy (other: SD_AUTO_HIDE_STATE) -- Effect equivalent to that of: -- `copy` (other . `deep_twin`) -- (from ANY) require -- from ANY other_not_void: other /= Void ensure -- from ANY deep_equal: deep_equal (Current, other) frozen deep_twin: SD_AUTO_HIDE_STATE -- New object structure recursively duplicated from Current. -- (from ANY) ensure -- from ANY deep_twin_not_void: Result /= Void deep_equal: deep_equal (Current, Result) frozen standard_copy (other: SD_AUTO_HIDE_STATE) -- Copy every field of other onto corresponding field -- of current object. -- (from ANY) require -- from ANY other_not_void: other /= Void type_identity: same_type (other) ensure -- from ANY is_standard_equal: standard_is_equal (other) frozen standard_twin: SD_AUTO_HIDE_STATE -- New object field-by-field identical to other. -- Always uses default copying semantics. -- (from ANY) ensure -- from ANY standard_twin_not_void: Result /= Void equal: standard_equal (Result, Current) frozen twin: SD_AUTO_HIDE_STATE -- New object equal to Current -- `twin` calls `copy`; to change copying/twinning semantics, redefine `copy`. -- (from ANY) ensure -- from ANY twin_not_void: Result /= Void is_equal: Result ~ Current feature -- Basic operations frozen default: detachable SD_AUTO_HIDE_STATE -- Default value of object's type -- (from ANY) frozen default_pointer: POINTER -- Default value of type POINTER -- (Avoid the need to write p.`default` for -- some p of type POINTER.) -- (from ANY) ensure -- from ANY instance_free: class default_rescue -- Process exception for routines with no Rescue clause. -- (Default: do nothing.) -- (from ANY) frozen do_nothing -- Execute a null action. -- (from ANY) ensure -- from ANY instance_free: class feature -- Command clear_docking_manager -- Clear `docking_manager`. -- (from SD_DOCKING_MANAGER_HOLDER) close_animation -- Close with animation set_docking_manager (a_docking_manager: like docking_manager) -- Set `docking_manager` with a_docking_manager -- (from SD_DOCKING_MANAGER_HOLDER) require -- from SD_DOCKING_MANAGER_HOLDER not_void: a_docking_manager /= Void ensure -- from SD_DOCKING_MANAGER_HOLDER set: is_docking_manager_attached feature -- Commands auto_hide_tab_with (a_target_content: SD_CONTENT) -- When a_tartget_content is auto hide state, `content`'s auto hide tab dock at side of -- a_target_content auto hide tab -- (from SD_STATE_WITH_CONTENT) require -- from SD_STATE_WITH_CONTENT a_target_content_not_void: a_target_content /= Void minimize -- Minimize if possible -- (from SD_STATE) on_normal_max_window -- Handle normal\max zone -- (from SD_STATE) require -- from SD_STATE set: attached zone set_split_proportion (a_proportion: REAL_32) -- Set parent splitter proportion to a_proportion if is possible -- (from SD_STATE) feature -- Contract support initialized: BOOLEAN -- If ready to be used? -- (from SD_STATE) feature -- Implementation functions move_to_docking_zone (a_target_zone: SD_DOCKING_ZONE; a_first: BOOLEAN) -- Move to a SD_DOCKING_ZONE, then a_target_zone and Current became SD_TAB_ZONE -- FIXIT: It's similiar to SD_DOCKING_STATE move_to_docking_zone, merge? require -- from SD_STATE a_target_zone_not_void: a_target_zone /= Void move_to_tab_zone (a_target_zone: SD_TAB_ZONE; a_index: INTEGER_32) -- Move to a tab zone -- FIXIT: It's similiar to SD_DOCKING_STATE move_to_tab_zone, merge? require -- from SD_STATE a_target_zone_not_void: a_target_zone /= Void feature -- Output Io: STD_FILES -- Handle to standard file setup -- (from ANY) ensure -- from ANY instance_free: class io_not_void: Result /= Void out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY out_not_void: Result /= Void print (o: detachable ANY) -- Write terse external representation of o -- on standard output. -- (from ANY) ensure -- from ANY instance_free: class frozen tagged_out: STRING_8 -- New string containing terse printable representation -- of current object -- (from ANY) ensure -- from ANY tagged_out_not_void: Result /= Void feature -- Platform Operating_environment: OPERATING_ENVIRONMENT -- Objects available from the operating system -- (from ANY) ensure -- from ANY instance_free: class operating_environment_not_void: Result /= Void feature -- Properties change_tab_tooltip (a_tooltip: detachable READABLE_STRING_GENERAL) -- Set notebook tab tooltip if possible -- (from SD_STATE) content: SD_CONTENT -- Content managed by Current. -- (from SD_STATE_WITH_CONTENT) direction: INTEGER_32 -- Dock top or dock bottom or dock left or dock right? One enumeration from {SD_DOCKING_MANAGER} -- (from SD_STATE) floating_zone: detachable SD_FLOATING_ZONE -- When Current is floating, this is floating zone which Current is in -- Otherwise is Void -- (from SD_STATE) last_floating_height: INTEGER_32 -- Last floating height (At the beginning the height is default floating height from SD_SHARED) -- (from SD_STATE) last_floating_width: INTEGER_32 -- Last floating width (At the beginning the width is default floating width from SD_SHARED) -- (from SD_STATE) set_direction (a_direction: INTEGER_32) -- Set `direction` -- (from SD_STATE) set_last_floating_height (a_height: INTEGER_32) -- Set `last_floating_height` -- (from SD_STATE) require -- from SD_STATE valid: a_height >= 0 ensure -- from SD_STATE set: last_floating_height = a_height set_last_floating_width (a_width: INTEGER_32) -- Set `last_floating_width` -- (from SD_STATE) require -- from SD_STATE valid: a_width >= 0 ensure -- from SD_STATE set: last_floating_width = a_width set_width_height (a_width_height: INTEGER_32) -- Set `width_height` -- (from SD_STATE) require -- from SD_STATE a_widht_height_valid: a_width_height >= 0 ensure -- from SD_STATE set: width_height = a_width_height width_height: INTEGER_32 -- Width of zone if dock_left or dock_right -- Height of zone if dock_top or dock_bottom -- (from SD_STATE) width_height_by_direction: INTEGER_32 -- Width of zone if dock left/right, Height of zone if dock top/bottom -- (from SD_STATE) feature -- Query docking_manager: SD_DOCKING_MANAGER -- Docking manager instance. -- (from SD_DOCKING_MANAGER_HOLDER) is_docking_manager_attached: BOOLEAN -- If `docking_manager` has been set? -- (from SD_DOCKING_MANAGER_HOLDER) is_hide: BOOLEAN -- If current Hide? is_width_height_valid (a_width_height: INTEGER_32): BOOLEAN -- If a_width_height valid? zone: detachable SD_AUTO_HIDE_ZONE -- Zone which is managed by Current (if any). feature -- Redefine change_long_title (a_title: READABLE_STRING_GENERAL; a_content: SD_CONTENT) -- Change long title require -- from SD_STATE a_title_not_void: a_title /= Void ensure then set: attached zone as z implies z.title.same_string_general (a_title) change_pixmap (a_pixmap: EV_PIXMAP; a_content: SD_CONTENT) -- Change pixmap require -- from SD_STATE a_pixmap_not_void: a_pixmap /= Void change_short_title (a_title: READABLE_STRING_GENERAL; a_content: SD_CONTENT) -- Change short title require -- from SD_STATE a_title_not_void: a_title /= Void ensure then set: tab_stub.text.same_string_general (a_title) change_zone_split_area (a_target_zone: SD_ZONE; a_direction: INTEGER_32) -- Change zone position to a_target_zone's parent at a_direction require -- from SD_STATE a_target_zone_not_void: a_target_zone /= Void ensure then state_changed: content.state /= Current close -- Handle close zone require -- from SD_STATE_WITH_CONTENT True ensure then tab_group_pruned: not auto_hide_panel.has (tab_stub) dock_at_top_level (a_multi_dock_area: SD_MULTI_DOCK_AREA) -- Perform a restore -- It's completely same as SD_STATE_VOID, merge? require -- from SD_STATE internal_content_not_void: not content_void ensure then state_changed: content.state /= Current float (a_x, a_y: INTEGER_32) -- Make current window floating hide -- Handle hide zone record_state -- Record current state restore (a_data: SD_INNER_CONTAINER_DATA; a_container: EV_CONTAINER) -- titles is content name -- -- a_container is zone parent require -- from SD_STATE_WITH_CONTENT more_than_one_title: attached a_data.titles as lr_titles and then content_count_valid (lr_titles) a_container_not_void: a_container /= Void a_container_not_full: not a_container.full a_direction_valid: a_data.direction = {SD_ENUMERATION}.top or a_data.direction = {SD_ENUMERATION}.bottom or a_data.direction = {SD_ENUMERATION}.left or a_data.direction = {SD_ENUMERATION}.right set_focus (a_content: SD_CONTENT) -- Set focus require -- from SD_STATE_WITH_CONTENT has_content: has (a_content) set_mini_toolbar (a_widget: EV_WIDGET) -- After SD_CONTENT changed mini_toolbar, we update related container's mini toolbar set_user_widget (a_widget: EV_WIDGET) -- After SD_CONTENT changed user_widget, we update related container's widget show -- Handle show zone require -- from SD_STATE True ensure then show: docking_manager.zones.has_zone_by_content (content) stick (a_direction: INTEGER_32) -- Stick/Unstick a zone -- a_direction is useless -- This feature used by SD_DOCKING_STATE and SD_CONTENT.set_auto_hide. require -- from SD_STATE True ensure then tab_stubs_pruned: old not is_hide implies auto_hide_panel.tab_stubs.count < old auto_hide_panel.tab_stubs.count feature -- States report value: INTEGER_32 -- State value, see {SD_ENUMERATION} -- State ensure -- from SD_STATE valid: (create {SD_ENUMERATION} end).is_state_valid (Result) invariant internal_content_not_void: initialized implies internal_content /= Void tab_stub_not_void: initialized implies tab_stub /= Void auto_hide_panel_not_void: initialized implies auto_hide_panel /= Void animation_not_void: initialized implies animation /= Void direction_valid: initialized implies direction = {SD_ENUMERATION}.top or direction = {SD_ENUMERATION}.bottom or direction = {SD_ENUMERATION}.left or direction = {SD_ENUMERATION}.right -- from SD_STATE last_floating_height_valid: initialized implies last_floating_height >= 0 last_floating_width_valid: initialized implies last_floating_width >= 0 -- from ANY reflexive_equality: standard_is_equal (Current) reflexive_conformance: conforms_to (Current) note library: "SmartDocking: Library of reusable components for Eiffel." copyright: "Copyright (c) 1984-2017, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 5949 Hollister Ave., Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end -- class SD_AUTO_HIDE_STATE
Classes Clusters Cluster hierarchy Chart Relations Flat contracts Go to:

-- Generated by Eiffel Studio --
For more details: eiffel.org