Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Xt_Stopwatch / Control.cpp
blobb539334d7f8601fc854515485bde54be5830b7e6
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 (void)
32 void
33 Control::manage (void)
35 XtManageChild (frame_);
36 XtManageChild (rowcolumn_);
37 XtManageChild (startwidget_);
38 XtManageChild (stopwidget_);
41 Widget &
42 Control::startwidget (void)
44 return this->startwidget_;
47 Widget &
48 Control::stopwidget (void)
50 return this->stopwidget_;