UNIXworkcode

1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- 2 * 3 * ***** BEGIN LICENSE BLOCK ***** 4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 5 * 6 * The contents of this file are subject to the Mozilla Public License Version 7 * 1.1 (the "License"); you may not use this file except in compliance with 8 * the License. You may obtain a copy of the License at 9 * http://www.mozilla.org/MPL/ 10 * 11 * Software distributed under the License is distributed on an "AS IS" basis, 12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 13 * for the specific language governing rights and limitations under the 14 * License. 15 * 16 * The Original Code is the Microline Widget Library, originally made available under the NPL by Neuron Data <http://www.neurondata.com>. 17 * 18 * The Initial Developer of the Original Code is 19 * Netscape Communications Corporation. 20 * Portions created by the Initial Developer are Copyright (C) 1998 21 * the Initial Developer. All Rights Reserved. 22 * 23 * Contributor(s): 24 * 25 * Alternatively, the contents of this file may be used under the terms of 26 * either the GNU General Public License Version 2 or later (the "GPL"), or 27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 28 * in which case the provisions of the GPL or the LGPL are applicable instead 29 * of those above. If you wish to allow use of your version of this file only 30 * under the terms of either the GPL or the LGPL, and not to allow others to 31 * use your version of this file under the terms of the MPL, indicate your 32 * decision by deleting the provisions above and replace them with the notice 33 * and other provisions required by the GPL or the LGPL. If you do not delete 34 * the provisions above, a recipient may use your version of this file under 35 * the terms of any one of the MPL, the GPL or the LGPL. 36 * 37 * In addition, as a special exception to the GNU GPL, the copyright holders 38 * give permission to link the code of this program with the Motif and Open 39 * Motif libraries (or with modified versions of these that use the same 40 * license), and distribute linked combinations including the two. You 41 * must obey the GNU General Public License in all respects for all of 42 * the code used other than linking with Motif/Open Motif. If you modify 43 * this file, you may extend this exception to your version of the file, 44 * but you are not obligated to do so. If you do not wish to do so, 45 * delete this exception statement from your version. 46 * 47 * ***** END LICENSE BLOCK ***** */ 48 49 50 51 module uil1 52 version = 'v1.0' 53 names = case_sensitive 54 55 include file 'XmL/XmL.uih'; 56 57 value 58 grey : color('#C0C0C0', background); 59 lightGrey : color('#E0E0E0', background); 60 black : color('#000000', foreground); 61 white : color('#FFFFFF', background); 62 darkBlue : color('#000080', foreground); 63 64 object shellForm : 65 XmForm { 66 arguments { 67 XmNbackground = grey; 68 XmNmarginWidth = 10; 69 XmNmarginHeight = 10; 70 XmNshadowThickness = 0; 71 }; 72 controls { 73 user_defined folder; 74 }; 75 }; 76 77 object folder : 78 user_defined procedure XmLCreateFolder { 79 arguments { 80 XmNbackground = grey; 81 XmNforeground = black; 82 XmNtabsPerRow = 2; 83 XmNtopAttachment = XmATTACH_FORM; 84 XmNbottomAttachment = XmATTACH_FORM; 85 XmNleftAttachment = XmATTACH_FORM; 86 XmNrightAttachment = XmATTACH_FORM; 87 }; 88 controls { 89 XmDrawnButton tabOne; 90 XmDrawnButton tabTwo; 91 XmDrawnButton tabThree; 92 XmDrawnButton tabFour; 93 XmForm folderForm; 94 }; 95 }; 96 97 object tabOne: 98 XmDrawnButton { 99 arguments { 100 XmNlabelString = compound_string('Configuration'); 101 }; 102 }; 103 104 object tabTwo: 105 XmDrawnButton { 106 arguments { 107 XmNlabelString = compound_string('Settings'); 108 }; 109 }; 110 111 object tabThree: 112 XmDrawnButton { 113 arguments { 114 XmNlabelString = compound_string('Resources'); 115 }; 116 }; 117 118 object tabFour: 119 XmDrawnButton { 120 arguments { 121 XmNlabelString = compound_string('Hardware Types'); 122 }; 123 }; 124 125 object folderForm : 126 XmForm { 127 arguments { 128 XmNbackground = grey; 129 XmNhorizontalSpacing = 10; 130 XmNverticalSpacing = 10; 131 }; 132 controls { 133 user_defined tree; 134 user_defined grid; 135 user_defined progress; 136 }; 137 }; 138 139 object tree : 140 user_defined procedure XmLCreateTree { 141 arguments { 142 XmNbackground = grey; 143 XmNforeground = black; 144 XmNleftAttachment = XmATTACH_FORM; 145 XmNrightAttachment = XmATTACH_FORM; 146 XmNtopAttachment = XmATTACH_FORM; 147 XmNbottomAttachment = XmATTACH_POSITION; 148 XmNbottomPosition = 25; 149 }; 150 }; 151 152 object grid : 153 user_defined procedure XmLCreateGrid { 154 arguments { 155 XmNbackground = grey; 156 XmNforeground = black; 157 XmNselectBackground = darkBlue; 158 XmNselectForeground = white; 159 XmNleftAttachment = XmATTACH_FORM; 160 XmNrightAttachment = XmATTACH_FORM; 161 XmNtopAttachment = XmATTACH_POSITION; 162 XmNtopPosition = 30; 163 XmNbottomAttachment = XmATTACH_POSITION; 164 XmNbottomPosition = 80; 165 XmNcolumns = 5; 166 XmNheadingRows = 1; 167 XmNsimpleHeadings = "Name|Width|Height|X|Y"; 168 XmNsimpleWidths = "20c 10c 10c 8c 8c"; 169 XmNrows = 20; 170 XmNleftFixedCount = 1; 171 }; 172 }; 173 174 object progress : 175 user_defined procedure XmLCreateProgress { 176 arguments { 177 XmNtopShadowColor = lightGrey; 178 XmNbottomShadowColor = black; 179 XmNbackground = white; 180 XmNforeground = darkBlue; 181 XmNleftAttachment = XmATTACH_FORM; 182 XmNrightAttachment = XmATTACH_FORM; 183 XmNtopAttachment = XmATTACH_POSITION; 184 XmNtopPosition = 85; 185 XmNheight = 20; 186 XmNshadowThickness = 1; 187 XmNmeterStyle = MeterBoxes; 188 XmNnumBoxes = 20; 189 XmNvalue = 70; 190 XmNcompleteValue = 200; 191 }; 192 }; 193 194 end module; 195