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#ifndef _DBACCESS_UI_DIRECTSQL_HRC_ 23#include "directsql.hrc" 24#endif 25#ifndef _DBU_DLG_HRC_ 26#include "dbu_dlg.hrc" 27#endif 28 29#define BUTTON_SIZE_X 50 30#define BUTTON_SIZE_Y 14 31 32#define WINDOW_SIZE_X 200 33#define WINDOW_SIZE_Y 210 + BUTTON_SIZE_Y + BUTTON_SIZE_Y 34 35ModalDialog DLG_DIRECTSQL 36{ 37 HelpID = "dbaccess:ModalDialog:DLG_DIRECTSQL" ; 38 OutputSize = TRUE ; 39 Moveable = TRUE ; 40 Closeable = TRUE ; 41 SVLook = TRUE ; 42 Size = MAP_APPFONT ( WINDOW_SIZE_X, WINDOW_SIZE_Y ) ; 43 44 FixedLine FL_SQL 45 { 46 Pos = MAP_APPFONT ( 4, 3 ) ; 47 Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8 ) ; 48 Text [ en-US ] = "SQL command" ; 49 }; 50 FixedText FT_SQL 51 { 52 Pos = MAP_APPFONT ( 7, 15 ) ; 53 Size = MAP_APPFONT ( WINDOW_SIZE_X - 14, 8 ) ; 54 Text [ en-US ] = "Command to execute" ; 55 }; 56 MultiLineEdit ME_SQL 57 { 58 HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_SQL" ; 59 Pos = MAP_APPFONT ( 7, 26 ) ; 60 Size = MAP_APPFONT ( WINDOW_SIZE_X - 14, 80 ) ; 61 SVLook = TRUE ; 62 Border = TRUE ; 63 TabStop = TRUE ; 64 IgnoreTab = TRUE ; 65 }; 66 PushButton PB_EXECUTE 67 { 68 HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_EXECUTE" ; 69 Pos = MAP_APPFONT ( WINDOW_SIZE_X - BUTTON_SIZE_X - 7, 109 ) ; 70 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ; 71 Text [ en-US ] = "Execute" ; 72 DefButton = TRUE ; 73 }; 74 FixedText FT_HISTORY 75 { 76 Pos = MAP_APPFONT ( 7, 110 + BUTTON_SIZE_Y + 3 ) ; 77 Size = MAP_APPFONT ( WINDOW_SIZE_X - 14, 8 ) ; 78 Text [ en-US ] = "Previous commands" ; 79 }; 80 ListBox LB_HISTORY 81 { 82 HelpID = "dbaccess:ListBox:DLG_DIRECTSQL:LB_HISTORY" ; 83 Pos = MAP_APPFONT ( 7, 121 + BUTTON_SIZE_Y + 3 ) ; 84 Size = MAP_APPFONT ( WINDOW_SIZE_X - 14, 14 ) ; 85 SvLook = TRUE ; 86 DropDown = TRUE ; 87 Border = TRUE ; 88 }; 89 FixedLine FL_STATUS 90 { 91 Pos = MAP_APPFONT ( 4, 138 + BUTTON_SIZE_Y + 4 ) ; 92 Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8 ) ; 93 Text [ en-US ] = "Status" ; 94 }; 95 MultiLineEdit ME_STATUS 96 { 97 HelpID = "dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_STATUS" ; 98 Pos = MAP_APPFONT ( 7, 153 + BUTTON_SIZE_Y ) ; 99 Size = MAP_APPFONT ( WINDOW_SIZE_X - 14, 41 ) ; 100 Border = TRUE ; 101 ReadOnly = TRUE ; 102 VScroll = TRUE ; 103 }; 104 FixedLine FL_BUTTONS 105 { 106 Pos = MAP_APPFONT ( 4, 193 + BUTTON_SIZE_Y + 4 ) ; 107 Size = MAP_APPFONT ( WINDOW_SIZE_X - 8, 8 ) ; 108 }; 109 HelpButton PB_HELP 110 { 111 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X - 3 - BUTTON_SIZE_X, 207 + BUTTON_SIZE_Y ) ; 112 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ; 113 }; 114 PushButton PB_CLOSE 115 { 116 HelpID = "dbaccess:PushButton:DLG_DIRECTSQL:PB_CLOSE" ; 117 Pos = MAP_APPFONT ( WINDOW_SIZE_X - 7 - BUTTON_SIZE_X, 207 + BUTTON_SIZE_Y ) ; 118 Size = MAP_APPFONT ( BUTTON_SIZE_X, BUTTON_SIZE_Y ) ; 119 Text [ en-US ] = "Close" ; 120 }; 121 122 Text [ en-US ] = "Execute SQL Statement" ; 123}; 124 125String STR_COMMAND_EXECUTED_SUCCESSFULLY 126{ 127 Text [ en-US ] = "Command successfully executed." ; 128}; 129 130String STR_DIRECTSQL_CONNECTIONLOST 131{ 132 Text [ en-US ] = "The connection to the database has been lost. This dialog will be closed." ; 133}; 134 135// ********************************************************************** EOF 136