Split System7/MacOS8 styling, menu bar defintion, init & restart functions, etc., into separate files.

This commit is contained in:
Morgan Aldridge 2019-01-05 14:22:36 -05:00
parent 9e48b558b0
commit f1ab27b30d
8 changed files with 175 additions and 123 deletions

6
.mlvwm/.initrc Normal file
View File

@ -0,0 +1,6 @@
Read initrc
InitFunction
Desk 0
Exec "xterm" xterm -ls -geometry 80x25 &
Wait xterm
END

View File

@ -27,18 +27,6 @@ IconifyShade
## Show the window as shade, when hide shaded window is shown
#ShadeMap
## Enable MacOS 8 decoration feauture
System8
## Enable Opaque Move
OpaqueMove
## Enable Opaque Resize
# OpaqueResize
## Enable one click menu
#OneClickMenu
# Double click time
DoubleClickTime 300
@ -48,9 +36,6 @@ EdgeResistance 50 50
## Show window name with desktop number on window list
#DisplayDeskNumber
## Draw move/resize line with dotted line
Compatible
# Set icon search path. It needs before "Style".
IconPath /usr/local/include/X11/pixmaps:/home2/tak/bin/pixmap
IconMenuIcon label2.xpm
@ -76,117 +61,19 @@ Escape M Restart mlvwm
Escape SM Exit
END
# Register the menu
Menu Apple, Icon label1.xpm, Stick
"About this Workstation..." NonSelect, Gray, Action About
"" NonSelect
"Terminal" Icon mini-display.xpm, Action Exec "kterm" exec kterm -ls
"Editor" Action Exec "mule" exec mule, Icon mini-edit.xpm
"calculator" Action Exec "xcal" exec xcalc, Icon mini-calc.xpm
END
# Load Theme from themes/ ('System7', 'MacOS8', or 'MacOS9')
Read themes/System7
Menu def-File, Label "File", Left
"New Folder" NonSelect, Gray, Action Nop
"Open" NonSelect, Gray, Action Nop
"Print" NonSelect, Gray, Action Nop
"Close Window" NonSelect, Gray, Action Nop
"" NonSelect
"Get Info" NonSelect, Gray,Action Nop
"Duplicate" NonSelect, Gray, Action Nop
"" NonSelect
"Find..." NonSelect, Gray, Action Nop
"Find Again" NonSelect, Gray, Action Nop
"" NonSelect
"Page Setup..." NonSelect, Gray, Action Nop
"Print Desktop..." NonSelect, Gray, Action Nop
END
Menu def-Edit, Label "Edit"
"Undo" NonSelect, Gray, Action Nop
"" NonSelect
"Cut" NonSelect, Gray
"Copy" NonSelect, Gray
"Paste" NonSelect, Gray
"Clear" NonSelect, Gray
"Select All" NonSelect, Gray
"" NonSelect
"Show Clipboard" NonSelect, Gray
END
Menu def-View, Label "View"
"by Small Icon" NonSelect, Gray
"by Icon" NonSelect, Gray
"by Name" NonSelect, Gray
"by Size" NonSelect, Gray
"by Kind" NonSelect, Gray
"by Date" NonSelect, Gray
"by Version" NonSelect, Gray
END
Menu def-Label, Label "Label"
"None" NonSelect, Gray
"" NonSelect
"Essential" NonSelect, Gray
"Hot" NonSelect, Gray
"In Progress" NonSelect, Gray
"Cool" NonSelect, Gray
"Personal" NonSelect, Gray
"Project 1" NonSelect, Gray
"Project 2" NonSelect, Gray
END
Menu restart-sub
"Start twm" Action Restart twm
"Start fvwm" Action Restart fvwm
END
Menu def-Special, Label "Special"
"Clean Up Desktop" Action Refresh
"Empty Trash" NonSelect, Gray
"" NonSelect
"Eject Disk" NonSelect, Gray
"Erase Disk..." NonSelect, Gray
"" NonSelect
"Start" SubMenu restart-sub
"Restart" Action Restart mlvwm
"Shut down" Action Exit
END
Menu def-Window
"Move" Action MoveWindow
"Resize" Action ResizeWindow
"Toggle Scroll" Action ToggleScroll
"" NonSelect
"Quit" Action KillWindow
END
# Swallow the application at menu
#Swallow "XEyes" Action Exec "xeyes" exec xeyes -geometry 25
Swallow "XClock" Action Exec "xclock" exec xclock -geometry 180x25 -digital -padding 5 -update 1
# Definition MenuBar
MenuBar default
def-File
def-Edit
def-View
def-Label
def-Special
def-Window
END
# Load the default menu bar
# (IMPORTANT: The Apple menu is defined in the theme, so _must_ be loaded before
# the default menu bar)
Read MenuBar
# Define the initial function
InitFunction
Desk 1
Exec "xterm" xterm -ls -geometry 80x25 &
Wait xterm
Desk 0
Exec "xterm" xterm -ls -geometry 80x25 &
Wait xterm
END
Read .initrc
# Define the restart function
RestartFunction
END
Read .restartrc
# Define the default window decoration
Style
@ -208,5 +95,5 @@ Style
END
# Read other configuration
Read Mlvwmrc-Xterm
Read Mlvwmrc-Netscape
#Read Mlvwmrc-Xterm
#Read Mlvwmrc-Netscape

