123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317 |
- class IUP_DIALOG
-
- inherit
- IUP_CONTAINER
- undefine
- execute_dragbegin,
- execute_dragdatasize,
- execute_dragdata,
- execute_dragend,
- execute_dropdata,
- execute_dropmotion
- redefine
-
-
-
-
- execute_map,
- execute_unmap,
- execute_destroy,
- execute_getfocus,
- execute_killfocus,
- execute_enterwindow,
- execute_leavewindow,
- execute_k_any,
- execute_help,
- execute_close,
- execute_copydata,
- execute_dropfiles,
- execute_mdiactivate,
- execute_move,
- execute_resize,
- execute_show,
- execute_trayclick,
- execute_focus
- end
- IUP_WIDGET_EXPAND
- IUP_WIDGET_TITLE
- IUP_WIDGET_VISIBLE
- IUP_WIDGET_ACTIVE
- IUP_WIDGET_BGCOLOR
- IUP_WIDGET_FONT
- IUP_WIDGET_SCREENPOSITION
- IUP_WIDGET_TIP
- IUP_WIDGET_CLIENTOFFSET
- IUP_WIDGET_CLIENTSIZE
- IUP_WIDGET_RASTERSIZE
- IUP_WIDGET_USERSIZE
- IUP_WIDGET_ZORDER
- IUP_WIDGET_POPUP
- IUP_WIDGET_SHOW
- IUP_WIDGET_HIDE
- IUP_WIDGET_PARENT_DIALOG
- IUP_WIDGET_ICON
- IUP_WIDGET_DEFAULT_ENTER_ESC
- IUP_WIDGET_MAXMIN_SIZE
- redefine
- set_maxsize,
- get_maxsize,
- set_minsize,
- get_minsize
- end
- IUP_DRAG_AND_DROP
- IUP_WIDGET_CUSTOM_ATTRIBUTES
- create {ANY}
- dialog
- create {IUP}
- dialog_widget
- feature {ANY}
- dialog (content: IUP_WIDGET)
-
- local
- a_dialog: POINTER
- do
- a_dialog := int_dialog(content.widget)
- set_widget(a_dialog)
- end
-
- get_dialog_child (name: STRING): detachable IUP_WIDGET
-
-
-
-
-
- do
- Result := iup_open.iup_get_dialog_child(Current, name)
- end
-
- get_drop_button: detachable IUP_DROP_BUTTON
-
-
- do
- Result := iup_open.get_drop_button_for_dialog(Current)
- end
-
- set_border (state: BOOLEAN)
-
-
-
-
- do
- iup_open.set_attribute(Current, "BORDER", boolean_to_yesno(state))
- end
- has_border: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "BORDER")
- Result := yesno_to_boolean(str)
- end
- get_border_width: INTEGER
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "BORDERSIZE")
- Result := str.to_integer
- end
- set_child_offset (horizontal, vertical: INTEGER)
-
-
-
-
-
- require
- horizontal >= 0
- vertical >= 0
- local
- offset: STRING
- do
- offset := horizontal.out
- offset.append_string("x")
- offset.append_string(vertical.out)
- iup_open.set_attribute(Current, "CHILDOFFSET", offset)
- end
- get_child_offset: TUPLE[INTEGER, INTEGER]
-
- local
- offset: STRING
- do
- offset := iup_open.get_attribute(Current, "CHILDOFFSET")
- Result := components_of_size(offset)
- end
- set_cursor (name: STRING)
-
- do
- iup_open.set_attribute(Current, "CURSOR", name)
- end
- get_cursor: STRING
-
- do
- Result := iup_open.get_attribute(Current, "CURSOR")
- end
- set_nactive (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "NACTIVE", boolean_to_yesno(state))
- end
- is_nactive: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "NACTIVE")
- Result := yesno_to_boolean(str)
- end
- set_size (width, height: INTEGER)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- local
- size: STRING
- do
- size := width.out
- size.append_string("x")
- size.append_string(height.out)
- iup_open.set_attribute(Current, "SIZE", size)
- end
- set_predefined_size (width, height: STRING)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- require
- is_valid_size (width, height)
- local
- size: STRING
- do
- size := width
- size.append_string("x")
- size.append_string(height)
- iup_open.set_attribute(Current, "SIZE", size)
- end
- get_size: TUPLE[INTEGER, INTEGER]
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "SIZE")
- Result := components_of_size(str)
- end
- set_simulate_modal (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "SIMULATEMODAL", boolean_to_yesno(state))
- end
-
-
- set_modal_dialog_frame (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "DIALOGFRAME", boolean_to_yesno(state))
- end
- is_modal_dialog_frame: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "DIALOGFRAME")
- Result := yesno_to_boolean(str)
- end
- set_fullscreen (state: BOOLEAN)
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "FULLSCREEN", boolean_to_yesno(state))
- end
- get_fullscreen: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "FULLSCREEN")
- Result := yesno_to_boolean(str)
- end
- set_maxbox (state: BOOLEAN)
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "MAXBOX", boolean_to_yesno(state))
- end
- set_maxsize (width, height: INTEGER)
-
-
-
- do
- Precursor (width, height)
- end
- get_maxsize: TUPLE[INTEGER, INTEGER]
-
- do
- Result := Precursor
- end
- set_menu (name: STRING)
-
-
-
- do
- iup_open.set_attribute(Current, "MENU", name)
- end
- set_menu_widget (menu: IUP_MENU)
-
-
- do
- iup_open.set_attribute_widget(Current, "MENU", menu)
- end
- set_menubox (state: BOOLEAN)
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "MENUBOX", boolean_to_yesno(state))
- end
- set_minbox (state: BOOLEAN)
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "MINBOX", boolean_to_yesno(state))
- end
- set_minsize (width, height: INTEGER)
-
-
-
-
-
- do
- Precursor (width, height)
- end
- get_minsize: TUPLE[INTEGER, INTEGER]
-
- do
- Result := Precursor
- end
- is_modal: BOOLEAN
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "MODAL")
- Result := yesno_to_boolean(str)
- end
- set_native_parent (dlg: IUP_DIALOG)
-
-
- do
- iup_open.set_attribute_widget(Current, "NATIVEPARENT", dlg)
- end
-
- set_resize (state: BOOLEAN)
-
-
-
-
- do
- iup_open.set_attribute(Current, "RESIZE", boolean_to_yesno(state))
- end
- set_shrink (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "SHRINK", boolean_to_yesno(state))
- end
- set_start_focus (name: STRING)
-
-
-
-
- do
- iup_open.set_attribute(Current, "STARTFOCUS", name)
- end
-
-
-
-
-
-
-
- is_active_window: BOOLEAN
-
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "ACTIVEWINDOW")
- Result := yesno_to_boolean(str)
- end
-
- set_as_drop_files_target (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "DROPFILESTARGET", boolean_to_yesno(state))
- end
- is_drop_files_target: BOOLEAN
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "DROPFILESTARGET")
- Result := yesno_to_boolean(str)
- end
- is_maximized: BOOLEAN
-
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "MAXIMIZED")
- Result := yesno_to_boolean(str)
- end
- is_minimized: BOOLEAN
-
-
- local
- str: STRING
- do
- str := iup_open.get_attribute(Current, "MINIMIZED")
- Result := yesno_to_boolean(str)
- end
- set_opacity (value: INTEGER)
-
-
-
-
- require
- value >= 0
- value <= 255
- do
- iup_open.set_attribute(Current, "OPACITY", value.out)
- end
- set_opacity_image (name: STRING)
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "OPACITYIMAGE", name)
- end
- set_shape_image (name: STRING)
-
-
-
-
- do
- iup_open.set_attribute(Current, "SHAPEIMAGE", name)
- end
- set_top_most (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "TOPMOST", boolean_to_yesno(state))
- end
-
- set_hide_taskbar (state: BOOLEAN)
-
-
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "HIDETASKBAR", boolean_to_yesno(state))
- end
-
- show_task_bar_button
-
-
- do
- iup_open.set_attribute(Current, "TASKBARBUTTON", "SHOW")
- end
- hide_task_bar_button
-
-
-
- do
- iup_open.set_attribute(Current, "TASKBARBUTTON", "HIDE")
- end
- set_tray (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "TRAY", boolean_to_yesno(state))
- end
- set_tray_image (name: STRING)
-
-
-
- do
- iup_open.set_attribute(Current, "TRAYIMAGE", name)
- end
- set_tray_tip (text: STRING)
-
- do
- iup_open.set_attribute(Current, "TRAYTIP", text)
- end
-
-
-
- set_dialog_hint (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "DIALOGHINT", boolean_to_yesno(state))
- end
- set_hide_title_bar (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "HIDETITLEBAR",
- boolean_to_yesno(state))
- end
-
- set_bring_front (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "BRINGFRONT", boolean_to_yesno(state))
- end
- set_composited (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "COMPOSITED", boolean_to_yesno(state))
- end
-
-
- set_help_button (state: BOOLEAN)
-
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "HELPBUTTON", boolean_to_yesno(state))
- end
- set_maximize_at_parent (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "MAXIMIZEATPARENT", boolean_to_yesno(state))
- end
- set_toolbox (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "TOOLBOX", boolean_to_yesno(state))
- end
-
- set_mdi_frame (state: BOOLEAN)
-
-
- do
- iup_open.set_attribute(Current, "MDIFRAME", boolean_to_yesno(state))
- end
- get_mdi_active: STRING
-
-
-
- do
- Result := iup_open.get_attribute(Current, "MDIACTIVE")
- end
- set_mdi_activate (name: STRING)
-
-
-
-
- do
- iup_open.set_attribute(Current, "MDIACTIVATE", name)
- end
- set_mdi_arrange (type: STRING)
-
-
-
- require
- is_valid_type(type)
- do
- iup_open.set_attribute(Current, "MDIARRANGE", type)
- end
- set_mdi_close_all
-
-
-
-
-
- do
- iup_open.set_attribute(Current, "MDICLOSEALL", "YES")
- end
- get_mdi_next: STRING
-
-
-
-
-
- do
- Result := iup_open.get_attribute(Current, "MDINEXT")
- end
-
- set_mdi_child (state: BOOLEAN)
-
-
-
- do
- iup_open.set_attribute(Current, "MDICHILD", boolean_to_yesno(state))
- end
-
-
- set_cb_map (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
-
- local
- operation: INTEGER
- do
- cb_map := act
-
- if cb_map /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "MAP_CB", "NONEEDED", operation)
- end
- set_cb_unmap (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
-
- local
- operation: INTEGER
- do
- cb_unmap := act
- if cb_unmap /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "UNMAP_CB", "NONEEDED", operation)
- end
- set_cb_destroy (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
-
- local
- operation: INTEGER
- do
- cb_destroy := act
- if cb_destroy /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "DESTROY_CB", "NONEEDED", operation)
- end
- set_cb_get_focus (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
-
-
-
-
- local
- operation: INTEGER
- do
- cb_getfocus := act
- if cb_getfocus /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "GETFOCUS_CB", "NONEEDED", operation)
- end
- set_cb_kill_focus (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
-
-
-
- local
- operation: INTEGER
- do
- cb_killfocus := act
- if cb_killfocus /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "KILLFOCUS_CB", "NONEEDED", operation)
- end
- set_cb_enter_window (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
-
- local
- operation: INTEGER
- do
- cb_enterwindow := act
- if cb_enterwindow /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "ENTERWINDOW_CB", "NONEEDED", operation)
- end
- set_cb_leave_window (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
-
- local
- operation: INTEGER
- do
- cb_leavewindow := act
- if cb_leavewindow /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "LEAVEWINDOW_CB", "NONEEDED", operation)
- end
- set_cb_k_any (act: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER], STRING])
-
-
-
-
-
-
-
-
-
-
-
- local
- operation: INTEGER
- do
- cb_k_any := act
- if cb_k_any /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "K_ANY", "NONEEDED", operation)
- end
- set_cb_help (act: detachable PROCEDURE[TUPLE[IUP_DIALOG]])
-
-
-
-
- local
- operation: INTEGER
- do
- cb_help := act
- if cb_help /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "HELP_CB", "NONEEDED", operation)
- end
-
- set_cb_close (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
- local
- operation: INTEGER
- do
- cb_close := act
- if cb_close /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "CLOSE_CB", "NONEEDED", operation)
- end
- set_cb_copy_data (act: detachable FUNCTION[TUPLE[IUP_DIALOG, STRING, INTEGER], STRING])
- local
- operation: INTEGER
- do
- cb_copydata := act
- if cb_copydata /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "COPYDATA_CB", "NONEEDED", operation)
- end
- set_cb_drop_files (act: detachable FUNCTION[TUPLE[IUP_DIALOG, STRING, INTEGER, INTEGER, INTEGER], STRING])
- local
- operation: INTEGER
- do
- cb_dropfiles := act
- if cb_dropfiles /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "DROPFILES_CB", "NONEEDED", operation)
- end
- set_cb_mdi_activate (act: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING])
- local
- operation: INTEGER
- do
- cb_mdiactivate := act
- if cb_mdiactivate /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "MDIACTIVATE_CB", "NONEEDED", operation)
- end
- set_cb_move (act: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER, INTEGER], STRING])
- local
- operation: INTEGER
- do
- cb_move := act
- if cb_move /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "MOVE_CB", "NONEEDED", operation)
- end
- set_cb_resize (act: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER, INTEGER], STRING])
- local
- operation: INTEGER
- do
- cb_resize := act
- if cb_resize /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "RESIZE_CB", "NONEEDED", operation)
- end
- set_cb_show (act: detachable FUNCTION[TUPLE[IUP_DIALOG, STRING], STRING])
- local
- operation: INTEGER
- do
- cb_show := act
- if cb_show /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "SHOW_CB", "NONEEDED", operation)
- end
- set_cb_tray_click (act: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER, INTEGER, INTEGER], STRING])
- local
- operation: INTEGER
- do
- cb_trayclick := act
- if cb_trayclick /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "TRAYCLICK_CB", "NONEEDED", operation)
- end
- set_cb_focus (act: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER], STRING])
-
-
-
- local
- operation: INTEGER
- do
- cb_focus := act
- if cb_focus /= Void then
- operation := 1
- else
- operation := 0
- end
-
- iup_open.set_callback (Current, "FOCUS_CB", "NONEEDED", operation)
- end
-
- is_valid_size (width, height: STRING): BOOLEAN
- local
- widths, heights: BOOLEAN
- do
- if width.is_equal("NULL") or
- width.is_equal("FULL") or
- width.is_equal("HALF") or
- width.is_equal("THIRD") or
- width.is_equal("QUARTER") or
- width.is_equal("EIGHTH") then
- widths := True
- elseif width.is_integer and width.to_integer >= 0 then
- widths := True
- else
- widths := False
- end
- if height.is_equal("NULL") or
- height.is_equal("FULL") or
- height.is_equal("HALF") or
- height.is_equal("THIRD") or
- height.is_equal("QUARTER") or
- height.is_equal("EIGHTH") then
- heights := True
- elseif height.is_integer and height.to_integer >= 0 then
- heights := True
- else
- heights := False
- end
- if widths and heights then
- Result := True
- else
- Result := False
- end
- end
- is_valid_type (type: STRING): BOOLEAN
- do
- if type.is_equal("TILEHORIZONTAL") or
- type.is_equal("TILEVERTICAL") or
- type.is_equal("CASCADE") or
- type.is_equal("ICON") then
- Result := True
- else
- Result := False
- end
- end
- feature {IUP}
- execute_map: STRING
- do
- if attached cb_map as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_unmap: STRING
- do
- if attached cb_unmap as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_destroy: STRING
- do
- if attached cb_destroy as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_getfocus: STRING
- do
- if attached cb_getfocus as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_killfocus: STRING
- do
- if attached cb_killfocus as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_enterwindow: STRING
- do
- if attached cb_enterwindow as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_leavewindow: STRING
- do
- if attached cb_leavewindow as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_k_any (c: INTEGER): STRING
- do
- if attached cb_k_any as int_cb then
- Result := int_cb.item([Current, c])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_help
- do
- if attached cb_help as int_cb then
- int_cb.call([Current])
- end
- end
- execute_close: STRING
- do
- if attached cb_close as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_copydata (cmdline: STRING; size: INTEGER): STRING
- do
- if attached cb_copydata as int_cb then
- Result := int_cb.item([Current, cmdline, size])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_dropfiles (filename: STRING; num: INTEGER; x: INTEGER; y: INTEGER): STRING
- do
- if attached cb_dropfiles as int_cb then
- Result := int_cb.item([Current, filename, num, x, y])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_mdiactivate: STRING
- do
- if attached cb_mdiactivate as int_cb then
- Result := int_cb.item([Current])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_move (x: INTEGER; y: INTEGER): STRING
- do
- if attached cb_move as int_cb then
- Result := int_cb.item([Current, x, y])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_resize (width: INTEGER; height: INTEGER): STRING
- do
- if attached cb_resize as int_cb then
- Result := int_cb.item([Current, width, height])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_show (state: STRING): STRING
- do
- if attached cb_show as int_cb then
- Result := int_cb.item([Current, state])
- else
- Result := "IUP_DEFAULT"
- end
- end
-
- execute_trayclick (but: INTEGER; pressed: INTEGER; dclick: INTEGER): STRING
- do
- if attached cb_trayclick as int_cb then
- Result := int_cb.item([Current, but, pressed, dclick])
- else
- Result := "IUP_DEFAULT"
- end
- end
- execute_focus (focus: INTEGER): STRING
- do
- if attached cb_focus as int_cb then
- Result := int_cb.item([Current, focus])
- else
- Result := "IUP_DEFAULT"
- end
- end
- feature {IUP}
- dialog_widget (a_dialog: POINTER)
- do
- set_widget(a_dialog)
- end
-
- feature {NONE}
-
- cb_map: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_unmap: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_destroy: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_getfocus: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_killfocus: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_enterwindow: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_leavewindow: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_k_any: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER], STRING]
- cb_help: detachable PROCEDURE[TUPLE[IUP_DIALOG]]
- cb_close: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_copydata: detachable FUNCTION[TUPLE[IUP_DIALOG, STRING, INTEGER], STRING]
- cb_dropfiles: detachable FUNCTION[TUPLE[IUP_DIALOG, STRING, INTEGER, INTEGER, INTEGER], STRING]
- cb_mdiactivate: detachable FUNCTION[TUPLE[IUP_DIALOG], STRING]
- cb_move: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER, INTEGER], STRING]
- cb_resize: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER, INTEGER], STRING]
- cb_show: detachable FUNCTION[TUPLE[IUP_DIALOG, STRING], STRING]
- cb_trayclick: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER, INTEGER, INTEGER], STRING]
- cb_focus: detachable FUNCTION[TUPLE[IUP_DIALOG, INTEGER], STRING]
-
-
-
- int_dialog (wdt: POINTER): detachable POINTER
- external
- "C inline use %"eiffel-iup.h%""
- alias
- "return IupDialog ($wdt);"
- end
- end
|