summaryrefslogtreecommitdiff
path: root/TAO/tests/Xt_Stopwatch/Control.cpp
blob: 4d81ac985c88b1a6f144d418d83f7447251c4a52 (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
// $Id$
#include "Control.h"

Control::Control (Widget &parent)
{
  // Instantiate the  sub-components of the Control
  this->frame_ = XmCreateFrame (parent, 
                                "frame",
                                0, 
                                0 );

  this->rowcolumn_ = XmCreateRowColumn (this->frame_, 
                                        "rwc",
                                        0, 
                                        0 );

  this->startwidget_ = XmCreatePushButton (this->rowcolumn_, 
                                           "Start",
                                           0,
                                           0);

  this->stopwidget_ = XmCreatePushButton (this->rowcolumn_, 
                                          "Stop",
                                          0,
                                          0);
}

Control::~Control (void)
{
}

void 
Control::manage (void)
{
  XtManageChild (frame_);
  XtManageChild (rowcolumn_);
  XtManageChild (startwidget_);
  XtManageChild (stopwidget_);
}

Widget &
Control::startwidget (void)
{
  return this->startwidget_;
}

Widget &
Control::stopwidget (void)
{
  return this->stopwidget_;
}