# @(#)47 1.2 src/gos/2d/XTOP/dt/xsamples.dt.src, xsample, gos720 9/20/94 10:30:01 # # COMPONENT_NAME: (xsample) X Windows Samples # # FUNCTIONS: CDE action file for X samples # # ORIGINS: 27 # # (C) COPYRIGHT International Business Machines Corp. 1994 # All Rights Reserved # Licensed Materials - Property of IBM # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # ###################################################################### ACTION ListClients { LABEL ListClients TYPE COMMAND EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/xlsclients \ | \${PAGER:-more}; \ echo "\\n*** Select Close from the window menu to close ***"' ICON Dtactn WINDOW_TYPE PERM_TERMINAL DESCRIPTION The ListClients action uses the 'xlsclients' command \ to list client applications running on a display. } ACTION DitroffView { LABEL DitroffView TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xditview ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The DitroffView action uses the 'xditview' command \ to display ditroff output on an X display. } ACTION EditAppResources { LABEL EditAppResources TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/editres ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The EditAppResources action uses the 'editres' command \ to run a dynamic resource editor for X Toolkit applications. } ACTION FontSelector { LABEL FontSelector TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xfontsel ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The FontSelector action uses the 'xfontsel' command \ to provide a point and click interface for \ selecting font names. } ACTION ListAppResources { LABEL ListAppResources TYPE COMMAND EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/listres \ | \${PAGER:-more}; \ echo "\\n*** Select Close from the window menu to close ***"' ICON Dtactn WINDOW_TYPE PERM_TERMINAL DESCRIPTION The ListAppResources action uses the 'listres' command \ to generate a list of a widget's resource database. } ACTION ListAtoms { LABEL ListAtoms TYPE COMMAND EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/xlsatoms \ | \${PAGER:-more}; \ echo "\\n*** Select Close from the window menu to close ***"' ICON Dtactn WINDOW_TYPE PERM_TERMINAL DESCRIPTION The ListAtoms action uses the 'xlsatoms' command \ to list interned atoms defined on server. } ACTION Logo { LABEL Logo TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xlogo ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The Logo action uses the 'xlogo' command to \ display the X Window System logo. } ACTION ManPageViewer { LABEL ManPageViewer TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xman ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The ManPageViewer action uses the 'xman' command \ to display man pages within an X interface. } ACTION RoundClock { LABEL RoundClock TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/oclock ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The RoundClock action uses the 'oclock' command \ to display the current time on a round analog display. } ACTION SampleCalculator { LABEL SampleCalculator TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xcalc ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The SampleCalculator action uses the 'xcalc' command \ to invoke a scientific calculator desktop accessory \ that can emulate a TI-30 or an HP-10C. } ACTION SampleEditor { LABEL SampleEditor TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xedit ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The SampleEditor action uses the 'xedit' command \ to provide a simple text editor for X. } ACTION SetColormap { LABEL SetColormap TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xstdcmap \ %"Options:"% ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The SetColormap action uses the 'xstdcmap' command \ to selectively define standard colormap properties. } ACTION ViewAppResources { LABEL ViewAppResources TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/viewres ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The ViewAppResources action uses the 'viewres' command \ to run a graphical class browser for Xt. } ACTION WindowKill { LABEL WindowKill TYPE COMMAND EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/xkill; \ echo "\\n*** Select Close from the window menu to close ***"' ICON Dtactn WINDOW_TYPE PERM_TERMINAL DESCRIPTION The WindowKill action uses the 'xkill' command to kill \ a client by its X resource. It will prompt for the client \ to kill if one is not supplied by the -id option. } ACTION XBiff { LABEL XBiff TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xbiff ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The XBiff action uses the 'xbiff' command to \ display a mailbox flag indicator for incoming mail. } ACTION XMagnify { LABEL XMagnify TYPE COMMAND EXEC_STRING \ sh -c ' \ echo "[When the cursor changes to a corner, click on top left\\n of area to magnify...]\\n"; \ /usr/lpp/X11/Xamples/bin/xmag; \ echo "\\n*** Select Close from the window menu to close ***"' ICON Dtactn WINDOW_TYPE PERM_TERMINAL DESCRIPTION The XMagnify action uses the 'xmag' command \ to magnify parts of the screen. } ACTION XMailHandler { LABEL XMailHandler TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xmh ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The XMailHandler action uses the 'xmh' command \ to send and read mail with an X interface to MH. } ACTION AixClock { LABEL AixClock TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/aixclock ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The AixClock action uses the 'aixclock' command \ to display a clock based on the X11R4 xclock client. } ACTION ListAppResourceDB { LABEL ListAppResourceDB TYPE COMMAND EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/appres \ %"Class or instance name of client:"% \ | \${PAGER:-more}; \ echo "\\n*** Select Close from the window menu to close ***"' ICON Dtactn WINDOW_TYPE PERM_TERMINAL DESCRIPTION The ListAppResourceDB action uses the 'appres' command \ to list the application resource database. } ACTION AsciiToBin { LABEL AsciiToBin TYPE COMMAND EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/atobm \ %(File)Arg_1"Filename to convert:"% > \ %(File)Arg_2"Filename for new bitmap:"%' ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The AsciiToBin action uses the 'atobm' command \ to convert ascii files to bitmaps. } ACTION BinToAscii { LABEL BinToAscii TYPE COMMAND EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/bmtoa \ %"Filename to convert:"% > \ %"Filename for new output:"%' ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The BinToAscii action uses the 'bmtoa' command \ to convert bitmaps to ascii files. } ACTION ShowRgbDB { LABEL ShowRgbDB TYPE COMMAND EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/showrgb \ %"Database to display (rgb is default):"% \ | \${PAGER:-more}; \ echo "\\n*** Select Close from the window menu to close ***"' ICON Dtactn WINDOW_TYPE PERM_TERMINAL DESCRIPTION The ShowRgbDB action uses the 'showrgb' command \ to uncompile an rgb color-name database. } ACTION XWindowPrint { LABEL XWindowPrint TYPE COMMAND EXEC_STRING \ sh -c ' \ echo "[When the cursor changes to a cross, click on a window ...]\\n"; \ /usr/lpp/X11/Xamples/bin/xdpr; \ echo "\\n*** Select Close from the window menu to close ***"' ICON Dtactn WINDOW_TYPE PERM_TERMINAL DESCRIPTION The XWindowPrint action uses the 'xdpr' command \ to dump an X window directly to a printer. If \ a filename is not specified, xdpr will prompt \ with a crosshair cursor for a window to be selected. } ACTION Clipboard { LABEL Clipboard TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/lpp/X11/Xamples/bin/xclipboard DESCRIPTION The Clipboard action invokes the xclipboard \ command to view and manage the contents of \ your clipboard. } ACTION DisplayFont { LABEL DisplayFont TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING \ sh -c '\ /usr/lpp/X11/Xamples/bin/xfd \ -fn `basename %(File)Arg_1"Font To Display:"% \ | sed /[.].*/s///`;\ if [ \$? -eq 1 ] ; then \ /usr/dt/bin/error.ds \ "The font you specified cannot be found." \ "Invalid Font Name" \ "OK" ; \ fi' DESCRIPTION The DisplayFont action prompts for the name of \ a font uses the xfd command to display all of \ the characters in the font. } ACTION ListWinInfo { LABEL ListWinInfo TYPE COMMAND WINDOW_TYPE PERM_TERMINAL EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/xwininfo; \ echo "\\n*** Select Close from the window menu to close ***"' DESCRIPTION The ListWinInfo uses the xwininfo command to \ display information about a window. After \ invoking ListWinInfo, the cursor will change \ to a cross and allow you to select the desired \ window by clicking in it. } ACTION ListWinProps { LABEL ListWinProps TYPE COMMAND WINDOW_TYPE PERM_TERMINAL EXEC_STRING \ sh -c ' \ echo "[When the cursor changes to a cross, click on a window ...]\\n"; \ /usr/lpp/X11/Xamples/bin/xprop \ | \${PAGER:-more}; \ echo "\\n*** Select Close from the window menu to close ***"' DESCRIPTION The ListWinProps action uses the xprop command \ to display the properties stored on a window. \ After invoking ListWinProps the cursor will \ change to a cross and allow you to select the \ desired window by clicking in it. } ACTION XserverInfo { LABEL XserverInfo TYPE COMMAND WINDOW_TYPE PERM_TERMINAL EXEC_STRING \ sh -c ' \ /usr/lpp/X11/Xamples/bin/xdpyinfo \ | \${PAGER:-more}; \ echo "\\n*** Select Close from the window menu to close ***"' DESCRIPTION The XserverInfo action uses the xdpyinfo \ command to display information about your X \ server and display system. } ACTION RefreshScreen { LABEL RefreshScreen TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/lpp/X11/Xamples/bin/xrefresh DESCRIPTION The RefreshScreen action causes the entire \ screen to be refreshed using the xrefresh \ command. } ACTION BitmapEditor { LABEL BitmapEditor TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/lpp/X11/Xamples/bin/bitmap \ -size %"Width:"%x%"Height:"% \ %(File)Arg_1"File To Open:"% DESCRIPTION The BitmapEditor action uses the 'bitmap' command \ to provide a bitmap editor. \ It will prompt for the width and \ height of the bitmap if an existing \ bitmap is not supplied as an argument. } ACTION SystemLoad { LABEL SystemLoad ICON Dtload TYPE COMMAND WINDOW_TYPE NO_STDIO EXEC_STRING /usr/lpp/X11/Xamples/bin/xload \ -name SystemLoad \ -xrm '*primaryColorSetId: 5' DESCRIPTION The SystemLoad action displays a graphical view of \ the system load using the xload command. } ACTION ConsoleMonitor { LABEL ConsoleMonitor TYPE COMMAND EXEC_STRING /usr/lpp/X11/Xamples/bin/xconsole ICON Dtactn WINDOW_TYPE NO_STDIO DESCRIPTION The ConsoleMonitor action runs the 'xconsole' command \ to monitor system console messages. }