~ubuntu-branches/ubuntu/utopic/gridengine/utopic

« back to all changes in this revision

Viewing changes to source/clients/qmon/qmon_sconf.ad

  • Committer: Bazaar Package Importer
  • Author(s): Mark Hymers
  • Date: 2008-06-25 22:36:13 UTC
  • Revision ID: james.westby@ubuntu.com-20080625223613-tvd9xlhuoct9kyhm
Tags: upstream-6.2~beta2
ImportĀ upstreamĀ versionĀ 6.2~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
!!___INFO__MARK_BEGIN__
 
2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
3
!!
 
4
!!  The Contents of this file are made available subject to the terms of
 
5
!!  the Sun Industry Standards Source License Version 1.2
 
6
!!
 
7
!!  Sun Microsystems Inc., March, 2001
 
8
!!
 
9
!!
 
10
!!  Sun Industry Standards Source License Version 1.2
 
11
!!  =================================================
 
12
!!  The contents of this file are subject to the Sun Industry Standards
 
13
!!  Source License Version 1.2 (the "License"); You may not use this file
 
14
!!  except in compliance with the License. You may obtain a copy of the
 
15
!!  License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
 
16
!!
 
17
!!  Software provided under this License is provided on an "AS IS" basis,
 
18
!!  WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
 
19
!!  WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
 
20
!!  MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
 
21
!!  See the License for the specific provisions governing your rights and
 
22
!!  obligations concerning the Software.
 
23
!!
 
24
!!  The Initial Developer of the Original Code is: Sun Microsystems, Inc.
 
25
!!
 
26
!!  Copyright: 2001 by Sun Microsystems, Inc.
 
27
!!
 
28
!!  All Rights Reserved.
 
29
!!
 
30
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
31
!!___INFO__MARK_END__
 
32
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
33
!! Scheduler Configuration 
 
34
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
35
Qmon*sconf_shell.allowShellResize:      True
 
36
Qmon*sconf_shell.resizePolicy:          RESIZE_ANY
 
37
Qmon*sconf_shell.xmtChildren:  unmanaged XmtLayout sconf;
 
38
 
 
39
Qmon*sconf.autoUnmanage:    False
 
40
Qmon*sconf.dialogTitle:  @{QMON +++ Scheduler Configuration}
 
41
 
 
42
Qmon*sconf.xmtChildren: \
 
43
      XmPushButton      sconf_ok, sconf_cancel, sconf_help, sconf_main_link; \
 
44
      Folder            sconf_folder;
 
45
 
 
46
Qmon*sconf.layout: \
 
47
   Fixed Shadowed Out 4 2 LREvenSpaced Row sconfcontrol_title { \
 
48
      Fixed Centered sconf_main_link \
 
49
      Centered Color "$title_fg" "@{@fBScheduler Configuration}" \
 
50
   } \
 
51
   # \
 
52
   Row { \
 
53
      sconf_folder \
 
54
      Fixed Shadowed Col { \
 
55
         Fixed sconf_ok \
 
56
         Fixed sconf_cancel \
 
57
         Fixed sconf_help \
 
58
      } \
 
59
   }
 
60
 
 
61
Qmon*sconf.sconf_ok.labelString:            @{Ok}
 
62
Qmon*sconf.sconf_cancel.labelString:        @{Cancel}
 
63
Qmon*sconf.sconf_help.labelString:          @{Help}
 
64
 
 
65
Qmon*sconf*sconf_main_link.labelType:          PIXMAP
 
66
Qmon*sconf*sconf_main_link.labelPixmap:        logo
 
67
Qmon*sconf*sconf_main_link.shadowThickness:    1
 
68
Qmon*sconf*sconf_main_link.highlightThickness: 0
 
69
Qmon*sconf*sconf_main_link.marginHeight:       0
 
70
Qmon*sconf*sconf_main_link.marginWidth:        0
 
71
 
 
72
Qmon*sconf.sconf_folder.xmtChildren: \
 
73
   XmtLayout   sconf_general, \
 
74
               sconf_special;
 
75
 
 
76
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
77
!! General Parameters 
 
78
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
79
Qmon*sconf_general.tabLabel:  @{@fBGeneral Parameters}
 
80
Qmon*XmtInputField.marginWidth:      2
 
81
Qmon*XmtInputField.marginHeight:     2
 
82
 
 
83
Qmon*sconf_general.xmtChildren: \
 
84
   InputField     sconf_algorithm = algorithm, \
 
85
                  sconf_schedule_interval = schedule_interval, \
 
86
                  sconf_sc_params = sc_params, \
 
87
                  sconf_reprioritize_interval = reprioritize_interval, \
 
88
                  sconf_default_duration = default_duration, \
 
89
                  sconf_maxujobs = maxujobs, \
 
90
                  sconf_job_range, \
 
91
                  sconf_load_formula = load_formula; \
 
92
   XmtChooser     sconf_queue_sort_method = queue_sort_method; \
 
93
   XmtChooser     sconf_job_info; \
 
94
   Spinbox        sconf_flush_submit_secs = flush_submit_secs, \
 
