xref: /aoo41x/main/sc/source/ui/src/optsolver.src (revision 5a2a13f2)
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 "optsolver.hrc"
25
26ModelessDialog RID_SCDLG_OPTSOLVER
27{
28	OutputSize = TRUE ;
29	HelpId = CMD_SID_OPENDLG_OPTSOLVER ;
30	Hide = TRUE ;
31	SVLook = TRUE ;
32	Size = MAP_APPFONT ( 250, 210 ) ;
33	Text [ en-US ] = "Solver" ;
34	Moveable = TRUE ;
35	Closeable = FALSE ;
36
37	FixedText FT_OBJECTIVECELL
38	{
39		Pos = MAP_APPFONT ( 6, 8 ) ;
40		Size = MAP_APPFONT ( 86, 8 ) ;
41		Text [ en-US ] = "Target cell" ;
42	};
43	Edit ED_OBJECTIVECELL
44	{
45		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_OBJECTIVECELL" ;
46		Border = TRUE ;
47		Pos = MAP_APPFONT ( 94, 6 ) ;
48		Size = MAP_APPFONT ( 135, 12 ) ;
49		TabStop = TRUE ;
50	};
51	ImageButton IB_OBJECTIVECELL
52	{
53		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_OBJECTIVECELL" ;
54		Pos = MAP_APPFONT ( 231, 5 ) ;
55		Size = MAP_APPFONT ( 13, 15 ) ;
56		TabStop = FALSE ;
57		QuickHelpText [ en-US ] = "Shrink" ;
58	};
59
60	FixedText FT_DIRECTION
61	{
62		Pos = MAP_APPFONT ( 6, 24 ) ;
63		Size = MAP_APPFONT ( 86, 8 ) ;
64		Text [ en-US ] = "Optimize result to" ;
65	};
66	RadioButton RB_MAX
67	{
68		HelpID = "sc:RadioButton:RID_SCDLG_OPTSOLVER:RB_MAX" ;
69		Pos = MAP_APPFONT ( 94, 24 ) ;
70		Size = MAP_APPFONT ( 50, 10 ) ;
71		Text [ en-US ] = "Maximum" ;
72		TabStop = TRUE ;
73	};
74	RadioButton RB_MIN
75	{
76		HelpID = "sc:RadioButton:RID_SCDLG_OPTSOLVER:RB_MIN" ;
77		Pos = MAP_APPFONT ( 94, 38 ) ;
78		Size = MAP_APPFONT ( 50, 10 ) ;
79		Text [ en-US ] = "Minimum" ;
80		TabStop = TRUE ;
81	};
82	RadioButton RB_VALUE
83	{
84		HelpID = "sc:RadioButton:RID_SCDLG_OPTSOLVER:RB_VALUE" ;
85		Pos = MAP_APPFONT ( 94, 52 ) ;
86		Size = MAP_APPFONT ( 42, 10 ) ;
87		Text [ en-US ] = "Value" ;
88		TabStop = TRUE ;
89	};
90	Edit ED_TARGET
91	{
92		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_TARGET" ;
93		Border = TRUE ;
94		Pos = MAP_APPFONT ( 138, 50 ) ;
95		Size = MAP_APPFONT ( 91, 12 ) ;
96		TabStop = TRUE ;
97	};
98	ImageButton IB_TARGET
99	{
100		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_TARGET" ;
101		Pos = MAP_APPFONT ( 231, 49 ) ;
102		Size = MAP_APPFONT ( 13, 15 ) ;
103		TabStop = FALSE ;
104		QuickHelpText [ en-US ] = "Shrink" ;
105	};
106
107	FixedText FT_VARIABLECELLS
108	{
109		Pos = MAP_APPFONT ( 6, 68 ) ;
110		Size = MAP_APPFONT ( 86, 8 ) ;
111		Text [ en-US ] = "By changing cells" ;
112	};
113	Edit ED_VARIABLECELLS
114	{
115		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_VARIABLECELLS" ;
116		Border = TRUE ;
117		Pos = MAP_APPFONT ( 94, 66 ) ;
118		Size = MAP_APPFONT ( 135, 12 ) ;
119		TabStop = TRUE ;
120	};
121	ImageButton IB_VARIABLECELLS
122	{
123		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_VARIABLECELLS" ;
124		Pos = MAP_APPFONT ( 231, 65 ) ;
125		Size = MAP_APPFONT ( 13, 15 ) ;
126		TabStop = FALSE ;
127		QuickHelpText [ en-US ] = "Shrink" ;
128	};
129
130	FixedLine FL_CONDITIONS
131	{
132		Pos = MAP_APPFONT ( 6, 88 ) ;
133		Size = MAP_APPFONT ( 241, 8 ) ;
134		Text [ en-US ] = "Limiting conditions" ;
135	};
136
137	FixedText FT_CELLREF
138	{
139		Pos = MAP_APPFONT ( 12, 102 ) ;
140		Size = MAP_APPFONT ( 78, 8 ) ;
141		Text [ en-US ] = "Cell reference" ;
142	};
143	FixedText FT_OPERATOR
144	{
145		Pos = MAP_APPFONT ( 94, 102 ) ;
146		Size = MAP_APPFONT ( 40, 8 ) ;
147		Text [ en-US ] = "Operator" ;
148	};
149	FixedText FT_CONSTRAINT
150	{
151		Pos = MAP_APPFONT ( 138, 102 ) ;
152		Size = MAP_APPFONT ( 78, 8 ) ;
153		Text [ en-US ] = "Value" ;
154	};
155
156	Edit ED_LEFT1
157	{
158		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_LEFT1" ;
159		Border = TRUE ;
160		Pos = MAP_APPFONT ( 12, 114 ) ;
161		Size = MAP_APPFONT ( 63, 12 ) ;
162		TabStop = TRUE ;
163	};
164	ImageButton IB_LEFT1
165	{
166		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_LEFT1" ;
167		Pos = MAP_APPFONT ( 77, 113 ) ;
168		Size = MAP_APPFONT ( 13, 15 ) ;
169		TabStop = FALSE ;
170		QuickHelpText [ en-US ] = "Shrink" ;
171	};
172	ListBox LB_OP1
173	{
174		HelpID = "sc:ListBox:RID_SCDLG_OPTSOLVER:LB_OP1" ;
175		Border = TRUE ;
176		Pos = MAP_APPFONT ( 94, 114 ) ;
177		Size = MAP_APPFONT ( 40, 56 ) ;
178		TabStop = TRUE ;
179		DropDown = TRUE ;
180		StringList [ en-US ] =
181		{
182			< "<=" ; Default ;		> ;
183			< "=" ; Default ;		> ;
184			< ">=" ; Default ;		> ;
185			< "Integer" ; Default ;	> ;
186			< "Binary" ; Default ;	> ;
187		};
188	};
189	Edit ED_RIGHT1
190	{
191		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_RIGHT1" ;
192		Border = TRUE ;
193		Pos = MAP_APPFONT ( 138, 114 ) ;
194		Size = MAP_APPFONT ( 63, 12 ) ;
195		TabStop = TRUE ;
196	};
197	ImageButton IB_RIGHT1
198	{
199		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_RIGHT1" ;
200		Pos = MAP_APPFONT ( 203, 113 ) ;
201		Size = MAP_APPFONT ( 13, 15 ) ;
202		TabStop = FALSE ;
203		QuickHelpText [ en-US ] = "Shrink" ;
204	};
205	ImageButton IB_DELETE1
206	{
207		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_DELETE1" ;
208		Pos = MAP_APPFONT ( 219, 113 ) ;
209		Size = MAP_APPFONT ( 13, 15 ) ;
210		TabStop = TRUE ;
211		QuickHelpText [ en-US ] = "Remove" ;
212		// image is set dynamically
213	};
214
215	Edit ED_LEFT2
216	{
217		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_LEFT2" ;
218		Border = TRUE ;
219		Pos = MAP_APPFONT ( 12, 129 ) ;
220		Size = MAP_APPFONT ( 63, 12 ) ;
221		TabStop = TRUE ;
222	};
223	ImageButton IB_LEFT2
224	{
225		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_LEFT2" ;
226		Pos = MAP_APPFONT ( 77, 128 ) ;
227		Size = MAP_APPFONT ( 13, 15 ) ;
228		TabStop = FALSE ;
229		QuickHelpText [ en-US ] = "Shrink" ;
230	};
231	ListBox LB_OP2
232	{
233		HelpID = "sc:ListBox:RID_SCDLG_OPTSOLVER:LB_OP2" ;
234		Border = TRUE ;
235		Pos = MAP_APPFONT ( 94, 129 ) ;
236		Size = MAP_APPFONT ( 40, 56 ) ;
237		TabStop = TRUE ;
238		DropDown = TRUE ;
239		StringList [ en-US ] =
240		{
241			< "<=" ; Default ;		> ;
242			< "=" ; Default ;		> ;
243			< ">=" ; Default ;		> ;
244			< "Integer" ; Default ;	> ;
245			< "Binary" ; Default ;	> ;
246		};
247	};
248	Edit ED_RIGHT2
249	{
250		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_RIGHT2" ;
251		Border = TRUE ;
252		Pos = MAP_APPFONT ( 138, 129 ) ;
253		Size = MAP_APPFONT ( 63, 12 ) ;
254		TabStop = TRUE ;
255	};
256	ImageButton IB_RIGHT2
257	{
258		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_RIGHT2" ;
259		Pos = MAP_APPFONT ( 203, 128 ) ;
260		Size = MAP_APPFONT ( 13, 15 ) ;
261		TabStop = FALSE ;
262		QuickHelpText [ en-US ] = "Shrink" ;
263	};
264	ImageButton IB_DELETE2
265	{
266		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_DELETE2" ;
267		Pos = MAP_APPFONT ( 219, 128 ) ;
268		Size = MAP_APPFONT ( 13, 15 ) ;
269		TabStop = TRUE ;
270		QuickHelpText [ en-US ] = "Remove" ;
271		// image is set dynamically
272	};
273
274	Edit ED_LEFT3
275	{
276		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_LEFT3" ;
277		Border = TRUE ;
278		Pos = MAP_APPFONT ( 12, 144 ) ;
279		Size = MAP_APPFONT ( 63, 12 ) ;
280		TabStop = TRUE ;
281	};
282	ImageButton IB_LEFT3
283	{
284		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_LEFT3" ;
285		Pos = MAP_APPFONT ( 77, 143 ) ;
286		Size = MAP_APPFONT ( 13, 15 ) ;
287		TabStop = FALSE ;
288		QuickHelpText [ en-US ] = "Shrink" ;
289	};
290	ListBox LB_OP3
291	{
292		HelpID = "sc:ListBox:RID_SCDLG_OPTSOLVER:LB_OP3" ;
293		Border = TRUE ;
294		Pos = MAP_APPFONT ( 94, 144 ) ;
295		Size = MAP_APPFONT ( 40, 56 ) ;
296		TabStop = TRUE ;
297		DropDown = TRUE ;
298		StringList [ en-US ] =
299		{
300			< "<=" ; Default ;		> ;
301			< "=" ; Default ;		> ;
302			< ">=" ; Default ;		> ;
303			< "Integer" ; Default ;	> ;
304			< "Binary" ; Default ;	> ;
305		};
306	};
307	Edit ED_RIGHT3
308	{
309		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_RIGHT3" ;
310		Border = TRUE ;
311		Pos = MAP_APPFONT ( 138, 144 ) ;
312		Size = MAP_APPFONT ( 63, 12 ) ;
313		TabStop = TRUE ;
314	};
315	ImageButton IB_RIGHT3
316	{
317		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_RIGHT3" ;
318		Pos = MAP_APPFONT ( 203, 143 ) ;
319		Size = MAP_APPFONT ( 13, 15 ) ;
320		TabStop = FALSE ;
321		QuickHelpText [ en-US ] = "Shrink" ;
322	};
323	ImageButton IB_DELETE3
324	{
325		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_DELETE3" ;
326		Pos = MAP_APPFONT ( 219, 143 ) ;
327		Size = MAP_APPFONT ( 13, 15 ) ;
328		TabStop = TRUE ;
329		QuickHelpText [ en-US ] = "Remove" ;
330		// image is set dynamically
331	};
332
333	Edit ED_LEFT4
334	{
335		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_LEFT4" ;
336		Border = TRUE ;
337		Pos = MAP_APPFONT ( 12, 159 ) ;
338		Size = MAP_APPFONT ( 63, 12 ) ;
339		TabStop = TRUE ;
340	};
341	ImageButton IB_LEFT4
342	{
343		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_LEFT4" ;
344		Pos = MAP_APPFONT ( 77, 158 ) ;
345		Size = MAP_APPFONT ( 13, 15 ) ;
346		TabStop = FALSE ;
347		QuickHelpText [ en-US ] = "Shrink" ;
348	};
349	ListBox LB_OP4
350	{
351		HelpID = "sc:ListBox:RID_SCDLG_OPTSOLVER:LB_OP4" ;
352		Border = TRUE ;
353		Pos = MAP_APPFONT ( 94, 159 ) ;
354		Size = MAP_APPFONT ( 40, 56 ) ;
355		TabStop = TRUE ;
356		DropDown = TRUE ;
357		StringList [ en-US ] =
358		{
359			< "<=" ; Default ;		> ;
360			< "=" ; Default ;		> ;
361			< ">=" ; Default ;		> ;
362			< "Integer" ; Default ;	> ;
363			< "Binary" ; Default ;	> ;
364		};
365	};
366	Edit ED_RIGHT4
367	{
368		HelpID = "sc:Edit:RID_SCDLG_OPTSOLVER:ED_RIGHT4" ;
369		Border = TRUE ;
370		Pos = MAP_APPFONT ( 138, 159 ) ;
371		Size = MAP_APPFONT ( 63, 12 ) ;
372		TabStop = TRUE ;
373	};
374	ImageButton IB_RIGHT4
375	{
376		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_RIGHT4" ;
377		Pos = MAP_APPFONT ( 203, 158 ) ;
378		Size = MAP_APPFONT ( 13, 15 ) ;
379		TabStop = FALSE ;
380		QuickHelpText [ en-US ] = "Shrink" ;
381	};
382	ImageButton IB_DELETE4
383	{
384		HelpID = "sc:ImageButton:RID_SCDLG_OPTSOLVER:IB_DELETE4" ;
385		Pos = MAP_APPFONT ( 219, 158 ) ;
386		Size = MAP_APPFONT ( 13, 15 ) ;
387		TabStop = TRUE ;
388		QuickHelpText [ en-US ] = "Remove" ;
389		// image is set dynamically
390	};
391
392	ScrollBar SB_SCROLL
393	{
394		Pos = MAP_APPFONT ( 236, 113 ) ;
395		Size = MAP_APPFONT ( 8, 59 ) ;
396		VScroll = TRUE ;
397	};
398
399	FixedLine FL_BUTTONS
400	{
401		Pos = MAP_APPFONT ( 0, 179 ) ;
402		Size = MAP_APPFONT ( 250, 8 ) ;
403	};
404
405	PushButton BTN_OPTIONS
406	{
407		HelpID = "sc:PushButton:RID_SCDLG_OPTSOLVER:BTN_OPTIONS" ;
408		Pos = MAP_APPFONT ( 6, 190 ) ;
409		Size = MAP_APPFONT ( 55, 14 ) ;
410		TabStop = TRUE ;
411		Text [ en-US ] = "Options..." ;
412	};
413	HelpButton BTN_HELP
414	{
415		Pos = MAP_APPFONT ( 67, 190 ) ;
416		Size = MAP_APPFONT ( 55, 14 ) ;
417		TabStop = TRUE ;
418	};
419	CancelButton BTN_CLOSE
420	{
421		Pos = MAP_APPFONT ( 128, 190 ) ;
422		Size = MAP_APPFONT ( 55, 14 ) ;
423		TabStop = TRUE ;
424		Text [ en-US ] = "Close" ;
425	};
426	PushButton BTN_SOLVE
427	{
428		HelpID = "sc:PushButton:RID_SCDLG_OPTSOLVER:BTN_SOLVE" ;
429		Pos = MAP_APPFONT ( 189, 190 ) ;
430		Size = MAP_APPFONT ( 55, 14 ) ;
431		TabStop = TRUE ;
432		Text [ en-US ] = "Solve" ;
433		DefButton = TRUE ;
434	};
435
436	// IMG_DEL_H not used - image is set dynamically
437
438	String STR_INVALIDINPUT
439	{
440		Text [ en-US ] = "Invalid input." ;
441	};
442	String STR_INVALIDCONDITION
443	{
444		Text [ en-US ] = "Invalid condition." ;
445	};
446};
447
448
449ModelessDialog RID_SCDLG_SOLVER_PROGRESS
450{
451	OutputSize = TRUE ;
452	HelpId = HID_SC_SOLVER_PROGRESS ;
453	SVLook = TRUE ;
454	Size = MAP_APPFONT ( 118, 72 ) ;
455	Moveable = TRUE ;
456	Closeable = FALSE ;
457	FixedText FT_PROGRESS
458	{
459		Pos = MAP_APPFONT ( 6, 11 ) ;
460		Size = MAP_APPFONT ( 106, 8 ) ;
461		Center = TRUE ;
462		Text [ en-US ] = "Solving in progress..." ;
463	};
464	FixedText FT_TIMELIMIT
465	{
466		Pos = MAP_APPFONT ( 6, 25 ) ;
467		Size = MAP_APPFONT ( 106, 8 ) ;
468		Center = TRUE ;
469		Text [ en-US ] = "(time limit # seconds)" ;
470	};
471	FixedLine FL_BUTTONS
472	{
473		Pos = MAP_APPFONT ( 0, 41 ) ;
474		Size = MAP_APPFONT ( 118, 8 ) ;
475	};
476	OKButton BTN_OK
477	{
478		Pos = MAP_APPFONT ( 34, 52 ) ;
479		Size = MAP_APPFONT ( 50, 14 ) ;
480		TabStop = TRUE ;
481		DefButton = TRUE ;
482	};
483	Text [ en-US ] = "Solving..." ;
484};
485
486
487ModalDialog RID_SCDLG_SOLVER_NOSOLUTION
488{
489	OutputSize = TRUE ;
490	HelpId = HID_SC_SOLVER_NOSOLUTION ;
491	SVLook = TRUE ;
492	Size = MAP_APPFONT ( 118, 72 ) ;
493	Moveable = TRUE ;
494	FixedText FT_NOSOLUTION
495	{
496		Pos = MAP_APPFONT ( 6, 8 ) ;
497		Size = MAP_APPFONT ( 106, 8 ) ;
498		Text [ en-US ] = "No solution was found." ;
499	};
500	FixedText FT_ERRORTEXT
501	{
502		Pos = MAP_APPFONT ( 6, 22 ) ;
503		Size = MAP_APPFONT ( 106, 16 ) ;
504		WordBreak = TRUE ;
505		// text is dynamic
506	};
507	FixedLine FL_BUTTONS
508	{
509		Pos = MAP_APPFONT ( 0, 41 ) ;
510		Size = MAP_APPFONT ( 118, 8 ) ;
511	};
512	OKButton BTN_OK
513	{
514		Pos = MAP_APPFONT ( 34, 52 ) ;
515		Size = MAP_APPFONT ( 50, 14 ) ;
516		TabStop = TRUE ;
517		DefButton = TRUE ;
518	};
519	Text [ en-US ] = "No Solution" ;
520};
521
522
523ModalDialog RID_SCDLG_SOLVER_SUCCESS
524{
525	OutputSize = TRUE ;
526	HelpId = HID_SC_SOLVER_SUCCESS ;
527	SVLook = TRUE ;
528	Size = MAP_APPFONT ( 138, 89 ) ;
529	Moveable = TRUE ;
530	FixedText FT_SUCCESS
531	{
532		Pos = MAP_APPFONT ( 6, 8 ) ;
533		Size = MAP_APPFONT ( 126, 8 ) ;
534		Text [ en-US ] = "Solving successfully finished." ;
535	};
536	FixedText FT_RESULT
537	{
538		Pos = MAP_APPFONT ( 6, 22 ) ;
539		Size = MAP_APPFONT ( 126, 8 ) ;
540		Text [ en-US ] = "Result:" ;
541	};
542	FixedText FT_QUESTION
543	{
544		Pos = MAP_APPFONT ( 6, 36 ) ;
545		Size = MAP_APPFONT ( 126, 16 ) ;
546		WordBreak = TRUE ;
547		Text [ en-US ] = "Do you want to keep the result or do you want to restore previous values?" ;
548	};
549	FixedLine FL_BUTTONS
550	{
551		Pos = MAP_APPFONT ( 0, 58 ) ;
552		Size = MAP_APPFONT ( 138, 8 ) ;
553	};
554	OKButton BTN_OK
555	{
556		Pos = MAP_APPFONT ( 6, 69 ) ;
557		Size = MAP_APPFONT ( 60, 14 ) ;
558		TabStop = TRUE ;
559		DefButton = TRUE ;
560		Text [ en-US ] = "Keep Result" ;
561	};
562	CancelButton BTN_CANCEL
563	{
564		Pos = MAP_APPFONT ( 72, 69 ) ;
565		Size = MAP_APPFONT ( 60, 14 ) ;
566		TabStop = TRUE ;
567		Text [ en-US ] = "Restore Previous" ;
568	};
569	Text [ en-US ] = "Solving Result" ;
570};
571
572// ********************************************************************** EOF
573