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

« back to all changes in this revision

Viewing changes to source/clients/qmon/qmon_ticket.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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
34
Qmon*qmon_tov.xmtType:   TopLevelShell
 
35
Qmon*qmon_tov.allowShellResize: True
 
36
 
 
37
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
38
!! Ticket Overview Layout 
 
39
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
40
Qmon*tov_layout.autoUnmanage:   False
 
41
Qmon*tov_layout.dialogTitle:    @{QMON +++ Policy Configuration}
 
42
!Qmon*tov_layout.fontList:       $dialog_font
 
43
 
 
44
Qmon*tov_layout.xmtChildren: \
 
45
   XmPushButton      tov_main_link; \
 
46
   InputField        weight_deadline=weight_deadline, \
 
47
                     weight_urgency=weight_urgency, \
 
48
                     weight_priority=weight_priority, \
 
49
                     weight_ticket=weight_ticket, \
 
50
                     weight_waiting_time=weight_waiting_time, \
 
51
                     policy_hierarchy = policy_hierarchy; \
 
52
   Ulong32Field      share_tree_tickets_field = total_share_tree_tickets, \
 
53
                     functional_tickets_field = total_functional_tickets; \
 
54
   Label             share_tree_tickets_label = label_share_tree_tickets, \
 
55
                     functional_tickets_label = label_functional_tickets, \
 
56
                     override_tickets_label = override_tickets; \
 
57
   XmPushButton      tov_users_for_deadline, tov_share_tree_policy, \
 
58
                     tov_functional_policy, tov_override_policy, \
 
59
                     tov_done, tov_apply, tov_update, tov_help; \
 
60
   XmtMsgLine        tov_message;\
 
61
   XmToggleButton    share_override_ticket = share_override_ticket, \
 
62
                     report_pjob_tickets = report_pjob_tickets, \
 
63
                     share_functional_ticket = share_functional_ticket; \
 
64
   Spinbox           max_pending_tasks_per_job = max_pending_tasks_per_job, \
 
65
                     max_functional_jobs = max_functional_jobs;
 
66
 
 
67
Qmon*tov_layout.layout: \
 
68
   Fixed Shadowed Out 4 2 LREvenSpaced Row tovcontrol_title { \
 
69
      Fixed Centered tov_main_link \
 
70
      Centered Color "$title_fg" "@{@fBPolicy Configuration}" \
 
71
   } \
 
72
   # \
 
73
   Row { \
 
74
      Shadowed Out Col { \
 
75
         FlushLeft Color "blue" "@{@fBPolicy Importance Factor}" \
 
76
         Row { \
 
77
            Col { \
 
78
               Caption tl "@{Priority}" weight_priority \
 
79
            } \
 
80
            Col { \
 
81
               Caption tl "@{Urgency}" weight_urgency \
 
82
            } \
 
83
            Col { \
 
84
               Caption tl "@{Ticket}" weight_ticket \
 
85
            } \
 
86
         } \
 
87
         = \
 
88
         = \
 
89
         Col { \
 
90
            FlushLeft Color "blue" "@{@fBUrgency Policy}" \
 
91
            Caption tl "@{Weight Deadline}" \
 
92
               weight_deadline \
 
93
            Caption tl "@{Weight Waiting Time}" \
 
94
               weight_waiting_time \
 
95
         } \
 
96
         = \
 
97
         Col { \
 
98
            FlushLeft Color "blue" "@{@fBTicket Policy}" \
 
99
            # \
 
100
            Row { \
 
101
               Col { \
 
102
                  FlushLeft "@{Current Active Tickets}" \
 
103
                  ## \
 
104
                  Caption tl "@{@fIShare Tree Tickets}" share_tree_tickets_label \
 
105
                  Caption tl "@{@fIFunctional Tickets}" functional_tickets_label \
 
106
                  Caption tl "@{@fIOverride Tickets}" override_tickets_label \
 
107
                  <>\
 
108
               } \
 
109
               | \
 
110
               Col { \
 
111
                  FlushLeft "@{Edit Tickets}" \
 
112
                  <>\
 
113
                  Caption tl "@{@fITotal Share Tree Tickets}" share_tree_tickets_field \
 
114
                  Caption tl "@{@fITotal Functional Tickets}" functional_tickets_field \
 
115
               } \
 
116
            } \
 
117
            = \
 
118
            share_override_ticket \
 
119
            share_functional_ticket \
 
120
            report_pjob_tickets \
 
121
            Caption tl "@{Maximum Functional Jobs}" \
 
122
               Row { max_functional_jobs <> } \
 
123
            Caption tl "@{Maximum Pending Tasks Per Job}" \
 
124
               Row { max_pending_tasks_per_job <> }\
 
125
            Caption tl "@{Ticket Policy Hierarchy}" \
 
126
               policy_hierarchy \
 
127
         } \
 
128
         = \
 
129
         Equal Even Row { \
 
130
            tov_users_for_deadline \
 
131
            tov_share_tree_policy \
 
132
            tov_functional_policy \
 
133
            tov_override_policy \
 
134
         } \
 
135
      } \
 
136
      Fixed Shadowed Out Col { \
 
137
         tov_update \
 
138
         # \
 
139
         tov_apply \
 
140
         tov_done \
 
141
         tov_help \
 
142
         <> \
 
143
         Fixed tov_message \
 
144
      } \
 
145
   }
 