95
                  sconf_flush_finish_secs = flush_finish_secs, \
 
96
                  sconf_max_reservation = max_reservation; \
 
97
   XmPushButton   sconf_schedule_intervalPB, sconf_reprioritize_intervalPB, \
 
98
                  sconf_default_durationPB;
 
99
 
 
100
 
 
101
Qmon*sconf_general.layout: \
 
102
   Row { \
 
103
      Col { \
 
104
         Fixed Caption tl "@{@fBAlgorithm}" sconf_algorithm \
 
105
         Row { \
 
106
            Fixed Centered Caption tl "@{@fBSchedule Interval}" \
 
107
                  12 em sconf_schedule_interval \
 
108
            Fixed FlushBottom sconf_schedule_intervalPB \
 
109
            <> \
 
110
         } \
 
111
         Row { \
 
112
            Fixed Centered Caption tl "@{@fBReprioritize Interval}" \
 
113
                  12 em sconf_reprioritize_interval \
 
114
            Fixed FlushBottom sconf_reprioritize_intervalPB \
 
115
            <> \
 
116
         } \
 
117
         Row { \
 
118
            Fixed Centered Caption tl "@{@fBDefault Duration}" \
 
119
                  12 em sconf_default_duration \
 
120
            Fixed FlushBottom sconf_default_durationPB \
 
121
            <> \
 
122
         } \
 
123
         Equal LCREven Row { \
 
124
            Fixed Centered Caption tl "@{@fBMax Jobs/User}" sconf_maxujobs \
 
125
            <> \
 
126
         } \
 
127
         Equal LCREven Row { \
 
128
            Fixed Centered sconf_queue_sort_method \
 
129
            <> \
 
130
         } \
 
131
         Caption tl "@{@fBJob Scheduling Information}" Row { \
 
132
            Fixed Centered sconf_job_info \
 
133
            Centered sconf_job_range \
 
134
         } \
 
135
         Fixed Caption tl "@{@fBLoad Formula}" sconf_load_formula \
 
136
         Fixed Caption tl "@{@fBFlush Submit Seconds}" sconf_flush_submit_secs \
 
137
         Fixed Caption tl "@{@fBFlush Finish Seconds}" sconf_flush_finish_secs \
 
138
         Fixed Caption tl "@{@fBMaximum Reservation}" sconf_max_reservation \
 
139
         Fixed Caption tl "@{@fBParams}" sconf_sc_params \
 
140
      } \
 
141
   }
 
142
 
 
143
!Qmon*sconf_general*sconf_schedule_interval.columns:           25
 
144
!Qmon*sconf_general*sconf_reprioritize_interval.columns:       25
 
145
!Qmon*sconf_general*sconf_load_formula.columns:                25
 
146
!Qmon*sconf_general*sconf_algorithm.columns:                   25
 
147
 
 
148
Qmon*sconf_general*sconf_schedule_intervalPB.labelType:        PIXMAP
 
149
Qmon*sconf_general*sconf_schedule_intervalPB.labelPixmap:      time
 
150
Qmon*sconf_general*sconf_reprioritize_intervalPB.labelType:    PIXMAP
 
151
Qmon*sconf_general*sconf_reprioritize_intervalPB.labelPixmap:  time
 
152
Qmon*sconf_general*sconf_default_durationPB.labelType:         PIXMAP
 
153
Qmon*sconf_general*sconf_default_durationPB.labelPixmap:       time
 
154
 
 
155
 
 
156
Qmon*sconf_general*sconf_flush_submit_secs.minimum: 0
 
157
Qmon*sconf_general*sconf_flush_submit_secs.spinboxStyle: SPINBOX_STACKED_RIGHT
 
158
Qmon*sconf_general*sconf_flush_submit_secs.buttonSizeFixed: True
 
159
Qmon*sconf_general*sconf_flush_submit_secs.columns: 5
 
160
Qmon*sconf_general*sconf_flush_submit_secs.spinboxUseClosestValue: True
 
161
Qmon*sconf_general*sconf_flush_submit_secs.value: 0
 
162
Qmon*sconf_general*sconf_flush_submit_secs.incrementLarge: 10
 
163
 
 
164
Qmon*sconf_general*sconf_flush_finish_secs.minimum: 0
 
165
Qmon*sconf_general*sconf_flush_finish_secs.spinboxStyle: SPINBOX_STACKED_RIGHT
 
166
Qmon*sconf_general*sconf_flush_finish_secs.buttonSizeFixed: True
 
167
Qmon*sconf_general*sconf_flush_finish_secs.columns: 5
 
168
Qmon*sconf_general*sconf_flush_finish_secs.spinboxUseClosestValue: True
 
169
Qmon*sconf_general*sconf_flush_finish_secs.value: 0
 
170
Qmon*sconf_general*sconf_flush_finish_secs.incrementLarge: 10
 
171
 
 
172
Qmon*sconf_general*sconf_max_reservation.minimum: 0
 
173
Qmon*sconf_general*sconf_max_reservation.spinboxStyle: SPINBOX_STACKED_RIGHT
 
