1 /* $XConsortium: DtMailWDM.C /main/3 1996/04/21 19:41:45 drk $ */
5 * RESTRICTED CONFIDENTIAL INFORMATION:
7 * The information in this document is subject to special
8 * restrictions in a confidential disclosure agreement bertween
9 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
10 * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
11 * Sun's specific written approval. This documment and all copies
12 * and derivative works thereof must be returned or destroyed at
15 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
20 ///////////////////////////////////////////////////////////
22 //////////////////////////////////////////////////////////
23 #include "DtMailWDM.hh"
24 #include "Application.h"
26 #include <Xm/MessageB.h>
27 #include "BusyPixmap.h"
30 DtMailWDM *theDtMailWDM =
31 new DtMailWDM ( "DtMailWDM" );
33 DtMailWDM::DtMailWDM ( char *name )
34 : WorkingDialogManager ( name )
41 DtMailWDM::post (char *title,
45 DialogCallback cancel,
48 // The the dialog already exists, and is currently in use,
49 // just return this dialog. The DtMailWDM
50 // only supports one dialog.
52 if ( _w && XtIsManaged ( _w ) )
55 // Pass the message on to the base class
57 DialogManager::post (title, text, clientData, ok, cancel, help );
64 DtMailWDM::post (char *title,
69 DialogCallback cancel,
72 // The the dialog already exists, and is currently in use,
73 // just return this dialog. The DtMailWDM
74 // only supports one dialog.
76 if ( _w && XtIsManaged ( _w ) )
79 // Pass the message on to the base class
81 DialogManager::post (title, text, wid, clientData, ok, cancel, help );
89 DtMailWDM::updateAnimation()
93 // XmNsymbolPixmap, _busyPixmaps->next(),
100 DtMailWDM::updateDialog(
108 // Just change the string displayed in the dialog
110 XmString xmstr = XmStringCreateLocalized ( text );
112 // Update the pixmap too...
114 // XmNsymbolPixmap, _busyPixmaps->next(),
115 XmNmessageString, xmstr,
117 XmStringFree ( xmstr );