home *** CD-ROM | disk | FTP | other *** search
- TABLE OF CONTENTS
-
- expander.library/IEX_Add
- expander.library/IEX_Copy
- expander.library/IEX_Edit
- expander.library/IEX_Free
- expander.library/IEX_GetIDCMP
- expander.library/IEX_Load
- expander.library/IEX_Make
- expander.library/IEX_Mount
- expander.library/IEX_Refresh
- expander.library/IEX_Remove
- expander.library/IEX_Save
- expander.library/IEX_StartSrcGen
- expander.library/IEX_WriteChipData
- expander.library/IEX_WriteCloseDown
- expander.library/IEX_WriteCloseWnd
- expander.library/IEX_WriteData
- expander.library/IEX_WriteGlobals
- expander.library/IEX_WriteHeaders
- expander.library/IEX_WriteOpenWnd
- expander.library/IEX_WriteRender
- expander.library/IEX_WriteSetup
- expander.library/IEX_Add expander.library/IEX_Add
-
- NAME
- IEX_Add - Add an object to the active window
-
- SYNOPSIS
- success = IEX_Add( ID, IE_Data, x, y, width, heigth );
- D0 A0 D1 D2 D3 D4
-
- BOOL IEX_Add( UWORD, struct IE_Data *, WORD, WORD, UWORD, UWORD );
-
- FUNCTION
- This function is called by IEditor when the user selects the
- name of our object from the Add Gadget list.
- If our object can be moved and resized, the user will be asked
- to draw it (like gadtools gadgets) and then IE will call this
- function with the coordinates and the size of the drawn box.
-
- If your object needs a label for the source, you must provide
- it, in the case the user doesn't want to type it in.
- E.g.
- sprintf( Obj->Label, "%sGad%03ld",
- IE->win_info->wi_Label,
- IE->win_info->wi_NewGadID );
- IE.win_info->wi_NewGadID += 1;
-
-
- You must also update the IE->win_info->wi_NumObjects variable.
-
- INPUTS
- ID - ID assigned by IE. You MUST put it in the o_Kind
- field.
- IE_Data - information about IE
- x, y - top left corner of the box drawn by the user
- width, height - size of the box
-
- RESULT
- success - TRUE for success, FALSE for failure
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEX_Remove()
-
- expander.library/IEX_Copy expander.library/IEX_Copy
-
- NAME
- IEX_Copy - Copy our objects
-
- SYNOPSIS
- success = IEX_Copy( ID, IE_Data, offx, offy );
- D0 A0 D1 D2
-
- BOOL IEX_Copy( UWORD, struct IE_Data *, WORD, WORD );
-
- FUNCTION
- IEditor calls this function when the user wants to copy
- some objects it doesn't know.
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
- offx, offy - offset of the copy
-
- RESULT
- success - TRUE if succeeded, FALSE if there was no
- enough memory
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h
-
- expander.library/IEX_Edit expander.library/IEX_Edit
-
- NAME
- IEX_Edit - Edit our objects
-
- SYNOPSIS
- edited = IEX_Edit( ID, IE_Data );
- D0 A0
-
- BOOL IEX_Edit( UWORD, struct IE_Data * );
-
- FUNCTION
- IEditor calls this function when the user wants to edit
- some objects it doesn't know.
- You should then open your edit window on IEditor's screen
- for all objects whose o_Kind field is equal to the ID passed
- by IE *AND* that are selected (check the G_ATTIVO flag in
- o_flags2).
- If your expander doesn't support the edit function, it MUST
- return FALSE.
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
-
- RESULT
- edited - TRUE if the user changed some object params,
- otherwise FALSE
-
- NOTES
- You can find very comfortable to generate the GUI for your
- expanders using the C_IE_Mod.generator.
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h
-
- expander.library/IEX_Free expander.library/IEX_Free
-
- NAME
- IEX_Free - Free all the unused memory when the window is closed
-
- SYNOPSIS
- IEX_Free( ID, IE_Data );
- D0 A0
-
- void IEX_Free( UWORD, struct IE_Data * );
-
- FUNCTION
- IEditor calls this function after closing a window.
- You must then release all the memory you can (e.g. when
- IE closes a window, it FreeGadgets() its GList).
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h
-
- expander.library/IEX_GetIDCMP expander.library/IEX_GetIDCMP
-
- NAME
- IEX_GetIDCMP - Get the IDCMP you need
-
- SYNOPSIS
- IDCMP = IEX_GetIDCMP( ID, IDCMP, IE_Data );
- D0 D1 A0
-
- ULONG IEX_GetIDCMP( UWORD, ULONG, struct IE_Data * );
-
- FUNCTION
- When called, this function must check if some objects fo your
- kind are present in IE->win_info: if so, you should perform a
- OR operation between the IDCMP passed by IE and the ones your
- objects need to be fully functional.
-
- INPUTS
- ID - your ID
- IDCMP - IDCMP of the window
- IE_Data - information about IE
-
- RESULT
- IDCMP - new window IDCMPs
-
- EXAMPLE
- If your objects were Listviews, this is what your function should
- look like:
-
- ULONG IEX_GetIDCMP( __D0 UWORD ID, __D1 ULONG idcmp,
- __A0 struct IE_Data *IE )
- {
- struct MyObj *obj;
-
- for( obj = IE->win_info->wi_Gadgets.mlh_Head;
- obj->Node.ln_Succ; obj = obj->Node.ln_Succ ) {
-
- if( obj->Kind == ID )
- return( idcmp | LISTVIEWIDCMP );
- }
-
- return( idcmp );
- }
-
- NOTES
- If your objects don't need any IDCMP, then you *must* return
- the same IDCMP you received from IE.
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h
-
- expander.library/IEX_Load expander.library/IEX_Load
-
- NAME
- IEX_Load - Load our objects from the file
-
- SYNOPSIS
- success = IEX_Load( ID, IE_Data, File, Num );
- D0 A0 D1 D2
-
- BOOL IEX_Load( UWORD, struct IE_Data *, BPTR, UWORD );
-
- FUNCTION
- IEditor calls this function to load some object from a file.
-
- We must then load <Num> objects and link them to the
- win_info's list.
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
- File - BPTR of the file
- Num - number of objects to load
-
- RESULT
- success - TRUE for success, FALSE otherwise (= out of mem)
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEX_Save()
-
- expander.library/IEX_Make expander.library/IEX_Make
-
- NAME
- IEX_Make - Put our objects on the window
-
- SYNOPSIS
- next_gadget = IEX_Make( ID, IE_Data, GList );
- D0 A0 A1
-
- struct Gadget *IEX_Make( UWORD, struct IE_Data *, struct Gadget * );
-
- FUNCTION
- IEditor calls this function before opening a window or after
- the user has selected 'Gadget/Tags...' and he has done some
- change.
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
- GList - gadget list to which append yours.
-
- RESULT
- next_gadget - a pointer to the last gadget you've created
- or NULL for failure.
-
- NOTES
- NOTE WELL: the window of your object could be closed when IE
- calls this function!!!
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEX_Refresh()
-
- expander.library/IEX_Mount expander.library/IEX_Mount
-
- NAME
- IEX_Mount - Provide expander informations
-
- SYNOPSIS
- error = IEX_Mount( IE_Data );
- A0
-
- ULONG IEX_Mount( struct IE_Data * );
-
- FUNCTION
- This function is called by IEditor before first usage of the
- expander. The expander should fill its base with informations
- about its abilities and open its source description file.
-
- INPUTS
- IE_Data - information about IE
-
- RESULT
- error - IEX_OK or an error code
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h
-
- expander.library/IEX_Refresh expander.library/IEX_Refresh
-
- NAME
- IEX_Refresh - Refresh your objects
-
- SYNOPSIS
- IEX_Refresh( ID, IE_Data );
- D0 A0
-
- void IEX_Refresh( UWORD, struct IE_Data * );
-
- FUNCTION
- IEditor calls this function when the window needs refreshing.
- If your objects have some graphic element that can be corrupted,
- you must redrawn it, or refresh them in some way.
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEX_Make()
-
- expander.library/IEX_Remove expander.library/IEX_Remove
-
- NAME
- IEX_Remove - Remove our objects
-
- SYNOPSIS
- IEX_Remove( ID, IE_Data );
- D0 A0
-
- void IEX_Remove( UWORD, struct IE_Data * );
-
- FUNCTION
- IEditor calls this function when the user wants to delete
- some objects it doesn't know.
- You should then remove all the object whose o_Kind field
- is equal to the ID passed by IE *AND* that are selected
- (check the G_ATTIVO flag in o_flags2).
-
- This function is called alse when deleting a window or
- freeing the GUI: of course, all objects will be selected.
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
-
- RESULT
-
- NOTES
- Don't forget to update the IE->win_info->wi_NumObjects variable!
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEX_Add()
-
- expander.library/IEX_Save expander.library/IEX_Save
-
- NAME
- IEX_Save - Save our objects in the file
-
- SYNOPSIS
- IEX_Save( ID, IE_Data, File );
- D0 A0 D1
-
- void IEX_Save( UWORD, struct IE_Data *, BPTR );
-
- FUNCTION
- IEditor calls this function only if we have some object
- in the GUI. We must then save in the provided file all
- the objects found in the win_info list that have the right ID .
-
- We must also check the G_ATTIVO flag, since this function is
- called also when the user selects "Gadgets/Save..."
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
- File - BPTR of the file
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEX_Load()
-
- expander.library/IEX_StartSrcGen expander.library/IEX_StartSrcGen
-
- NAME
- IEX_StartSrcgen - Are you ready to generate the source? ;-)
-
- SYNOPSIS
- support_function = IEX_StartSrcGen( ID, IE_Data );
- D0 A0
-
- STRPTR IEX_StartSrcGen( UWORD, struct IE_Data * );
-
- FUNCTION
- IEditor calls this function just before generating the source.
- The expander should then walk through the window list, setting
- the right fields of the window info structures in order to
- let IE know what it need to put in the source.
-
- Then, the expander must return a STRPTR to its support
- function(s), if any. They will be written in the source by IE,
- that will filter out any duplicate function.
-
- INPUTS
- ID - your ID
- IE_Data - information about IE
-
- RESULT
- support_function - STRPTR to a support function(s) or NULL
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h
-
- expander.library/IEX_WriteChipData expander.library/IEX_WriteChipData
-
- NAME
- IEX_WriteChipData - Write your chip data
-
- SYNOPSIS
- IEX_WriteChipData( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteChipData( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- Write your objects' chip data into the file.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEditor/generatorlib.h
-
- expander.library/IEX_WriteCloseDown expander.library/IEX_WriteCloseDown
-
- NAME
- IEX_WriteCloseDown
-
- SYNOPSIS
- IEX_WriteCloseDown( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteCloseDown( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- This function is invoked in the CloseDown routine, before
- the screen unlocking or closing.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEX_WriteSetup()
-
- expander.library/IEX_WriteCloseWnd expander.library/IEX_WriteCloseWnd
-
- NAME
- IEX_WriteCloseWnd - Write your close wnd code
-
- SYNOPSIS
- IEX_WriteCloseWnd( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteCloseWnd( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- This function is called inside every Close<Wnd Label>Window routine,
- just before closing the window. You can use it to write some code
- needed by your objects that must be executed at that time.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEditor/generatorlib.h
-
- expander.library/IEX_WriteData expander.library/IEX_WriteData
-
- NAME
- IEX_WriteData - Write your data
-
- SYNOPSIS
- IEX_WriteData( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteData( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- Write your objects' data into the file.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEditor/generatorlib.h
-
- expander.library/IEX_WriteGlobals expander.library/IEX_WriteGlobals
-
- NAME
- IEX_WriteGlobals - Write your global variables
-
- SYNOPSIS
- IEX_WriteGlobals( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteGlobals( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- Write your global variables into the GenFiles->XDef file.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEditor/generatorlib.h
-
- expander.library/IEX_WriteHeaders expander.library/IEX_WriteHeaders
-
- NAME
- IEX_WriteHeaders - Write your headers
-
- SYNOPSIS
- IEX_WriteHeaders( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteHeaders( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- Write your headers into the GenFiles->XDef file.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEditor/generatorlib.h
-
- expander.library/IEX_WriteOpenWnd expander.library/IEX_WriteOpenWnd
-
- NAME
- IEX_WriteOpenWnd - Write your open wnd code
-
- SYNOPSIS
- IEX_WriteOpenWnd( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteOpenWnd( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- This function is called inside every Open<Wnd Label>Window routine,
- just before opening the window. You can use it to write some code
- needed by your objects that must be executed at that time.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEditor/generatorlib.h
-
- expander.library/IEX_WriteRender expander.library/IEX_WriteRender
-
- NAME
- IEX_WriteRender - Write your render routine
-
- SYNOPSIS
- IEX_WriteRender( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteRender( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- This function is called by the generator in the <Wnd Label>Render
- routine. If your object need some rendering instructions, then
- you must write them into the source file.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEditor/generatorlib.h
-
- expander.library/IEX_WriteSetup expander.library/IEX_WriteSetup
-
- NAME
- IEX_WriteSetup - Write your setup routine
-
- SYNOPSIS
- IEX_WriteSetup( ID, GenFiles, IE_Data );
- D0 A0 A1
-
- void IEX_WriteSetup( UWORD, struct GenFiles *, struct IE_Data * );
-
- FUNCTION
- This function is invoked in the SetupScreen routine, after
- the screen locking or opening and after the call to
- GetVisualInfo().
-
- This can be useful if you need to alloc or do something
- just once before any window is opened.
-
- INPUTS
- ID - your ID
- GenFiles - file BPTRs
- IE_Data - information about IE
-
- RESULT
-
- NOTES
-
- BUGS
-
- SEE ALSO
- IEditor/Expander.h, IEX_WriteCloseDown()
-
-