dtappbuilder: make it build under autotools
This commit is contained in:
@@ -1,28 +1,551 @@
|
||||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
# Since dtcodegen depends on libXm, libDtWidget, and other libs,
|
||||
# it will not be built properly during make includes.
|
||||
# So, when 'all' is made in this directory, redo make includes/depend.
|
||||
# An imake hack no doubt, but it is necessary for now.
|
||||
appdefaultsdir = ${prefix}/app-defaults/C
|
||||
|
||||
|
||||
all:: generated_includes abdepend
|
||||
|
||||
include "../ab.tmpl"
|
||||
include "../ab.rules"
|
||||
ABINCLUDES = -I../include -I../include/ab_private -I../libABil
|
||||
|
||||
bin_PROGRAMS = dtbuilder
|
||||
|
||||
appdefaults_DATA = Dtbuilder
|
||||
|
||||
DTCODEGENCAT = NLSPATH=$(top_builddir)/programs/dtappbuilder/src/abmf/dtcodegen.cat
|
||||
|
||||
DTCODEGEN = $(DTCODEGENCAT) ../abmf/dtcodegen
|
||||
|
||||
if BSD
|
||||
UTILLIB = -lutil
|
||||
endif
|
||||
|
||||
AB_MAKEFILES = \
|
||||
Makefile.aix \
|
||||
Makefile.hpux \
|
||||
Makefile.sunos \
|
||||
Makefile.linux \
|
||||
Makefile.freebsd \
|
||||
Makefile.netbsd \
|
||||
Makefile.openbsd
|
||||
|
||||
CLEANFILES = AB_MAKEFILES *.res *_ui.c *_ui.h .dtcodegen.log *.delta dtbuilder.c dtbuilder.msg
|
||||
|
||||
SOURCES.msg = \
|
||||
dtbuilder.msg \
|
||||
../libAButil/libAButil.msg \
|
||||
../libABobjXm/libABobjXm.msg \
|
||||
../libABil/libABil.msg
|
||||
|
||||
dtbuilder_LDADD = ../libABil/libABil.a ../libABobjXm/libABobjXm.a \
|
||||
../libABobj/libABobj.a ../libAButil/libAButil.a \
|
||||
$(LIBWIDGET) $(LIBTERM) $(LIBHELP) $(LIBSVC) \
|
||||
$(LIBTT) -lUil $(MRESOURCELIB) -lXm $(XTOOLLIB) ${X_LIB} \
|
||||
$(LIBTT) $(LIBXIN) -lUil $(MRESOURCELIB) -lXm $(XTOOLLIB) ${X_LIB} \
|
||||
$(UTILLIB) -lm
|
||||
|
||||
dtbuilder_CFLAGS = -DPIXMAP_WORKAROUND -I$(ABINCLUDES)
|
||||
dtbuilder_CFLAGS = -DPIXMAP_WORKAROUND $(ABINCLUDES)
|
||||
|
||||
dtbuilder_SOURCES =
|
||||
dtbuilder_SOURCES = dtb_utils.c \
|
||||
appfw_ui.c \
|
||||
about_box_ui.c \
|
||||
brws_ui.c \
|
||||
color_chooser_ui.c \
|
||||
conn_ui.c \
|
||||
dnd_ed_ui.c \
|
||||
help_ed_ui.c \
|
||||
attch_ed_ui.c \
|
||||
proj_ui.c \
|
||||
revolv_ui.c \
|
||||
button_ui.c \
|
||||
choice_ui.c \
|
||||
combobox_ui.c \
|
||||
cpanel_ui.c \
|
||||
custdlg_ui.c \
|
||||
drawp_ui.c \
|
||||
group_ui.c \
|
||||
label_ui.c \
|
||||
list_ui.c \
|
||||
mainwin_ui.c \
|
||||
menu_ui.c \
|
||||
menubar_ui.c \
|
||||
scale_ui.c \
|
||||
sep_ui.c \
|
||||
spinbox_ui.c \
|
||||
termp_ui.c \
|
||||
textf_ui.c \
|
||||
textp_ui.c \
|
||||
cgen_win_ui.c \
|
||||
cgen_props_ui.c \
|
||||
cgen_env_ui.c \
|
||||
fchooser_ui.c \
|
||||
message_ed_ui.c \
|
||||
panedwin_ed_ui.c \
|
||||
palette_ui.c \
|
||||
appfw_stubs.c \
|
||||
brws_stubs.c \
|
||||
color_chooser_stubs.c \
|
||||
conn_stubs.c \
|
||||
dnd_ed_stubs.c \
|
||||
help_ed_stubs.c \
|
||||
attch_ed_stubs.c \
|
||||
proj_stubs.c \
|
||||
revolv_stubs.c \
|
||||
button_stubs.c \
|
||||
choice_stubs.c \
|
||||
combobox_stubs.c \
|
||||
cpanel_stubs.c \
|
||||
custdlg_stubs.c \
|
||||
drawp_stubs.c \
|
||||
group_stubs.c \
|
||||
label_stubs.c \
|
||||
list_stubs.c \
|
||||
mainwin_stubs.c \
|
||||
menu_stubs.c \
|
||||
menubar_stubs.c \
|
||||
scale_stubs.c \
|
||||
sep_stubs.c \
|
||||
spinbox_stubs.c \
|
||||
termp_stubs.c \
|
||||
textf_stubs.c \
|
||||
textp_stubs.c \
|
||||
cgen_win_stubs.c \
|
||||
cgen_props_stubs.c \
|
||||
cgen_env_stubs.c \
|
||||
fchooser_stubs.c \
|
||||
message_ed_stubs.c \
|
||||
palette_stubs.c \
|
||||
about_box_stubs.c \
|
||||
dtbuilder.c \
|
||||
ab_utils.c \
|
||||
ab_bil.c \
|
||||
ab_dnd.c \
|
||||
ab_globals.c \
|
||||
abobj_align.c \
|
||||
abobj_edit.c \
|
||||
abobj_list.c \
|
||||
abobj_events.c \
|
||||
abobj_layers.c \
|
||||
abobj_layout.c \
|
||||
abobj_menu.c \
|
||||
abobj_move.c \
|
||||
abobj_resize.c \
|
||||
abobj_select.c \
|
||||
abobj_set.c \
|
||||
abobj_util.c \
|
||||
brws.c \
|
||||
brws_find.c \
|
||||
brws_mthds.c \
|
||||
brws_utils.c \
|
||||
cgen_utils.c \
|
||||
conn_drag.c \
|
||||
conn_interpret.c \
|
||||
conn_obj.c \
|
||||
pal.c \
|
||||
pal_create.c \
|
||||
pal_button.c \
|
||||
pal_choice.c \
|
||||
pal_combobox.c \
|
||||
pal_cpanel.c \
|
||||
pal_custdlg.c \
|
||||
pal_drawp.c \
|
||||
pal_fchooser.c \
|
||||
pal_group.c \
|
||||
pal_label.c \
|
||||
pal_list.c \
|
||||
pal_mainwin.c \
|
||||
pal_menu.c \
|
||||
pal_menubar.c \
|
||||
pal_panedwin.c \
|
||||
pal_scale.c \
|
||||
pal_sep.c \
|
||||
pal_spinbox.c \
|
||||
pal_termp.c \
|
||||
pal_textf.c \
|
||||
pal_textp.c \
|
||||
proj.c \
|
||||
proj_utils.c \
|
||||
projP_utils.c \
|
||||
prop.c \
|
||||
prop_items.c \
|
||||
tmode.c \
|
||||
tmodeP.c \
|
||||
ui_msg.c \
|
||||
ui_list.c \
|
||||
ui_util.c \
|
||||
vwr.c \
|
||||
x_util.c
|
||||
|
||||
|
||||
|
||||
dtbuilder.msg: dtbuilder.msg.src
|
||||
$(CP) $? $@ && chmod ug+w $@
|
||||
dtbuilder.c: dtbuilder.c.src
|
||||
$(CP) $? $@ && chmod ug+w $@
|
||||
|
||||
Dtbuilder: Dtbuilder.src
|
||||
$(RM) $@
|
||||
$(GENCPP) -P -DXCOMM=# $(LOCAL_CPP_DEFINES) $< > $@
|
||||
|
||||
if SOLARIS
|
||||
|
||||
dtbuilder.h + dtb_utils.c + dtb_utils.h: dtbuilder.bip dtbuilder.c dtbuilder.msg
|
||||
$(DTCODEGEN) -changed -merge -p dtbuilder.bip -main
|
||||
dtbuilder.o: dtbuilder.c dtbuilder.bip $(TARGETS.h) $(TARGETS.h.merged)
|
||||
|
||||
PROJFILE = dtbuilder
|
||||
|
||||
about_box_ui.c + about_box_ui.h + about_box_stubs.c: $(PROJFILE).bip about_box.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip about_box.bil
|
||||
about_box_ui.o: about_box_ui.c about_box_ui.h about_box.bil
|
||||
about_box_stubs.o: about_box_stubs.c about_box_ui.c about_box_ui.h about_box.bil
|
||||
|
||||
appfw_ui.c + appfw_ui.h + appfw_stubs.c: $(PROJFILE).bip appfw.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip appfw.bil
|
||||
appfw_ui.o: appfw_ui.c appfw_ui.h appfw.bil
|
||||
appfw_stubs.o: appfw_stubs.c appfw_ui.c appfw_ui.h appfw.bil
|
||||
|
||||
attch_ed_ui.c + attch_ed_ui.h + attch_ed_stubs.c: $(PROJFILE).bip attch_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip attch_ed.bil
|
||||
attch_ed_ui.o: attch_ed_ui.c attch_ed_ui.h attch_ed.bil
|
||||
attch_ed_stubs.o: attch_ed_stubs.c attch_ed_ui.c attch_ed_ui.h attch_ed.bil
|
||||
|
||||
brws_ui.c + brws_ui.h + brws_stubs.c: $(PROJFILE).bip brws.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip brws.bil
|
||||
brws_ui.o: brws_ui.c brws_ui.h brws.bil
|
||||
brws_stubs.o: brws_stubs.c brws_ui.c brws_ui.h brws.bil
|
||||
|
||||
button_ui.c + button_ui.h + button_stubs.c: $(PROJFILE).bip button.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip button.bil
|
||||
button_ui.o: button_ui.c button_ui.h button.bil
|
||||
button_stubs.o: button_stubs.c button_ui.c button_ui.h button.bil
|
||||
|
||||
cgen_env_ui.c + cgen_env_ui.h + cgen_env_stubs.c: $(PROJFILE).bip cgen_env.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip cgen_env.bil
|
||||
cgen_env_ui.o: cgen_env_ui.c cgen_env_ui.h cgen_env.bil
|
||||
cgen_env_stubs.o: cgen_env_stubs.c cgen_env_ui.c cgen_env_ui.h cgen_env.bil
|
||||
|
||||
cgen_props_ui.c + cgen_props_ui.h + cgen_props_stubs.c: $(PROJFILE).bip cgen_props.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip cgen_props.bil
|
||||
cgen_props_ui.o: cgen_props_ui.c cgen_props_ui.h cgen_props.bil
|
||||
cgen_props_stubs.o: cgen_props_stubs.c cgen_props_ui.c cgen_props_ui.h cgen_props.bil
|
||||
|
||||
cgen_win_ui.c + cgen_win_ui.h + cgen_win_stubs.c: $(PROJFILE).bip cgen_win.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip cgen_win.bil
|
||||
cgen_win_ui.o: cgen_win_ui.c cgen_win_ui.h cgen_win.bil
|
||||
cgen_win_stubs.o: cgen_win_stubs.c cgen_win_ui.c cgen_win_ui.h cgen_win.bil
|
||||
|
||||
choice_ui.c + choice_ui.h + choice_stubs.c: $(PROJFILE).bip choice.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip choice.bil
|
||||
choice_ui.o: choice_ui.c choice_ui.h choice.bil
|
||||
choice_stubs.o: choice_stubs.c choice_ui.c choice_ui.h choice.bil
|
||||
|
||||
color_chooser_ui.c + color_chooser_ui.h + color_chooser_stubs.c: $(PROJFILE).bip color_chooser.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip color_chooser.bil
|
||||
color_chooser_ui.o: color_chooser_ui.c color_chooser_ui.h color_chooser.bil
|
||||
color_chooser_stubs.o: color_chooser_stubs.c color_chooser_ui.c color_chooser_ui.h color_chooser.bil
|
||||
|
||||
combobox_ui.c + combobox_ui.h + combobox_stubs.c: $(PROJFILE).bip combobox.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip combobox.bil
|
||||
combobox_ui.o: combobox_ui.c combobox_ui.h combobox.bil
|
||||
combobox_stubs.o: combobox_stubs.c combobox_ui.c combobox_ui.h combobox.bil
|
||||
|
||||
conn_ui.c + conn_ui.h + conn_stubs.c: $(PROJFILE).bip conn.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip conn.bil
|
||||
conn_ui.o: conn_ui.c conn_ui.h conn.bil
|
||||
conn_stubs.o: conn_stubs.c conn_ui.c conn_ui.h conn.bil
|
||||
|
||||
cpanel_ui.c + cpanel_ui.h + cpanel_stubs.c: $(PROJFILE).bip cpanel.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip cpanel.bil
|
||||
cpanel_ui.o: cpanel_ui.c cpanel_ui.h cpanel.bil
|
||||
cpanel_stubs.o: cpanel_stubs.c cpanel_ui.c cpanel_ui.h cpanel.bil
|
||||
|
||||
custdlg_ui.c + custdlg_ui.h + custdlg_stubs.c: $(PROJFILE).bip custdlg.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip custdlg.bil
|
||||
custdlg_ui.o: custdlg_ui.c custdlg_ui.h custdlg.bil
|
||||
custdlg_stubs.o: custdlg_stubs.c custdlg_ui.c custdlg_ui.h custdlg.bil
|
||||
|
||||
dnd_ed_ui.c + dnd_ed_ui.h + dnd_ed_stubs.c: $(PROJFILE).bip dnd_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip dnd_ed.bil
|
||||
dnd_ed_ui.o: dnd_ed_ui.c dnd_ed_ui.h dnd_ed.bil
|
||||
dnd_ed_stubs.o: dnd_ed_stubs.c dnd_ed_ui.c dnd_ed_ui.h dnd_ed.bil
|
||||
|
||||
drawp_ui.c + drawp_ui.h + drawp_stubs.c: $(PROJFILE).bip drawp.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip drawp.bil
|
||||
drawp_ui.o: drawp_ui.c drawp_ui.h drawp.bil
|
||||
drawp_stubs.o: drawp_stubs.c drawp_ui.c drawp_ui.h drawp.bil
|
||||
|
||||
fchooser_ui.c + fchooser_ui.h + fchooser_stubs.c: $(PROJFILE).bip fchooser.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip fchooser.bil
|
||||
fchooser_ui.o: fchooser_ui.c fchooser_ui.h fchooser.bil
|
||||
fchooser_stubs.o: fchooser_stubs.c fchooser_ui.c fchooser_ui.h fchooser.bil
|
||||
|
||||
group_ui.c + group_ui.h + group_stubs.c: $(PROJFILE).bip group.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip group.bil
|
||||
group_ui.o: group_ui.c group_ui.h group.bil
|
||||
group_stubs.o: group_stubs.c group_ui.c group_ui.h group.bil
|
||||
|
||||
help_ed_ui.c + help_ed_ui.h + help_ed_stubs.c: $(PROJFILE).bip help_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip help_ed.bil
|
||||
help_ed_ui.o: help_ed_ui.c help_ed_ui.h help_ed.bil
|
||||
help_ed_stubs.o: help_ed_stubs.c help_ed_ui.c help_ed_ui.h help_ed.bil
|
||||
|
||||
label_ui.c + label_ui.h + label_stubs.c: $(PROJFILE).bip label.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip label.bil
|
||||
label_ui.o: label_ui.c label_ui.h label.bil
|
||||
label_stubs.o: label_stubs.c label_ui.c label_ui.h label.bil
|
||||
|
||||
list_ui.c + list_ui.h + list_stubs.c: $(PROJFILE).bip list.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip list.bil
|
||||
list_ui.o: list_ui.c list_ui.h list.bil
|
||||
list_stubs.o: list_stubs.c list_ui.c list_ui.h list.bil
|
||||
|
||||
mainwin_ui.c + mainwin_ui.h + mainwin_stubs.c: $(PROJFILE).bip mainwin.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip mainwin.bil
|
||||
mainwin_ui.o: mainwin_ui.c mainwin_ui.h mainwin.bil
|
||||
mainwin_stubs.o: mainwin_stubs.c mainwin_ui.c mainwin_ui.h mainwin.bil
|
||||
|
||||
menu_ui.c + menu_ui.h + menu_stubs.c: $(PROJFILE).bip menu.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip menu.bil
|
||||
menu_ui.o: menu_ui.c menu_ui.h menu.bil
|
||||
menu_stubs.o: menu_stubs.c menu_ui.c menu_ui.h menu.bil
|
||||
|
||||
menubar_ui.c + menubar_ui.h + menubar_stubs.c: $(PROJFILE).bip menubar.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip menubar.bil
|
||||
menubar_ui.o: menubar_ui.c menubar_ui.h menubar.bil
|
||||
menubar_stubs.o: menubar_stubs.c menubar_ui.c menubar_ui.h menubar.bil
|
||||
|
||||
message_ed_ui.c + message_ed_ui.h + message_ed_stubs.c: $(PROJFILE).bip message_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip message_ed.bil
|
||||
message_ed_ui.o: message_ed_ui.c message_ed_ui.h message_ed.bil
|
||||
message_ed_stubs.o: message_ed_stubs.c message_ed_ui.c message_ed_ui.h message_ed.bil
|
||||
|
||||
palette_ui.c + palette_ui.h + palette_stubs.c: $(PROJFILE).bip palette.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip palette.bil
|
||||
palette_ui.o: palette_ui.c palette_ui.h palette.bil
|
||||
palette_stubs.o: palette_stubs.c palette_ui.c palette_ui.h palette.bil
|
||||
|
||||
panedwin_ed_ui.c + panedwin_ed_ui.h + panedwin_ed_stubs.c: $(PROJFILE).bip panedwin_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip panedwin_ed.bil
|
||||
panedwin_ed_ui.o: panedwin_ed_ui.c panedwin_ed_ui.h panedwin_ed.bil
|
||||
panedwin_ed_stubs.o: panedwin_ed_stubs.c panedwin_ed_ui.c panedwin_ed_ui.h panedwin_ed.bil
|
||||
|
||||
proj_ui.c + proj_ui.h + proj_stubs.c: $(PROJFILE).bip proj.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip proj.bil
|
||||
proj_ui.o: proj_ui.c proj_ui.h proj.bil
|
||||
proj_stubs.o: proj_stubs.c proj_ui.c proj_ui.h proj.bil
|
||||
|
||||
revolv_ui.c + revolv_ui.h + revolv_stubs.c: $(PROJFILE).bip revolv.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip revolv.bil
|
||||
revolv_ui.o: revolv_ui.c revolv_ui.h revolv.bil
|
||||
revolv_stubs.o: revolv_stubs.c revolv_ui.c revolv_ui.h revolv.bil
|
||||
|
||||
scale_ui.c + scale_ui.h + scale_stubs.c: $(PROJFILE).bip scale.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip scale.bil
|
||||
scale_ui.o: scale_ui.c scale_ui.h scale.bil
|
||||
scale_stubs.o: scale_stubs.c scale_ui.c scale_ui.h scale.bil
|
||||
|
||||
sep_ui.c + sep_ui.h + sep_stubs.c: $(PROJFILE).bip sep.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip sep.bil
|
||||
sep_ui.o: sep_ui.c sep_ui.h sep.bil
|
||||
sep_stubs.o: sep_stubs.c sep_ui.c sep_ui.h sep.bil
|
||||
|
||||
spinbox_ui.c + spinbox_ui.h + spinbox_stubs.c: $(PROJFILE).bip spinbox.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip spinbox.bil
|
||||
spinbox_ui.o: spinbox_ui.c spinbox_ui.h spinbox.bil
|
||||
spinbox_stubs.o: spinbox_stubs.c spinbox_ui.c spinbox_ui.h spinbox.bil
|
||||
|
||||
termp_ui.c + termp_ui.h + termp_stubs.c: $(PROJFILE).bip termp.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip termp.bil
|
||||
termp_ui.o: termp_ui.c termp_ui.h termp.bil
|
||||
termp_stubs.o: termp_stubs.c termp_ui.c termp_ui.h termp.bil
|
||||
|
||||
textf_ui.c + textf_ui.h + textf_stubs.c: $(PROJFILE).bip textf.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip textf.bil
|
||||
textf_ui.o: textf_ui.c textf_ui.h textf.bil
|
||||
textf_stubs.o: textf_stubs.c textf_ui.c textf_ui.h textf.bil
|
||||
|
||||
textp_ui.c + textp_ui.h + textp_stubs.c: $(PROJFILE).bip textp.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip textp.bil
|
||||
textp_ui.o: textp_ui.c textp_ui.h textp.bil
|
||||
textp_stubs.o: textp_stubs.c textp_ui.c textp_ui.h textp.bil
|
||||
|
||||
else
|
||||
|
||||
dtbuilder.h dtb_utils.c dtb_utils.h: dtbuilder.bip dtbuilder.c dtbuilder.msg
|
||||
$(DTCODEGEN) -changed -merge -p dtbuilder.bip -main
|
||||
dtbuilder.o: dtbuilder.c dtbuilder.bip $(TARGETS.h) $(TARGETS.h.merged)
|
||||
|
||||
PROJFILE = dtbuilder
|
||||
|
||||
about_box_ui.c about_box_ui.h about_box_stubs.c: $(PROJFILE).bip about_box.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip about_box.bil
|
||||
about_box_ui.o: about_box_ui.c about_box_ui.h about_box.bil
|
||||
about_box_stubs.o: about_box_stubs.c about_box_ui.c about_box_ui.h about_box.bil
|
||||
|
||||
appfw_ui.c appfw_ui.h appfw_stubs.c: $(PROJFILE).bip appfw.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip appfw.bil
|
||||
appfw_ui.o: appfw_ui.c appfw_ui.h appfw.bil
|
||||
appfw_stubs.o: appfw_stubs.c appfw_ui.c appfw_ui.h appfw.bil
|
||||
|
||||
attch_ed_ui.c attch_ed_ui.h attch_ed_stubs.c: $(PROJFILE).bip attch_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip attch_ed.bil
|
||||
attch_ed_ui.o: attch_ed_ui.c attch_ed_ui.h attch_ed.bil
|
||||
attch_ed_stubs.o: attch_ed_stubs.c attch_ed_ui.c attch_ed_ui.h attch_ed.bil
|
||||
|
||||
brws_ui.c brws_ui.h brws_stubs.c: $(PROJFILE).bip brws.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip brws.bil
|
||||
brws_ui.o: brws_ui.c brws_ui.h brws.bil
|
||||
brws_stubs.o: brws_stubs.c brws_ui.c brws_ui.h brws.bil
|
||||
|
||||
button_ui.c button_ui.h button_stubs.c: $(PROJFILE).bip button.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip button.bil
|
||||
button_ui.o: button_ui.c button_ui.h button.bil
|
||||
button_stubs.o: button_stubs.c button_ui.c button_ui.h button.bil
|
||||
|
||||
cgen_env_ui.c cgen_env_ui.h cgen_env_stubs.c: $(PROJFILE).bip cgen_env.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip cgen_env.bil
|
||||
cgen_env_ui.o: cgen_env_ui.c cgen_env_ui.h cgen_env.bil
|
||||
cgen_env_stubs.o: cgen_env_stubs.c cgen_env_ui.c cgen_env_ui.h cgen_env.bil
|
||||
|
||||
cgen_props_ui.c cgen_props_ui.h cgen_props_stubs.c: $(PROJFILE).bip cgen_props.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip cgen_props.bil
|
||||
cgen_props_ui.o: cgen_props_ui.c cgen_props_ui.h cgen_props.bil
|
||||
cgen_props_stubs.o: cgen_props_stubs.c cgen_props_ui.c cgen_props_ui.h cgen_props.bil
|
||||
|
||||
cgen_win_ui.c cgen_win_ui.h cgen_win_stubs.c: $(PROJFILE).bip cgen_win.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip cgen_win.bil
|
||||
cgen_win_ui.o: cgen_win_ui.c cgen_win_ui.h cgen_win.bil
|
||||
cgen_win_stubs.o: cgen_win_stubs.c cgen_win_ui.c cgen_win_ui.h cgen_win.bil
|
||||
|
||||
choice_ui.c choice_ui.h choice_stubs.c: $(PROJFILE).bip choice.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip choice.bil
|
||||
choice_ui.o: choice_ui.c choice_ui.h choice.bil
|
||||
choice_stubs.o: choice_stubs.c choice_ui.c choice_ui.h choice.bil
|
||||
|
||||
color_chooser_ui.c color_chooser_ui.h color_chooser_stubs.c: $(PROJFILE).bip color_chooser.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip color_chooser.bil
|
||||
color_chooser_ui.o: color_chooser_ui.c color_chooser_ui.h color_chooser.bil
|
||||
color_chooser_stubs.o: color_chooser_stubs.c color_chooser_ui.c color_chooser_ui.h color_chooser.bil
|
||||
|
||||
combobox_ui.c combobox_ui.h combobox_stubs.c: $(PROJFILE).bip combobox.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip combobox.bil
|
||||
combobox_ui.o: combobox_ui.c combobox_ui.h combobox.bil
|
||||
combobox_stubs.o: combobox_stubs.c combobox_ui.c combobox_ui.h combobox.bil
|
||||
|
||||
conn_ui.c conn_ui.h conn_stubs.c: $(PROJFILE).bip conn.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip conn.bil
|
||||
conn_ui.o: conn_ui.c conn_ui.h conn.bil
|
||||
conn_stubs.o: conn_stubs.c conn_ui.c conn_ui.h conn.bil
|
||||
|
||||
cpanel_ui.c cpanel_ui.h cpanel_stubs.c: $(PROJFILE).bip cpanel.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip cpanel.bil
|
||||
cpanel_ui.o: cpanel_ui.c cpanel_ui.h cpanel.bil
|
||||
cpanel_stubs.o: cpanel_stubs.c cpanel_ui.c cpanel_ui.h cpanel.bil
|
||||
|
||||
custdlg_ui.c custdlg_ui.h custdlg_stubs.c: $(PROJFILE).bip custdlg.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip custdlg.bil
|
||||
custdlg_ui.o: custdlg_ui.c custdlg_ui.h custdlg.bil
|
||||
custdlg_stubs.o: custdlg_stubs.c custdlg_ui.c custdlg_ui.h custdlg.bil
|
||||
|
||||
dnd_ed_ui.c dnd_ed_ui.h dnd_ed_stubs.c: $(PROJFILE).bip dnd_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip dnd_ed.bil
|
||||
dnd_ed_ui.o: dnd_ed_ui.c dnd_ed_ui.h dnd_ed.bil
|
||||
dnd_ed_stubs.o: dnd_ed_stubs.c dnd_ed_ui.c dnd_ed_ui.h dnd_ed.bil
|
||||
|
||||
drawp_ui.c drawp_ui.h drawp_stubs.c: $(PROJFILE).bip drawp.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip drawp.bil
|
||||
drawp_ui.o: drawp_ui.c drawp_ui.h drawp.bil
|
||||
drawp_stubs.o: drawp_stubs.c drawp_ui.c drawp_ui.h drawp.bil
|
||||
|
||||
fchooser_ui.c fchooser_ui.h fchooser_stubs.c: $(PROJFILE).bip fchooser.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip fchooser.bil
|
||||
fchooser_ui.o: fchooser_ui.c fchooser_ui.h fchooser.bil
|
||||
fchooser_stubs.o: fchooser_stubs.c fchooser_ui.c fchooser_ui.h fchooser.bil
|
||||
|
||||
group_ui.c group_ui.h group_stubs.c: $(PROJFILE).bip group.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip group.bil
|
||||
group_ui.o: group_ui.c group_ui.h group.bil
|
||||
group_stubs.o: group_stubs.c group_ui.c group_ui.h group.bil
|
||||
|
||||
help_ed_ui.c help_ed_ui.h help_ed_stubs.c: $(PROJFILE).bip help_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip help_ed.bil
|
||||
help_ed_ui.o: help_ed_ui.c help_ed_ui.h help_ed.bil
|
||||
help_ed_stubs.o: help_ed_stubs.c help_ed_ui.c help_ed_ui.h help_ed.bil
|
||||
|
||||
label_ui.c label_ui.h label_stubs.c: $(PROJFILE).bip label.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip label.bil
|
||||
label_ui.o: label_ui.c label_ui.h label.bil
|
||||
label_stubs.o: label_stubs.c label_ui.c label_ui.h label.bil
|
||||
|
||||
list_ui.c list_ui.h list_stubs.c: $(PROJFILE).bip list.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip list.bil
|
||||
list_ui.o: list_ui.c list_ui.h list.bil
|
||||
list_stubs.o: list_stubs.c list_ui.c list_ui.h list.bil
|
||||
|
||||
mainwin_ui.c mainwin_ui.h mainwin_stubs.c: $(PROJFILE).bip mainwin.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip mainwin.bil
|
||||
mainwin_ui.o: mainwin_ui.c mainwin_ui.h mainwin.bil
|
||||
mainwin_stubs.o: mainwin_stubs.c mainwin_ui.c mainwin_ui.h mainwin.bil
|
||||
|
||||
menu_ui.c menu_ui.h menu_stubs.c: $(PROJFILE).bip menu.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip menu.bil
|
||||
menu_ui.o: menu_ui.c menu_ui.h menu.bil
|
||||
menu_stubs.o: menu_stubs.c menu_ui.c menu_ui.h menu.bil
|
||||
|
||||
menubar_ui.c menubar_ui.h menubar_stubs.c: $(PROJFILE).bip menubar.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip menubar.bil
|
||||
menubar_ui.o: menubar_ui.c menubar_ui.h menubar.bil
|
||||
menubar_stubs.o: menubar_stubs.c menubar_ui.c menubar_ui.h menubar.bil
|
||||
|
||||
message_ed_ui.c message_ed_ui.h message_ed_stubs.c: $(PROJFILE).bip message_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip message_ed.bil
|
||||
message_ed_ui.o: message_ed_ui.c message_ed_ui.h message_ed.bil
|
||||
message_ed_stubs.o: message_ed_stubs.c message_ed_ui.c message_ed_ui.h message_ed.bil
|
||||
|
||||
palette_ui.c palette_ui.h palette_stubs.c: $(PROJFILE).bip palette.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip palette.bil
|
||||
palette_ui.o: palette_ui.c palette_ui.h palette.bil
|
||||
palette_stubs.o: palette_stubs.c palette_ui.c palette_ui.h palette.bil
|
||||
|
||||
panedwin_ed_ui.c panedwin_ed_ui.h panedwin_ed_stubs.c: $(PROJFILE).bip panedwin_ed.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip panedwin_ed.bil
|
||||
panedwin_ed_ui.o: panedwin_ed_ui.c panedwin_ed_ui.h panedwin_ed.bil
|
||||
panedwin_ed_stubs.o: panedwin_ed_stubs.c panedwin_ed_ui.c panedwin_ed_ui.h panedwin_ed.bil
|
||||
|
||||
proj_ui.c proj_ui.h proj_stubs.c: $(PROJFILE).bip proj.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip proj.bil
|
||||
proj_ui.o: proj_ui.c proj_ui.h proj.bil
|
||||
proj_stubs.o: proj_stubs.c proj_ui.c proj_ui.h proj.bil
|
||||
|
||||
revolv_ui.c revolv_ui.h revolv_stubs.c: $(PROJFILE).bip revolv.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip revolv.bil
|
||||
revolv_ui.o: revolv_ui.c revolv_ui.h revolv.bil
|
||||
revolv_stubs.o: revolv_stubs.c revolv_ui.c revolv_ui.h revolv.bil
|
||||
|
||||
scale_ui.c scale_ui.h scale_stubs.c: $(PROJFILE).bip scale.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip scale.bil
|
||||
scale_ui.o: scale_ui.c scale_ui.h scale.bil
|
||||
scale_stubs.o: scale_stubs.c scale_ui.c scale_ui.h scale.bil
|
||||
|
||||
sep_ui.c sep_ui.h sep_stubs.c: $(PROJFILE).bip sep.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip sep.bil
|
||||
sep_ui.o: sep_ui.c sep_ui.h sep.bil
|
||||
sep_stubs.o: sep_stubs.c sep_ui.c sep_ui.h sep.bil
|
||||
|
||||
spinbox_ui.c spinbox_ui.h spinbox_stubs.c: $(PROJFILE).bip spinbox.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip spinbox.bil
|
||||
spinbox_ui.o: spinbox_ui.c spinbox_ui.h spinbox.bil
|
||||
spinbox_stubs.o: spinbox_stubs.c spinbox_ui.c spinbox_ui.h spinbox.bil
|
||||
|
||||
termp_ui.c termp_ui.h termp_stubs.c: $(PROJFILE).bip termp.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip termp.bil
|
||||
termp_ui.o: termp_ui.c termp_ui.h termp.bil
|
||||
termp_stubs.o: termp_stubs.c termp_ui.c termp_ui.h termp.bil
|
||||
|
||||
textf_ui.c textf_ui.h textf_stubs.c: $(PROJFILE).bip textf.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip textf.bil
|
||||
textf_ui.o: textf_ui.c textf_ui.h textf.bil
|
||||
textf_stubs.o: textf_stubs.c textf_ui.c textf_ui.h textf.bil
|
||||
|
||||
textp_ui.c textp_ui.h textp_stubs.c: $(PROJFILE).bip textp.bil
|
||||
$(DTCODEGEN) -changed -merge -p $(PROJFILE).bip textp.bil
|
||||
textp_ui.o: textp_ui.c textp_ui.h textp.bil
|
||||
textp_stubs.o: textp_stubs.c textp_ui.c textp_ui.h textp.bil
|
||||
|
||||
endif
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: ab.h /main/3 1995/11/06 17:12:23 rswiston $
|
||||
*
|
||||
* @(#)ab.h 1.49 94/07/31 Copyright 1993 Sun Microsystems
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* ab.h
|
||||
*/
|
||||
#ifndef _AB_H_
|
||||
#define _AB_H_
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
#include <nl_types.h> /* Necessary for message I18N */
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/vwr.h>
|
||||
#include <ab_private/ab_utils.h>
|
||||
#include <Dt/Dt.h> /* for version information */
|
||||
|
||||
|
||||
#define MODE_BUILD 1
|
||||
#define MODE_TEST_SHOWN 2
|
||||
#define MODE_TEST_PROJ 3
|
||||
|
||||
/*
|
||||
* Determine the version string
|
||||
*/
|
||||
#ifdef SDtVERSION_STRING
|
||||
#define AbVERSION_STRING SDtVERSION_STRING
|
||||
#elif defined DtVERSION_STRING
|
||||
#define AbVERSION_STRING DtVERSION_STRING
|
||||
#else
|
||||
#define AbVERSION_STRING "CDE Version Unknown"
|
||||
#endif
|
||||
|
||||
|
||||
extern ABObj AB_project;
|
||||
extern ABObj AB_cur_module;
|
||||
|
||||
extern int AB_builder_mode;
|
||||
|
||||
extern Widget AB_toplevel;
|
||||
|
||||
extern Widget AB_cgen_win;
|
||||
extern Widget AB_proj_window;
|
||||
|
||||
extern Widget AB_generic_chooser;
|
||||
|
||||
extern Widget AB_appfw_dialog;
|
||||
extern Widget AB_attch_ed_dialog;
|
||||
extern Widget AB_cgen_env_dialog;
|
||||
extern Widget AB_cgen_prop_dialog;
|
||||
extern Widget AB_conn_dialog;
|
||||
extern Widget AB_dnd_dialog;
|
||||
extern Widget AB_help_dialog;
|
||||
extern Widget AB_layout_dialog;
|
||||
extern Widget AB_msgEd_dialog;
|
||||
extern Widget AB_rev_prop_dialog;
|
||||
|
||||
extern Vwr Proj_viewer;
|
||||
extern XrmDatabase AB_db;
|
||||
extern Boolean AB_btn1_transfer;
|
||||
extern int AB_BMenu;
|
||||
|
||||
/* Needed for message I18N */
|
||||
extern nl_catd Dtb_project_catd;
|
||||
|
||||
#endif /* _AB_H_ */
|
||||
@@ -48,6 +48,7 @@
|
||||
#include <time.h>
|
||||
#include <sys/param.h> /* MAXPATHLEN */
|
||||
#include <errno.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/bil.h>
|
||||
|
||||
@@ -1,107 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: ab_bil.h /main/3 1995/11/06 17:12:53 rswiston $
|
||||
*
|
||||
* @(#)ab_bil.h 1.13 02 Apr 1995
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: ab_bil.h
|
||||
*/
|
||||
|
||||
#ifndef _ab_ab_bil_h
|
||||
#define _ab_ab_bil_h
|
||||
|
||||
#include <ab_private/obj.h>
|
||||
|
||||
/* Defines for data types returned by DtDtsBufferToDataType()
|
||||
* and DtDtsFileToDataType().
|
||||
*/
|
||||
#define BIL "BIL"
|
||||
#define BIP "BIP"
|
||||
#define BIX "BIX"
|
||||
|
||||
/* Loads entire project. Sets/replaces current project.
|
||||
*/
|
||||
int ab_load_bil_file(
|
||||
STRING fileName,
|
||||
FILE *inFile,
|
||||
BOOL BufferDrop
|
||||
);
|
||||
|
||||
/* Loads one bil file, containing one or more modules, into
|
||||
* the current project.
|
||||
*/
|
||||
int ab_import_bil_file(
|
||||
STRING fileName,
|
||||
FILE *inFile,
|
||||
BOOL import_by_ref
|
||||
);
|
||||
|
||||
/* Calls ab_load_bil_file(). Called by the File->Open Project
|
||||
* callback and the Project->Open callback. Also called when
|
||||
* a project is loaded from the command-line.
|
||||
*/
|
||||
int ab_check_and_open_bip(
|
||||
STRING fileName
|
||||
);
|
||||
|
||||
/* Calls ab_import_bil_file(). Called by the File->Import->Module
|
||||
* callback and the Module->Import callback. Also called when
|
||||
* a project or module is loaded from the command-line.
|
||||
*/
|
||||
int ab_check_and_import_bil(
|
||||
STRING fileName,
|
||||
BOOL ImportByCopy
|
||||
);
|
||||
|
||||
|
||||
int ab_load_project(
|
||||
STRING fileName,
|
||||
FILE *inFile,
|
||||
BOOL BufferDrop
|
||||
);
|
||||
|
||||
int ab_import_module(
|
||||
STRING fileName,
|
||||
FILE *inFile,
|
||||
BOOL ImportByCopy
|
||||
);
|
||||
|
||||
|
||||
#endif /* _ab_ab_bil_h */
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <Dt/Dt.h>
|
||||
#include <Dt/Dts.h>
|
||||
#include <Dt/Dnd.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/ab_dnd.h>
|
||||
#include <ab_private/ab_bil.h>
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: ab_dnd.h /main/3 1995/11/06 17:13:18 rswiston $
|
||||
*
|
||||
* %W% %G% cde_app_builder/src/
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* ab_dnd.h
|
||||
* Declarations for drag and drop functions in the app builder.
|
||||
*/
|
||||
#ifndef _ab_dnd_h
|
||||
#define _ab_dnd_h
|
||||
|
||||
extern void ab_dnd_register_drop_file(
|
||||
Widget dropFile
|
||||
);
|
||||
|
||||
extern void ab_dnd_unregister_drop(
|
||||
Widget dropFile
|
||||
);
|
||||
|
||||
#endif /* _ab_dnd_h */
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: ab_resources.h /main/3 1995/11/06 17:13:44 rswiston $
|
||||
*
|
||||
* @(#)ab_resources.h 1.1 27 Jun 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#define AB_XRM_CUR_PROJECT "Dtbuilder.currentProject"
|
||||
#define AB_XRM_SHOWN_MODULES "Dtbuilder.shownModules"
|
||||
@@ -50,6 +50,7 @@
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/MessageB.h>
|
||||
#include <X11/cursorfont.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/abobj.h>
|
||||
#include <ab_private/abobj_set.h>
|
||||
@@ -62,7 +63,6 @@
|
||||
#include <ab_private/cgen.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
#include "palette_ui.h"
|
||||
#include "dtb_utils.h"
|
||||
|
||||
|
||||
typedef struct INIT_WIN_POS {
|
||||
|
||||
@@ -1,166 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: ab_utils.h /main/3 1995/11/06 17:14:16 rswiston $
|
||||
*
|
||||
* @(#)ab_utils.h 1.10 95/03/09 Copyright 1993 Sun Microsystems
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* ab_utils.h
|
||||
*/
|
||||
#ifndef _AB_UTILS_H_
|
||||
#define _AB_UTILS_H_
|
||||
|
||||
#include <ab_private/abio.h>
|
||||
|
||||
#define InTestMode AB_builder_mode == MODE_TEST_SHOWN || \
|
||||
AB_builder_mode == MODE_TEST_PROJ
|
||||
#define InBuildMode AB_builder_mode == MODE_BUILD
|
||||
|
||||
/* To implement dtbuilder window protocol */
|
||||
#define WindowHidden 0x0000
|
||||
#define WindowUp 0x0001
|
||||
#define WindowIconified 0x0002
|
||||
|
||||
typedef enum
|
||||
{
|
||||
AB_WIN_LEADER,
|
||||
AB_WIN_WINDOW,
|
||||
AB_WIN_DIALOG,
|
||||
AB_WIN_MODAL,
|
||||
AB_WIN_TYPE_NUM_VALUES
|
||||
} AB_WIN_TYPE;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
AB_WPOS_UNSPECIFIED,
|
||||
AB_WPOS_TILE_ABOVE,
|
||||
AB_WPOS_TILE_BELOW,
|
||||
AB_WPOS_TILE_HORIZONTAL,
|
||||
AB_WPOS_TILE_LEFT,
|
||||
AB_WPOS_TILE_RIGHT,
|
||||
AB_WPOS_TILE_VERTICAL,
|
||||
AB_WPOS_STACK_DIAGONAL,
|
||||
AB_WPOS_STACK_CENTER,
|
||||
AB_WPOS_TYPE_NUM_VALUES
|
||||
} AB_WPOS_TYPE;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
AB_STATUS_OBJ_TYPE,
|
||||
AB_STATUS_OBJ_NAME,
|
||||
AB_STATUS_OBJ_POS,
|
||||
AB_STATUS_OBJ_SIZE,
|
||||
AB_STATUS_CURS_POS,
|
||||
AB_STATUS_CUR_MODULE,
|
||||
AB_STATUS_NUM_VALUES /* number of valid values - MUST BE
|
||||
LAST */
|
||||
/* ANSI: no comma after last enum item! */
|
||||
} AB_STATUS_INFO;
|
||||
|
||||
typedef struct AB_WINDOW {
|
||||
Widget widget;
|
||||
AB_WIN_TYPE type;
|
||||
unsigned long state;
|
||||
struct AB_WINDOW *next;
|
||||
} ABWindow;
|
||||
|
||||
extern void ab_register_window(
|
||||
Widget widget,
|
||||
AB_WIN_TYPE type,
|
||||
unsigned long init_state,
|
||||
Widget init_pos_ref_win,
|
||||
AB_WPOS_TYPE init_pos_type,
|
||||
XtCallbackProc close_callback,
|
||||
XtPointer close_clientdata
|
||||
);
|
||||
extern void ab_show_window(
|
||||
Widget widget
|
||||
);
|
||||
extern void ab_takedown_windows(void);
|
||||
|
||||
extern void ab_putback_windows(void);
|
||||
|
||||
extern BOOL ab_window_leader_iconified(void);
|
||||
|
||||
extern BOOL ab_window_is_open(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern void ab_position_window(
|
||||
Widget widget,
|
||||
Widget ref_widget,
|
||||
AB_WPOS_TYPE pos_type
|
||||
);
|
||||
|
||||
extern BOOL ab_is_cur_dir(
|
||||
STRING dir
|
||||
);
|
||||
|
||||
extern int ab_change_dir(
|
||||
STRING new_dir
|
||||
);
|
||||
|
||||
extern STRING ab_get_cur_dir(void);
|
||||
|
||||
extern int ab_cvt_image_file_to_pixmap(
|
||||
Widget widget,
|
||||
STRING file_name,
|
||||
Pixmap *pixmap_out
|
||||
);
|
||||
|
||||
extern int ab_post_instantiate(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int ab_update_stat_region(
|
||||
AB_STATUS_INFO type,
|
||||
String valuestring
|
||||
);
|
||||
|
||||
extern void ab_set_busy_cursor(
|
||||
BOOL on
|
||||
);
|
||||
|
||||
extern void ab_palette_set_active(
|
||||
BOOL active
|
||||
);
|
||||
|
||||
extern void ab_exit_dtbuilder(void);
|
||||
|
||||
#endif /* _AB_UTILS_H_ */
|
||||
@@ -1,480 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: abobj.h /main/3 1995/11/06 17:14:34 rswiston $
|
||||
*
|
||||
* @(#)abobj.h 1.27 15 Feb 1994 cde_app_builder/src/ab
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _ABOBJ_H_
|
||||
#define _ABOBJ_H_
|
||||
/*
|
||||
* abobj.h - AB object manipulation functions
|
||||
*/
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include "dtb_utils.h"
|
||||
|
||||
|
||||
/*
|
||||
* Flags to control ABObj Edit Menu state
|
||||
*/
|
||||
#define ABMenuNone 0x0000
|
||||
#define ABMenuProps 0x0001
|
||||
#define ABMenuUndo 0x0002
|
||||
#define ABMenuCut 0x0004
|
||||
#define ABMenuCopy 0x0008
|
||||
#define ABMenuPaste 0x0010
|
||||
#define ABMenuDelete 0x0020
|
||||
#define ABMenuAlign 0x0040
|
||||
#define ABMenuDistribute 0x0080
|
||||
#define ABMenuGroup 0x0100
|
||||
#define ABMenuUngroup 0x0200
|
||||
#define ABMenuNextLayer 0x0400
|
||||
#define ABMenuBrowse 0x0800
|
||||
#define ABMenuAttach 0x1000
|
||||
#define ABMenuPane 0x2000
|
||||
#define ABMenuUnpane 0x4000
|
||||
#define ABMenuExpand 0x8000
|
||||
#define ABMenuExpandAll 0x10000
|
||||
#define ABMenuCollapse 0x20000
|
||||
#define ABMenuTearOff 0x40000
|
||||
|
||||
/*
|
||||
* Two Types of Object Edit Menus: Browser & WindowObj
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
WIN_EDIT_MENU,
|
||||
BROWSER_EDIT_MENU,
|
||||
EDIT_MENU_TYPE_NUM_VALUES /* number of valid values - MUST BE LAST */
|
||||
/* ANSI: no comma after last enum item! */
|
||||
} EDIT_MENU_TYPE;
|
||||
|
||||
/*
|
||||
* Selected Object storage
|
||||
*/
|
||||
typedef struct _AB_SELECTED_REC
|
||||
{
|
||||
ABObj *list;
|
||||
int count;
|
||||
} ABSelectedRec;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* EVENT-HANDLING for AB objects
|
||||
*/
|
||||
|
||||
extern void abobj_register_build_actions(
|
||||
XtAppContext app
|
||||
);
|
||||
|
||||
extern int abobj_tree_set_build_actions(
|
||||
ABObj root
|
||||
);
|
||||
|
||||
/*
|
||||
* Instantiate/Show/Hide/Propogate an AB object hierarchy
|
||||
*/
|
||||
extern int abobj_instantiate_tree(
|
||||
ABObj root,
|
||||
BOOL manage_last
|
||||
);
|
||||
|
||||
extern int abobj_show_tree(
|
||||
ABObj root,
|
||||
BOOL manage_last
|
||||
);
|
||||
|
||||
extern int abobj_hide_tree(
|
||||
ABObj root
|
||||
);
|
||||
|
||||
/*
|
||||
* SELECT AB object functions
|
||||
*/
|
||||
extern void abobj_select(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void abobj_deselect(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void abobj_deselect_all(
|
||||
ABObj root
|
||||
);
|
||||
|
||||
extern int abobj_get_selected(
|
||||
/* NOTE: caller must free the memory for sel->list! */
|
||||
ABObj root,
|
||||
BOOL include_root,
|
||||
BOOL include_items,
|
||||
ABSelectedRec *sel
|
||||
);
|
||||
|
||||
extern void abobj_sort_sel_list(
|
||||
ABObj *sel_list,
|
||||
int sel_count,
|
||||
int sort);
|
||||
|
||||
extern void abobj_group_selected_objects(
|
||||
);
|
||||
|
||||
extern void abobj_ungroup_selected_objects(
|
||||
);
|
||||
|
||||
extern void abobj_layout_group(
|
||||
ABObj obj,
|
||||
BOOL init
|
||||
);
|
||||
|
||||
extern void abobj_register_group_expose_handler(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void abobj_make_panedwin(
|
||||
);
|
||||
|
||||
extern void abobj_unmake_panedwin(
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* MOVE AB object functions
|
||||
*/
|
||||
extern int abobj_move(
|
||||
ABObj obj,
|
||||
XEvent *event
|
||||
);
|
||||
|
||||
extern void abobj_move_selected(
|
||||
ABObj *sel_list,
|
||||
int sel_count,
|
||||
XRectangle *start,
|
||||
XRectangle *stop
|
||||
);
|
||||
|
||||
extern void abobj_nudge_selected(
|
||||
ABObj *sel_list,
|
||||
int sel_count,
|
||||
short x_delta,
|
||||
short y_delta,
|
||||
BOOL reselect
|
||||
);
|
||||
extern BOOL abobj_is_movable(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
/*
|
||||
* ALIGN AB object functions
|
||||
*/
|
||||
|
||||
extern void abobj_align(
|
||||
unsigned long align_mask
|
||||
);
|
||||
|
||||
/*
|
||||
* RESIZE AB object functions
|
||||
*/
|
||||
|
||||
extern int abobj_resize(
|
||||
ABObj obj,
|
||||
XEvent *event
|
||||
);
|
||||
|
||||
extern BOOL abobj_is_directly_resizable(
|
||||
ABObj obj
|
||||
);
|
||||
extern BOOL abobj_width_resizable(
|
||||
ABObj obj
|
||||
);
|
||||
extern BOOL abobj_height_resizable(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
/*
|
||||
* LAYOUT AB object functions
|
||||
*/
|
||||
extern int abobj_layout_changed(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_calculate_new_layout(
|
||||
ABObj obj,
|
||||
int new_x,
|
||||
int new_y,
|
||||
Dimension new_width,
|
||||
Dimension new_height
|
||||
);
|
||||
|
||||
extern void abobj_sort_children(
|
||||
ABObj obj,
|
||||
int sort);
|
||||
|
||||
extern void abobj_clear_layout(
|
||||
ABObj obj,
|
||||
BOOL clear_children,
|
||||
BOOL init_attachments
|
||||
);
|
||||
|
||||
extern ABObj abobj_handle_layered_pane(
|
||||
ABObj newobj,
|
||||
ABObj pane
|
||||
);
|
||||
|
||||
extern int abobj_init_pane_position(
|
||||
ABObj pane
|
||||
);
|
||||
|
||||
extern int abobj_layer_show_next(
|
||||
ABObj layer
|
||||
);
|
||||
|
||||
extern void abobj_layer_set_size(
|
||||
ABObj layer,
|
||||
int new_width,
|
||||
int new_height
|
||||
);
|
||||
|
||||
extern int abobj_layer_manage_visible(
|
||||
ABObj layer
|
||||
);
|
||||
|
||||
/*
|
||||
* Functions to duplicate an ABObj tree for the clipboard
|
||||
*/
|
||||
extern ABObj abobj_dup(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern ABObj abobj_dup_tree(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
/*
|
||||
* POPUP-MENU AB object functions
|
||||
*/
|
||||
/* Handles Caching Menus */
|
||||
extern void abobj_popup_menu(
|
||||
EDIT_MENU_TYPE mtype,
|
||||
Widget origin,
|
||||
ABSelectedRec *target,
|
||||
XButtonEvent *event
|
||||
);
|
||||
/* Creates/Destroys Menu each time */
|
||||
extern void abobj_menu(
|
||||
Widget origin,
|
||||
ABSelectedRec *target,
|
||||
XButtonEvent *event
|
||||
);
|
||||
|
||||
/*
|
||||
* Miscellaneous AB object utilities
|
||||
*/
|
||||
extern int abobj_comp_rename(
|
||||
ABObj obj,
|
||||
STRING oldname,
|
||||
STRING newname
|
||||
);
|
||||
|
||||
extern int abobj_get_value_x(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_actual_width(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_actual_height(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_comp_width(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_comp_height(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_x(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_y(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_actual_x(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_actual_y(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_comp_x(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_comp_y(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_get_label_width(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void abobj_get_rect_for_objects(
|
||||
ABObj *list,
|
||||
int count,
|
||||
XRectangle *j_rect
|
||||
);
|
||||
|
||||
extern void abobj_get_greatest_size(
|
||||
ABObj *list,
|
||||
int count,
|
||||
int *width,
|
||||
int *height,
|
||||
ABObj *tallest_obj,
|
||||
ABObj *widest_obj
|
||||
);
|
||||
extern BOOL abobj_has_attached_label(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
/* Given an obj, return a module-format name:
|
||||
* "modulename :: objname"
|
||||
* NOTE: it is up to caller to free memory allocated
|
||||
* by this function
|
||||
*/
|
||||
extern STRING abobj_get_moduled_name(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
/* Give a module-name & an obj-name, return in format:
|
||||
* "modulename :: objname"
|
||||
* NOTE: the caller must free the memory allocated
|
||||
* by this function
|
||||
*/
|
||||
extern STRING abobj_alloc_moduled_name(
|
||||
STRING mod_name,
|
||||
STRING obj_name
|
||||
);
|
||||
|
||||
/* Given a module-format name "modulename :: objname",
|
||||
* return the correct 'module' & 'obj' ABobjs
|
||||
*/
|
||||
extern int abobj_moduled_name_extract(
|
||||
STRING m_o_name,
|
||||
ABObj *module,
|
||||
ABObj *obj
|
||||
);
|
||||
|
||||
extern int abobj_reset_colors(
|
||||
ABObj obj,
|
||||
BOOL reset_bg,
|
||||
BOOL reset_fg
|
||||
);
|
||||
|
||||
extern void abobj_force_dang_form_resize(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_update_module_name(
|
||||
ABObj modobj
|
||||
);
|
||||
|
||||
extern int abobj_update_proj_name(
|
||||
ABObj proj_obj
|
||||
);
|
||||
|
||||
extern int abobj_update_palette_title(
|
||||
ABObj proj_obj
|
||||
);
|
||||
|
||||
extern void abobj_tree_realize(
|
||||
ABObj ab_interface,
|
||||
Bool manage
|
||||
);
|
||||
|
||||
extern int abobj_tree_set_centering_handler(
|
||||
ABObj root
|
||||
);
|
||||
|
||||
extern DTB_CENTERING_TYPES abobj_get_centering_type(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int abobj_build_menus_array(
|
||||
ABObj root,
|
||||
ABObj **menus_ptr,
|
||||
int *menu_count_ptr
|
||||
);
|
||||
|
||||
extern void abobj_build_layout_menu(
|
||||
Widget menu
|
||||
);
|
||||
|
||||
extern void abobj_set_menu_item_state(
|
||||
Widget menu
|
||||
);
|
||||
|
||||
extern void abobj_strings_init(
|
||||
);
|
||||
|
||||
extern int abobj_project_name_extract(
|
||||
STRING app_name,
|
||||
ABObj *obj
|
||||
);
|
||||
|
||||
/*
|
||||
* Data
|
||||
*/
|
||||
|
||||
extern int AB_grid_size;
|
||||
extern const int AB_selected_rect_size;
|
||||
|
||||
/*************************************************************************
|
||||
** **
|
||||
** INLINE IMPLEMENTATION **
|
||||
** **
|
||||
*************************************************************************/
|
||||
|
||||
#endif /* _ABOBJ_H_ */
|
||||
@@ -1,184 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: abobjP.h /main/3 1995/11/06 17:14:46 rswiston $
|
||||
*
|
||||
* @(#)abobjP.h 1.17 15 Feb 1994 cde_app_builder/src/ab
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* abobjP.h -
|
||||
*/
|
||||
#ifndef _ABOBJ_P_H_
|
||||
#define _ABOBJ_P_H_
|
||||
|
||||
|
||||
#if !defined(CSRG_BASED)
|
||||
#include <values.h>
|
||||
#endif
|
||||
|
||||
#include <ab_private/abobj.h>
|
||||
#include <ab_private/abobj_set.h>
|
||||
|
||||
#ifndef MAXINT
|
||||
#define MAXINT (0x7FFFFFFF)
|
||||
#endif /* MAXINT */
|
||||
#define XSORT (1)
|
||||
#define YSORT (2)
|
||||
|
||||
/*
|
||||
* Resize directions.
|
||||
*/
|
||||
typedef enum {
|
||||
NONE,
|
||||
MOVE,
|
||||
NORTH,
|
||||
SOUTH,
|
||||
EAST,
|
||||
WEST,
|
||||
NORTH_EAST,
|
||||
NORTH_WEST,
|
||||
SOUTH_EAST,
|
||||
SOUTH_WEST,
|
||||
RESIZE_DIR_NUM_VALUES
|
||||
/* ANSI: no comma after last enum item! */
|
||||
} RESIZE_DIR;
|
||||
|
||||
typedef enum {
|
||||
LEFT_EDGES = (1L << 0),
|
||||
VCENTERS = (1L << 1),
|
||||
RIGHT_EDGES = (1L << 2),
|
||||
LABELS = (1L << 3),
|
||||
TOP_EDGES = (1L << 4),
|
||||
HCENTERS = (1L << 5),
|
||||
BOTTOM_EDGES = (1L << 6),
|
||||
TO_GRID = (1L << 7),
|
||||
VSPACING = (1L << 8),
|
||||
HSPACING = (1L << 9),
|
||||
FIXEDROWS = (1L << 10),
|
||||
FIXEDCOLS = (1L << 12),
|
||||
ROWFIRST = (1L << 13),
|
||||
COLFIRST = (1L << 14),
|
||||
HCENTERED = (1L << 15),
|
||||
VCENTERED = (1L << 16)
|
||||
/* ANSI: no comma after last enum item! */
|
||||
} AB_ALIGN_TYPES;
|
||||
|
||||
/*
|
||||
* Translation Table storage
|
||||
*/
|
||||
typedef struct _AB_TRANS_TBL
|
||||
{
|
||||
WidgetClass wclass;
|
||||
XtTranslations translations;
|
||||
|
||||
} ABTransTbl;
|
||||
|
||||
/*
|
||||
* Object Menu Cache structure
|
||||
*/
|
||||
typedef struct _WIN_MENU_CACHE
|
||||
{
|
||||
ABObj winobj;
|
||||
Widget menu;
|
||||
} WinMenuCache;
|
||||
|
||||
/*
|
||||
* Browser Menu Cache structure
|
||||
*/
|
||||
typedef struct _BROWSER_MENU_CACHE
|
||||
{
|
||||
Widget brws_widget;
|
||||
Widget menu;
|
||||
} BrowserMenuCache;
|
||||
|
||||
|
||||
/*
|
||||
* EVENT-HANDLING for AB objects
|
||||
*/
|
||||
extern void abobjP_enable_build_actions(
|
||||
ABObj obj,
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern void abobjP_disable_build_actions(
|
||||
ABObj obj,
|
||||
Widget widget
|
||||
);
|
||||
|
||||
/*
|
||||
* SELECT AB object functions
|
||||
*/
|
||||
|
||||
/*
|
||||
* MOVE AB object functions
|
||||
*/
|
||||
extern int abobjP_move_object_outline(
|
||||
ABObj obj,
|
||||
XMotionEvent *mevent
|
||||
);
|
||||
|
||||
/*
|
||||
* RESIZE AB object functions
|
||||
*/
|
||||
extern Cursor abobjP_get_resize_cursor(
|
||||
Widget w,
|
||||
RESIZE_DIR dir
|
||||
);
|
||||
|
||||
extern RESIZE_DIR abobjP_find_resize_direction(
|
||||
ABObj obj,
|
||||
Widget w,
|
||||
XEvent *event
|
||||
);
|
||||
|
||||
extern int abobjP_resize_object_outline(
|
||||
ABObj obj,
|
||||
XEvent *event,
|
||||
RESIZE_DIR dir
|
||||
);
|
||||
|
||||
extern void abobjP_track_external_resizes(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XEvent *event,
|
||||
Boolean cont_to_dispatch
|
||||
);
|
||||
|
||||
|
||||
#endif /* _ABOBJ_P_H_ */
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
#include <Xm/RowColumn.h>
|
||||
#include <Xm/TextF.h>
|
||||
#include <Xm/Text.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/proj.h>
|
||||
#include <Dt/xpm.h> /* will this be in include/Dt? */
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/param.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
#include <ab_private/brws.h>
|
||||
|
||||
@@ -1,320 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: abobj_edit.h /main/3 1995/11/06 17:15:39 rswiston $
|
||||
*
|
||||
* @(#)abobj_edit.h 1.1 15 Feb 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _ABOBJ_EDIT_H_
|
||||
#define _ABOBJ_EDIT_H_
|
||||
|
||||
#include <ab_private/abobj.h>
|
||||
|
||||
/*
|
||||
* Declarations for edit features
|
||||
*/
|
||||
|
||||
/*
|
||||
* Size of each malloc'd block for clipboard/undo buffer
|
||||
*/
|
||||
#define ABOBJ_CLIPBOARD_BLOCK_SIZE 10
|
||||
#define ABOBJ_UNDO_BLOCK_SIZE 10
|
||||
|
||||
/*
|
||||
* Edit operations
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
AB_EDIT_CUT = 0,
|
||||
AB_EDIT_COPY,
|
||||
AB_EDIT_PASTE,
|
||||
AB_EDIT_DELETE,
|
||||
AB_EDIT_NUM_VALUES
|
||||
} AB_EDIT_TYPE;
|
||||
|
||||
/*
|
||||
* Supported actions that can be undone
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
AB_UNDO_NO_TYPE = 0,
|
||||
AB_UNDO_CUT,
|
||||
AB_UNDO_DELETE,
|
||||
AB_UNDO_PASTE,
|
||||
AB_UNDO_MOVE,
|
||||
AB_UNDO_RESIZE,
|
||||
AB_UNDO_GROUP,
|
||||
AB_UNDO_UNGROUP,
|
||||
AB_UNDO_NUM_VALUES
|
||||
} AB_UNDO_TYPE;
|
||||
|
||||
/*
|
||||
** Supported initiator locations of a paste operation
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
AB_PASTE_INITIATOR_NO_TYPE = 0,
|
||||
AB_PASTE_INITIATOR_OBJ_MENU, /* Object popup menu */
|
||||
AB_PASTE_INITIATOR_BRWS_MENU, /* Browser popup menu */
|
||||
AB_PASTE_INITIATOR_BRWS_EDIT_MENU, /* Browser's edit menu */
|
||||
AB_PASTE_INITIATOR_PAL_EDIT_MENU, /* Palette's edit menu */
|
||||
AB_PASTE_INITIATOR_NUM_VALUES
|
||||
} AB_PASTE_INITIATOR_TYPE;
|
||||
|
||||
|
||||
/*
|
||||
* Data structures for clipboard/undo
|
||||
* What follows are data structures that are used to store
|
||||
* ABOBj's and related data for undo and the clipboard.
|
||||
*
|
||||
* The two main data structures are:
|
||||
* AB_CLIPBOARD_REC and
|
||||
* AB_UNDO_REC
|
||||
*
|
||||
* AB_UNDO_REC is a bit complicated because it consists
|
||||
* of data for cut/delete/paste/move/resize/group/ungroup
|
||||
* which are all contained in a union.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Additional info needed for clipboard
|
||||
*/
|
||||
typedef struct _AB_CLIPB_INFO
|
||||
{
|
||||
ABObj dup_obj; /* duplicated object, not just ptr to */
|
||||
ABObj action_list; /* duplicated ACTIONS for object and it's descendants */
|
||||
char *other_stuff; /* placeholder for now, will be filled
|
||||
* in later */
|
||||
}AB_CLIPB_INFO, *ABClipbInfo;
|
||||
|
||||
/*
|
||||
* Additional info needed for undoing cut
|
||||
*/
|
||||
typedef struct _AB_UNDO_CUT_INFO
|
||||
{
|
||||
ABObj dup_obj;
|
||||
ABObj from_action_list; /* duplicated ACTIONS for object (object == source) */
|
||||
ABObj to_action_list; /* duplicated ACTIONS for object (object == target) */
|
||||
ABObj parent; /* POINTER to parent */
|
||||
ABObj pane_sibling; /* POINTER to sibling - used for layers */
|
||||
} AB_UNDO_CUT_INFO, *ABUndoCutInfo;
|
||||
|
||||
/*
|
||||
* Additional info needed for undoing move
|
||||
*/
|
||||
typedef struct _AB_UNDO_MOVE_INFO
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
} AB_UNDO_MOVE_INFO, *ABUndoMoveInfo;
|
||||
|
||||
/*
|
||||
* Additional info needed for undoing resize
|
||||
*/
|
||||
typedef struct _AB_UNDO_RESIZE_INFO
|
||||
{
|
||||
int width;
|
||||
int height;
|
||||
} AB_UNDO_RESIZE_INFO, *ABUndoResizeInfo;
|
||||
|
||||
/*
|
||||
* Additional info needed for undoing ungroup
|
||||
*/
|
||||
typedef struct _AB_UNDO_UNGROUP_INFO
|
||||
{
|
||||
ABObj dup_old_group; /* DUPLICATE of ungrouped group */
|
||||
ABObj *member_list; /* List of POINTERS to members */
|
||||
int member_count;
|
||||
} AB_UNDO_UNGROUP_INFO, *ABUndoUngroupInfo;
|
||||
|
||||
/*
|
||||
* Union of additional info for undo actions
|
||||
*/
|
||||
typedef union _AB_UNDO_EXTRA_INFO
|
||||
{
|
||||
AB_UNDO_CUT_INFO cut;
|
||||
/* undo for cut == undo for delete */
|
||||
/* don't need special info for undoing paste */
|
||||
AB_UNDO_MOVE_INFO move;
|
||||
AB_UNDO_RESIZE_INFO resize;
|
||||
AB_UNDO_UNGROUP_INFO ungroup;
|
||||
/* don't need special info for undoing group */
|
||||
}AB_UNDO_EXTRA_INFO, *ABUndoExtraInfo;
|
||||
|
||||
/*
|
||||
* Info for undoing an action on ONE object
|
||||
*/
|
||||
typedef struct _AB_UNDO_INFO
|
||||
{
|
||||
AB_UNDO_TYPE type;
|
||||
AB_UNDO_EXTRA_INFO info;
|
||||
}AB_UNDO_INFO, *ABUndoInfo;
|
||||
|
||||
/*
|
||||
* Data structure for clipboard
|
||||
*/
|
||||
typedef struct _AB_CLIPBOARD_REC{
|
||||
ABObj *list; /* List of POINTERS to copied/cut objects */
|
||||
AB_CLIPB_INFO *info_list;
|
||||
int count;
|
||||
int action_count;
|
||||
int size;
|
||||
} AB_CLIPBOARD_REC, *ABClipboardRec;
|
||||
|
||||
/*
|
||||
* Type for ABUndoFunc
|
||||
*/
|
||||
struct _AB_UNDO_REC; /* forward ref for ABUndoFunc */
|
||||
typedef void AB_UNDO_FUNC(struct _AB_UNDO_REC *undo_rec);
|
||||
typedef AB_UNDO_FUNC *ABUndoFunc;
|
||||
|
||||
/*
|
||||
* Data structure for undo buffer
|
||||
*/
|
||||
typedef struct _AB_UNDO_REC{
|
||||
ABObj *list;
|
||||
AB_UNDO_INFO *info_list;
|
||||
ABUndoFunc undo_func;
|
||||
int count;
|
||||
int action_count;
|
||||
int size;
|
||||
} AB_UNDO_REC, *ABUndoRec;
|
||||
|
||||
|
||||
/*
|
||||
* Editing functions
|
||||
*/
|
||||
extern void abobj_edit_init(
|
||||
);
|
||||
|
||||
extern int abobj_cut(
|
||||
);
|
||||
|
||||
extern int abobj_copy(
|
||||
);
|
||||
|
||||
extern int abobj_paste(
|
||||
AB_PASTE_INITIATOR_TYPE initiator
|
||||
);
|
||||
|
||||
extern int abobj_delete(void);
|
||||
|
||||
extern int abobj_undo(void);
|
||||
|
||||
extern int abobj_cancel_undo(void);
|
||||
|
||||
extern BOOL abobj_undo_active(
|
||||
);
|
||||
|
||||
/*
|
||||
* CLIPBOARD manipulating functions
|
||||
*/
|
||||
extern BOOL abobj_clipboard_is_empty(
|
||||
);
|
||||
|
||||
extern BOOL abobj_in_clipboard(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void abobj_clipboard_clear(
|
||||
);
|
||||
|
||||
extern void abobj_clipboard_set(
|
||||
ABObj *obj,
|
||||
int count
|
||||
);
|
||||
|
||||
extern void abobj_clipboard_add(
|
||||
ABObj *obj,
|
||||
int count
|
||||
);
|
||||
|
||||
/*
|
||||
* Function to set undo buffer
|
||||
*/
|
||||
extern int abobj_set_undo(
|
||||
ABObj *obj,
|
||||
int count,
|
||||
ABUndoFunc undo_func,
|
||||
AB_UNDO_TYPE undo_type
|
||||
);
|
||||
|
||||
extern void abobj_setup_undo_cut_layer(
|
||||
ABObj layer,
|
||||
ABObj last_pane
|
||||
);
|
||||
|
||||
/*
|
||||
* Xt Callbacks for editing functions:
|
||||
* undo
|
||||
* cut
|
||||
* copy
|
||||
* paste
|
||||
* delete
|
||||
*/
|
||||
extern void abobj_undo_cb(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void abobj_cut_cb(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void abobj_copy_cb(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void abobj_paste_cb(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void abobj_delete_cb(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
#endif /* _ABOBJ_EDIT_H_ */
|
||||
@@ -61,6 +61,7 @@
|
||||
#include <Dt/ComboBox.h>
|
||||
#include <Dt/MenuButton.h>
|
||||
#include <Dt/SpinBox.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/ab.h>
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/Form.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/objxm.h>
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/StringDefs.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/trav.h>
|
||||
#include "abobjP.h"
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <Xm/List.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/abobj_list.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
#include <ab_private/trav.h>
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: abobj_list.h /main/3 1995/11/06 17:16:36 rswiston $
|
||||
*
|
||||
* @(#)abobj_list.h 1.3 22 Jul 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: abobj_list.h - keeps a scrolling list of object names
|
||||
*/
|
||||
|
||||
#ifndef _ab_abobj_list_h
|
||||
#define _ab_abobj_list_h
|
||||
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/abobj.h>
|
||||
|
||||
int abobj_list_load(
|
||||
Widget w,
|
||||
ABObj root,
|
||||
ABObjTestFunc show_obj_func
|
||||
);
|
||||
|
||||
int abobj_list_update(
|
||||
Widget w,
|
||||
ABObj root,
|
||||
ABObjTestFunc show_obj_func
|
||||
);
|
||||
|
||||
int abobj_list_obj_created(
|
||||
Widget list,
|
||||
ABObj obj,
|
||||
ABObjTestFunc show_obj_func
|
||||
);
|
||||
|
||||
int abobj_list_obj_renamed(
|
||||
Widget list,
|
||||
ABObj obj,
|
||||
STRING old_name,
|
||||
ABObjTestFunc show_obj_func
|
||||
);
|
||||
|
||||
int abobj_list_obj_destroyed(
|
||||
Widget list,
|
||||
ABObj obj,
|
||||
ABObjTestFunc show_obj_func
|
||||
);
|
||||
|
||||
int abobj_list_obj_updated(
|
||||
Widget list,
|
||||
ObjEvUpdateInfo update_info,
|
||||
ABObjTestFunc show_obj_func
|
||||
);
|
||||
|
||||
|
||||
int abobj_list_obj_reparented(
|
||||
Widget list,
|
||||
ObjEvReparentInfo info,
|
||||
ABObjTestFunc list_obj_test
|
||||
);
|
||||
|
||||
#endif /* _ab_abobj_list_h */
|
||||
@@ -53,7 +53,8 @@
|
||||
#include <Xm/CascadeB.h>
|
||||
#include <Xm/MenuShell.h>
|
||||
#include <Xm/RowColumn.h> /* XmMenuPosition() */
|
||||
#include <Xm/Separator.h>
|
||||
#include <Xm/Separator.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
#include <ab_private/brws.h>
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#include <stdio.h>
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/StringDefs.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/x_util.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/abobj_edit.h>
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
#include <stdio.h>
|
||||
#include <X11/cursorfont.h>
|
||||
#include <Xm/ScrolledW.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/prop.h>
|
||||
#include <ab_private/x_util.h>
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#include <X11/StringDefs.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/ScrolledW.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
#include <ab_private/x_util.h>
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
#include <Xm/List.h>
|
||||
#include <Dt/SpinBox.h>
|
||||
#include <Dt/ComboBox.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/objxm.h>
|
||||
|
||||
@@ -1,427 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: abobj_set.h /main/3 1995/11/06 17:17:42 rswiston $
|
||||
*
|
||||
* @(#)abobj_set.h 1.53 02 Feb 1995
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* abobj_set.h
|
||||
*/
|
||||
#ifndef _ABOBJ_SET_H_
|
||||
#define _ABOBJ_SET_H_
|
||||
|
||||
#include <ab_private/obj.h>
|
||||
|
||||
|
||||
/*
|
||||
* Routines to instantiate attribute changes in the Motif
|
||||
* instance of the objects
|
||||
*/
|
||||
extern void abobj_instantiate_changes(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void abobj_tree_instantiate_changes(
|
||||
ABObj root
|
||||
);
|
||||
|
||||
/*
|
||||
* Routines to set attribute changes in objects
|
||||
*/
|
||||
extern void abobj_set_accelerator(
|
||||
ABObj obj,
|
||||
STRING accel
|
||||
);
|
||||
extern void abobj_set_background_color(
|
||||
ABObj obj,
|
||||
STRING colorname
|
||||
);
|
||||
|
||||
extern void abobj_set_choice_type(
|
||||
ABObj obj,
|
||||
AB_CHOICE_TYPE type
|
||||
);
|
||||
|
||||
extern void abobj_set_direction(
|
||||
ABObj obj,
|
||||
AB_DIRECTION dir
|
||||
);
|
||||
|
||||
extern void abobj_set_drawarea_size(
|
||||
ABObj obj,
|
||||
int width,
|
||||
int height
|
||||
);
|
||||
|
||||
extern void abobj_set_foreground_color(
|
||||
ABObj obj,
|
||||
STRING colorname
|
||||
);
|
||||
|
||||
extern void abobj_set_icon(
|
||||
ABObj obj,
|
||||
STRING icon,
|
||||
STRING icon_mask,
|
||||
STRING icon_label
|
||||
);
|
||||
|
||||
extern void abobj_set_initial_state(
|
||||
ABObj obj,
|
||||
AB_OBJECT_STATE istate
|
||||
);
|
||||
|
||||
extern void abobj_set_initial_value(
|
||||
ABObj obj,
|
||||
STRING strval,
|
||||
int intval
|
||||
);
|
||||
|
||||
extern void abobj_set_label(
|
||||
ABObj obj,
|
||||
AB_LABEL_TYPE label_type,
|
||||
STRING label
|
||||
);
|
||||
|
||||
extern void abobj_set_label_alignment(
|
||||
ABObj obj,
|
||||
AB_ALIGNMENT align
|
||||
);
|
||||
|
||||
extern void abobj_set_label_position(
|
||||
ABObj obj,
|
||||
AB_COMPASS_POINT pos
|
||||
);
|
||||
|
||||
extern void abobj_set_group_type(
|
||||
ABObj obj,
|
||||
AB_GROUP_TYPE group_type
|
||||
);
|
||||
|
||||
extern void abobj_set_row_alignment(
|
||||
ABObj obj,
|
||||
AB_ALIGNMENT align
|
||||
);
|
||||
|
||||
extern void abobj_set_col_alignment(
|
||||
ABObj obj,
|
||||
AB_ALIGNMENT align
|
||||
);
|
||||
|
||||
extern void abobj_set_row_attach_type(
|
||||
ABObj obj,
|
||||
AB_ATTACH_TYPE type
|
||||
);
|
||||
|
||||
extern void abobj_set_col_attach_type(
|
||||
ABObj obj,
|
||||
AB_ATTACH_TYPE type
|
||||
);
|
||||
|
||||
extern void abobj_set_row_offset(
|
||||
ABObj obj,
|
||||
int offset
|
||||
);
|
||||
|
||||
extern void abobj_set_col_offset(
|
||||
ABObj obj,
|
||||
int offset
|
||||
);
|
||||
|
||||
extern void abobj_set_border_frame(
|
||||
ABObj obj,
|
||||
AB_LINE_TYPE btype
|
||||
);
|
||||
|
||||
extern void abobj_set_line_style(
|
||||
ABObj obj,
|
||||
AB_LINE_TYPE type
|
||||
);
|
||||
|
||||
extern void abobj_set_arrow_style(
|
||||
ABObj obj,
|
||||
AB_ARROW_STYLE astyle
|
||||
);
|
||||
|
||||
extern void abobj_set_button_type(
|
||||
ABObj obj,
|
||||
AB_BUTTON_TYPE type
|
||||
);
|
||||
|
||||
extern void abobj_set_name(
|
||||
ABObj obj,
|
||||
STRING name
|
||||
);
|
||||
|
||||
extern void abobj_set_selection_mode(
|
||||
ABObj obj,
|
||||
AB_SELECT_TYPE select
|
||||
);
|
||||
|
||||
extern void abobj_set_show_value(
|
||||
ABObj obj,
|
||||
BOOL show_val
|
||||
);
|
||||
|
||||
extern void abobj_set_size_policy(
|
||||
ABObj obj,
|
||||
BOOL resizable
|
||||
);
|
||||
|
||||
extern STRING abobj_construct_item_name(
|
||||
STRING prefix,
|
||||
STRING namebase,
|
||||
STRING suffix
|
||||
);
|
||||
|
||||
extern void abobj_set_item_name(
|
||||
ABObj iobj,
|
||||
ABObj module,
|
||||
STRING basename,
|
||||
STRING label
|
||||
);
|
||||
|
||||
extern void abobj_set_menu_name(
|
||||
ABObj obj,
|
||||
STRING menuname
|
||||
);
|
||||
|
||||
extern void abobj_set_menu_title(
|
||||
ABObj obj,
|
||||
STRING menu_title
|
||||
);
|
||||
|
||||
extern void abobj_set_mnemonic(
|
||||
ABObj obj,
|
||||
STRING mnemonic
|
||||
);
|
||||
|
||||
extern void abobj_set_orientation(
|
||||
ABObj obj,
|
||||
AB_ORIENTATION orient
|
||||
);
|
||||
|
||||
extern void abobj_set_num_columns(
|
||||
ABObj obj,
|
||||
int num_cols
|
||||
);
|
||||
|
||||
extern void abobj_set_num_rows(
|
||||
ABObj obj,
|
||||
int num_rows
|
||||
);
|
||||
|
||||
extern void abobj_set_read_only(
|
||||
ABObj obj,
|
||||
BOOL readonly
|
||||
);
|
||||
|
||||
extern void abobj_set_resize_mode(
|
||||
ABObj obj,
|
||||
BOOL resizable
|
||||
);
|
||||
|
||||
extern void abobj_set_scrollbar_state(
|
||||
ABObj obj,
|
||||
AB_SCROLLBAR_POLICY scrolling
|
||||
);
|
||||
|
||||
extern void abobj_set_pixel_width(
|
||||
ABObj obj,
|
||||
int width,
|
||||
int border_frame_w
|
||||
);
|
||||
extern void abobj_set_pixel_height(
|
||||
ABObj obj,
|
||||
int height,
|
||||
int border_frame_w
|
||||
);
|
||||
extern void abobj_set_pixel_size(
|
||||
ABObj obj,
|
||||
int height,
|
||||
int width,
|
||||
int border_frame_w
|
||||
);
|
||||
extern void abobj_set_text_size(
|
||||
ABObj obj,
|
||||
int height,
|
||||
int width
|
||||
);
|
||||
extern void abobj_set_max_length(
|
||||
ABObj obj,
|
||||
int max_len
|
||||
);
|
||||
|
||||
extern void abobj_set_win_parent(
|
||||
ABObj obj,
|
||||
ABObj win_parent
|
||||
);
|
||||
|
||||
extern void abobj_set_word_wrap(
|
||||
ABObj obj,
|
||||
BOOL wrap
|
||||
);
|
||||
|
||||
extern void abobj_set_xy(
|
||||
ABObj obj,
|
||||
int x,
|
||||
int y
|
||||
);
|
||||
|
||||
extern void abobj_set_active(
|
||||
ABObj obj,
|
||||
BOOL active
|
||||
);
|
||||
|
||||
extern void abobj_set_visible(
|
||||
ABObj obj,
|
||||
BOOL visible
|
||||
);
|
||||
|
||||
extern void abobj_set_iconic(
|
||||
ABObj obj,
|
||||
BOOL iconic
|
||||
);
|
||||
|
||||
extern void abobj_set_selected(
|
||||
ABObj obj,
|
||||
BOOL selected
|
||||
);
|
||||
|
||||
extern void abobj_set_tearoff(
|
||||
ABObj obj,
|
||||
BOOL tearoff
|
||||
);
|
||||
|
||||
extern void abobj_set_text_type(
|
||||
ABObj obj,
|
||||
AB_TEXT_TYPE ttype
|
||||
);
|
||||
|
||||
extern void abobj_set_decimal_points(
|
||||
ABObj obj,
|
||||
int dec_points
|
||||
);
|
||||
|
||||
extern void abobj_set_default_act_button(
|
||||
ABObj obj,
|
||||
ABObj button
|
||||
);
|
||||
|
||||
extern void abobj_set_help_act_button(
|
||||
ABObj obj,
|
||||
ABObj button
|
||||
);
|
||||
|
||||
extern void abobj_set_increment(
|
||||
ABObj obj,
|
||||
int incr
|
||||
);
|
||||
|
||||
extern void abobj_set_min_max_values(
|
||||
ABObj obj,
|
||||
int min,
|
||||
int max
|
||||
);
|
||||
|
||||
extern int abobj_set_save_needed(
|
||||
ABObj obj,
|
||||
BOOL set
|
||||
);
|
||||
|
||||
extern void abobj_disable_save_needed(
|
||||
);
|
||||
|
||||
extern void abobj_enable_save_needed(
|
||||
);
|
||||
|
||||
extern BOOL abobj_save_needed_enabled(
|
||||
);
|
||||
|
||||
extern void abobj_set_pattern_type(
|
||||
ABObj obj,
|
||||
AB_FILE_TYPE_MASK fmtype
|
||||
);
|
||||
|
||||
extern void abobj_set_directory(
|
||||
ABObj obj,
|
||||
STRING val
|
||||
);
|
||||
|
||||
extern void abobj_set_filter_pattern(
|
||||
ABObj obj,
|
||||
STRING val
|
||||
);
|
||||
|
||||
extern void abobj_set_ok_label(
|
||||
ABObj obj,
|
||||
STRING val
|
||||
);
|
||||
|
||||
extern void abobj_set_auto_dismiss(
|
||||
ABObj obj,
|
||||
BOOL val
|
||||
);
|
||||
|
||||
extern void abobj_set_sessioning_method(
|
||||
ABObj proj,
|
||||
AB_SESSIONING_METHOD ss_mthd
|
||||
);
|
||||
|
||||
extern void abobj_set_pane_min(
|
||||
ABObj obj,
|
||||
int value
|
||||
);
|
||||
|
||||
extern void abobj_set_pane_max(
|
||||
ABObj obj,
|
||||
int value
|
||||
);
|
||||
|
||||
extern void abobj_set_attachment(
|
||||
ABObj obj,
|
||||
AB_COMPASS_POINT dir,
|
||||
ABAttachment *attach
|
||||
);
|
||||
|
||||
extern void abobj_set_i18n_enabled(
|
||||
ABObj proj,
|
||||
BOOL i18n_enabled
|
||||
);
|
||||
|
||||
#endif /* _ABOBJ_SET_H_ */
|
||||
@@ -56,6 +56,7 @@
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/Form.h>
|
||||
#include <Xm/ScrolledW.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/ab.h>
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: appfw.h /main/3 1995/11/06 17:18:44 rswiston $
|
||||
*
|
||||
* @(#)appfw.h 1.1 27 Jun 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* appfw.h
|
||||
*
|
||||
* Functions for manipulating the Application Frameworks Editor
|
||||
*/
|
||||
|
||||
#ifndef _appfw_h
|
||||
#define _appfw_h
|
||||
|
||||
#include <ab_private/obj.h>
|
||||
#include "appfw_ui.h"
|
||||
|
||||
void appfw_show_dialog(
|
||||
ABObj project
|
||||
);
|
||||
|
||||
void appfw_notify_new_project(
|
||||
ABObj project
|
||||
);
|
||||
|
||||
#endif /* _appfw_h */
|
||||
@@ -1,109 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: attch_ed.h /main/3 1995/11/06 17:19:33 rswiston $
|
||||
*
|
||||
* @(#)attch_ed.h 1.4 08 Oct 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* attch_ed.h
|
||||
*
|
||||
* Functions for manipulating the Attachments Editor
|
||||
*/
|
||||
|
||||
#ifndef _attch_ed_h
|
||||
#define _attch_ed_h
|
||||
|
||||
typedef enum
|
||||
{
|
||||
ATTCH_ED_PARENT = 0,
|
||||
ATTCH_ED_OPPOSITE_PARENT,
|
||||
ATTCH_ED_SIBLING,
|
||||
ATTCH_ED_OPPOSITE_SIBLING,
|
||||
ATTCH_ED_GRIDLINE,
|
||||
ATTCH_ED_CENTER_GRIDLINE,
|
||||
ATTCH_ED_NONE
|
||||
} ATTCH_ED_ATTACH_TYPE;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
ATTCH_ED_WRN_LOAD = 0,
|
||||
ATTCH_ED_WRN_CHANGE_OBJTYPE,
|
||||
ATTCH_ED_WRN_CLOSE
|
||||
} ATTCH_ED_WRN_TYPE;
|
||||
|
||||
#define attch_ed_need_obj_menu(attach_type) \
|
||||
((attach_type == ATTCH_ED_SIBLING) || (attach_type == ATTCH_ED_OPPOSITE_SIBLING))
|
||||
|
||||
/*
|
||||
* Attachment Editor Settings
|
||||
*/
|
||||
typedef struct ATTACHMENT_EDITOR_SETTINGS
|
||||
{
|
||||
Widget prop_sheet;
|
||||
PropOptionsSettingRec top_attach_type;
|
||||
PropFieldSettingRec top_attach_offset;
|
||||
PropFieldSettingRec top_attach_position;
|
||||
PropOptionsSettingRec top_attach_obj;
|
||||
PropOptionsSettingRec bottom_attach_type;
|
||||
PropFieldSettingRec bottom_attach_offset;
|
||||
PropFieldSettingRec bottom_attach_position;
|
||||
PropOptionsSettingRec bottom_attach_obj;
|
||||
PropOptionsSettingRec left_attach_type;
|
||||
PropFieldSettingRec left_attach_offset;
|
||||
PropFieldSettingRec left_attach_position;
|
||||
PropOptionsSettingRec left_attach_obj;
|
||||
PropOptionsSettingRec right_attach_type;
|
||||
PropFieldSettingRec right_attach_offset;
|
||||
PropFieldSettingRec right_attach_position;
|
||||
PropOptionsSettingRec right_attach_obj;
|
||||
ABObj cur_object;
|
||||
} AttchEditorSettingsRec, *AttchEditorSettings;
|
||||
|
||||
void attch_ed_init(
|
||||
);
|
||||
|
||||
void attch_ed_show_dialog(
|
||||
ABObj cur_obj
|
||||
);
|
||||
|
||||
BOOL attch_ed_can_edit_attachments(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
#endif /* _attch_ed_h */
|
||||
@@ -60,6 +60,7 @@
|
||||
#include <Xm/SelectioB.h>
|
||||
#include <Xm/ScrolledW.h>
|
||||
#include <Xm/PushB.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/trav.h>
|
||||
|
||||
@@ -1,394 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: brws.h /main/3 1995/11/06 17:20:37 rswiston $
|
||||
*
|
||||
* @(#)brws.h 1.40 29 Mar 1995
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* ab_browser.h
|
||||
* Declarations for the App Builder browser
|
||||
*
|
||||
* Currently, this is a direct port of the Devguide browser. It will change
|
||||
* for the CDE APP Builder soon.
|
||||
*/
|
||||
#ifndef _brws_h
|
||||
#define _brws_h
|
||||
|
||||
#include <ab/util_types.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/vwr.h>
|
||||
#include <X11/Intrinsic.h>
|
||||
|
||||
|
||||
#ifndef BIT_FIELD
|
||||
#define BIT_FIELD(field) unsigned field : 1
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Indices to the node element array
|
||||
* e.g. index 2 points to the data that
|
||||
* represents the AB_OBJ type.
|
||||
*
|
||||
* This is also used to determine which bit in the
|
||||
* 'elements_shown' bit vector corresponds to
|
||||
* the particular node element.
|
||||
* e.g. The AB_OBJ name is shown only if bit # 1
|
||||
* in the vector is set.
|
||||
*/
|
||||
#define BRWS_GLYPH_POS 0
|
||||
#define BRWS_NAME_POS 1
|
||||
#define BRWS_TYPE_POS 2
|
||||
#define BRWS_WCLASS_POS 3
|
||||
#define BRWS_NUM_ELM BRWS_WCLASS_POS + 1
|
||||
|
||||
#define BRWS_SHOW_GLYPH (1L << BRWS_GLYPH_POS) /* Node elements shown, */
|
||||
#define BRWS_SHOW_NAME (1L << BRWS_NAME_POS) /* max = sizeof(int) */
|
||||
#define BRWS_SHOW_TYPE (1L << BRWS_TYPE_POS)
|
||||
#define BRWS_SHOW_WIDGET_CLASS (1L << BRWS_WCLASS_POS)
|
||||
|
||||
/*
|
||||
* Flags for browser properties
|
||||
*/
|
||||
#define BRWS_MATRIX_MODE 0 /* Draw mode */
|
||||
#define BRWS_TREE_MODE 1
|
||||
#define BRWS_VERTICAL 0 /* Orientation */
|
||||
#define BRWS_HORIZONTAL 1
|
||||
|
||||
/*
|
||||
* Masks for browser node state
|
||||
*/
|
||||
#define BRWS_NODE_SELECTED (1L << 0)
|
||||
#define BRWS_BNODE_PREVIEWED (1L << 1)
|
||||
#define BRWS_NODE_EXPANDED (1L << 2)
|
||||
#define BRWS_NODE_VISIBLE (1L << 3)
|
||||
#define BRWS_NODE_STATE_IS_SET(bnode, mask) (bnode->state & mask)
|
||||
#define BRWS_NODE_SET_STATE(bnode, mask) (bnode->state |= mask)
|
||||
#define BRWS_NODE_UNSET_STATE(bnode, mask) (bnode->state &= ~mask)
|
||||
|
||||
/*
|
||||
* Dimensions of borders, margins, lines
|
||||
*/
|
||||
#define BRWS_INTER_ELM_DISTANCE 1
|
||||
#define BRWS_ELM_BBOX_MARGIN 3
|
||||
#define BRWS_ELM_BORDER_WIDTH 2
|
||||
#define BRWS_LINE_WIDTH 0
|
||||
|
||||
#define BRWS_NODE_LINK_GAP 4
|
||||
#define BRWS_NODE_SUBTREE_GAP 5
|
||||
|
||||
/*
|
||||
* The gap between two nodes
|
||||
*/
|
||||
#define BRWS_NODE_X_GAP 10 + BRWS_NODE_LINK_GAP + BRWS_NODE_SUBTREE_GAP
|
||||
#define BRWS_NODE_Y_GAP 10 + BRWS_NODE_LINK_GAP + BRWS_NODE_SUBTREE_GAP
|
||||
|
||||
/*
|
||||
* The origin where the graphics starts
|
||||
*/
|
||||
#define BRWS_X_ORIGIN 10
|
||||
#define BRWS_Y_ORIGIN 10
|
||||
|
||||
typedef struct _AB_BROWSER *ABBrowser;
|
||||
typedef struct _BrowserUiObjects *BrowserUiObj;
|
||||
typedef struct _BrowserProperties *BrowserProps;
|
||||
|
||||
/*
|
||||
* The browser window consists of 2 windows:
|
||||
* - the project window, where the modules for the project is displayed
|
||||
* - the module window, where the relevant modules are 'expanded'
|
||||
* into the tree structured diagram.
|
||||
*/
|
||||
typedef struct _AB_BROWSER
|
||||
{
|
||||
Vwr project;
|
||||
Vwr module;
|
||||
ABBrowser previous;
|
||||
ABBrowser next;
|
||||
} AB_BROWSER;
|
||||
|
||||
/*
|
||||
* Description of the Xt specific data in the browser
|
||||
*/
|
||||
typedef struct _BrowserUiObjects
|
||||
{
|
||||
void *ip;
|
||||
Widget shell;
|
||||
|
||||
Widget textf;
|
||||
Widget find_box;
|
||||
GC normal_gc;
|
||||
GC select_gc;
|
||||
GC line_gc;
|
||||
XFontStruct *sm_font;
|
||||
XFontStruct *bg_font;
|
||||
unsigned long fg_color;
|
||||
unsigned long bg_color;
|
||||
}BrowserUiObjects;
|
||||
|
||||
/*
|
||||
* Description of browser properties
|
||||
*/
|
||||
typedef struct _BrowserProperties
|
||||
{
|
||||
unsigned long elements_shown;
|
||||
int initial_state; /* of browser nodes */
|
||||
Dimension min_width; /* of drawing area */
|
||||
Dimension min_height;
|
||||
BIT_FIELD(orientation); /* values: VERTICAL, HORIZONTAL */
|
||||
BIT_FIELD(show_mult_trees); /* values: TRUE, FALSE */
|
||||
BIT_FIELD(active); /* values: TRUE, FALSE */
|
||||
}BrowserProperties;
|
||||
|
||||
/*
|
||||
* API for manipulating App Builder browser
|
||||
*/
|
||||
extern void brws_register_actions(
|
||||
XtAppContext app
|
||||
);
|
||||
|
||||
extern ABBrowser brws_create (
|
||||
);
|
||||
|
||||
extern void brws_destroy (
|
||||
ABBrowser b
|
||||
);
|
||||
|
||||
extern void brws_add_objects(
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
extern void brws_add_objects_to_browser(
|
||||
ABBrowser ab,
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
extern void brws_delete_objects(
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
extern int aob_populate_tree(
|
||||
Viewer *browser,
|
||||
AB_OBJ *root
|
||||
);
|
||||
|
||||
extern BOOL aob_is_browser_win(
|
||||
AB_OBJ *project,
|
||||
Window w
|
||||
);
|
||||
|
||||
extern AB_OBJ *aob_get_object_from_xy(
|
||||
AB_OBJ *project,
|
||||
Window w,
|
||||
int x,
|
||||
int y
|
||||
);
|
||||
|
||||
extern void brws_select(
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
extern void brws_deselect(
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
extern void brws_toggle_select(
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
extern void aob_redraw(
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern ViewerNode *aob_object_insert(
|
||||
Viewer *browser,
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
extern void brws_popup(
|
||||
ABBrowser b
|
||||
);
|
||||
|
||||
extern void brws_popdown(
|
||||
ABBrowser b
|
||||
);
|
||||
|
||||
extern void aob_set_mode(
|
||||
AB_OBJ *project
|
||||
);
|
||||
|
||||
extern void aob_free_graphics(
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern int browser_get_num_siblings(
|
||||
ViewerNode *bnode
|
||||
);
|
||||
|
||||
extern int browser_num_elm_shown(
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern ViewerNode *aob_find_bnode(
|
||||
AB_OBJ *obj,
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern AB_OBJ *aob_project_from_browser(
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern BrowserProps aob_browser_properties(
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern void aob_copy_props(
|
||||
Viewer *from,
|
||||
Viewer *to
|
||||
);
|
||||
|
||||
extern BrowserUiObjects *aob_ui_from_browser(
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern Widget aob_ui_shell(
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern ViewerNodeElm *aob_bnode_elements(
|
||||
ViewerNode *bnode
|
||||
);
|
||||
|
||||
extern void aob_str_elm_render (
|
||||
ViewerNode *node,
|
||||
ViewerNodeElm *elm
|
||||
);
|
||||
|
||||
extern unsigned long browser_get_elm_shown(
|
||||
Viewer *b
|
||||
);
|
||||
|
||||
extern Vwr aob_proj_or_module(
|
||||
ABBrowser b,
|
||||
Widget w
|
||||
);
|
||||
|
||||
extern void brws_set_module_name(
|
||||
Vwr b
|
||||
);
|
||||
|
||||
extern void aob_preview(
|
||||
ABObj obj,
|
||||
Window browser_window
|
||||
);
|
||||
|
||||
extern void aob_deselect_all_nodes(
|
||||
Vwr b,
|
||||
int flag
|
||||
);
|
||||
|
||||
extern void aob_deselect_all_objects(
|
||||
AB_OBJ *project
|
||||
);
|
||||
|
||||
extern int number_of_selected(
|
||||
VNode tree
|
||||
);
|
||||
|
||||
extern VNode node_selected(
|
||||
VNode tree
|
||||
);
|
||||
|
||||
extern void draw_viewer(
|
||||
Vwr v
|
||||
);
|
||||
|
||||
extern void erase_viewer(
|
||||
Vwr v
|
||||
);
|
||||
|
||||
extern void setup_vwr_graphics(
|
||||
Vwr v
|
||||
);
|
||||
|
||||
extern BrowserUiObj aob_create_ui_obj();
|
||||
|
||||
extern void brws_switch_module(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void brws_update_node(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern ABBrowser brws_get_browser_for_obj(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern Widget brws_get_browser_shell_for_obj(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void brws_edit_cascadeCB(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void brws_build_module_menu(
|
||||
Widget pulldown,
|
||||
XtCallbackProc callback
|
||||
);
|
||||
|
||||
extern void brws_show_browser(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void brws_center_on_obj(
|
||||
ABBrowser ab,
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void brws_init(
|
||||
);
|
||||
#endif /* _brws_h */
|
||||
@@ -1,122 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* $XConsortium: brwsP.h /main/3 1995/11/06 17:20:46 rswiston $
|
||||
*
|
||||
* @(#)brwsP.h 1.15 03 Oct 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* brwsP.h
|
||||
* Private declarations for browser
|
||||
*/
|
||||
#ifndef _BRWSP_H
|
||||
#define _BRWSP_H
|
||||
|
||||
#include <ab_private/brws.h>
|
||||
#include "brws_ui.h"
|
||||
|
||||
extern Widget brws_draw_area(
|
||||
Vwr v
|
||||
);
|
||||
|
||||
void brwsP_create_find_box(
|
||||
ABBrowser b
|
||||
);
|
||||
|
||||
void brwsP_destroy_find_box(
|
||||
Vwr v
|
||||
);
|
||||
|
||||
void brwsP_show_find_box(
|
||||
Vwr v
|
||||
);
|
||||
|
||||
void brwsP_hide_find_box(
|
||||
Vwr v
|
||||
);
|
||||
|
||||
int brwsP_select_fn(
|
||||
VNode vnode
|
||||
);
|
||||
|
||||
void brwsP_sync_views(
|
||||
ABBrowser ab,
|
||||
short select_at_least_one
|
||||
);
|
||||
|
||||
void browser_show_view_elements(
|
||||
Viewer *b,
|
||||
unsigned long mask,
|
||||
Widget widget,
|
||||
char *set_str,
|
||||
char *unset_str
|
||||
);
|
||||
|
||||
void recompute_viewer(
|
||||
Viewer *v
|
||||
);
|
||||
|
||||
int brwsP_node_is_collapsed(
|
||||
VNode vnode
|
||||
);
|
||||
|
||||
int brwsP_node_is_visible(
|
||||
VNode vnode
|
||||
);
|
||||
|
||||
void brwsP_make_drawarea_snap(
|
||||
Vwr v,
|
||||
Widget draw_area
|
||||
);
|
||||
|
||||
void brwsP_collapse_selected(
|
||||
ABBrowser ab
|
||||
);
|
||||
|
||||
void brwsP_expand_selected(
|
||||
ABBrowser ab
|
||||
);
|
||||
|
||||
void brwsP_expand_collapsed(
|
||||
ABBrowser ab
|
||||
);
|
||||
|
||||
void brwsP_tear_off_selected(
|
||||
ABBrowser ab
|
||||
);
|
||||
|
||||
#endif /* _BRWSP_H */
|
||||
@@ -49,6 +49,7 @@
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/ScrollBar.h>
|
||||
#include <Xm/SelectioB.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab/util_types.h>
|
||||
#include <ab_private/abobj.h>
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
#include <X11/Xlib.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/DialogS.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/istr.h>
|
||||
|
||||
@@ -1,166 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: cgen.h /main/3 1995/11/06 17:22:21 rswiston $
|
||||
*
|
||||
* @(#)cgen.h 1.14 14 Nov 1994 cde_app_builder/src/ab
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _CGEN_H_
|
||||
#define _CGEN_H_
|
||||
|
||||
/*
|
||||
* cgen.h - Code Generator interface
|
||||
*/
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/obj_notify.h>
|
||||
|
||||
/*
|
||||
* The final goal the user wants to reach. May need to issue a series of
|
||||
* (system) commands to achieve this goal.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
CG_GOAL_UNDEF = 0, /* CG = codegen */
|
||||
CG_GOAL_GEN_CODE,
|
||||
CG_GOAL_MAKE,
|
||||
CG_GOAL_RUN,
|
||||
CG_GOAL_MAKE_AND_RUN,
|
||||
CG_GOAL_NUM_VALUES
|
||||
} CG_GOAL;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
CG_CMD_UNDEF = 0,
|
||||
CG_CMD_GEN_CODE,
|
||||
CG_CMD_MAKE,
|
||||
CG_CMD_RUN,
|
||||
CG_SUBCOMMAND_NUM_VALUES
|
||||
} CG_SUBCOMMAND;
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
CG_VERBOSITY_UNDEF = 0,
|
||||
CG_VERBOSITY_NORMAL,
|
||||
CG_VERBOSITY_SILENT,
|
||||
CG_VERBOSITY_VERBOSE,
|
||||
CB_VERBOSITY_NUM_VALUES
|
||||
} CG_VERBOSITY;
|
||||
|
||||
|
||||
typedef enum
|
||||
{
|
||||
CG_GEN_FLAG_UNDEF = 0,
|
||||
CG_GEN_PROJ_FLAG,
|
||||
CG_GEN_MAIN_FLAG,
|
||||
CG_GEN_SPECIFIC_FILES_FLAG,
|
||||
CG_GEN_SPECIFIC_FILES_AND_MAIN_FLAG,
|
||||
CG_GEN_FLAG_NUM_VALUES
|
||||
} CG_GEN_FLAG;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
CG_GEN_FLAG cmd_flag;
|
||||
Boolean no_merge;
|
||||
CG_VERBOSITY verbosity;
|
||||
StringList module_list;
|
||||
STRING make_args;
|
||||
STRING run_args;
|
||||
} CGenOptions;
|
||||
|
||||
extern CGenOptions CodeGenOptions;
|
||||
extern StringList user_env_vars;
|
||||
extern StringList module_list;
|
||||
|
||||
/*
|
||||
extern void cgen_show_dialog(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
*/
|
||||
|
||||
extern void cgen_show_codegen_win(
|
||||
void
|
||||
);
|
||||
|
||||
extern void cgen_gen_code(
|
||||
CG_SUBCOMMAND cmd
|
||||
);
|
||||
|
||||
extern void cgen_make(
|
||||
CG_SUBCOMMAND cmd
|
||||
);
|
||||
|
||||
extern void cgen_run(
|
||||
CG_SUBCOMMAND cmd
|
||||
);
|
||||
|
||||
extern void cgen_make_run(
|
||||
CG_SUBCOMMAND cmd
|
||||
);
|
||||
|
||||
extern void cgenP_init_props_module_list(
|
||||
Widget mod_list
|
||||
);
|
||||
|
||||
extern void cgenP_prop_init(void);
|
||||
|
||||
extern void cgenP_update_mod_listCB(
|
||||
Widget widget,
|
||||
XtPointer clientData,
|
||||
XtPointer callData
|
||||
);
|
||||
|
||||
/*
|
||||
* Updates project directory, title, ...
|
||||
*/
|
||||
extern int cgen_notify_new_directory(STRING directory);
|
||||
extern int cgen_notify_new_project(ABObj project);
|
||||
extern int cgen_notify_props_new_proj(ABObj project);
|
||||
extern int cgenP_sync_up_dir(void);
|
||||
|
||||
/*
|
||||
* Aborts whatever command is running (if any)
|
||||
*/
|
||||
extern int cgen_abort(void);
|
||||
|
||||
|
||||
#endif /* _CGEN_H_ */
|
||||
@@ -70,6 +70,7 @@
|
||||
#include <Dt/TermPrim.h>
|
||||
#include <Dt/Term.h>
|
||||
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/abobj_set.h>
|
||||
#include <ab_private/proj.h>
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* $XConsortium: color_chooser.h /main/3 1995/11/06 17:24:25 rswiston $
|
||||
*
|
||||
* @(#)color_chooser.h 1.1 21 Feb 1994 cde_app_builder/src/ab
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
** color_chooser.h -- declarations associated with the color chooser
|
||||
*/
|
||||
|
||||
/*
|
||||
** Routine to display the color chooser and return the name of the
|
||||
** color selected. Returns an empty string if no color is selected.
|
||||
*/
|
||||
char * display_color_chooser();
|
||||
@@ -1,101 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: conn.h /main/3 1995/11/06 17:25:27 rswiston $
|
||||
*
|
||||
* @(#)conn.h 1.17 02 May 1995 cde_app_builder/src/libABobj
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _CONN_H_
|
||||
#define _CONN_H_
|
||||
/*
|
||||
* conn.h -
|
||||
*/
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include "conn_ui.h"
|
||||
|
||||
extern ABObj project;
|
||||
|
||||
|
||||
|
||||
extern void conn_drag_chord(
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
String *params,
|
||||
Cardinal num_params
|
||||
);
|
||||
extern void conn_popup_dialog(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
extern void conn_set_source(
|
||||
ABObj obj
|
||||
);
|
||||
extern void conn_set_target(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void conn_enable_action_interpret(
|
||||
ABObj project,
|
||||
BOOL to_test_project
|
||||
);
|
||||
|
||||
extern void conn_disable_action_interpret(
|
||||
ABObj project
|
||||
);
|
||||
extern void conn_test_mode_initialize(
|
||||
ABObj project
|
||||
);
|
||||
extern void conn_test_mode_cleanup(
|
||||
ABObj project
|
||||
);
|
||||
extern void conn_init();
|
||||
extern void conn_strings_init();
|
||||
|
||||
extern void conn_override_default_when(
|
||||
AB_WHEN when
|
||||
);
|
||||
extern void conn_reset_default_when(void);
|
||||
extern void conn_reset_default_action(void);
|
||||
extern void conn_override_default_action_type(
|
||||
AB_FUNC_TYPE func_type
|
||||
);
|
||||
extern void conn_reset_default_action_type();
|
||||
|
||||
#endif /* _CONN_H_ */
|
||||
@@ -1,281 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: connP.h /main/3 1995/11/06 17:25:39 rswiston $
|
||||
*
|
||||
* @(#)connP.h 1.12 17 Feb 1994 cde_app_builder/src/libABobj
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _CONN_P_H_
|
||||
#define _CONN_P_H_
|
||||
/*
|
||||
* connP.h -
|
||||
*/
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/conn.h>
|
||||
#include "conn_ui.h"
|
||||
|
||||
#define FUNCTION_LABEL "Function:"
|
||||
#define ARGUMENT_LABEL "Argument:"
|
||||
#define CODE_LABEL "Code:"
|
||||
|
||||
extern Widget ConnP_dialog;
|
||||
|
||||
typedef enum {
|
||||
ACTION_TYPE_PREDEFINED = 0,
|
||||
ACTION_TYPE_CALLFUNC,
|
||||
ACTION_TYPE_EXECUTE_CODE,
|
||||
ACTION_TYPE_ON_ITEM_HELP,
|
||||
ACTION_TYPE_HELP_VOLUME,
|
||||
ACTION_TYPE_NUM_VALUES
|
||||
} ACTION_TYPE;
|
||||
|
||||
typedef struct _ConnWhenRec
|
||||
{
|
||||
AB_WHEN when_type;
|
||||
char *label;
|
||||
} ConnWhen;
|
||||
|
||||
typedef struct _ConnActRec
|
||||
{
|
||||
AB_BUILTIN_ACTION act_type;
|
||||
char *label;
|
||||
} ConnAct;
|
||||
|
||||
typedef struct _ConnObjRec
|
||||
{
|
||||
AB_OBJECT_TYPE obj_type;
|
||||
int obj_subtype;
|
||||
char *label;
|
||||
AB_WHEN *when_list;
|
||||
Cardinal num_whens;
|
||||
AB_WHEN default_when;
|
||||
AB_BUILTIN_ACTION *action_list;
|
||||
Cardinal num_actions;
|
||||
AB_BUILTIN_ACTION default_act;
|
||||
} ConnObj;
|
||||
|
||||
|
||||
extern ConnObj ConnP_conn_objs[];
|
||||
extern int ConnP_num_conn_objs;
|
||||
|
||||
extern ConnWhen *ConnP_conn_whens;
|
||||
extern int ConnP_num_conn_whens;
|
||||
|
||||
extern ConnAct *ConnP_conn_acts;
|
||||
extern int ConnP_num_conn_acts;
|
||||
|
||||
|
||||
extern char ** connP_get_when_labels(
|
||||
int *num_labels
|
||||
);
|
||||
extern char ** connP_get_act_labels(
|
||||
int *num_labels
|
||||
);
|
||||
extern long connP_get_obj_type_index(
|
||||
AB_OBJECT_TYPE ab_type,
|
||||
int ab_subtype
|
||||
);
|
||||
extern STRING connP_get_moduled_name(
|
||||
ABObj obj
|
||||
);
|
||||
extern char *connP_make_conn_string(
|
||||
ABObj action_obj
|
||||
);
|
||||
extern ABObj connP_get_source(
|
||||
void
|
||||
);
|
||||
extern ABObj connP_get_target(
|
||||
void
|
||||
);
|
||||
extern ABObj connP_get_connection(
|
||||
void
|
||||
);
|
||||
extern void connP_set_connection(
|
||||
ABObj action
|
||||
);
|
||||
extern void connP_set_source_type(
|
||||
AB_OBJECT_TYPE obj_type,
|
||||
int obj_subtype
|
||||
);
|
||||
extern void connP_set_target_type(
|
||||
AB_OBJECT_TYPE obj_type,
|
||||
int obj_subtype
|
||||
);
|
||||
extern AB_OBJECT_TYPE connP_get_source_type(
|
||||
void
|
||||
);
|
||||
extern int connP_get_source_subtype(
|
||||
void
|
||||
);
|
||||
extern AB_OBJECT_TYPE connP_get_target_type(
|
||||
void
|
||||
);
|
||||
extern int connP_get_target_subtype(
|
||||
void
|
||||
);
|
||||
extern void connP_set_action_type(
|
||||
AB_FUNC_TYPE action_type
|
||||
);
|
||||
extern AB_FUNC_TYPE connP_get_action_type(
|
||||
void
|
||||
);
|
||||
extern void connP_ui_source_type_update(
|
||||
AB_OBJECT_TYPE new_type,
|
||||
int new_subtype
|
||||
);
|
||||
extern void connP_ui_target_type_update(
|
||||
AB_OBJECT_TYPE new_type,
|
||||
int new_subtype
|
||||
);
|
||||
extern AB_ARG_TYPE connP_action_needs_arg(
|
||||
AB_BUILTIN_ACTION act_type
|
||||
);
|
||||
|
||||
extern void connP_guess_when_action(
|
||||
AB_OBJECT_TYPE source_type,
|
||||
int source_subtype,
|
||||
AB_OBJECT_TYPE target_type,
|
||||
int target_subtype,
|
||||
AB_WHEN *when_ret,
|
||||
AB_FUNC_TYPE *func_type_ret,
|
||||
AB_BUILTIN_ACTION *act_ret
|
||||
);
|
||||
extern int connP_objtype_needs_subtype(
|
||||
AB_OBJECT_TYPE obj_type,
|
||||
int obj_subtype
|
||||
);
|
||||
extern long connP_obj_enabled(
|
||||
AB_OBJECT_TYPE obj_type,
|
||||
int obj_subtype
|
||||
);
|
||||
extern void connP_set_conn_arg(
|
||||
ABObj ab_action,
|
||||
AB_ARG_TYPE arg_type,
|
||||
char *str_value
|
||||
);
|
||||
extern void connP_make_builtin_conn(
|
||||
ABObj ab_action,
|
||||
ABObj c_source,
|
||||
ABObj c_target,
|
||||
AB_WHEN c_when,
|
||||
AB_BUILTIN_ACTION c_act
|
||||
);
|
||||
extern void connP_make_user_def_conn(
|
||||
ABObj ab_action,
|
||||
ABObj c_source,
|
||||
AB_WHEN c_when,
|
||||
char *function_name
|
||||
);
|
||||
extern void connP_make_code_frag_conn(
|
||||
ABObj ab_action,
|
||||
ABObj c_source,
|
||||
AB_WHEN c_when,
|
||||
char *code_frag
|
||||
);
|
||||
extern void connP_make_on_item_help_conn(
|
||||
ABObj ab_action,
|
||||
ABObj c_source,
|
||||
AB_WHEN c_when
|
||||
);
|
||||
extern void connP_make_help_vol_conn(
|
||||
ABObj ab_action,
|
||||
ABObj c_source,
|
||||
AB_WHEN c_when,
|
||||
STRING volume,
|
||||
STRING location
|
||||
);
|
||||
extern int connP_update_on_obj_destroy(
|
||||
ObjEvDestroyInfo destroyInfo
|
||||
);
|
||||
extern int connP_update_on_obj_rename(
|
||||
ObjEvAttChangeInfo info
|
||||
);
|
||||
extern int connP_update_on_obj_reparent(
|
||||
ObjEvReparentInfo info
|
||||
);
|
||||
extern int connP_update_on_show_status(
|
||||
ObjEvUpdateInfo info
|
||||
);
|
||||
|
||||
extern BOOL connP_change_in_builtin(
|
||||
ABObj ab_action,
|
||||
ABObj c_source,
|
||||
ABObj c_target,
|
||||
AB_WHEN c_when,
|
||||
AB_BUILTIN_ACTION c_act,
|
||||
char *arg_str
|
||||
);
|
||||
|
||||
extern void connP_builtin_remove_arg(
|
||||
ABObj ab_action
|
||||
);
|
||||
|
||||
extern void connP_destroy_connections_for(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern BOOL connP_conn_is_possible(
|
||||
void
|
||||
);
|
||||
|
||||
|
||||
extern BOOL allow_show_help_connection(
|
||||
ABObj src_obj,
|
||||
ABObj target_obj
|
||||
);
|
||||
|
||||
extern void connP_update_when_menu(
|
||||
Widget widget,
|
||||
XtPointer clientData,
|
||||
XtPointer callData
|
||||
);
|
||||
|
||||
extern void connP_update_action_menu(
|
||||
Widget widget,
|
||||
XtPointer clientData,
|
||||
XtPointer callData
|
||||
);
|
||||
|
||||
extern BOOL connP_obj_part_of_conn(
|
||||
ABObj obj,
|
||||
ABObj conn_obj
|
||||
);
|
||||
|
||||
#endif /* _CONN_P_H_ */
|
||||
@@ -42,6 +42,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <Dt/SpinBox.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/XmAll.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/trav.h>
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/*
|
||||
* $XConsortium: help.h /main/3 1995/11/06 17:30:51 rswiston $
|
||||
*
|
||||
* @(#)help.h 1.5 14 Jul 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: help.h - Public header file for App Builder Help Editor functions.
|
||||
* See help_ed_stubs.c for more details.
|
||||
*/
|
||||
|
||||
#ifndef _HELP_H_
|
||||
#define _HELP_H_
|
||||
|
||||
/*
|
||||
** External method to forcibly set the current help object retained
|
||||
** privately within the Help Editor.
|
||||
*/
|
||||
extern void ab_set_help_obj(ABObj obj);
|
||||
|
||||
/*
|
||||
** Routines to enable & disable help functionality when entering and leaving
|
||||
** test mode (respectively).
|
||||
*/
|
||||
extern void help_test_enable(ABObj obj);
|
||||
extern void help_test_disable(ABObj obj);
|
||||
|
||||
/*
|
||||
** Function used to provide on-item help support for App Builder, and which
|
||||
** should be called by the "On Item..." item in the App Builder main Help
|
||||
** menu.
|
||||
*/
|
||||
extern Boolean help_do_onitem_help();
|
||||
|
||||
/*
|
||||
** Method to bring up the Help Editor, used as a callback for the "Help Text..."
|
||||
** button on various prop sheets.
|
||||
*/
|
||||
extern void ab_popup_help(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
#endif /* _HELP_H_ */
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: message.h /main/3 1995/11/06 17:34:09 rswiston $
|
||||
*
|
||||
* @(#)message.h 1.1 08 Jul 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: message.h - message .h file for this directory
|
||||
*/
|
||||
|
||||
#ifndef _ab_message_h
|
||||
#define _ab_message_h
|
||||
|
||||
extern void msgEd_show_dialog(
|
||||
);
|
||||
|
||||
#endif /* _ab_message_h */
|
||||
@@ -42,6 +42,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/PushB.h>
|
||||
#include <Xm/RowColumn.h>
|
||||
|
||||
@@ -1,243 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: pal.h /main/3 1995/11/06 17:35:34 rswiston $
|
||||
*
|
||||
* @(#)pal.h 1.32 01 Feb 1995 cde_app_builder/src/ab
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* pal.h - implements the palette object mechanism
|
||||
*/
|
||||
#ifndef _PAL_H_
|
||||
#define _PAL_H_
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/proj.h>
|
||||
|
||||
/*
|
||||
* AppBuilder Property sheet types: Revolving & fixed
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
AB_PROP_UNDEF = 0,
|
||||
AB_PROP_REVOLVING,
|
||||
AB_PROP_FIXED,
|
||||
AB_PROP_TYPE_NUM_VALUES /* number of valid values - MUST BE LAST */
|
||||
/* ANSI: no comma after last enum item! */
|
||||
} AB_PROP_TYPE;
|
||||
|
||||
typedef struct _PAL_ITEM_INFO PalItemInfo;
|
||||
typedef struct _PAL_EDITABLE_OBJ_INFO PalEditableObjInfo;
|
||||
|
||||
/*
|
||||
* define types for palette item "methods"
|
||||
*/
|
||||
typedef int (*PalItemInitProc) (
|
||||
ABObj
|
||||
);
|
||||
|
||||
typedef Widget (*PalItemPropInitProc) (
|
||||
Widget,
|
||||
AB_PROP_TYPE
|
||||
);
|
||||
|
||||
typedef int (*PalItemPropClearProc) (
|
||||
AB_PROP_TYPE
|
||||
);
|
||||
|
||||
typedef int (*PalItemPropActiveProc) (
|
||||
AB_PROP_TYPE,
|
||||
BOOL
|
||||
);
|
||||
|
||||
typedef int (*PalItemPropLoadProc) (
|
||||
ABObj,
|
||||
AB_PROP_TYPE,
|
||||
unsigned long
|
||||
);
|
||||
|
||||
typedef int (*PalItemPropApplyProc) (
|
||||
AB_PROP_TYPE
|
||||
);
|
||||
|
||||
typedef BOOL (*PalItemPropPendingFunc)(
|
||||
AB_PROP_TYPE
|
||||
);
|
||||
|
||||
typedef BOOL (*PalItemIsaFunc) (
|
||||
ABObj
|
||||
);
|
||||
|
||||
typedef struct _PAL_SUBTYPE_INFO {
|
||||
int subtype;
|
||||
String subname;
|
||||
Pixmap pixmap;
|
||||
unsigned int pmwidth;
|
||||
unsigned int pmheight;
|
||||
} PalSubtypeInfo;
|
||||
|
||||
/*
|
||||
* Palette Item Info Structure - one for each type of object supported
|
||||
*/
|
||||
typedef struct _PAL_ITEM_INFO {
|
||||
|
||||
/* Data...*/
|
||||
AB_OBJECT_TYPE type; /* AB type */
|
||||
char *name; /* virtual name */
|
||||
PalSubtypeInfo *subinfo; /* specific subtype info */
|
||||
int num_subinfo; /* number of subtypes */
|
||||
Widget rev_prop_frame; /* revolving prop sheet */
|
||||
Widget fix_prop_dialog; /* fixed prop sheet */
|
||||
|
||||
/* Methods...*/
|
||||
PalItemInitProc initialize; /* initializes instance */
|
||||
PalItemIsaFunc is_a_test; /* "is a" test */
|
||||
PalItemPropInitProc prop_initialize; /* creates prop sheet */
|
||||
PalItemPropActiveProc prop_activate; /* sets prop sheet active/inactive */
|
||||
PalItemPropClearProc prop_clear; /* clears prop sheet */
|
||||
PalItemPropLoadProc prop_load; /* loads prop sheet */
|
||||
PalItemPropApplyProc prop_apply; /* applys properties to obj */
|
||||
PalItemPropPendingFunc prop_pending; /* checks for pending changes */
|
||||
|
||||
} PAL_ITEM_INFO;
|
||||
|
||||
typedef struct _PAL_EDITABLE_OBJ_INFO {
|
||||
AB_OBJECT_TYPE type;
|
||||
int subtype;
|
||||
ISTRING name;
|
||||
PalItemInfo *palitem;
|
||||
PalEditableObjInfo *next;
|
||||
} PAL_EDITABLE_OBJ_INFO;
|
||||
|
||||
typedef BOOL (*PalEditableObjTestFunc) (
|
||||
PalEditableObjInfo *edobj_info
|
||||
);
|
||||
|
||||
extern PalItemInfo *ab_button_palitem;
|
||||
extern PalItemInfo *ab_choice_palitem;
|
||||
extern PalItemInfo *ab_combo_box_palitem;
|
||||
extern PalItemInfo *ab_cpanel_palitem;
|
||||
extern PalItemInfo *ab_custdlg_palitem;
|
||||
extern PalItemInfo *ab_drawp_palitem;
|
||||
extern PalItemInfo *ab_label_palitem;
|
||||
extern PalItemInfo *ab_group_palitem;
|
||||
extern PalItemInfo *ab_list_palitem;
|
||||
extern PalItemInfo *ab_mainwin_palitem;
|
||||
extern PalItemInfo *ab_menu_palitem;
|
||||
extern PalItemInfo *ab_menubar_palitem;
|
||||
extern PalItemInfo *ab_scale_palitem;
|
||||
extern PalItemInfo *ab_separator_palitem;
|
||||
extern PalItemInfo *ab_spinbox_palitem;
|
||||
extern PalItemInfo *ab_termp_palitem;
|
||||
extern PalItemInfo *ab_textf_palitem;
|
||||
extern PalItemInfo *ab_textp_palitem;
|
||||
extern PalItemInfo *ab_fchooser_palitem;
|
||||
extern PalItemInfo *ab_panedwin_palitem;
|
||||
|
||||
|
||||
|
||||
extern void pal_register_item_info(
|
||||
Widget pwidget,
|
||||
PalItemInfo *palitem,
|
||||
int subtype,
|
||||
String subname,
|
||||
Pixmap pixmap
|
||||
);
|
||||
|
||||
extern void pal_enable_item_drag(
|
||||
Widget item_widget,
|
||||
int subtype
|
||||
);
|
||||
|
||||
extern PalItemInfo *pal_get_item_info(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern PalItemInfo* pal_get_type_item_info(
|
||||
AB_OBJECT_TYPE type,
|
||||
int subtype
|
||||
);
|
||||
|
||||
extern Pixmap pal_get_item_pixmap(
|
||||
ABObj obj,
|
||||
int subtype,
|
||||
int *p_width,
|
||||
int *p_height
|
||||
);
|
||||
|
||||
extern STRING pal_get_item_subname(
|
||||
ABObj obj,
|
||||
int subtype
|
||||
);
|
||||
|
||||
extern void pal_register_editable_obj(
|
||||
AB_OBJECT_TYPE type,
|
||||
int subtype,
|
||||
STRING name,
|
||||
PalItemInfo *palitem
|
||||
);
|
||||
|
||||
extern PalEditableObjInfo *
|
||||
pal_get_editable_obj_info(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern void pal_add_editable_obj_menu_items(
|
||||
Widget menu_pane,
|
||||
XtCallbackProc item_cb,
|
||||
PalEditableObjTestFunc test_func
|
||||
);
|
||||
|
||||
extern int pal_initialize_obj(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int pal_create_menu(
|
||||
AB_PROP_TYPE type,
|
||||
ABObj module,
|
||||
STRING menu_name,
|
||||
STRING menu_title
|
||||
);
|
||||
|
||||
extern void pal_set_File_menu(
|
||||
AB_CHOOSER_TYPE chooser_type,
|
||||
BOOL active
|
||||
);
|
||||
|
||||
#endif /* _PAL_H_ */
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/prop.h>
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/ab.h>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/prop.h>
|
||||
|
||||
@@ -61,6 +61,7 @@
|
||||
#include <Xm/Scale.h>
|
||||
#include <Dt/SpinBox.h>
|
||||
#include <Dt/ComboBox.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/brws.h>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/util.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/util.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/util.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
#include <stdio.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/pal.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/abobj.h>
|
||||
#include <ab_private/abobj_set.h>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/ab.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/prop.h>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/objxm.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/ab.h>
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
#include <sys/param.h> /* MAXPATHLEN */
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/List.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab/util_types.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/obj.h>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/prop.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/prop.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/ab.h>
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
#include <Xm/Xm.h>
|
||||
#include <Dt/TermPrim.h>
|
||||
#include <Dt/Term.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/util.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/prop.h>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <Xm/Xm.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/util.h>
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/pal.h>
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/BulletinB.h>
|
||||
#include <Xm/SelectioB.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/bil.h>
|
||||
#include <ab_private/abobj.h>
|
||||
|
||||
@@ -1,264 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: proj.h /main/3 1995/11/06 17:45:59 rswiston $
|
||||
*
|
||||
* @(#)proj.h 1.11 16 Feb 1994 cde_app_builder/src/
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* proj.h
|
||||
* Header file for the project window
|
||||
*/
|
||||
|
||||
#ifndef _PROJ_H_
|
||||
#define _PROJ_H_
|
||||
|
||||
#include <Xm/Xm.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
#include "dtb_utils.h"
|
||||
|
||||
#define IMPORT_BY_REF 0
|
||||
#define IMPORT_BY_COPY 1
|
||||
#define IMPORT_AS_BIL 2
|
||||
#define IMPORT_AS_UIL 3
|
||||
|
||||
typedef enum {
|
||||
AB_OPEN_PROJ_CHOOSER = 0,
|
||||
AB_SAVE_PROJ_AS_CHOOSER,
|
||||
AB_IMPORT_CHOOSER,
|
||||
AB_EXPORT_CHOOSER,
|
||||
AB_SAVE_MOD_AS_CHOOSER,
|
||||
AB_CHOOSER_TYPE_NUM_VALUES
|
||||
} AB_CHOOSER_TYPE;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
PROJ_STATUS_MOD_PATH,
|
||||
PROJ_STATUS_PROJ_PATH, /* number of valid values - MUST BE LAST */
|
||||
PROJ_STATUS_NUM_VALUES
|
||||
/* ANSI: no comma after last enum item! */
|
||||
} PROJ_STATUS_INFO;
|
||||
|
||||
typedef struct {
|
||||
Widget child;
|
||||
AB_CHOOSER_TYPE chooser_type;
|
||||
BOOL ImportAsBil;
|
||||
BOOL ImportByCopy;
|
||||
BOOL writeEncapsulated;
|
||||
} ChooserInfoRec, *ChooserInfo;
|
||||
|
||||
|
||||
/*
|
||||
* This is only used for projects right now, but it can be used for other
|
||||
* types of saves, as well.
|
||||
*/
|
||||
#define AB_SAVE_CANCELLED (-1) /* errors are negative */
|
||||
#define AB_SAVE_NORMAL 1
|
||||
#define AB_SAVE_SAVE_AS 2
|
||||
|
||||
typedef int ProjSaveCallbackFuncRec(int status);
|
||||
typedef ProjSaveCallbackFuncRec *ProjSaveCallbackFunc;
|
||||
|
||||
int proj_init(void);
|
||||
|
||||
void proj_add_objects(
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
void proj_delete_objects(
|
||||
AB_OBJ *obj
|
||||
);
|
||||
|
||||
void proj_register_actions(
|
||||
XtAppContext app
|
||||
);
|
||||
|
||||
void proj_select(
|
||||
AB_OBJ *module
|
||||
);
|
||||
|
||||
void proj_deselect(
|
||||
AB_OBJ *module
|
||||
);
|
||||
|
||||
void proj_toggle_select(
|
||||
AB_OBJ *module
|
||||
);
|
||||
|
||||
extern int proj_set_project(
|
||||
ABObj project
|
||||
);
|
||||
|
||||
extern int proj_destroy_project(
|
||||
ABObj proj
|
||||
);
|
||||
|
||||
extern ABObj proj_get_project(
|
||||
);
|
||||
|
||||
extern int proj_set_cur_module(
|
||||
ABObj module
|
||||
);
|
||||
|
||||
extern ABObj proj_get_cur_module(
|
||||
);
|
||||
|
||||
extern int proj_rename_module(
|
||||
ABObj module,
|
||||
STRING name
|
||||
);
|
||||
|
||||
extern void proj_update_node(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int proj_update_stat_region(
|
||||
PROJ_STATUS_INFO type,
|
||||
STRING value
|
||||
);
|
||||
|
||||
extern BOOL proj_check_unsaved_edits(
|
||||
ABObj root
|
||||
);
|
||||
|
||||
extern void proj_create_new_proj(
|
||||
STRING proj_name
|
||||
);
|
||||
|
||||
extern void proj_name_proj( void );
|
||||
|
||||
extern int proj_set_files_exploded(ABObj project);
|
||||
|
||||
extern int proj_unset_files_exploded(ABObj project);
|
||||
|
||||
extern void proj_show_save_as_proj_chooser(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern void proj_show_name_dlg(
|
||||
ABObj module,
|
||||
Widget parent
|
||||
);
|
||||
|
||||
extern void proj_show_export_bil_chooser(
|
||||
Widget widget,
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern BOOL proj_is_exploded(ABObj project);
|
||||
|
||||
extern int proj_overwrite_existing_file(
|
||||
char *file,
|
||||
ABObj obj,
|
||||
BOOL encapsulating,
|
||||
BOOL Exporting,
|
||||
BOOL changed_dir,
|
||||
STRING old_proj_dir,
|
||||
DTB_MODAL_ANSWER *answer
|
||||
);
|
||||
|
||||
extern void proj_save_needed(
|
||||
ProjSaveCallbackFunc saveDoneCB /* may be NULL */
|
||||
);
|
||||
|
||||
extern int proj_save_encapsulated(
|
||||
ABObj obj,
|
||||
STRING file_name
|
||||
);
|
||||
|
||||
extern int proj_save_exploded( /* one file per module */
|
||||
ABObj obj,
|
||||
char *exp_path,
|
||||
BOOL changed_dir,
|
||||
BOOL encap_file
|
||||
);
|
||||
|
||||
extern int proj_show_proj_dir(void);
|
||||
|
||||
|
||||
extern void proj_open_proj_okCB(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XmSelectionBoxCallbackStruct *call_data
|
||||
);
|
||||
|
||||
extern void proj_cancelCB(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XmSelectionBoxCallbackStruct *call_data
|
||||
);
|
||||
|
||||
|
||||
extern void proj_unmap_chooserCB(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void proj_show_save_proj_as_chooser(
|
||||
Widget widget,
|
||||
ProjSaveCallbackFunc saveDoneCB
|
||||
);
|
||||
|
||||
extern void proj_show_dialog(void);
|
||||
|
||||
extern void proj_import_okCB(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XmSelectionBoxCallbackStruct *call_data
|
||||
);
|
||||
|
||||
extern STRING proj_cvt_mod_file_to_rel_path(
|
||||
STRING mod_path,
|
||||
STRING proj_path
|
||||
);
|
||||
|
||||
extern void proj_set_menus(
|
||||
AB_CHOOSER_TYPE chooser_type,
|
||||
BOOL active
|
||||
);
|
||||
|
||||
extern Boolean proj_verify_name(
|
||||
STRING new_name,
|
||||
BOOL ObjIsModule,
|
||||
DtbMessageData msgData,
|
||||
Widget parent,
|
||||
ABObj newObj
|
||||
);
|
||||
|
||||
#endif /* _PROJ_H_ */
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: projP.h /main/3 1995/11/06 17:46:14 rswiston $
|
||||
*
|
||||
* @(#)projP.h 1.5 15 Feb 1994 cde_app_builder/src/
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* projP.h
|
||||
* Private declarations for project window
|
||||
*/
|
||||
|
||||
#ifndef _PROJP_H
|
||||
#define _PROJP_H
|
||||
|
||||
#include <ab_private/proj.h>
|
||||
#include "proj_ui.h"
|
||||
|
||||
extern void projP_show_save_as_bil_chooser(
|
||||
Widget widget,
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
extern int projP_write_out_bil_file(
|
||||
ABObj obj,
|
||||
char *exp_path,
|
||||
STRING old_proj_dir,
|
||||
BOOL Exporting
|
||||
);
|
||||
|
||||
extern int projP_save_export_bil(
|
||||
ABObj module_obj,
|
||||
STRING fullpath,
|
||||
BOOL Exporting
|
||||
);
|
||||
|
||||
extern void projP_store_viewer(
|
||||
Widget widget,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void projP_update_menu_items(
|
||||
int old_count,
|
||||
int new_count
|
||||
);
|
||||
|
||||
#endif /* _PROJP_H */
|
||||
@@ -50,6 +50,7 @@
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/FileSB.h>
|
||||
#include <Xm/TextF.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/proj.h>
|
||||
#include <ab_private/projP.h>
|
||||
|
||||
@@ -54,6 +54,7 @@
|
||||
#include <Xm/FileSB.h>
|
||||
#include <Xm/TextF.h>
|
||||
#include <Xm/ToggleB.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/brws.h>
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
#include <Xm/Text.h>
|
||||
#include <Xm/TextF.h>
|
||||
#include <Xm/ToggleB.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/objxm.h>
|
||||
|
||||
@@ -1,690 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: prop.h /main/5 1996/08/08 17:58:47 mustafa $
|
||||
*
|
||||
* @(#)prop.h 1.75 95/04/20 Copyright 1993 Sun Microsystems
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* prop.h - defines structures/routines required for property sheets
|
||||
*/
|
||||
#ifndef _PROPS_H_
|
||||
#define _PROPS_H_
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#if !defined(CSRG_BASED)
|
||||
#include <values.h>
|
||||
#endif
|
||||
#include <limits.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/abobj_edit.h>
|
||||
#include "revolv_ui.h"
|
||||
|
||||
#define SIZE_OF_CONTENTS_KEY -1
|
||||
#define SIZE_FIXED_KEY 0
|
||||
#define SIZE_IN_CHARS_KEY 88
|
||||
#define SIZE_IN_PIXELS_KEY 99
|
||||
#define EDIT_CHANGE 111
|
||||
#define HELP_ITEM_KEY 222
|
||||
#define DISMISS_ITEM_KEY 333
|
||||
#define ACTION1_ITEM_KEY 444
|
||||
#define ACTION2_ITEM_KEY 555
|
||||
#define ACTION3_ITEM_KEY 777
|
||||
#define CANCEL_ITEM_KEY 888
|
||||
#define SHOW_VALUE_KEY 999
|
||||
|
||||
/*
|
||||
* Load Flags - defines which attributes need to be loaded
|
||||
*/
|
||||
#define LoadClear 0x0000
|
||||
#define LoadAll 0x0001
|
||||
#define LoadName 0x0002
|
||||
#define LoadPosition 0x0004
|
||||
#define LoadSize 0x0008
|
||||
|
||||
/*
|
||||
* Enum values for Changebar State
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
PROP_CB_OFF,
|
||||
PROP_CB_ON,
|
||||
PROP_CB_NUM_VALUES
|
||||
} PROP_CB_STATE;
|
||||
|
||||
#define ERR_ATOI MAXINT
|
||||
|
||||
/*
|
||||
* Item Editing Insert choices
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
INSERT_AFTER = 6, /* prevent conflict with AB_EDIT_ enums */
|
||||
INSERT_BEFORE,
|
||||
INSERT_TOP,
|
||||
INSERT_BOTTOM,
|
||||
INSERT_NUM_VALUES
|
||||
} INSERT_TYPE;
|
||||
|
||||
/*
|
||||
* Geometry Keys
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
GEOM_X,
|
||||
GEOM_Y,
|
||||
GEOM_WIDTH,
|
||||
GEOM_HEIGHT,
|
||||
GEOM_NUM_VALUES
|
||||
} GEOM_KEY;
|
||||
|
||||
extern char *LabelForString;
|
||||
extern char *LabelForGraphic;
|
||||
extern char *NoneItem;
|
||||
extern char *XFieldStr;
|
||||
extern char *YFieldStr;
|
||||
extern char *WFieldStr;
|
||||
extern char *HFieldStr;
|
||||
extern char *OffsetFieldStr;
|
||||
extern char *PercentageFieldStr;
|
||||
extern char *RowColFieldStr;
|
||||
extern char *VertSpacingFieldStr;
|
||||
extern char *HorizSpacingFieldStr;
|
||||
|
||||
/*
|
||||
* Structures to store Prop Sheet Setting Widgets
|
||||
*/
|
||||
typedef struct _PROP_CHECKBOX_SETTING {
|
||||
Widget label;
|
||||
Widget checkbox;
|
||||
Widget changebar;
|
||||
} PropCheckboxSettingRec, *PropCheckboxSetting;
|
||||
|
||||
typedef struct _PROP_COLOR_SETTING {
|
||||
Widget label;
|
||||
Widget menubutton;
|
||||
Widget swatch;
|
||||
Widget field;
|
||||
Widget changebar;
|
||||
} PropColorSettingRec, *PropColorSetting;
|
||||
|
||||
typedef struct _PROP_OBJ_COMBOBOX_SETTING {
|
||||
Widget label;
|
||||
Widget combobox;
|
||||
Widget list;
|
||||
Widget changebar;
|
||||
ABObj *current_obj_ptr;
|
||||
} PropObjComboboxSettingRec, *PropObjComboboxSetting;
|
||||
|
||||
typedef struct _PROP_FIELD_SETTING {
|
||||
Widget label;
|
||||
Widget field;
|
||||
Widget changebar;
|
||||
} PropFieldSettingRec, *PropFieldSetting;
|
||||
|
||||
typedef struct _PROP_FOOTER_SETTING {
|
||||
Widget label;
|
||||
Widget checkbox;
|
||||
Widget field;
|
||||
Widget changebar;
|
||||
} PropFooterSettingRec, *PropFooterSetting;
|
||||
|
||||
typedef struct _PROP_GEOMETRY_SETTING {
|
||||
Widget label;
|
||||
Widget x_label;
|
||||
Widget x_field;
|
||||
Widget y_label;
|
||||
Widget y_field;
|
||||
Widget w_label;
|
||||
Widget w_field;
|
||||
Widget h_label;
|
||||
Widget h_field;
|
||||
Widget changebar;
|
||||
} PropGeometrySettingRec, *PropGeometrySetting;
|
||||
|
||||
typedef struct _PROP_MENUNAME_SETTING {
|
||||
AB_PROP_TYPE prop_type;
|
||||
Widget label;
|
||||
Widget menubutton;
|
||||
Widget field;
|
||||
Widget owner_name_field;
|
||||
Widget changebar;
|
||||
PropFieldSetting menu_title_pfs;
|
||||
ABObj *current_obj_ptr;
|
||||
} PropMenunameSettingRec, *PropMenunameSetting;
|
||||
|
||||
typedef struct _PROP_OPTIONS_SETTING {
|
||||
Widget label;
|
||||
Widget optionbox;
|
||||
Widget menu;
|
||||
Widget changebar;
|
||||
} PropOptionsSettingRec, *PropOptionsSetting;
|
||||
|
||||
typedef struct _PROP_OBJ_OPTIONS_SETTING {
|
||||
PropOptionsSettingRec options;
|
||||
BOOL display_module;
|
||||
ABObj *current_obj_ptr;
|
||||
ABObjTestFunc obj_test_func;
|
||||
ABObj search_root;
|
||||
} PropObjOptionsSettingRec, *PropObjOptionsSetting;
|
||||
|
||||
typedef struct _PROP_RADIO_SETTING {
|
||||
Widget label;
|
||||
Widget radiobox;
|
||||
Widget changebar;
|
||||
} PropRadioSettingRec, *PropRadioSetting;
|
||||
|
||||
typedef struct _PROP_ITEMS_SETTING {
|
||||
AB_ITEM_TYPE item_type;
|
||||
Widget item_list;
|
||||
Widget item_menu;
|
||||
PropFieldSetting item_label_pfs;
|
||||
PropOptionsSetting item_label_type_pos;
|
||||
PropFieldSetting item_mnemonic_pfs;
|
||||
PropFieldSetting item_accel_pfs;
|
||||
PropOptionsSetting item_line_style_pos;
|
||||
PropCheckboxSetting item_state_pcs;
|
||||
PropMenunameSetting item_menuname_pms;
|
||||
Widget changebar;
|
||||
ABObj current_item;
|
||||
ABObj clipboard_item;
|
||||
ABObj *current_obj_ptr;
|
||||
} PropItemsSettingRec, *PropItemsSetting;
|
||||
|
||||
/*
|
||||
* Prop Dialog Management Functions
|
||||
*/
|
||||
/* Prop module Initialization
|
||||
*/
|
||||
extern void prop_init(
|
||||
Widget toplevel
|
||||
);
|
||||
|
||||
/* Property Dialog "Popup" routines
|
||||
*/
|
||||
extern void prop_show_dialog(
|
||||
Widget w,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
extern void prop_show_fixed(
|
||||
PalItemInfo *palitem
|
||||
);
|
||||
extern void prop_show_menu_props(
|
||||
Widget w,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
extern void prop_show_group_props(
|
||||
Widget w,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
extern void prop_load_obj(
|
||||
ABObj obj,
|
||||
AB_PROP_TYPE ptype
|
||||
);
|
||||
/* Prop Dialog Initialization Functions
|
||||
*/
|
||||
extern void prop_activate_panel_init(
|
||||
AB_PROP_TYPE type,
|
||||
PalItemInfo *palitem,
|
||||
Widget ok_button,
|
||||
Widget apply_button,
|
||||
Widget reset_button,
|
||||
Widget cancel_button,
|
||||
Widget help_button
|
||||
);
|
||||
extern void prop_editors_panel_init(
|
||||
AB_PROP_TYPE type,
|
||||
PalItemInfo *palitem,
|
||||
Widget attach_ed_button,
|
||||
Widget conn_ed_button,
|
||||
Widget help_ed_button
|
||||
);
|
||||
extern void prop_fixed_dialog_init(
|
||||
PalItemInfo *palitem,
|
||||
Widget dialog,
|
||||
Widget list
|
||||
);
|
||||
|
||||
/* Checkbox Setting Functions
|
||||
*/
|
||||
extern void prop_checkbox_init(
|
||||
PropCheckboxSetting pcs,
|
||||
Widget label,
|
||||
Widget checkbox,
|
||||
int num_items,
|
||||
WidgetList items,
|
||||
int *item_keys,
|
||||
Widget changebar
|
||||
);
|
||||
extern BOOL prop_checkbox_get_value(
|
||||
PropCheckboxSetting pcs,
|
||||
int itemkey
|
||||
);
|
||||
extern int prop_checkbox_set_value(
|
||||
PropCheckboxSetting pcs,
|
||||
int itemkey,
|
||||
BOOL value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
/* Color Field Functions
|
||||
*/
|
||||
extern void prop_colorfield_init(
|
||||
PropColorSetting pcs,
|
||||
Widget menubutton,
|
||||
Widget none_item,
|
||||
Widget chooser_item,
|
||||
Widget swatch,
|
||||
Widget field,
|
||||
Widget changebar
|
||||
);
|
||||
extern int prop_colorfield_set_value(
|
||||
PropColorSetting pcs,
|
||||
STRING colorname, /* NULL clears swatch */
|
||||
BOOL trip_changebar
|
||||
);
|
||||
/* Caller must free memory allocated for return String */
|
||||
extern STRING prop_colorfield_get_value(
|
||||
PropColorSetting pcs
|
||||
);
|
||||
|
||||
/* REMIND: ComboBox has too many bugs to use right now; if
|
||||
* we never revert back to using it, delete these functions
|
||||
*/
|
||||
/* Object Combobox Functions
|
||||
*/
|
||||
extern void prop_obj_combobox_init(
|
||||
PropObjComboboxSetting pcs,
|
||||
Widget label,
|
||||
Widget combobox,
|
||||
Widget changebar,
|
||||
ABObj *current_obj_ptr
|
||||
);
|
||||
|
||||
extern ABObj prop_obj_combobox_get_value(
|
||||
PropObjComboboxSetting pcs
|
||||
);
|
||||
|
||||
extern int prop_obj_combobox_set_value(
|
||||
PropObjComboboxSetting pcs,
|
||||
ABObj obj,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
extern void prop_obj_combobox_load(
|
||||
PropObjComboboxSetting pcs,
|
||||
ABObj root,
|
||||
ABObjTestFunc obj_test_func
|
||||
);
|
||||
|
||||
|
||||
/* TextField Functions
|
||||
*/
|
||||
extern void prop_field_init(
|
||||
PropFieldSetting pfs,
|
||||
Widget label,
|
||||
Widget field,
|
||||
Widget changebar
|
||||
);
|
||||
/* Caller must free memory allocated for return String */
|
||||
extern STRING prop_field_get_value(
|
||||
PropFieldSetting pfs
|
||||
);
|
||||
extern int prop_field_get_numeric_value(
|
||||
PropFieldSetting pfs
|
||||
);
|
||||
extern int prop_field_set_value(
|
||||
PropFieldSetting pfs,
|
||||
STRING value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
extern int prop_field_set_numeric_value(
|
||||
PropFieldSetting pfs,
|
||||
int value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
/* Footer Setting Functions
|
||||
*/
|
||||
extern void prop_footer_init(
|
||||
PropFooterSetting pfs,
|
||||
Widget label,
|
||||
Widget checkbox,
|
||||
int num_items,
|
||||
WidgetList items,
|
||||
int *item_keys,
|
||||
Widget field,
|
||||
Widget changebar
|
||||
);
|
||||
|
||||
/* Item Editor Functions
|
||||
*/
|
||||
extern void prop_item_editor_init(
|
||||
PropItemsSetting pis,
|
||||
AB_ITEM_TYPE type,
|
||||
Widget list,
|
||||
Widget changebar,
|
||||
Widget add_button,
|
||||
int insert_count,
|
||||
WidgetList insert_items,
|
||||
int *insert_enums,
|
||||
int edit_count,
|
||||
WidgetList edit_items,
|
||||
int *edit_enums,
|
||||
PropFieldSetting label_pfs,
|
||||
PropOptionsSetting label_type_pos,
|
||||
Widget label_graphic_hint,
|
||||
PropFieldSetting mnemonic_pfs,
|
||||
PropFieldSetting accel_pfs,
|
||||
PropOptionsSetting line_style_pos,
|
||||
PropCheckboxSetting state_pcs,
|
||||
PropMenunameSetting menuname_pms,
|
||||
ABObj *current_obj_ptr
|
||||
);
|
||||
extern void prop_item_editor_apply(
|
||||
PropItemsSetting pis
|
||||
);
|
||||
extern void prop_item_editor_clear(
|
||||
PropItemsSetting pis
|
||||
);
|
||||
extern void prop_item_editor_load(
|
||||
PropItemsSetting pis,
|
||||
ABObj obj
|
||||
);
|
||||
extern void prop_item_change(
|
||||
PropItemsSetting pis,
|
||||
BOOL reselect
|
||||
);
|
||||
extern void prop_item_edit(
|
||||
PropItemsSetting pis,
|
||||
AB_EDIT_TYPE etype
|
||||
);
|
||||
extern STRING prop_item_get_namebase(
|
||||
ABObj iobj
|
||||
);
|
||||
extern int prop_item_insert(
|
||||
PropItemsSetting pis,
|
||||
INSERT_TYPE itype,
|
||||
ABObj iobj
|
||||
);
|
||||
extern void prop_item_labeltypeCB(
|
||||
Widget w,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
/* Geometry Field Functions
|
||||
*/
|
||||
extern void prop_geomfield_init(
|
||||
PropGeometrySetting pgs,
|
||||
Widget label,
|
||||
Widget x_label,
|
||||
Widget x_field,
|
||||
Widget y_label,
|
||||
Widget y_field,
|
||||
Widget w_label,
|
||||
Widget w_field,
|
||||
Widget h_label,
|
||||
Widget h_field,
|
||||
Widget changebar
|
||||
);
|
||||
extern int prop_geomfield_get_value(
|
||||
PropGeometrySetting pgs,
|
||||
GEOM_KEY gkey
|
||||
);
|
||||
extern int prop_geomfield_set_value(
|
||||
PropGeometrySetting pgs,
|
||||
GEOM_KEY gkey,
|
||||
int gvalue,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
extern int prop_geomfield_clear(
|
||||
PropGeometrySetting pgs,
|
||||
GEOM_KEY gkey
|
||||
);
|
||||
|
||||
extern void prop_size_policyCB(
|
||||
Widget w,
|
||||
XtPointer client_data,
|
||||
XtPointer call_data
|
||||
);
|
||||
|
||||
extern void prop_load_obj_position(
|
||||
ABObj obj,
|
||||
PropGeometrySetting pgs
|
||||
);
|
||||
|
||||
extern void prop_load_obj_size(
|
||||
ABObj obj,
|
||||
PropGeometrySetting pgs
|
||||
);
|
||||
|
||||
/* Menu Name Field Functions
|
||||
*/
|
||||
extern void prop_menuname_init(
|
||||
PropMenunameSetting pms,
|
||||
AB_PROP_TYPE ptype,
|
||||
Widget label,
|
||||
Widget menubutton,
|
||||
Widget field,
|
||||
Widget owner_name_field,
|
||||
Widget changebar,
|
||||
PropFieldSetting menu_title_pfs,
|
||||
ABObj *current_obj_ptr,
|
||||
BOOL new_item_ok
|
||||
);
|
||||
/* Caller must free memory allocated for return String */
|
||||
extern STRING prop_menuname_get_value(
|
||||
PropMenunameSetting pms
|
||||
);
|
||||
extern int prop_menuname_set_value(
|
||||
PropMenunameSetting pms,
|
||||
STRING value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
/* Option Menu Functions
|
||||
*/
|
||||
extern void prop_options_init(
|
||||
PropOptionsSetting pos,
|
||||
Widget label,
|
||||
Widget optionbox,
|
||||
Widget menu,
|
||||
int num_items,
|
||||
WidgetList items,
|
||||
XtPointer *item_vals,
|
||||
Widget changebar
|
||||
);
|
||||
extern XtPointer prop_options_get_value(
|
||||
PropOptionsSetting pos
|
||||
);
|
||||
extern int prop_options_set_value(
|
||||
PropOptionsSetting pos,
|
||||
XtPointer value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
extern int prop_options_remove_value(
|
||||
PropOptionsSetting pos,
|
||||
XtPointer value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
/* Object OptionMenu Functions
|
||||
*/
|
||||
extern void prop_obj_options_init(
|
||||
PropObjOptionsSetting pos,
|
||||
Widget label,
|
||||
Widget optionbox,
|
||||
Widget menu,
|
||||
int num_items,
|
||||
WidgetList items,
|
||||
XtPointer *item_vals,
|
||||
Widget changebar,
|
||||
BOOL display_module,
|
||||
ABObj *current_obj_ptr,
|
||||
ABObjTestFunc obj_test_func
|
||||
);
|
||||
|
||||
extern ABObj prop_obj_options_get_value(
|
||||
PropObjOptionsSetting pos
|
||||
);
|
||||
|
||||
extern int prop_obj_options_set_value(
|
||||
PropObjOptionsSetting pos,
|
||||
ABObj obj,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
extern void prop_obj_options_load(
|
||||
PropObjOptionsSetting pos,
|
||||
ABObj search_root
|
||||
);
|
||||
|
||||
/* Radiobox Functions
|
||||
*/
|
||||
extern void prop_radiobox_init(
|
||||
PropRadioSetting prs,
|
||||
Widget label,
|
||||
Widget radiobox,
|
||||
int num_items,
|
||||
WidgetList items,
|
||||
XtPointer *item_vals,
|
||||
Widget changebar
|
||||
);
|
||||
extern int prop_radiobox_get_value(
|
||||
PropRadioSetting prs
|
||||
);
|
||||
extern int prop_radiobox_set_value(
|
||||
PropRadioSetting prs,
|
||||
XtPointer value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
extern void prop_label_field_init(
|
||||
PropFieldSetting label_pfs,
|
||||
Widget graphic_hint,
|
||||
WidgetList labeltype_items,
|
||||
int num_items
|
||||
);
|
||||
extern void prop_setup_label_field(
|
||||
PropFieldSetting label_pfs,
|
||||
PropOptionsSetting label_line_style_pos,
|
||||
AB_LABEL_TYPE ltype,
|
||||
STRING label,
|
||||
AB_LINE_TYPE line_style
|
||||
);
|
||||
|
||||
/*
|
||||
* Changebar Management Routines
|
||||
*/
|
||||
extern BOOL prop_changed(
|
||||
Widget changebar
|
||||
);
|
||||
extern BOOL prop_changebars_pending(
|
||||
Widget prop_form
|
||||
);
|
||||
extern void prop_changebars_cleared(
|
||||
Widget prop_form
|
||||
);
|
||||
extern void prop_set_changebar(
|
||||
Widget changebar,
|
||||
int state
|
||||
);
|
||||
|
||||
/*
|
||||
* Prop Setting Verification Routines
|
||||
*/
|
||||
extern int prop_str_to_int(
|
||||
STRING str
|
||||
);
|
||||
|
||||
extern BOOL prop_string_ok(
|
||||
Widget field,
|
||||
const char *chars,
|
||||
BOOL display_notice
|
||||
);
|
||||
|
||||
extern BOOL prop_identifier_ok(
|
||||
Widget field
|
||||
);
|
||||
|
||||
extern BOOL prop_name_ok(
|
||||
ABObj obj,
|
||||
Widget field
|
||||
);
|
||||
|
||||
extern BOOL prop_graphic_filename_ok(
|
||||
Widget field,
|
||||
BOOL empty_ok
|
||||
);
|
||||
|
||||
extern BOOL prop_obj_name_ok(
|
||||
Widget field,
|
||||
ABObj root,
|
||||
AB_OBJECT_TYPE objtype,
|
||||
STRING objtype_name
|
||||
);
|
||||
|
||||
extern BOOL prop_submenu_name_ok(
|
||||
Widget field,
|
||||
ABObj owner
|
||||
);
|
||||
|
||||
extern BOOL prop_color_ok(
|
||||
Widget field
|
||||
);
|
||||
|
||||
extern BOOL prop_number_ok(
|
||||
Widget field,
|
||||
STRING field_name,
|
||||
int min,
|
||||
int max
|
||||
);
|
||||
|
||||
extern BOOL prop_help_item_ok(
|
||||
Widget list,
|
||||
ABObj item_obj
|
||||
);
|
||||
|
||||
|
||||
#endif /* _PROP_H_ */
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: propP.h /main/3 1995/11/06 17:48:54 rswiston $
|
||||
*
|
||||
* @(#)propP.h 1.7 95/04/27 Copyright 1993 Sun Microsystems
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* propP.h - Module-private defines structures/routines required for
|
||||
* property sheets
|
||||
*/
|
||||
#ifndef _PROPP_H_
|
||||
#define _PROPP_H_
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#if !defined(CSRG_BASED)
|
||||
#include <values.h>
|
||||
#endif
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/pal.h>
|
||||
#include <ab_private/abobj_edit.h>
|
||||
|
||||
/*
|
||||
* Enum values for Prop Sheet Mode
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
PROP_LOAD,
|
||||
PROP_EDIT,
|
||||
PROP_MODE_NUM_VALUES
|
||||
} PROP_MODE;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Property Dialog Manipulation Routines
|
||||
*/
|
||||
extern void propP_changebar_init(
|
||||
Widget changebar,
|
||||
Widget setting
|
||||
);
|
||||
|
||||
extern void propP_combobox_chgCB(
|
||||
Widget field,
|
||||
XtPointer clientdata,
|
||||
XtPointer calldata
|
||||
);
|
||||
|
||||
extern void propP_field_chgCB(
|
||||
Widget field,
|
||||
XtPointer clientdata,
|
||||
XtPointer calldata
|
||||
);
|
||||
extern int propP_field_set_value(
|
||||
Widget field,
|
||||
STRING value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
extern int propP_field_set_numeric_value(
|
||||
Widget field,
|
||||
int value,
|
||||
BOOL trip_changebar
|
||||
);
|
||||
|
||||
extern void propP_labeltypeCB(
|
||||
Widget item,
|
||||
XtPointer clientdata,
|
||||
XtPointer calldata
|
||||
);
|
||||
extern void propP_options_itemCB(
|
||||
Widget item,
|
||||
XtPointer clientdata,
|
||||
XtPointer calldata
|
||||
);
|
||||
extern void propP_popup_message(
|
||||
Widget w,
|
||||
STRING msg,
|
||||
BOOL modal
|
||||
);
|
||||
extern void propP_radiobox_itemCB(
|
||||
Widget item,
|
||||
XtPointer clientdata,
|
||||
XtPointer calldata
|
||||
);
|
||||
extern void propP_setting_chgCB(
|
||||
Widget item,
|
||||
XtPointer clientdata,
|
||||
XtPointer calldata
|
||||
);
|
||||
|
||||
#endif /* _PROPP_H_ */
|
||||
@@ -68,6 +68,7 @@
|
||||
#include <Xm/ToggleB.h>
|
||||
#include <Dt/ComboBox.h>
|
||||
#include <Dt/SpinBox.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/obj_notify.h>
|
||||
#include <ab_private/objxm.h>
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: tmode.h /main/3 1995/11/06 17:54:45 rswiston $
|
||||
*
|
||||
* @(#)tmode.h 1.1 15 Jan 1995
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
** File: tmode.h - *New* interface into Test Mode
|
||||
*/
|
||||
|
||||
#ifndef _AB_TMODE_H
|
||||
#define _AB_TMODE_H
|
||||
|
||||
#include <ab_private/AB.h>
|
||||
#include <ab_private/obj.h>
|
||||
|
||||
/*
|
||||
** Entry point into Test Mode
|
||||
*/
|
||||
extern void tmode_enable(
|
||||
ABObj project,
|
||||
BOOL test_project
|
||||
);
|
||||
|
||||
/*
|
||||
** Exit point from Test Mode
|
||||
*/
|
||||
extern void tmode_disable(
|
||||
ABObj project
|
||||
);
|
||||
|
||||
#endif /* _AB_TMODE_H */
|
||||
@@ -46,6 +46,7 @@
|
||||
*/
|
||||
|
||||
#include "tmodeP.h"
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/trav.h>
|
||||
#include <ab_private/util.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
|
||||
@@ -1,175 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: tmodeP.h /main/3 1995/11/06 17:55:14 rswiston $
|
||||
*
|
||||
* @(#)tmodeP.h 1.1 15 Jan 1995
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
** File: tmodep.h - Common Test Mode functionality
|
||||
*/
|
||||
|
||||
#ifndef _AB_TMODEP_H
|
||||
#define _AB_TMODEP_H
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/StringDefs.h>
|
||||
#include <ab_private/AB.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/obj_list.h>
|
||||
|
||||
/*
|
||||
* Constants
|
||||
*/
|
||||
#define TestModeFlagsNone ((TestModeFlags)0x0000)
|
||||
#define TestModeTestProject ((TestModeFlags)0x0001) /* stored on project obj */
|
||||
#define TestModeFlagDirtyWindow ((TestModeFlags)0x0002) /* per window */
|
||||
#define TestModeFlagResizedWindow ((TestModeFlags)0x0004) /* per window */
|
||||
|
||||
/*
|
||||
* Data Structures
|
||||
*/
|
||||
typedef struct TEST_MODE_ANY_DATA_REC /* name must match obj.h! */
|
||||
{
|
||||
XRectangle rect; /* win dimension. saved on entry, compaired with on exit */
|
||||
} TestModeAnyDataRec;
|
||||
|
||||
typedef TestModeAnyDataRec TestModeDataRec;
|
||||
typedef TestModeAnyData TestModeData;
|
||||
|
||||
|
||||
/*
|
||||
* Test Mode Flags manipulation
|
||||
*/
|
||||
#define tmodeP_obj_flags(obj) ((obj)->test_mode_flags)
|
||||
|
||||
#define tmodeP_obj_has_flags(obj, _flags) \
|
||||
((tmodeP_obj_flags(obj) & ((TestModeFlags)(_flags))) != 0)
|
||||
|
||||
#define tmodeP_obj_set_flags(obj, _flags) \
|
||||
((obj)->test_mode_flags |= ((TestModeFlags)(_flags)))
|
||||
|
||||
#define tmodeP_obj_clear_flags(obj, _flags) \
|
||||
(tmodeP_obj_flags(obj) &= ~((TestModeFlags)(_flags)))
|
||||
|
||||
#define tmodeP_obj_construct_flags(obj) \
|
||||
((obj)->test_mode_flags = TestModeFlagsNone)
|
||||
|
||||
|
||||
/*
|
||||
* Test Mode Data manipulation
|
||||
*/
|
||||
#define tmodeP_obj_data(obj) \
|
||||
(obj->test_mode_data)
|
||||
|
||||
#define tmodeP_obj_has_data(obj) \
|
||||
((obj)->test_mode_data != NULL)
|
||||
|
||||
extern int tmodeP_obj_create_data(
|
||||
ABObj obj
|
||||
);
|
||||
extern int tmodeP_obj_destroy_data(
|
||||
ABObj obj
|
||||
);
|
||||
extern int tmodeP_obj_construct_data(
|
||||
ABObj obj
|
||||
);
|
||||
|
||||
/*
|
||||
* Geometry
|
||||
*/
|
||||
#define tmodeP_obj_geometry(obj) \
|
||||
(tmodeP_obj_data(obj)->rect)
|
||||
|
||||
#define tmodeP_obj_set_geometry(obj, _rect) \
|
||||
(tmodeP_obj_geometry(obj) = _rect)
|
||||
|
||||
#define tmodeP_obj_get_width(obj) \
|
||||
(tmodeP_obj_data(obj)->rect.width)
|
||||
|
||||
#define tmodeP_obj_set_width(obj, _width) \
|
||||
(tmodeP_obj_data(obj)->rect.width = _width)
|
||||
|
||||
#define tmodeP_obj_get_height(obj) \
|
||||
(tmodeP_obj_data(obj)->rect.height)
|
||||
|
||||
#define tmodeP_obj_set_height(obj, _height) \
|
||||
(tmodeP_obj_data(obj)->rect.height = _height)
|
||||
|
||||
#define tmodeP_obj_get_x(obj) \
|
||||
(tmodeP_obj_data(obj)->rect.x)
|
||||
|
||||
#define tmodeP_obj_set_x(obj, _x) \
|
||||
(tmodeP_obj_data(obj)->rect.x = _x)
|
||||
|
||||
#define tmodeP_obj_get_y(obj) \
|
||||
(tmodeP_obj_data(obj)->rect.y)
|
||||
|
||||
#define tmodeP_obj_set_y(obj, _y) \
|
||||
(tmodeP_obj_data(obj)->rect.y = _y)
|
||||
|
||||
/*
|
||||
* Window List manipulation
|
||||
*/
|
||||
extern int tmodeP_window_list_create(
|
||||
ABObj project
|
||||
);
|
||||
extern int tmodeP_window_list_construct(
|
||||
ABObj project
|
||||
);
|
||||
extern int tmodeP_window_list_destruct(
|
||||
void
|
||||
);
|
||||
extern int tmodeP_window_list_destroy(
|
||||
void
|
||||
);
|
||||
extern void tmodeP_window_list_iterate(
|
||||
ABObjListIterFn fn
|
||||
);
|
||||
extern int tmodeP_window_list_add_handler(
|
||||
EventMask event_mask,
|
||||
Boolean nonmaskable,
|
||||
XtEventHandler event_handler
|
||||
);
|
||||
extern int tmodeP_window_list_remove_handler(
|
||||
EventMask event_mask,
|
||||
Boolean nonmaskable,
|
||||
XtEventHandler event_handler
|
||||
);
|
||||
|
||||
#endif /* _AB_TMODEP_H */
|
||||
@@ -47,6 +47,7 @@
|
||||
#include <Xm/Xm.h>
|
||||
#include <Xm/List.h>
|
||||
#include <Dt/ComboBox.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
#include <Xm/SelectioB.h>
|
||||
#include <Xm/PushB.h>
|
||||
#include <Xm/TextF.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/ab.h>
|
||||
#include <ab_private/objxm.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
#include <Dt/SpinBox.h>
|
||||
#include <Dt/TermPrim.h>
|
||||
#include <Dt/Term.h>
|
||||
#include "dtb_utils.h"
|
||||
#include <ab_private/XmAll.h>
|
||||
#include <ab_private/x_util.h>
|
||||
#include <ab_private/ui_util.h>
|
||||
|
||||
@@ -1,535 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: ui_util.h /main/3 1995/11/06 17:56:54 rswiston $
|
||||
*
|
||||
* @(#)ui_util.h 1.29 14 Feb 1994 cde_app_builder/src/libABobj
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* ui_util.h
|
||||
*/
|
||||
#ifndef _UI_UTIL_H_
|
||||
#define _UI_UTIL_H_
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/StringDefs.h>
|
||||
#include <ab_private/obj.h>
|
||||
#include <ab_private/util.h>
|
||||
#include "dtb_utils.h"
|
||||
|
||||
|
||||
/*
|
||||
* Return "answer" values for Modal Messages
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
UI_ANSWER_NONE,
|
||||
UI_ANSWER_OK,
|
||||
UI_ANSWER_CANCEL,
|
||||
UI_ANSWER_HELP
|
||||
} UI_MODAL_ANSWER;
|
||||
|
||||
|
||||
|
||||
typedef struct _MENU_ITEM {
|
||||
char *name;
|
||||
char *label;
|
||||
AB_LABEL_TYPE label_type;
|
||||
WidgetClass *wclass;
|
||||
XtCallbackProc callback;
|
||||
XtPointer client_data;
|
||||
XtPointer user_data;
|
||||
struct _MENU_ITEM *subitems;
|
||||
int num_columns;
|
||||
BOOL active;
|
||||
int pixwidth;
|
||||
int pixheight;
|
||||
unsigned char *bits;
|
||||
} MenuItem;
|
||||
|
||||
/*
|
||||
* Data structure for object pixmaps
|
||||
*/
|
||||
typedef struct _UiObjPixmap
|
||||
{
|
||||
AB_OBJECT_TYPE type;
|
||||
int subtype;
|
||||
char *filename;
|
||||
Pixmap pixmap;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
} UiObjPixmap;
|
||||
|
||||
|
||||
typedef Boolean (*ModalPromptVerifyProc)(Widget, XtPointer);
|
||||
|
||||
/* Data structure for userData on the modal prompt dialog created
|
||||
* by ui_popup_modal_prompt().
|
||||
*/
|
||||
typedef struct _Prompt_Info_Rec {
|
||||
ModalPromptVerifyProc verify_proc; /* Hook to supply custom
|
||||
* verification routine of text
|
||||
* entered in the prompt dialog */
|
||||
XtPointer client_data; /* Data to pass onto verification
|
||||
* routine */
|
||||
STRING *seln_str; /* Stores text from prompt dialog */
|
||||
} Prompt_Info_Rec;
|
||||
|
||||
/*
|
||||
* Function type for rubber band func
|
||||
*/
|
||||
typedef void (*UiRubberBandFunc) (
|
||||
Widget,
|
||||
XEvent *,
|
||||
XRectangle *,
|
||||
XtPointer
|
||||
);
|
||||
|
||||
/*
|
||||
* Move a Window to the front of stack
|
||||
*/
|
||||
extern void ui_win_front(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
/*
|
||||
* Show or Hide a Window
|
||||
*/
|
||||
extern void ui_win_show(
|
||||
Widget widget,
|
||||
BOOL show,
|
||||
XtGrabKind grab_kind
|
||||
);
|
||||
|
||||
extern void ui_win_set_resizable(
|
||||
Widget widget,
|
||||
BOOL resizable,
|
||||
BOOL remap
|
||||
);
|
||||
|
||||
/*
|
||||
* Popup a Simple InfoMessage Dialog in front
|
||||
* of a window (parent)
|
||||
*/
|
||||
extern void ui_popup_info_message(
|
||||
Widget parent,
|
||||
STRING title,
|
||||
STRING message
|
||||
);
|
||||
|
||||
/*
|
||||
* Popup up a MessageDialog of "msg_type"
|
||||
* Any widget can be passed in as the "parent";
|
||||
* the routine will use this widget's shell ancestor
|
||||
* as the actual parent of the Dialog.
|
||||
*
|
||||
* If a button_label parameter is NULL, the
|
||||
* corresponding button will not appear in the
|
||||
* dialog. 'callback' parameters can also be NULL.
|
||||
*
|
||||
* This routine takes care of dynamic creation/destruction
|
||||
* of the MessageDialog.
|
||||
*/
|
||||
extern void ui_popup_message(
|
||||
Widget parent,
|
||||
unsigned char msg_type,
|
||||
STRING title,
|
||||
STRING message,
|
||||
STRING ok_label,
|
||||
XtCallbackProc ok_callback,
|
||||
STRING cancel_label,
|
||||
XtCallbackProc cancel_callback,
|
||||
STRING help_label,
|
||||
XtCallbackProc help_callback,
|
||||
unsigned char default_button_type
|
||||
);
|
||||
|
||||
/* Popup an Application-MODAL MessageDialog of "msg_type".
|
||||
* Any widget can be passed in as the "parent";
|
||||
* the routine will use this widget's shell ancestor
|
||||
* as the actual parent of the Dialog.
|
||||
*
|
||||
* If a button_label parameter is NULL, the
|
||||
* corresponding button will not appear in the dialog.
|
||||
*
|
||||
* This routine returns the "answer" corresponding to
|
||||
* the button the user pressed on the dialog:
|
||||
* UI_ANSWER_OK, UI_ANSWER_CANCEL, UI_ANSWER_HELP
|
||||
*/
|
||||
extern UI_MODAL_ANSWER
|
||||
ui_popup_modal_message(
|
||||
Widget parent,
|
||||
unsigned char msg_type,
|
||||
STRING title,
|
||||
STRING message,
|
||||
STRING ok_label,
|
||||
STRING cancel_label,
|
||||
STRING help_label,
|
||||
unsigned char default_button_type,
|
||||
Widget *modal_dlg
|
||||
);
|
||||
|
||||
/*
|
||||
* Set the LabelString resource on a widget
|
||||
* (converts it to XmString internally)
|
||||
*/
|
||||
extern void ui_set_label_string(
|
||||
Widget widget,
|
||||
STRING label
|
||||
);
|
||||
|
||||
/*
|
||||
* Set the XmNlabel resource on a widget from the image file
|
||||
*/
|
||||
extern void ui_set_label_glyph(
|
||||
Widget widget,
|
||||
STRING fileName
|
||||
);
|
||||
|
||||
/* Set a widget (and it's immediate children)
|
||||
* sensitive or insensitive
|
||||
*/
|
||||
extern void ui_set_active(
|
||||
Widget widget,
|
||||
BOOL state
|
||||
);
|
||||
|
||||
/*
|
||||
* Set a widget to be visible or invisible
|
||||
* (unmanages, so space will collapse)
|
||||
*/
|
||||
extern void ui_set_visible(
|
||||
Widget widget,
|
||||
BOOL viz
|
||||
);
|
||||
|
||||
/* Set the value-string in a TextField
|
||||
*/
|
||||
extern void ui_field_set_string(
|
||||
Widget field,
|
||||
STRING valuestr
|
||||
);
|
||||
|
||||
/* Get/alloc the value-string of a TextField
|
||||
* NOTE: caller must free memory allocated
|
||||
* by this call
|
||||
*/
|
||||
extern STRING ui_field_get_string(
|
||||
Widget field
|
||||
);
|
||||
|
||||
/* Make the string inside a TextField selected
|
||||
*/
|
||||
extern void ui_field_select_string(
|
||||
Widget field,
|
||||
BOOL assign_focus
|
||||
);
|
||||
|
||||
extern void ui_field_set_editable(
|
||||
Widget field,
|
||||
BOOL editable
|
||||
);
|
||||
|
||||
extern Widget ui_get_ancestor_shell(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern Widget ui_get_ancestor_dialog(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern Widget ui_build_menu(
|
||||
Widget parent,
|
||||
int menu_type,
|
||||
int num_columns,
|
||||
char *menu_title,
|
||||
char *menu_name,
|
||||
MenuItem *menu_items
|
||||
);
|
||||
extern void ui_populate_pulldown_menu(
|
||||
Widget menu,
|
||||
int num_columns,
|
||||
MenuItem *menu_items
|
||||
);
|
||||
extern void ui_size_to_row_col(
|
||||
Widget text,
|
||||
unsigned short width,
|
||||
unsigned short height,
|
||||
int *row_ptr,
|
||||
int *col_ptr
|
||||
);
|
||||
|
||||
extern int ui_set_busy_cursor(
|
||||
Window window,
|
||||
BOOL on
|
||||
);
|
||||
|
||||
extern void ui_get_obj_pixmap(
|
||||
AB_OBJ *obj,
|
||||
Pixmap *pixmap,/* RETURN */
|
||||
unsigned int *width, /* RETURN */
|
||||
unsigned int *height /* RETURN */
|
||||
);
|
||||
|
||||
/*
|
||||
* ComboBox Widget Manipulation utilities
|
||||
*/
|
||||
extern int ui_combobox_add_item(
|
||||
Widget combobox,
|
||||
STRING item,
|
||||
int pos,
|
||||
BOOL unique
|
||||
);
|
||||
|
||||
extern int ui_combobox_clear(
|
||||
Widget combobox
|
||||
);
|
||||
|
||||
extern Widget ui_combobox_get_list_widget(
|
||||
Widget combobox
|
||||
);
|
||||
|
||||
extern Widget ui_combobox_get_field_widget(
|
||||
Widget combobox
|
||||
);
|
||||
|
||||
extern int ui_combobox_select_item(
|
||||
Widget combobox,
|
||||
STRING item
|
||||
);
|
||||
|
||||
/*
|
||||
* ScrolledList Widget Manipulation utilities
|
||||
*/
|
||||
extern int ui_list_add_item(
|
||||
Widget list,
|
||||
STRING item_str,
|
||||
int pos
|
||||
);
|
||||
|
||||
extern int ui_list_find_item(
|
||||
Widget list,
|
||||
STRING item_str,
|
||||
int *pos_out
|
||||
);
|
||||
|
||||
extern int ui_list_get_info(
|
||||
Widget list,
|
||||
int *num_items_out,
|
||||
int *first_visible_out,
|
||||
int *last_visible_out
|
||||
);
|
||||
|
||||
extern int ui_list_delete_item(
|
||||
Widget list,
|
||||
STRING item_str
|
||||
);
|
||||
|
||||
extern int ui_list_get_selected_pos(
|
||||
Widget list
|
||||
);
|
||||
|
||||
extern int ui_list_replace_item(
|
||||
Widget list,
|
||||
STRING old_item_str,
|
||||
STRING new_item_str
|
||||
);
|
||||
|
||||
extern int ui_list_replace_item_prefix(
|
||||
Widget list,
|
||||
STRING old_prefix_str,
|
||||
STRING new_prefix_str
|
||||
);
|
||||
|
||||
extern int ui_list_select_item(
|
||||
Widget list,
|
||||
STRING item_str,
|
||||
BOOL invoke_callback
|
||||
);
|
||||
|
||||
extern int ui_list_select_pos(
|
||||
Widget list,
|
||||
int item_pos,
|
||||
BOOL invoke_callback
|
||||
);
|
||||
|
||||
extern void ui_popup_prompt(
|
||||
Widget parent,
|
||||
STRING title,
|
||||
STRING label,
|
||||
STRING initial_text,
|
||||
STRING ok_label,
|
||||
XtCallbackProc ok_callback,
|
||||
XtPointer ok_clientData,
|
||||
STRING cancel_label,
|
||||
XtCallbackProc cancel_callback,
|
||||
XtPointer cancel_clientData,
|
||||
STRING help_label,
|
||||
XtCallbackProc help_callback,
|
||||
XtPointer help_clientData,
|
||||
unsigned char default_button_type
|
||||
);
|
||||
extern void ui_add_window_close_callback(
|
||||
Widget shell,
|
||||
XtCallbackProc callback,
|
||||
XtPointer client_data,
|
||||
unsigned char delete_response
|
||||
);
|
||||
extern void ui_remove_window_close_callback(
|
||||
Widget shell,
|
||||
XtCallbackProc callback,
|
||||
XtPointer client_data
|
||||
);
|
||||
|
||||
extern void ui_add_window_iconify_handler(
|
||||
Widget shell,
|
||||
XtEventHandler iconify_proc,
|
||||
XtPointer client_data
|
||||
);
|
||||
|
||||
extern void ui_remove_window_iconify_handler(
|
||||
Widget shell,
|
||||
XtEventHandler iconify_proc,
|
||||
XtPointer client_data
|
||||
);
|
||||
|
||||
extern UI_MODAL_ANSWER
|
||||
ui_popup_modal_prompt(
|
||||
Widget parent,
|
||||
STRING title,
|
||||
STRING label,
|
||||
STRING initial_text,
|
||||
STRING ok_label,
|
||||
STRING cancel_label,
|
||||
STRING help_label,
|
||||
DtbObjectHelpData help_data,
|
||||
unsigned char default_button_type,
|
||||
STRING *seln_str,
|
||||
ModalPromptVerifyProc verify_proc,
|
||||
XtPointer client_data
|
||||
);
|
||||
|
||||
extern void ui_refresh_widget_tree(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern int ui_sync_display_of_widget(
|
||||
Widget widget
|
||||
);
|
||||
|
||||
extern int ui_initiate_rubberband(
|
||||
Widget widget,
|
||||
Boolean confine_to_window,
|
||||
UiRubberBandFunc rb_func,
|
||||
XtPointer client_data
|
||||
);
|
||||
|
||||
extern void ui_button_drag(
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
XtPointer client_data
|
||||
);
|
||||
|
||||
extern void ui_rubberband_finish(
|
||||
Widget widget,
|
||||
XEvent *event,
|
||||
XtPointer client_data
|
||||
);
|
||||
|
||||
extern Widget ui_optionmenu_add_item(
|
||||
Widget opmenu,
|
||||
STRING item_str
|
||||
);
|
||||
|
||||
extern int ui_optionmenu_delete_item(
|
||||
Widget opmenu,
|
||||
STRING item_str
|
||||
);
|
||||
|
||||
extern Widget ui_optionmenu_replace_item(
|
||||
Widget opmenu,
|
||||
STRING old_item_str,
|
||||
STRING new_item_str
|
||||
);
|
||||
|
||||
extern Widget ui_optionmenu_find_item(
|
||||
Widget opmenu,
|
||||
STRING item_str
|
||||
);
|
||||
|
||||
extern int ui_optionmenu_num_items(
|
||||
Widget opmenu
|
||||
);
|
||||
|
||||
extern void ui_optionmenu_change_label(
|
||||
Widget opmenu,
|
||||
STRING new_str
|
||||
);
|
||||
|
||||
extern void ui_optionmenu_change_label_pixmap(
|
||||
Widget opmenu,
|
||||
Pixmap pixmap
|
||||
);
|
||||
|
||||
/*
|
||||
** Set the label string on an object
|
||||
** (converts it to XmString internally, if needed)
|
||||
*/
|
||||
extern void ui_obj_set_label_string(
|
||||
ABObj obj,
|
||||
STRING label
|
||||
);
|
||||
|
||||
/*
|
||||
** Set the label glyph (ie graphic) on an object
|
||||
*/
|
||||
extern void ui_obj_set_label_glyph(
|
||||
ABObj obj,
|
||||
STRING fileName
|
||||
);
|
||||
|
||||
/*
|
||||
** Set the label on an object
|
||||
** string and glyphs are supported
|
||||
*/
|
||||
extern void ui_obj_set_label(
|
||||
ABObj obj,
|
||||
STRING label
|
||||
);
|
||||
|
||||
#endif /* _UI_UTIL_H_ */
|
||||
@@ -1,282 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: vwr.h /main/3 1995/11/06 17:57:27 rswiston $
|
||||
*
|
||||
* @(#)vwr.h 1.27 16 Aug 1994
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* vwr.h
|
||||
*
|
||||
* Declarations for the generic object viewer.
|
||||
* This file should be standalone.
|
||||
*/
|
||||
#ifndef _VWR_H
|
||||
#define _VWR_H
|
||||
|
||||
#ifndef BIT_FIELD
|
||||
#define BIT_FIELD(field) unsigned field : 1
|
||||
#endif
|
||||
|
||||
typedef struct _Viewer *Vwr;
|
||||
typedef struct _ViewerNode *VNode;
|
||||
typedef struct _ViewerMethods *VMethods;
|
||||
typedef struct _ViewerNodeElm *VNodeElm;
|
||||
typedef struct _ViewerElmMethods *VElmMethods;
|
||||
|
||||
typedef struct _ViewerMethods
|
||||
{
|
||||
/*
|
||||
* Initialize/free:
|
||||
* viewer properties
|
||||
* viewer nodes
|
||||
* viewer node elements
|
||||
*/
|
||||
void (*init_prop)(Vwr);
|
||||
void (*init_ui)(Vwr);
|
||||
VNode (*init_node)(Vwr, void *);
|
||||
void (*init_elements)(VNode);
|
||||
void (*free_prop)(Vwr);
|
||||
void (*free_ui)(Vwr);
|
||||
void (*free_node)(VNode, void *);
|
||||
void (*free_elements)(VNode);
|
||||
|
||||
/*
|
||||
* Insert/delete of viewer data into/from client data
|
||||
*/
|
||||
int (*insert_tree)(Vwr, void *);
|
||||
VNode (*insert_node)(Vwr, void *);
|
||||
void (*remove_tree)(Vwr, void *);
|
||||
void (*remove_node)(Vwr, void *);
|
||||
|
||||
/*
|
||||
* Viewer <-> Application obj
|
||||
*/
|
||||
void (*get_obj_data)(VNode);
|
||||
VNode (*get_viewer_data)(void *);
|
||||
void (*set_viewer_data)(void *, VNode);
|
||||
|
||||
/*
|
||||
* For traversals
|
||||
*/
|
||||
VNode (*get_sibling)(VNode);
|
||||
VNode (*get_parent)(VNode);
|
||||
int (*get_num_children)(VNode);
|
||||
VNode (*get_child)(VNode, int);
|
||||
|
||||
/*
|
||||
* Draw operations
|
||||
*/
|
||||
unsigned long (*get_drawarea)(Vwr);
|
||||
void (*compute_tree)(Vwr, int *, int *);
|
||||
void (*compute_node)(VNode, int, int);
|
||||
void (*render_tree)(VNode);
|
||||
void (*render_node)(VNode, int);
|
||||
void (*render_line)(VNode, VNode);
|
||||
void (*preview_node)(VNode);
|
||||
|
||||
VNode (*locate_node)(VNode, int, int);
|
||||
unsigned long (*locate_elements)(VNode, int, int);
|
||||
} ViewerMethods;
|
||||
|
||||
#define BNODE_METHODS(node) (node->browser->methods)
|
||||
|
||||
/*
|
||||
* This is the methods vector for the viewer node elements
|
||||
*/
|
||||
typedef struct _ViewerElmMethods
|
||||
{
|
||||
void (*init)(VNode, VNodeElm, void *);
|
||||
void (*compute)(VNode, VNodeElm, int, int);
|
||||
void (*render)(VNode, VNodeElm, int);
|
||||
void (*free)(VNode, VNodeElm);
|
||||
} ViewerElmMethods;
|
||||
|
||||
|
||||
/*
|
||||
* This describes each element of a viewer node.
|
||||
* Element here refers to things like class name or instance name.
|
||||
* If the viewer node is to contain say:
|
||||
* class name
|
||||
* instance name
|
||||
* object glyph, etc.
|
||||
* then each viewer node will contain an array of these structures
|
||||
* to describe each of those elements.
|
||||
*
|
||||
* For now, there will not be a init/draw method for every
|
||||
* ViewerNodeElm. Instead, the one single init/draw method will
|
||||
* be responsible for intepreting all the ViewerNodeElm's and
|
||||
* initializing/drawing them correctly.
|
||||
*/
|
||||
typedef struct _ViewerNodeElm
|
||||
{
|
||||
int x; /* x,y,width,height location of this element */
|
||||
int y;
|
||||
unsigned int width;
|
||||
unsigned int height;
|
||||
void *data; /* e.g. class/instance name string or pixmap */
|
||||
} ViewerNodeElm;
|
||||
|
||||
/*
|
||||
* This describes the viewer in general.
|
||||
* It also contains handles to the actual widgets for the viewer.
|
||||
*/
|
||||
typedef struct _Viewer
|
||||
{
|
||||
VMethods methods;
|
||||
|
||||
void *obj_data; /* Pointer back to project data */
|
||||
|
||||
void *ui_handle;
|
||||
|
||||
/*
|
||||
* Viewer properties
|
||||
*/
|
||||
void *properties;
|
||||
|
||||
VNode tree;
|
||||
VNode current_tree;
|
||||
|
||||
Vwr next;
|
||||
Vwr previous;
|
||||
} Viewer;
|
||||
|
||||
|
||||
/*
|
||||
* Description of one viewer node
|
||||
*/
|
||||
typedef struct _ViewerNode
|
||||
{
|
||||
Vwr browser; /* points to viewer info */
|
||||
|
||||
void *obj_data; /* Pointer back to application object */
|
||||
|
||||
VElmMethods *elm_methods;
|
||||
VNodeElm elements; /* Array of node elements */
|
||||
int num_elements; /* Number of node elements */
|
||||
short boundbox_shown; /* TRUE if the bounding box of the
|
||||
* icon is drawn
|
||||
*/
|
||||
|
||||
|
||||
int x; /* x,y,width,height of this node */
|
||||
int y;
|
||||
int width;
|
||||
int height;
|
||||
|
||||
int state; /* Can be used for:
|
||||
* selected/previewed/expanded etc..
|
||||
*/
|
||||
|
||||
VNode next; /* Points to the next/previous viewer data node */
|
||||
VNode previous; /* for a particular object */
|
||||
} ViewerNode;
|
||||
|
||||
|
||||
/*
|
||||
* Create/destroy
|
||||
*/
|
||||
Vwr vwr_create(
|
||||
VMethods m
|
||||
);
|
||||
|
||||
void vwr_destroy(
|
||||
Vwr v
|
||||
);
|
||||
|
||||
VNode vwr_create_node();
|
||||
|
||||
void vwr_destroy_node(
|
||||
VNode bnode
|
||||
);
|
||||
|
||||
ViewerNodeElm vwr_create_elm();
|
||||
|
||||
ViewerNodeElm vwr_destroy_elm(
|
||||
VNodeElm belm
|
||||
);
|
||||
|
||||
/*
|
||||
* Functions that manipulate the tree structure.
|
||||
*/
|
||||
void vwr_destroy_tree(
|
||||
ViewerNode *tree
|
||||
);
|
||||
|
||||
void vwr_delete_tree(
|
||||
Viewer *v,
|
||||
ViewerNode *node
|
||||
);
|
||||
|
||||
void vwr_reset(
|
||||
Viewer *v
|
||||
);
|
||||
|
||||
VNode vwr_traverse_tree();
|
||||
|
||||
void vwr_init_elements(
|
||||
VNode vnode
|
||||
);
|
||||
|
||||
/*
|
||||
* Viewer graphics routines.
|
||||
*/
|
||||
VNode vwr_locate_node(
|
||||
Viewer *v,
|
||||
int x,
|
||||
int y
|
||||
);
|
||||
|
||||
void vwr_get_cond(
|
||||
VNode tree,
|
||||
VNode **array,/* RETURN */
|
||||
int *num, /* RETURN */
|
||||
int (*cond)(VNode)
|
||||
);
|
||||
|
||||
void vwr_num_cond(
|
||||
VNode tree,
|
||||
int *num, /* RETURN */
|
||||
int (*cond)(VNode)
|
||||
);
|
||||
|
||||
void vwr_repaint(
|
||||
Viewer *v
|
||||
);
|
||||
|
||||
#endif /* _VWR_H */
|
||||
@@ -1,229 +0,0 @@
|
||||
/*
|
||||
* CDE - Common Desktop Environment
|
||||
*
|
||||
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
|
||||
*
|
||||
* These libraries and programs are free software; you can
|
||||
* redistribute them and/or modify them under the terms of the GNU
|
||||
* Lesser General Public License as published by the Free Software
|
||||
* Foundation; either version 2 of the License, or (at your option)
|
||||
* any later version.
|
||||
*
|
||||
* These libraries and programs are distributed in the hope that
|
||||
* they will be useful, but WITHOUT ANY WARRANTY; without even the
|
||||
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU Lesser General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with these libraries and programs; if not, write
|
||||
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
/*
|
||||
* $XConsortium: x_util.h /main/3 1995/11/06 17:57:58 rswiston $
|
||||
*
|
||||
* @(#)x_util.h 1.16 21 Apr 1994 cde_app_builder/src/ab
|
||||
*
|
||||
* RESTRICTED CONFIDENTIAL INFORMATION:
|
||||
*
|
||||
* The information in this document is subject to special
|
||||
* restrictions in a confidential disclosure agreement between
|
||||
* HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
|
||||
* document outside HP, IBM, Sun, USL, SCO, or Univel without
|
||||
* Sun's specific written approval. This document and all copies
|
||||
* and derivative works thereof must be returned or destroyed at
|
||||
* Sun's request.
|
||||
*
|
||||
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* ab_x_util.h
|
||||
*/
|
||||
#ifndef _X_UTIL_H_
|
||||
#define _X_UTIL_H_
|
||||
|
||||
#include <X11/Intrinsic.h>
|
||||
#include <X11/StringDefs.h>
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) ((a) < (b)? (a):(b))
|
||||
#endif
|
||||
|
||||
#ifndef max
|
||||
#define max(a,b) ((a) > (b)? (a):(b))
|
||||
#endif
|
||||
|
||||
extern int x_load_cursor_bitmaps(
|
||||
Widget w
|
||||
);
|
||||
extern void x_get_widget_rect(
|
||||
Widget w,
|
||||
XRectangle *r
|
||||
);
|
||||
extern void x_get_rect_bounding(
|
||||
XRectangle *r1,
|
||||
XRectangle *r2
|
||||
);
|
||||
extern void x_graphics_op(
|
||||
Display *dpy,
|
||||
Drawable dest,
|
||||
GC gc,
|
||||
int x,
|
||||
int y,
|
||||
int width,
|
||||
int height,
|
||||
Pixmap src
|
||||
);
|
||||
extern void x_get_widget_rect(
|
||||
Widget widget,
|
||||
XRectangle *rect
|
||||
);
|
||||
extern void x_adjust_rect_margin(
|
||||
XRectangle *r,
|
||||
int m
|
||||
);
|
||||
extern void x_box(
|
||||
Widget widget,
|
||||
Drawable win,
|
||||
int x0,
|
||||
int y0,
|
||||
int x1,
|
||||
int y1
|
||||
);
|
||||
extern void x_box_r(
|
||||
Widget widget,
|
||||
XRectangle *r
|
||||
);
|
||||
extern void x_dashed_box_r(
|
||||
Widget widget,
|
||||
Drawable drawable,
|
||||
XRectangle *r
|
||||
);
|
||||
extern void x_fullscreen_box(
|
||||
Widget widget,
|
||||
Drawable rootwin,
|
||||
int x0,
|
||||
int y0,
|
||||
int x1,
|
||||
int y1
|
||||
);
|
||||
extern void x_fullscreen_preview_box(
|
||||
Widget widget,
|
||||
Drawable rootwin,
|
||||
int x0,
|
||||
int y0,
|
||||
int x1,
|
||||
int y1
|
||||
);
|
||||
extern void x_conn_fullscreen_init(
|
||||
Widget w,
|
||||
Drawable root_win
|
||||
);
|
||||
extern void x_conn_fullscreen_chord(
|
||||
Widget w,
|
||||
Drawable rootwin,
|
||||
int x0,
|
||||
int y0,
|
||||
int x1,
|
||||
int y1
|
||||
);
|
||||
extern void x_fullscreen_chord(
|
||||
Widget widget,
|
||||
Drawable rootwin,
|
||||
int x0,
|
||||
int y0,
|
||||
int x1,
|
||||
int y1
|
||||
);
|
||||
extern void x_conn_fullscreen_cleanup(
|
||||
Widget w
|
||||
);
|
||||
extern unsigned int
|
||||
x_contrast_color(
|
||||
Widget w
|
||||
);
|
||||
extern Boolean x_widget_translate_xy(
|
||||
Widget src,
|
||||
XtPointer dst,
|
||||
int src_x,
|
||||
int src_y,
|
||||
int *p_dst_x,
|
||||
int *p_dst_y
|
||||
);
|
||||
extern Boolean x_rootxy_inside_widget(
|
||||
Widget w,
|
||||
int rootx,
|
||||
int rooty
|
||||
);
|
||||
extern Window x_xwin_at_rootxy(
|
||||
Widget widget,
|
||||
int x,
|
||||
int y,
|
||||
int *p_wx,
|
||||
int *p_wy
|
||||
);
|
||||
extern Cursor x_create_cursor(
|
||||
Widget widget,
|
||||
Window root_win,
|
||||
unsigned char bits[],
|
||||
unsigned short width,
|
||||
unsigned short height,
|
||||
unsigned int xhot,
|
||||
unsigned int yhot
|
||||
);
|
||||
|
||||
extern Cursor x_create_stencil_cursor(
|
||||
Widget widget,
|
||||
Pixmap pixmap,
|
||||
unsigned short width,
|
||||
unsigned short height,
|
||||
unsigned int xhot,
|
||||
unsigned int yhot
|
||||
);
|
||||
|
||||
extern int x_get_num_pending_expose_events(Display *display);
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
** **
|
||||
** Macros **
|
||||
** **
|
||||
**************************************************************************/
|
||||
#define rect_right(r) (short)((r)->x + (short)(r)->width)
|
||||
#define rect_bottom(r) (short)((r)->y + (short)(r)->height)
|
||||
|
||||
#define rect_includespoint(r,p_x,p_y) \
|
||||
((p_x) >= (r)->x && (p_y) >= (r)->y && \
|
||||
(p_x)< (short)((r)->x+(short)(r)->width) && \
|
||||
(p_y)< (short)((r)->y+(short)(r)->height))
|
||||
|
||||
#define rect_includesrect(r1, r2) \
|
||||
((r2)->x >= (r1)->x && (r2)->y >= (r1)->y && \
|
||||
((r2)->x + (short)(r2)->width) <= ((r1)->x + (short)(r1)->width) && \
|
||||
((r2)->y + (short)(r2)->height) <= ((r1)->y + (short)(r1)->height))
|
||||
|
||||
#define rect_equal(r1,r2) \
|
||||
((r1)->x==(r2)->x && (r1)->width==(r2)->width && \
|
||||
(r1)->y==(r2)->y && (r1)->height==(r2)->height)
|
||||
|
||||
#define rect_zero_out(r) \
|
||||
{ (r)->x=0;(r)->y=0;(r)->width=0;(r)->height=0; }
|
||||
|
||||
#define rect_isnull(r) \
|
||||
((r)->width==0 && (r)->height==0)
|
||||
|
||||
/*************************************************************************
|
||||
** **
|
||||
** Extern Data **
|
||||
** **
|
||||
**************************************************************************/
|
||||
extern Pixmap AB_cp_cursor_pixmap, AB_mv_cursor_pixmap;
|
||||
extern unsigned short AB_cp_cursor_height, AB_cp_cursor_width;
|
||||
extern unsigned short AB_mv_cursor_height, AB_mv_cursor_width;
|
||||
|
||||
#endif /* _X_UTIL_H_ */
|
||||
|
||||
Reference in New Issue
Block a user