summaryrefslogtreecommitdiff
path: root/TAO/tests/Xt_Stopwatch/Stopwatch_display.h
blob: dd62dd9d5ebc09f594228ebf95f3bde030497723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// $Id$

// ============================================================================
//
// = LIBRARY
//   TAO/tests/Xt_Stopwatch/Stopwatch_server
//
// = FILENAME
//   Stopwatch.h
//
// = AUTHOR
//   Balachandran  Natarajan <bala@cs.wustl.edu>
//
// ============================================================================

#ifndef STOPWATCH_H
#define STOPWATCH_H
#include /**/ "ace/pre.h"
#include "tao/ORB_Constants.h"

#if defined (ACE_HAS_XT)

#include <Xm/Xm.h>
#include <Xm/Frame.h>
#include <Xm/Label.h>

class Stopwatch_display
{
public:

  Stopwatch_display (Widget &parent);
  // Stopwatch_display constructor

  virtual ~Stopwatch_display (void);
  // Destructor

  virtual void manage (void);
  // Manage the widget

  void set_time (CORBA::Float value);
  // Change the displayed time

private:
  Widget frame_;
  // A frame widget...

  Widget label_;
  // Label Widget that is used to display time..
};

#endif /*ACE_HAS_XT*/

#include /**/ "ace/post.h"
#endif /* STOPWATCH_H */