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