146
 
 
147
Qmon*tov_layout.tov_main_link.labelType:   PIXMAP
 
148
Qmon*tov_layout.tov_main_link.labelPixmap: logo
 
149
Qmon*tov_layout.tov_main_link.shadowThickness:    1
 
150
Qmon*tov_layout.tov_main_link.highlightThickness: 0
 
151
Qmon*tov_layout.tov_main_link.marginHeight:       0
 
152
Qmon*tov_layout.tov_main_link.marginWidth:        0
 
153
 
 
154
Qmon*tov_layout*share_tree_tickets_label.recomputeSize:    False
 
155
Qmon*tov_layout*share_tree_tickets_label.background:       $stree_share
 
156
Qmon*tov_layout*share_tree_tickets_label.alignment:        ALIGNMENT_BEGINNING
 
157
 
 
158
Qmon*tov_layout*functional_tickets_label.recomputeSize:    False
 
159
Qmon*tov_layout*functional_tickets_label.background:       $stree_functional
 
160
Qmon*tov_layout*functional_tickets_label.alignment:        ALIGNMENT_BEGINNING
 
161
 
 
162
Qmon*tov_layout*override_tickets_label.recomputeSize:      False
 
163
Qmon*tov_layout*override_tickets_label.background:         $stree_override
 
164
Qmon*tov_layout*override_tickets_label.alignment:          ALIGNMENT_BEGINNING
 
165
 
 
166
Qmon*tov_layout*share_tree_tickets_field.background:       $stree_share
 
167
Qmon*tov_layout*functional_tickets_field.background:       $stree_functional
 
168
 
 
169
Qmon*tov_layout*tov_users_for_deadline.labelString:     @{tov.deadline.Users Allowed\nTo Submit\nDeadline Jobs}
 
170
Qmon*tov_layout*tov_share_tree_policy.labelString:      @{tov.sharetree.Share Tree\nPolicy}
 
171
Qmon*tov_layout*tov_functional_policy.labelString:      @{tov.functional.Functional\nPolicy}
 
172
Qmon*tov_layout*tov_override_policy.labelString:        @{tov.override.Override\nPolicy}
 
173
Qmon*tov_layout*tov_update.labelString:                 @{Refresh}
 
174
Qmon*tov_layout*tov_apply.labelString:                  @{Apply}
 
175
Qmon*tov_layout*tov_done.labelString:                   @{Done}
 
176
Qmon*tov_layout*tov_help.labelString:                   @{Help}
 
177
 
 
178
Qmon*tov_layout*share_override_ticket.labelString:    @{Share Override Tickets}
 
179
Qmon*tov_layout*share_override_ticket.alignment:      ALIGNMENT_BEGINNING
 
180
 
 
181
Qmon*tov_layout*report_pjob_tickets.labelString:    @{Report Pending Job Tickets}
 
182
Qmon*tov_layout*report_pjob_tickets.alignment:      ALIGNMENT_BEGINNING
 
183
 
 
184
Qmon*tov_layout*share_functional_ticket.labelString:  @{Share Functional Shares}
 
185
Qmon*tov_layout*share_functional_ticket.alignment:    ALIGNMENT_BEGINNING
 
186
 
 
187
Qmon*tov_layout*max_functional_jobs.minimum: 0
 
188
Qmon*tov_layout*max_functional_jobs.spinboxStyle: SPINBOX_STACKED_RIGHT
 
189
Qmon*tov_layout*max_functional_jobs.buttonSizeFixed: True
 
190
Qmon*tov_layout*max_functional_jobs.columns: 5
 
191
Qmon*tov_layout*max_functional_jobs.spinboxUseClosestValue: True
 
192
Qmon*tov_layout*max_functional_jobs.value: 0
 
193
Qmon*tov_layout*max_functional_jobs.incrementLarge: 10
 
194
 
 
195
Qmon*tov_layout*max_pending_tasks_per_job.minimum: 0
 
196
Qmon*tov_layout*max_pending_tasks_per_job.spinboxStyle: SPINBOX_STACKED_RIGHT
 
197
Qmon*tov_layout*max_pending_tasks_per_job.buttonSizeFixed: True
 
198
Qmon*tov_layout*max_pending_tasks_per_job.columns: 5
 
199
Qmon*tov_layout*max_pending_tasks_per_job.spinboxUseClosestValue: True
 
200
Qmon*tov_layout*max_pending_tasks_per_job.value: 0
 
201
Qmon*tov_layout*max_pending_tasks_per_job.incrementLarge: 10
 
202
 
 
203
Qmon*tov_message*columns:         15
 
204
Qmon*tov_help.activateCallback:   XmtHelpDisplayContextHelp(self);