summaryrefslogtreecommitdiff
path: root/TAO/tests/Xt_Stopwatch/Stopwatch_display.h
blob: 283eb7fc14cfb8bd4a339b55981f7ea5951849b2 (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
// $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 <Xm/Xm.h>
#include <Xm/Frame.h>
#include <Xm/Label.h>

class Stopwatch_display
{
  //  friend Control; // Let Control call protected Stopwatch_display functions

  public:
  
  Stopwatch_display (Widget &parent);
  // Stopwatch_display constructor
  
  virtual ~Stopwatch_display();
  // Destructor

  virtual void manage();   
  // Manage the widget

  //virtual void unmanage();
  // Unmanage the widget
    
 private:
  Widget frame_;
  // A frame widget...
  Widget label_;
  // Label Widget that is used to display time..
  
 protected:
    
  //  virtual void timerStarted();   // Subclass hooks called when
  //virtual void timerStopped();   // timer starts and stops
  //float elapsedTime() { return _timer->elapsedTime(); }
};
#endif