The primary user interface is through a singleton GuiMgr object. It manages:
package gui
version v2r5
use GlastPolicy
use CLHEP
apply_pattern package_include
# These are the X-Windows link options, depending on the Motif/LessTif install (should be in EXTLIB)
macro X11_DIR "/usr/X11R6"
macro gui_X_linkopts "-L${X11_DIR}/lib -lXm -lXt -lX11"
# standard link options only gets gui lib
apply_pattern package_linkopts
#this macro for building a gui app, as opposed to a shareable
macro guiapp_linkopts "${guiDir}/libguisystem.a ${gui_X_linkopts}"\
WIN32 "${guiDir}/guisystem.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib /subsystem:windows"
# application command should include this to define dialog boxes in Windows app.
macro Win32Resource ""\
WIN32 "${GUIROOT}/src/wingui.rc"
apply_pattern package_headers
private
macro_append cppflags " -I ${X11_DIR}/include "\
WIN32 ""
# the basic gui interface needed by clients
library gui -no_share \
LoopCommand.cxx SceneControl.cxx Menu.cxx SubMenu.cxx \
CompoundCommand.cxx ViewPort.cxx DisplayControl.cxx Vrml.cxx \
DisplayList.cxx PSdraw.cxx DisplayRep.cxx GraphicsVector.cxx\
PrintControl.cxx GuiMgr.cxx Projector.cxx Scene.cxx \
GUI.cxx ${gui_headers}
# these are system-dependent (windows/motif) and are only needed for an executable
macro gui_system_files "MotifGUI.cxx XScene.cxx Xdraw.cxx Xostream.cxx"\
Win32 "WinGUIostream.h WinScene.h WinDraw.h WinGUI.h WinScene.h \
WinGUI.cxx WinGUIostream.cxx WinMain.cxx WinScene.cxx WinDraw.cxx"
library guisystem -no_share ${gui_system_files}
#simple self-contained test program (this needs to be fixed for linux
macro_append gui_linkopts ${guiapp_linkopts}
application testGUI test/*.cxx ${Win32Resource}
The gui package depends on the following packages
package gui
version v2r5
use GlastPolicy
use CLHEP
apply_pattern package_include
# These are the X-Windows link options, depending on the Motif/LessTif install (should be in EXTLIB)
macro X11_DIR "/usr/X11R6"
macro gui_X_linkopts "-L${X11_DIR}/lib -lXm -lXt -lX11"
# standard link options only gets gui lib
apply_pattern package_linkopts
#this macro for building a gui app, as opposed to a shareable
macro guiapp_linkopts "${guiDir}/libguisystem.a ${gui_X_linkopts}"\
WIN32 "${guiDir}/guisystem.lib user32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib /subsystem:windows"
# application command should include this to define dialog boxes in Windows app.
macro Win32Resource ""\
WIN32 "${GUIROOT}/src/wingui.rc"
apply_pattern package_headers
private
macro_append cppflags " -I ${X11_DIR}/include "\
WIN32 ""
# the basic gui interface needed by clients
library gui -no_share \
LoopCommand.cxx SceneControl.cxx Menu.cxx SubMenu.cxx \
CompoundCommand.cxx ViewPort.cxx DisplayControl.cxx Vrml.cxx \
DisplayList.cxx PSdraw.cxx DisplayRep.cxx GraphicsVector.cxx\
PrintControl.cxx GuiMgr.cxx Projector.cxx Scene.cxx \
GUI.cxx ${gui_headers}
# these are system-dependent (windows/motif) and are only needed for an executable
macro gui_system_files "MotifGUI.cxx XScene.cxx Xdraw.cxx Xostream.cxx"\
Win32 "WinGUIostream.h WinScene.h WinDraw.h WinGUI.h WinScene.h \
WinGUI.cxx WinGUIostream.cxx WinMain.cxx WinScene.cxx WinDraw.cxx"
library guisystem -no_share ${gui_system_files}
#simple self-contained test program (this needs to be fixed for linux
macro_append gui_linkopts ${guiapp_linkopts}
application testGUI test/*.cxx ${Win32Resource}
1.2.3 written by Dimitri van Heesch,
© 1997-2000