OSDN Git Service

Merge branch 'dev' into dev-stable
[alterlinux/alterlinux.git] / menuconfig / test / rootconf
1 mainmenu "Main Menu"
2
3 comment "This is a comment to help to structure menu"
4
5 choice
6         prompt "Generic Choice"
7         default GEN_CHOICE1
8         help
9                 This is a help text that can expand over multiple lines and give some information about
10                 the configuration parameter.
11
12         config GEN_CHOICE1
13                 bool "Choice 1"
14
15         config GEN_CHOICE2
16                 bool "Choice 2"
17                 select SHOW_MORE
18
19         config GEN_CHOICE3
20                 bool "Choice 3"
21                 select SHOW_MORE
22                 select SHOW_EVEN_MORE
23                 help
24                         Even subitem can contain help text.
25 endchoice
26
27 config SHOW_MORE
28         bool
29
30 config SHOW_EVEN_MORE
31         bool
32
33
34 comment "This item is visible if the second or third option is selected"
35 menu "Hidden 1"
36         visible if SHOW_MORE
37         menu "Nested 1"
38                 menu "Nested 2"
39                         comment "we can nest as deep as we want"
40                 endmenu
41         endmenu
42 endmenu
43
44
45
46 comment "This item is visible only if the third option is selected"
47
48 config MENUDEPENDENCY
49         bool "menu dependancy"
50         default n
51
52 menu "Hidden 2"
53         visible if SHOW_EVEN_MORE
54         depends on MENUDEPENDENCY
55
56         config ITEM1
57                 bool "Item 1 - enables additional options"
58                 default n
59
60         config ITEM2
61                 depends on ITEM1
62                 bool "Item 2 - depends on item 1"
63                 default n
64
65         config ITEM3
66                 bool "Item 3 - is set automatically"
67                 default n
68
69         config ITEM4
70                 bool "Item 4 - reverse dependancy"
71                 select ITEM3
72                 default n
73 endmenu
74
75 comment "Some different config types"
76 config STRING_PARAM
77         string "String Parameter"
78
79 config NUM_PARAM
80         int "Integer parameter between 0 an 100"
81         range 0 100
82
83 config NUM_PARAM2
84         int "HEX parameter"
85
86 config TRISTATE_PARAM
87         tristate "Three states"
88
89 menu "Subconfmenu"
90         source ../test/subconfig
91 endmenu
92
93 menu "Subconfmenu2"
94         source ../test/subconfig2
95 endmenu