Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tests / Xt_Stopwatch / Control.cpp
blob770a7f1303dbd8769fd4349fab964127698b8980
1 #include "Control.h"
4 Control::Control (Widget &parent)
6 // Instantiate the sub-components of the Control
7 this->frame_ = XmCreateFrame (parent,
8 (char *) "frame",
9 0,
10 0);
12 this->rowcolumn_ = XmCreateRowColumn (this->frame_,
13 (char *)"rwc",
15 0);
17 this->startwidget_ = XmCreatePushButton (this->rowcolumn_,
18 (char *) "Start",
20 0);
22 this->stopwidget_ = XmCreatePushButton (this->rowcolumn_,
23 (char *) "Stop",
25 0);
28 Control::~Control ()
32 void
33 Control::manage ()
35 XtManageChild (frame_);
36 XtManageChild (rowcolumn_);
37 XtManageChild (startwidget_);
38 XtManageChild (stopwidget_);
41 Widget &
42 Control::startwidget ()
44 return this->startwidget_;
47 Widget &
48 Control::stopwidget ()
50 return this->stopwidget_;