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

« back to all changes in this revision

Viewing changes to source/clients/qmon/qmon_appres.c

  • 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
#include <Xmt/Xmt.h>
 
33
#include <Xmt/AppRes.h>
 
34
 
 
35
#include "qmon_rmon.h"
 
36
#include "qmon_appres.h"
 
37
 
 
38
 
 
39
 
 
40
static XtResource resources[] = {
 
41
   { "qmon_version", "qmon_version", XtRInt,
 
42
      sizeof(int), XtOffsetOf(tApplicationResources, qmon_version),
 
43
      XtRImmediate, (XtPointer) 4000 },
 
44
      
 
45
   { "display_message_duration", "display_message_duration", XtRInt,
 
46
      sizeof(int), XtOffsetOf(tApplicationResources, display_message_duration),
 
47
      XtRImmediate, (XtPointer) 10 },
 
48
 
 
49
   { "fetch_time", "fetch_time", XtRInt,
 
50
      sizeof(int), XtOffsetOf(tApplicationResources, fetch_time),
 
51
      XtRImmediate, (XtPointer) 20 },
 
52
   
 
53
   { "multi_click_time", "multi_click_time", XtRInt,
 
54
      sizeof(int), XtOffsetOf(tApplicationResources, multi_click_time),
 
55
      XtRImmediate, (XtPointer) 350 },
 
56
   
 
57
   { "msg_how", "msg_how", XtRInt,
 
58
      sizeof(int), XtOffsetOf(tApplicationResources, msg_how),
 
59
      XtRImmediate, (XtPointer) 0 },
 
60
 
 
61
   { "htmlHelpFile", "htmlHelpFile", XtRString,
 
62
      sizeof(String), XtOffsetOf(tApplicationResources, htmlHelpFile),
 
63
      XtRImmediate, (XtPointer) NULL },
 
64
 
 
65
   { "showHostTab", "showHostTab", XtRBoolean,
 
66
      sizeof(int), XtOffsetOf(tApplicationResources, showHostTab),
 
67
      XtRImmediate, (XtPointer)False },
 
68
 
 
69
   { "automaticUpdateHostTab", "automaticUpdateHostTab", XtRBoolean,
 
70
      sizeof(int), XtOffsetOf(tApplicationResources, automaticUpdateHostTab),
 
71
      XtRImmediate, (XtPointer)False }
 
72
 
 
73
};
 
74
 
 
75
 
 
76
tApplicationResources QmonApplicationResources;
 
77
 
 
78
/*-------------------------------------------------------------------------*/
 
79
void qmonGetApplicationResources(
 
80
Widget top,
 
81
ArgList args,
 
82
Cardinal num_args 
 
83
) {
 
84
   DENTER(TOP_LAYER, "qmonGetApplicationResources");
 
85
 
 
86
   XtGetApplicationResources( top, 
 
87
                              &QmonApplicationResources,
 
88
                              resources, XtNumber(resources),
 
89
                              args, num_args );
 
90
   DPRINTF(("qmon_version: %d\n", QMON_VERSION));
 
91
   DPRINTF(("display_message_duration: %d\n", DISPLAY_MESSAGE_DURATION));
 
92
   DPRINTF(("fetch_time: %d\n", FETCH_TIME));
 
93
   DPRINTF(("multi_click_time: %d\n", MULTI_CLICK_TIME));
 
94
   DPRINTF(("htmlHelpFile: %s\n", HTMLHELPFILE ? HTMLHELPFILE : "NA"));
 
95
   DPRINTF(("showHostTab: %s\n", SHOW_HOST_TAB ? "true" : "false"));
 
96
   DPRINTF(("automaticUpdateHostTab: %s\n", AUTOMATIC_UPDATE_HOST_TAB ? "true" : "false"));
 
97
 
 
98
   DEXIT;
 
99
 
 
100
}