1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#include "AutoControls.hrc"
25#include "dbu_dlg.hrc"
26#include "admincontrols.hrc"
27
28#define LINE_HEIGHT             ( EDIT_HEIGHT + RELATED_CONTROLS )
29#define SETTINGS_CONTROL_WIDTH  ( WIZARD_PAGE_X - 2 * START_X )
30#define COLUMN_WIDTH_1      80
31#define COLUMN_WIDTH_2      ( SETTINGS_CONTROL_WIDTH - COLUMN_WIDTH_1 )
32
33Control RID_MYSQL_NATIVE_SETTINGS
34{
35    DialogControl = TRUE;
36    Size = MAP_APPFONT( SETTINGS_CONTROL_WIDTH, 5 * LINE_HEIGHT );
37    Hide = FALSE;
38
39	FixedText FT_MYSQL_DATABASE_NAME
40	{
41		Pos = MAP_APPFONT ( 0, 2 );
42		Size = MAP_APPFONT ( COLUMN_WIDTH_1 - UNRELATED_CONTROLS, FIXEDTEXT_HEIGHT );
43 		Text[ en-US ]  = "~Database name";
44	};
45
46	Edit ED_MYSQL_DATABASE_NAME
47	{
48		Pos = MAP_APPFONT ( COLUMN_WIDTH_1, 0 );
49		Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
50		Border = TRUE;
51	};
52
53    RadioButton RB_MYSQL_HOST_PORT
54    {
55        Pos = MAP_APPFONT ( 0, LINE_HEIGHT );
56        Size = MAP_APPFONT ( COLUMN_WIDTH_1, FIXEDTEXT_HEIGHT ) ;
57        Text [ en-US ]  = "Se~rver / Port" ;
58        Group = TRUE;
59    };
60
61#define OPTION_GROUP_START  ( LINE_HEIGHT + FIXEDTEXT_HEIGHT + RELATED_CONTROLS )
62
63    FixedText FT_COMMON_HOST_NAME
64    {
65        Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + 2 );
66        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT );
67        Text [ en-US ]  = "~Server" ;
68    };
69
70    Edit ED_COMMON_HOST_NAME
71    {
72        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START );
73        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
74		Border = TRUE;
75    };
76
77    FixedText FT_COMMON_PORT
78    {
79        Pos = MAP_APPFONT ( INDENT_BELOW_RADIO, OPTION_GROUP_START + LINE_HEIGHT + 2 );
80        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS - INDENT_BELOW_RADIO, FIXEDTEXT_HEIGHT ) ;
81        Text [ en-US ]  = "~Port" ;
82        Group = TRUE;
83    };
84
85    NumericField NF_COMMON_PORT
86    {
87        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + LINE_HEIGHT );
88        Size = MAP_APPFONT ( 25, EDIT_HEIGHT );
89		Border = TRUE;
90		NoThousandSep = TRUE;
91		Value = 3306;
92    };
93
94    FixedText FT_COMMON_PORT_DEFAULT
95    {
96        Pos = MAP_APPFONT ( COLUMN_WIDTH_1 + 25 + RELATED_CONTROLS, OPTION_GROUP_START + LINE_HEIGHT + 2 );
97        Size = MAP_APPFONT ( COLUMN_WIDTH_2 - 25 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
98        Text[ en-US ] = "Default: 3306";
99    };
100
101    RadioButton RB_MYSQL_SOCKET
102    {
103        Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 );
104        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
105        Text [ en-US ] = "So~cket";
106    };
107
108    Edit ED_MYSQL_SOCKET
109    {
110        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT );
111        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
112		Border = TRUE ;
113    };
114
115    RadioButton RB_MYSQL_NAMED_PIPE
116    {
117        Pos = MAP_APPFONT ( 0, OPTION_GROUP_START + 2 * LINE_HEIGHT + 2 );
118        Size = MAP_APPFONT ( COLUMN_WIDTH_1 - RELATED_CONTROLS, FIXEDTEXT_HEIGHT );
119        Text [ en-US ] = "Named p~ipe";
120    };
121
122    Edit ED_MYSQL_NAMED_PIPE
123    {
124        Pos = MAP_APPFONT ( COLUMN_WIDTH_1, OPTION_GROUP_START + 2 * LINE_HEIGHT );
125        Size = MAP_APPFONT ( COLUMN_WIDTH_2, EDIT_HEIGHT );
126		Border = TRUE ;
127    };
128};
129