174
Qmon*sconf_general*sconf_max_reservation.buttonSizeFixed: True
 
175
Qmon*sconf_general*sconf_max_reservation.columns: 5
 
176
Qmon*sconf_general*sconf_max_reservation.spinboxUseClosestValue: True
 
177
Qmon*sconf_general*sconf_max_reservation.value: 0
 
178
Qmon*sconf_general*sconf_max_reservation.incrementLarge: 10
 
179
 
 
180
Qmon*sconf_general*sconf_queue_sort_method.chooserType: ChooserOption
 
181
Qmon*sconf_general*sconf_queue_sort_method.strings: \
 
182
   "@{Sort by load}", \
 
183
   "@{Sort by sequence number}"
 
184
 
 
185
Qmon*sconf_general*sconf_job_info.chooserType: ChooserOption
 
186
Qmon*sconf_general*sconf_job_info.strings: \
 
187
   "@{False}", \
 
188
   "@{True}", \
 
189
   "@{Job Range}"
 
190
 
 
191
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
192
!! Special Parameters 
 
193
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
194
Qmon*sconf_special.tabLabel:  @{@fBLoad Adjustment}
 
195
Qmon*sconf_special.xmtChildren: \
 
196
   Matrix_2xN     sconf_load_adjustments = job_load_adjustments; \
 
197
   InputField     sconf_lad_time = load_adjustment_decay_time; \
 
198
   XmPushButton   sconf_lad_timePB;
 
199
 
 
200
Qmon*sconf_special.layout: \
 
201
   Fixed Caption tl "@{@fBDecay Time}" Row { \
 
202
      Fixed Centered 12 em sconf_lad_time \
 
203
      FlushBottom sconf_lad_timePB \
 
204
      <> \
 
205
   } \
 
206
   <> \
 
207
   sconf_load_adjustments \
 
208
   <>
 
209
 
 
210
Qmon*sconf_special*sconf_lad_timePB.labelType:          PIXMAP
 
211
Qmon*sconf_special*sconf_lad_timePB.labelPixmap:        time
 
212
Qmon*sconf_special*sconf_load_namePB.labelType:         PIXMAP
 
213
Qmon*sconf_special*sconf_load_namePB.labelPixmap:       qask
 
214
 
 
215
 
 
216
Qmon*sconf_special*sconf_load_adjustments.buttonLabels: True
 
217
Qmon*sconf_special*sconf_load_adjustments.rows: 20
 
218
Qmon*sconf_special*sconf_load_adjustments.visibleRows: 20
 
219
Qmon*sconf_special*sconf_load_adjustments.columns: 2
 
220
Qmon*sconf_special*sconf_load_adjustments.columnWidths: 15, 15
 
221
Qmon*sconf_special*sconf_load_adjustments.columnMaxLengths: 100, 100
 
222
Qmon*sconf_special*sconf_load_adjustments.columnLabels:       @{Load}, @{Value}
 
223
Qmon*sconf_special*sconf_load_adjustments.gridType:          GRID_CELL_SHADOW
 
224
Qmon*sconf_special*sconf_load_adjustments.cellShadowType:     SHADOW_IN
 
225
Qmon*sconf_special*sconf_load_adjustments.cellShadowThickness: 1
 
226
Qmon*sconf_special*sconf_load_adjustments.translations: #override\n\
 
227
         Shift<Btn1Down>:  SelectCell(end)\n\
 
228
         Ctrl<Btn1Down>:  SelectCell(toggle)\n\
 
229
         <Btn1Down>:   SelectCell(begin)\n\
 
230
         Ctrl<Btn2Down>: ResizeColumns()\n\
 
231
         <Btn1Up>(2):      SelectCell(edit)
 
232
Qmon*sconf_special*sconf_load_adjustments.clip.translations: #override\n\
 
233
         Shift<Btn1Down>:  SelectCell(end)\n\
 
234
         Ctrl<Btn1Down>:  SelectCell(toggle)\n\
 
235
         <Btn1Down>:   SelectCell(begin)\n\
 
236
         Ctrl<Btn2Down>: ResizeColumns()\n\
 
237
         <Btn1Up>(2):      SelectCell(edit)
 
238
 
 
239
Qmon*sconf_special*sconf_load_adjustments.xmtChildren: unmanaged XmtPopupMenu sconf_menu;
 
240
Qmon*sconf_special*sconf_load_adjustments*sconf_menu.menuPost: <Btn3Down>
 
241
 
 
242
Qmon*sconf_special*sconf_load_adjustments*sconf_menu.items: \
 
243
   Title "@{@fBOperations}"; \
 
244
   ------;\
 
245
   "@{_Delete}" [Ctrl-D] DeleteLines(*sconf_load_adjustments);
 
246
 
 
247
Qmon*sconf_special*sconf_load_adjustments.enterCellCallback: \
 
248
      ColumnZeroNoEdit();
 
249
 
 
250
Qmon*sconf_help.activateCallback:   XmtHelpDisplayContextHelp(self);
 
251