1"
2" cream-menu-window.vim
3"
4" Cream -- An easy-to-use configuration of the famous Vim text editor
5" [ http://cream.sourceforge.net ] Copyright (C) 2001-2011 Steve Hall
6"
7" License:
8" This program is free software; you can redistribute it and/or modify
9" it under the terms of the GNU General Public License as published by
10" the Free Software Foundation; either version 3 of the License, or
11" (at your option) any later version.
12" [ http://www.gnu.org/licenses/gpl.html ]
13"
14" This program is distributed in the hope that it will be useful, but
15" WITHOUT ANY WARRANTY; without even the implied warranty of
16" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17" General Public License for more details.
18"
19" You should have received a copy of the GNU General Public License
20" along with this program; if not, write to the Free Software
21" Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
22" 02111-1307, USA.
23"
24
25function! Cream_menu_window()
26
27	"anoremenu <silent> 80.100 &Window.-SEP100-							<Nul>
28	anoremenu <silent> 80.101 &Window.Maximize\ (&Single)				:call Cream_window_setup_maximize()<CR>
29	anoremenu <silent> 80.102 &Window.Minimize\ (Hi&de)					:call Cream_window_setup_minimize()<CR>
30	anoremenu <silent> 80.103 &Window.Tile\ &Vertical					:call Cream_window_setup_tile("vertical")<CR>
31	anoremenu <silent> 80.104 &Window.Tile\ Hori&zontal					:call Cream_window_setup_tile("horizontal")<CR>
32
33	anoremenu <silent> 80.200 &Window.-SEP200-							<Nul>
34	anoremenu <silent> 80.201 &Window.Sizes\ E&qual						:call Cream_window_equal()<CR>
35	anoremenu <silent> 80.202 &Window.Height\ Max\ &=					:call Cream_window_height_max()<CR>
36	anoremenu <silent> 80.203 &Window.Height\ Min\ &-					:call Cream_window_height_min()<CR>
37	anoremenu <silent> 80.204 &Window.&Width\ Max						:call Cream_window_width_max()<CR>
38	anoremenu <silent> 80.205 &Window.Widt&h\ Min						:call Cream_window_width_min()<CR>
39
40	"anoremenu <silent> 80.300 &Window.-SEP300-							<Nul>
41	"anoremenu <silent> 80.302 &Window.Move\ To\ &Top					<C-W>K
42	"anoremenu <silent> 80.303 &Window.Move\ To\ &Bottom				<C-W>J
43	"anoremenu <silent> 80.304 &Window.Move\ To\ &Left\ side			<C-W>H
44	"anoremenu <silent> 80.305 &Window.Move\ To\ &Right\ side			<C-W>L
45
46	"anoremenu <silent> 80.350 &Window.-SEP350-							<Nul>
47	"anoremenu <silent> 80.351 &Window.Rotate\ &Up						<C-W>R
48	"anoremenu <silent> 80.352 &Window.Rotate\ &Down					<C-W>r
49
50	anoremenu <silent> 80.400 &Window.-SEP400-							<Nul>
51	anoremenu <silent> 80.401 &Window.Split\ New\ Pane\ Vertical		:call Cream_window_new_ver()<CR>
52	anoremenu <silent> 80.402 &Window.Split\ New\ Pane\ Horizontal		:call Cream_window_new_hor()<CR>
53	anoremenu <silent> 80.403 &Window.Split\ Existing\ Vertically		:call Cream_window_split_exist_ver()<CR>
54	anoremenu <silent> 80.404 &Window.Split\ Existing\ Horizontally		:call Cream_window_split_exist_hor()<CR>
55
56	" add tab handling functions to the menu
57	anoremenu <silent> 80.450 &Window.-SEP450-							<Nul>
58	anoremenu <silent> 80.451 &Window.&Tabs.Make\ Tab\ &First			:call Cream_tab_move_first()<CR>
59	anoremenu <silent> 80.452 &Window.&Tabs.Move\ Tab\ &Left			:call Cream_tab_move_left()<CR>
60	anoremenu <silent> 80.453 &Window.&Tabs.Move\ Tab\ &Right			:call Cream_tab_move_right()<CR>
61	anoremenu <silent> 80.454 &Window.&Tabs.Make\ Tab\ Las&t			:call Cream_tab_move_last()<CR>
62	anoremenu <silent> 80.455 &Window.&Tabs.-SEP455-					<Nul>
63	anoremenu <silent> 80.460 &Window.&Tabs.R&efresh\ tabs				:call Cream_tabpages_refresh()<CR>
64	":call Cream_tabpages_refresh()<CR>
65
66	" OBSOLETE
67	"anoremenu <silent> 80.500 &Window.-SEP500-							<Nul>
68	"anoremenu <silent> 80.501 &Window.Start\ New\ Cream\ Instance		:call Cream_session_new()<CR>
69
70	"anoremenu <silent> 80.550 &Window.-SEP80550-			<Nul>
71	anoremenu <silent> 80.551 &Window.Open\ File\ in\ Default\ &Application		:call Cream_file_open_defaultapp()<CR>
72	    imenu <silent> 80.570 &Window.Open\ File\ E&xplorer					<C-b>:call Cream_open_fileexplorer()<CR>
73	    vmenu <silent> 80.571 &Window.Open\ File\ E&xplorer					:<C-u>call Cream_open_fileexplorer()<CR>
74
75	anoremenu <silent> 80.700 &Window.-SEP700-							<Nul>
76	anoremenu <silent> 80.701 &Window.&Calendar\ (toggle)<Tab>Ctrl+F11	:call Cream_calendar()<CR>
77
78	anoremenu <silent> 80.900 &Window.-SEP900-							<Nul>
79
80	" buffers added here (elsewhere)
81
82
83endfunction
84call Cream_menu_window()
85
86