2
.mlvwm/.restartrc Normal file
View File

@ -0,0 +1,2 @@
RestartFunction
END

88
.mlvwm/MenuBar Normal file
View File

@ -0,0 +1,88 @@
Menu def-File, Label "File", Left
"New Folder" NonSelect, Gray, Action Nop
"Open" NonSelect, Gray, Action Nop
"Print" NonSelect, Gray, Action Nop
"Close Window" NonSelect, Gray, Action Nop
"" NonSelect
"Get Info" NonSelect, Gray,Action Nop
"Duplicate" NonSelect, Gray, Action Nop
"" NonSelect
"Find..." NonSelect, Gray, Action Nop
"Find Again" NonSelect, Gray, Action Nop
"" NonSelect
"Page Setup..." NonSelect, Gray, Action Nop
"Print Desktop..." NonSelect, Gray, Action Nop
END
Menu def-Edit, Label "Edit"
"Undo" NonSelect, Gray, Action Nop
"" NonSelect
"Cut" NonSelect, Gray
"Copy" NonSelect, Gray
"Paste" NonSelect, Gray
"Clear" NonSelect, Gray
"Select All" NonSelect, Gray
"" NonSelect
"Show Clipboard" NonSelect, Gray
END
Menu def-View, Label "View"
"by Small Icon" NonSelect, Gray
"by Icon" NonSelect, Gray
"by Name" NonSelect, Gray
"by Size" NonSelect, Gray
"by Kind" NonSelect, Gray
"by Date" NonSelect, Gray
"by Version" NonSelect, Gray
END
Menu def-Label, Label "Label"
"None" NonSelect, Gray
"" NonSelect
"Essential" NonSelect, Gray
"Hot" NonSelect, Gray
"In Progress" NonSelect, Gray
"Cool" NonSelect, Gray
"Personal" NonSelect, Gray
"Project 1" NonSelect, Gray
"Project 2" NonSelect, Gray
END
Menu restart-sub
"Start twm" Action Restart twm
"Start fvwm" Action Restart fvwm
END
Menu def-Special, Label "Special"
"Clean Up Desktop" Action Refresh
"Empty Trash" NonSelect, Gray
"" NonSelect
"Eject Disk" NonSelect, Gray
"Erase Disk..." NonSelect, Gray
"" NonSelect
"Start" SubMenu restart-sub
"Restart" Action Restart mlvwm
"Shut down" Action Exit
END
Menu def-Window
"Move" Action MoveWindow
"Resize" Action ResizeWindow
"Toggle Scroll" Action ToggleScroll
"" NonSelect
"Quit" Action KillWindow
END
# Swallow the application at menu
#Swallow "XEyes" Action Exec "xeyes" exec xeyes -geometry 25
Swallow "XClock" Action Exec "xclock" exec xclock -geometry 180x25 -digital -padding 5 -update 1
# Definition MenuBar
MenuBar default
def-File
def-Edit
def-View
def-Label
def-Special
def-Window
END

6
.mlvwm/initrc Normal file
View File

@ -0,0 +1,6 @@
Read initrc
InitFunction
Desk 0
Exec "xterm" xterm -ls -geometry 80x25 &
Wait xterm
END

26
.mlvwm/themes/MacOS8 Normal file
View File

@ -0,0 +1,26 @@
## Enable MacOS 8 decoration feature
System8
## Draw move/resize line with dotted line
Compatible
## Enable Opaque Move
OpaqueMove
## Enable Opaque Resize
# OpaqueResize
## Enable one click menu
OneClickMenu
################################################################################
# Apple Menu
################################################################################
Menu Apple, Icon label1.xpm, Stick
"About This Computer..." NonSelect, Gray, Action About
"" NonSelect
"Terminal" Icon mini-display.xpm, Action Exec "xterm" exec xterm
"Editor" Action Exec "mule" exec mule, Icon mini-edit.xpm
"calculator" Action Exec "xcal" exec xcalc, Icon mini-calc.xpm
END

23
.mlvwm/themes/MacOS9 Normal file
View File

@ -0,0 +1,23 @@
## Enable MacOS 8 decoration feature
System8
## Enable Opaque Move
OpaqueMove
## Enable Opaque Resize
OpaqueResize
## Enable one click menu
OneClickMenu
################################################################################
# Apple Menu
################################################################################
Menu Apple, Icon label1.xpm, Stick
"About This Computer..." NonSelect, Gray, Action About
"" NonSelect
"Terminal" Icon mini-display.xpm, Action Exec "xterm" exec xterm
"Editor" Action Exec "mule" exec mule, Icon mini-edit.xpm
"calculator" Action Exec "xcal" exec xcalc, Icon mini-calc.xpm
END

14
.mlvwm/themes/System7 Normal file
View File

@ -0,0 +1,14 @@
## Draw move/resize line with dotted line
Compatible
################################################################################
# Apple Menu
################################################################################
Menu Apple, Icon label1.xpm, Stick
"About This Computer..." NonSelect, Gray, Action About
"" NonSelect
"Terminal" Icon mini-display.xpm, Action Exec "xterm" exec xterm
"Editor" Action Exec "mule" exec mule, Icon mini-edit.xpm
"calculator" Action Exec "xcal" exec xcalc, Icon mini-calc.xpm
END