moved wizard under tools/estudio_wizard
This commit is contained in:
46
tools/estudio_wizard/src/gui/ewf_graphical_wizard.e
Normal file
46
tools/estudio_wizard/src/gui/ewf_graphical_wizard.e
Normal file
@@ -0,0 +1,46 @@
|
||||
note
|
||||
description: "[
|
||||
Objects that ...
|
||||
]"
|
||||
author: "$Author$"
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
EWF_GRAPHICAL_WIZARD
|
||||
|
||||
inherit
|
||||
EV_APPLICATION
|
||||
|
||||
SHARED_EXECUTION_ENVIRONMENT
|
||||
undefine
|
||||
default_create, copy
|
||||
end
|
||||
|
||||
create
|
||||
make_and_launch
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
make_and_launch
|
||||
local
|
||||
w: like main_window
|
||||
cons: EWF_CONSOLE_WIZARD_APPLICATION
|
||||
do
|
||||
default_create
|
||||
if execution_environment.arguments.index_of_word_option ("-console") > 0 then
|
||||
create cons.make
|
||||
else
|
||||
create w
|
||||
main_window := w
|
||||
|
||||
w.show
|
||||
launch
|
||||
end
|
||||
end
|
||||
|
||||
feature {NONE} -- Implementation
|
||||
|
||||
main_window: detachable EWF_WIZARD_WINDOW
|
||||
|
||||
end
|
||||
38
tools/estudio_wizard/src/gui/ewf_wizard_window.e
Normal file
38
tools/estudio_wizard/src/gui/ewf_wizard_window.e
Normal file
@@ -0,0 +1,38 @@
|
||||
note
|
||||
description: "Summary description for {EWF_WIZARD_WINDOW}."
|
||||
date: "$Date$"
|
||||
revision: "$Revision$"
|
||||
|
||||
class
|
||||
EWF_WIZARD_WINDOW
|
||||
|
||||
inherit
|
||||
GRAPHICAL_WIZARD_WINDOW
|
||||
redefine
|
||||
side_bar_items
|
||||
end
|
||||
|
||||
feature {NONE} -- Initialization
|
||||
|
||||
new_wizard: EWF_WIZARD
|
||||
do
|
||||
create Result.make (Current)
|
||||
end
|
||||
|
||||
feature -- Access
|
||||
|
||||
side_bar_items (a_page: WIZARD_PAGE): ARRAYED_LIST [WIZARD_PAGE_ITEM]
|
||||
local
|
||||
lab: EV_LABEL
|
||||
do
|
||||
Result := Precursor (a_page)
|
||||
if a_page.page_id.is_case_insensitive_equal_general ("first")
|
||||
or a_page.page_id.is_case_insensitive_equal_general ("final")
|
||||
then
|
||||
create lab.make_with_text ("EWF")
|
||||
lab.set_foreground_color (colors.white)
|
||||
Result.extend (create {GRAPHICAL_WIZARD_PAGE_WIDGET}.make_with_widget (lab))
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user