1
/*___INFO__MARK_BEGIN__*/
2
/*************************************************************************
4
* The Contents of this file are made available subject to the terms of
5
* the Sun Industry Standards Source License Version 1.2
7
* Sun Microsystems Inc., March, 2001
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
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.
24
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
26
* Copyright: 2001 by Sun Microsystems, Inc.
28
* All Rights Reserved.
30
************************************************************************/
31
/*___INFO__MARK_END__*/
33
#include <Xmt/AppRes.h>
35
#include "qmon_rmon.h"
36
#include "qmon_appres.h"
40
static XtResource resources[] = {
41
{ "qmon_version", "qmon_version", XtRInt,
42
sizeof(int), XtOffsetOf(tApplicationResources, qmon_version),
43
XtRImmediate, (XtPointer) 4000 },
45
{ "display_message_duration", "display_message_duration", XtRInt,
46
sizeof(int), XtOffsetOf(tApplicationResources, display_message_duration),
47
XtRImmediate, (XtPointer) 10 },
49
{ "fetch_time", "fetch_time", XtRInt,
50
sizeof(int), XtOffsetOf(tApplicationResources, fetch_time),
51
XtRImmediate, (XtPointer) 20 },
53
{ "multi_click_time", "multi_click_time", XtRInt,
54
sizeof(int), XtOffsetOf(tApplicationResources, multi_click_time),
55
XtRImmediate, (XtPointer) 350 },
57
{ "msg_how", "msg_how", XtRInt,
58
sizeof(int), XtOffsetOf(tApplicationResources, msg_how),
59
XtRImmediate, (XtPointer) 0 },
61
{ "htmlHelpFile", "htmlHelpFile", XtRString,
62
sizeof(String), XtOffsetOf(tApplicationResources, htmlHelpFile),
63
XtRImmediate, (XtPointer) NULL },
65
{ "showHostTab", "showHostTab", XtRBoolean,
66
sizeof(int), XtOffsetOf(tApplicationResources, showHostTab),
67
XtRImmediate, (XtPointer)False },
69
{ "automaticUpdateHostTab", "automaticUpdateHostTab", XtRBoolean,
70
sizeof(int), XtOffsetOf(tApplicationResources, automaticUpdateHostTab),
71
XtRImmediate, (XtPointer)False }
76
tApplicationResources QmonApplicationResources;
78
/*-------------------------------------------------------------------------*/
79
void qmonGetApplicationResources(
84
DENTER(TOP_LAYER, "qmonGetApplicationResources");
86
XtGetApplicationResources( top,
87
&QmonApplicationResources,
88
resources, XtNumber(resources),
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"));