Codaedit: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
* add new component to ''createPriorityTable()'' function in ''Editor_database.c'' | * add new component to ''createPriorityTable()'' function in ''Editor_database.c'' | ||
* create new ''xpm'' file in directory ''xpm_icon'' and put it into ''Editor_pixmap.c'' (3 different xpm's ?) | |||
* add new component to the ''XcodaEditorPixmaps'' structure in ''Editor_pixmap.h'' (3 different xpm's ?) and ''Manager'' structure in ''Editor_layout.h'' | * add new component to the ''XcodaEditorPixmaps'' structure in ''Editor_pixmap.h'' (3 different xpm's ?) and ''Manager'' structure in ''Editor_layout.h'' | ||
* add function ''XcodaConfigXxxButton()'' and modify function ''XcodaEditorNewButtons()'' in ''Editor_cmd_btns.c'', new button will shows up in menu (bug inside !) | * add function ''XcodaConfigXxxButton()'' and modify function ''XcodaEditorNewButtons()'' in ''Editor_cmd_btns.c'', new button will shows up in menu (bug inside !) | ||
* call ''XtAddEventHandler()'' for new component in function ''XcodaEditorDrawingArea()'' in ''Editor_graph.c'', drugging from menu button will work now; actual action for ''ADD_XXX_ACTION'' is defined in the same file | * call ''XtAddEventHandler()'' for new component in function ''XcodaEditorDrawingArea()'' in ''Editor_graph.c'', drugging from menu button will work now; actual action for ''ADD_XXX_ACTION'' is defined in the same file |
Revision as of 19:08, 18 July 2015
Graphic editor for Coda data acquisition system. Editor_widget.c contains main function CodaEditor()
To add new component (meaning new component class, like ET etc):
- add new define's to Editor.h and Editor_graph.h; modify arrays names in Editor_drawing.c and compTypeString in Editor_database.c according with defines in Editor.h
- add new component to createPriorityTable() function in Editor_database.c
- create new xpm file in directory xpm_icon and put it into Editor_pixmap.c (3 different xpm's ?)
- add new component to the XcodaEditorPixmaps structure in Editor_pixmap.h (3 different xpm's ?) and Manager structure in Editor_layout.h
- add function XcodaConfigXxxButton() and modify function XcodaEditorNewButtons() in Editor_cmd_btns.c, new button will shows up in menu (bug inside !)
- call XtAddEventHandler() for new component in function XcodaEditorDrawingArea() in Editor_graph.c, drugging from menu button will work now; actual action for ADD_XXX_ACTION is defined in the same file