* Renamed examples/xm into examples/motif.
* Fixed example files so that they fit with the new xaw.scm and motif.scm. git-svn-id: svn://svn.zoy.org/elk/trunk@88 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
parent
28a37474d2
commit
df7cace828
|
@ -85,20 +85,20 @@ xlib_DATA = \
|
||||||
xlib/picture.scm \
|
xlib/picture.scm \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
xmdir = $(examplesdir)/xm
|
motifdir = $(examplesdir)/motif
|
||||||
xm_DATA = \
|
motif_DATA = \
|
||||||
xm/scroll-bar.scm \
|
motif/scroll-bar.scm \
|
||||||
xm/radio.scm \
|
motif/radio.scm \
|
||||||
xm/message-dialog.scm \
|
motif/message-dialog.scm \
|
||||||
xm/drawing-area.scm \
|
motif/drawing-area.scm \
|
||||||
xm/radio-stuff.scm \
|
motif/radio-stuff.scm \
|
||||||
xm/popup-menu.scm \
|
motif/popup-menu.scm \
|
||||||
xm/pulldown-menu.scm \
|
motif/pulldown-menu.scm \
|
||||||
xm/main-window.scm \
|
motif/main-window.scm \
|
||||||
xm/menu-stuff.scm \
|
motif/menu-stuff.scm \
|
||||||
xm/vcr.scm \
|
motif/vcr.scm \
|
||||||
xm/option-menu.scm \
|
motif/option-menu.scm \
|
||||||
xm/list.scm \
|
motif/list.scm \
|
||||||
xm/selection-box.scm \
|
motif/selection-box.scm \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
;;; Drawing area demo
|
;;; Drawing area demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(print "loading widgets\n")
|
|
||||||
(load-widgets shell drawing-area)
|
|
||||||
|
|
||||||
(define top (application-initialize 'drawing-area))
|
(define top (application-initialize 'drawing-area))
|
||||||
(set-values! top 'width 300 'height 100)
|
(set-values! top 'width 300 'height 100)
|
|
@ -3,7 +3,6 @@
|
||||||
;;; List widget demo (directory browser) for Motif
|
;;; List widget demo (directory browser) for Motif
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell form label push-button list)
|
|
||||||
(require 'unix)
|
(require 'unix)
|
||||||
(require 'sort 'qsort.scm)
|
(require 'sort 'qsort.scm)
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
;;; Main window demo
|
;;; Main window demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets drawing-area shell main-window scroll-bar row-column
|
|
||||||
cascade-button command)
|
|
||||||
|
|
||||||
(define top (application-initialize 'main-window))
|
(define top (application-initialize 'main-window))
|
||||||
(set-values! top 'width 500 'height 800)
|
(set-values! top 'width 500 'height 800)
|
|
@ -3,7 +3,6 @@
|
||||||
;;; Message box dialog demo
|
;;; Message box dialog demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell message-box row-column toggle-button push-button)
|
|
||||||
(load 'radio-stuff.scm)
|
(load 'radio-stuff.scm)
|
||||||
|
|
||||||
(define top (application-initialize 'message-box))
|
(define top (application-initialize 'message-box))
|
|
@ -3,7 +3,6 @@
|
||||||
;;; Option menu demo
|
;;; Option menu demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell row-column cascade-button push-button label separator)
|
|
||||||
(load 'menu-stuff.scm)
|
(load 'menu-stuff.scm)
|
||||||
|
|
||||||
(define top (application-initialize 'option))
|
(define top (application-initialize 'option))
|
|
@ -3,8 +3,6 @@
|
||||||
;;; Popup menu demo
|
;;; Popup menu demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell row-column cascade-button push-button label separator
|
|
||||||
drawing-area)
|
|
||||||
(load 'menu-stuff.scm)
|
(load 'menu-stuff.scm)
|
||||||
|
|
||||||
(define top (application-initialize 'popup))
|
(define top (application-initialize 'popup))
|
|
@ -3,7 +3,6 @@
|
||||||
;;; Pulldown menu demo
|
;;; Pulldown menu demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell row-column cascade-button push-button label separator)
|
|
||||||
(load 'menu-stuff.scm)
|
(load 'menu-stuff.scm)
|
||||||
|
|
||||||
(define top (application-initialize 'pulldown))
|
(define top (application-initialize 'pulldown))
|
|
@ -3,7 +3,6 @@
|
||||||
;;; Radio box and button demo
|
;;; Radio box and button demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell row-column arrow-button push-button toggle-button)
|
|
||||||
(load 'radio-stuff.scm)
|
(load 'radio-stuff.scm)
|
||||||
|
|
||||||
(define top (application-initialize 'radio))
|
(define top (application-initialize 'radio))
|
|
@ -3,7 +3,6 @@
|
||||||
;;; Scroll bar demo
|
;;; Scroll bar demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell scroll-bar)
|
|
||||||
|
|
||||||
(define top (application-initialize 'scrollbar))
|
(define top (application-initialize 'scrollbar))
|
||||||
(set-values! top 'allow-shell-resize #t)
|
(set-values! top 'allow-shell-resize #t)
|
|
@ -3,7 +3,6 @@
|
||||||
;;; Selection box demo
|
;;; Selection box demo
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell selection-box)
|
|
||||||
|
|
||||||
(define top (application-initialize 'selection))
|
(define top (application-initialize 'selection))
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
;; Initialization
|
;; Initialization
|
||||||
|
|
||||||
(require 'motif)
|
(require 'motif)
|
||||||
(load-widgets shell bulletin-board row-column label push-button)
|
|
||||||
|
|
||||||
(define top (application-initialize 'vcr))
|
(define top (application-initialize 'vcr))
|
||||||
(define con (widget-context top))
|
(define con (widget-context top))
|
|
@ -5,8 +5,7 @@
|
||||||
;;; Based on an example program (xtryaccel.c) from the O'Reilly
|
;;; Based on an example program (xtryaccel.c) from the O'Reilly
|
||||||
;;; book `X Toolkit Intrinsics Programming Manual'
|
;;; book `X Toolkit Intrinsics Programming Manual'
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets command box shell)
|
|
||||||
|
|
||||||
(define top (application-initialize 'accel
|
(define top (application-initialize 'accel
|
||||||
"*bye.label: Goodbye"
|
"*bye.label: Goodbye"
|
||||||
|
|
|
@ -5,8 +5,7 @@
|
||||||
;;; Based on an example program (xclickcount.c) from the O'Reilly
|
;;; Based on an example program (xclickcount.c) from the O'Reilly
|
||||||
;;; collection of Xt example programs.
|
;;; collection of Xt example programs.
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell label)
|
|
||||||
|
|
||||||
(define top (application-initialize 'clickcount))
|
(define top (application-initialize 'clickcount))
|
||||||
(define con (widget-context top))
|
(define con (widget-context top))
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Dialog box demo
|
;;; Dialog box demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell ascii dialog command box label)
|
|
||||||
|
|
||||||
(define top (application-initialize 'dialog))
|
(define top (application-initialize 'dialog))
|
||||||
(define dpy (widget-display top))
|
(define dpy (widget-display top))
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Grip widget demo
|
;;; Grip widget demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell grip)
|
|
||||||
|
|
||||||
(define top (application-initialize 'grip))
|
(define top (application-initialize 'grip))
|
||||||
(set-values! top 'width 50 'height 50)
|
(set-values! top 'width 50 'height 50)
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; List widget demo (directory browser)
|
;;; List widget demo (directory browser)
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell form label command list)
|
|
||||||
(require 'unix)
|
(require 'unix)
|
||||||
(require 'sort 'qsort.scm)
|
(require 'sort 'qsort.scm)
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Paned widget demo
|
;;; Paned widget demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell label command paned)
|
|
||||||
|
|
||||||
(define top (application-initialize 'paned))
|
(define top (application-initialize 'paned))
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Panner widget demo
|
;;; Panner widget demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell panner)
|
|
||||||
|
|
||||||
(define top (application-initialize 'panner))
|
(define top (application-initialize 'panner))
|
||||||
(set-values! top 'width 150 'height 150)
|
(set-values! top 'width 150 'height 150)
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Popup menu demo
|
;;; Popup menu demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell simplemenu smebsb label)
|
|
||||||
|
|
||||||
(define top (application-initialize 'popup))
|
(define top (application-initialize 'popup))
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
;;; Porthole widget demo
|
;;; Porthole widget demo
|
||||||
;;; This only works with X11R5; there is no clock widget in X11R6-Xaw.
|
;;; This only works with X11R5; there is no clock widget in X11R6-Xaw.
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell clock form panner porthole)
|
|
||||||
|
|
||||||
(define top (application-initialize 'porthole))
|
(define top (application-initialize 'porthole))
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Pulldown menu demo
|
;;; Pulldown menu demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell menubutton simplemenu smebsb smeline sme)
|
|
||||||
|
|
||||||
(define top (application-initialize 'pulldown))
|
(define top (application-initialize 'pulldown))
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Scrollbar widget demo
|
;;; Scrollbar widget demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell scrollbar)
|
|
||||||
|
|
||||||
(define top (application-initialize 'scrollbar))
|
(define top (application-initialize 'scrollbar))
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Scroll box demo
|
;;; Scroll box demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell command box label)
|
|
||||||
|
|
||||||
(define items (list 'Helvetica 'Courier 'Times 'Palatino 'Zapf\ Chancery
|
(define items (list 'Helvetica 'Courier 'Times 'Palatino 'Zapf\ Chancery
|
||||||
'Zapf\ Dingbats))
|
'Zapf\ Dingbats))
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
;;;
|
;;;
|
||||||
;;; Stripchart widget demo
|
;;; Stripchart widget demo
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell stripchart)
|
|
||||||
|
|
||||||
(define top (application-initialize 'stripchart))
|
(define top (application-initialize 'stripchart))
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
;;; Trivial text widget demo (the text widget isn't fully supported
|
;;; Trivial text widget demo (the text widget isn't fully supported
|
||||||
;;; by Elk)
|
;;; by Elk)
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell ascii box command label)
|
|
||||||
|
|
||||||
(define top (application-initialize 'text))
|
(define top (application-initialize 'text))
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
'label (car l))))
|
'label (car l))))
|
||||||
(set-values! w 'tree-parent p))))))
|
(set-values! w 'tree-parent p))))))
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell label tree)
|
|
||||||
|
|
||||||
(define top (application-initialize 'tree))
|
(define top (application-initialize 'tree))
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
;;; Viewport widget demo
|
;;; Viewport widget demo
|
||||||
;;; This only works with X11R5; there is no clock widget in X11R6-Xaw.
|
;;; This only works with X11R5; there is no clock widget in X11R6-Xaw.
|
||||||
|
|
||||||
(require 'xwidgets)
|
(require 'xaw)
|
||||||
(load-widgets shell clock viewport)
|
|
||||||
|
|
||||||
(define top (application-initialize 'viewport))
|
(define top (application-initialize 'viewport))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue