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 "tp_3D_SceneIllumination.hrc" 25#include "dlg_View3D.hrc" 26#include "SchSlotIds.hxx" 27 28#define WIDTH_HEAD 108 29#define WIDTH_FT 41 30#define WIDTH_LB 57 31#define WIDTH_IB 12 32#define BUTTON_DISTANCE 14 33 34#define HEIGHT_IB 12 35#define HEIGHT_FT 10 36#define HEIGHT_LB 12 37 38#define POS_X_0 6 39#define POS_X_1 (POS_X_0+WIDTH_LB+4) 40#define POS_X_2 (POS_X_1+WIDTH_IB+6) 41 42#define WIDTH_PREVIEW (VIEW3D_PAGE_WIDTH-POS_X_2-6) 43 44#define POS_Y_LIGHTSOURCE_HEAD 3 45#define POS_Y_LIGHTSOURCE_BUTTONS (POS_Y_LIGHTSOURCE_HEAD+12) 46#define POS_Y_LIGHTSOURCE_BUTTONS_2 (POS_Y_LIGHTSOURCE_BUTTONS+HEIGHT_IB+2) 47#define POS_Y_LIGHTSOURCE (POS_Y_LIGHTSOURCE_BUTTONS_2+16) 48 49#define POS_Y_AMBIENT_HEAD (POS_Y_LIGHTSOURCE+18) 50#define POS_Y_AMBIENT (POS_Y_AMBIENT_HEAD+12) 51 52#define POS_Y_PREVIEW POS_Y_LIGHTSOURCE_BUTTONS 53 54#define HEIGHT_PREVIEW POS_Y_AMBIENT+HEIGHT_LB-POS_Y_PREVIEW 55 56TabPage TP_3D_SCENEILLUMINATION 57{ 58 HelpID = "chart2:TabPage:TP_3D_SCENEILLUMINATION"; 59 OutputSize = TRUE ; 60 SVLook = TRUE ; 61 Hide = TRUE ; 62 Size = MAP_APPFONT ( VIEW3D_PAGE_WIDTH , VIEW3D_PAGE_HEIGHT ) ; 63 64 FixedText FT_LIGHTSOURCE 65 { 66 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_HEAD ) ; 67 Size = MAP_APPFONT ( WIDTH_HEAD , HEIGHT_FT ) ; 68 Text [ en-US ] = "~Light source" ; 69 }; 70 ImageButton BTN_LIGHT_1 71 { 72 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_1"; 73 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_BUTTONS ) ; 74 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 75 }; 76 ImageButton BTN_LIGHT_2 77 { 78 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_2"; 79 Pos = MAP_APPFONT ( POS_X_0+BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ; 80 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 81 }; 82 ImageButton BTN_LIGHT_3 83 { 84 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_3"; 85 Pos = MAP_APPFONT ( POS_X_0+2*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ; 86 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 87 }; 88 ImageButton BTN_LIGHT_4 89 { 90 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_4"; 91 Pos = MAP_APPFONT ( POS_X_0+3*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ; 92 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 93 }; 94 ImageButton BTN_LIGHT_5 95 { 96 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_5"; 97 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ; 98 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 99 }; 100 ImageButton BTN_LIGHT_6 101 { 102 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_6"; 103 Pos = MAP_APPFONT ( POS_X_0+1*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ; 104 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 105 }; 106 ImageButton BTN_LIGHT_7 107 { 108 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_7"; 109 Pos = MAP_APPFONT ( POS_X_0+2*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ; 110 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 111 }; 112 ImageButton BTN_LIGHT_8 113 { 114 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_8"; 115 Pos = MAP_APPFONT ( POS_X_0+3*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ; 116 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 117 }; 118 ListBox LB_LIGHTSOURCE 119 { 120 HelpID = "chart2:ListBox:TP_3D_SCENEILLUMINATION:LB_LIGHTSOURCE"; 121 Border = TRUE ; 122 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE ) ; 123 Size = MAP_APPFONT ( WIDTH_LB , HEIGHT_LB ) ; 124 TabStop = TRUE ; 125 DropDown = TRUE ; 126 }; 127 ImageButton BTN_LIGHTSOURCE_COLOR 128 { 129 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHTSOURCE_COLOR"; 130 Pos = MAP_APPFONT ( POS_X_1 , POS_Y_LIGHTSOURCE ) ; 131 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 132 TabStop = TRUE ; 133 }; 134 135 136 137 138 FixedText FT_AMBIENTLIGHT 139 { 140 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_AMBIENT_HEAD ) ; 141 Size = MAP_APPFONT ( WIDTH_HEAD , HEIGHT_FT ) ; 142 Text [ en-US ] = "~Ambient light" ; 143 }; 144 ListBox LB_AMBIENTLIGHT 145 { 146 HelpID = "chart2:ListBox:TP_3D_SCENEILLUMINATION:LB_AMBIENTLIGHT"; 147 Border = TRUE ; 148 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_AMBIENT ) ; 149 Size = MAP_APPFONT ( WIDTH_LB , HEIGHT_LB ) ; 150 TabStop = TRUE ; 151 DropDown = TRUE ; 152 }; 153 ImageButton BTN_AMBIENT_COLOR 154 { 155 HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_AMBIENT_COLOR"; 156 Pos = MAP_APPFONT ( POS_X_1 , POS_Y_AMBIENT ) ; 157 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ; 158 TabStop = TRUE ; 159 }; 160 161 162 163 Control CTL_LIGHT_PREVIEW 164 { 165 Border = TRUE ; 166 Pos = MAP_APPFONT ( POS_X_2 , POS_Y_PREVIEW ) ; 167 Size = MAP_APPFONT ( WIDTH_PREVIEW , HEIGHT_PREVIEW ) ; 168 TabStop = TRUE ; 169 }; 170}; 171 172String STR_LIGHT_PREVIEW 173{ 174 Text [ en-US ] = "Light Preview" ; 175}; 176 177