summaryrefslogtreecommitdiff
path: root/TAO/tests/Xt_Stopwatch/Control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Xt_Stopwatch/Control.cpp')
-rw-r--r--TAO/tests/Xt_Stopwatch/Control.cpp54
1 files changed, 54 insertions, 0 deletions
diff --git a/TAO/tests/Xt_Stopwatch/Control.cpp b/TAO/tests/Xt_Stopwatch/Control.cpp
new file mode 100644
index 00000000000..6d3de01204b
--- /dev/null
+++ b/TAO/tests/Xt_Stopwatch/Control.cpp
@@ -0,0 +1,54 @@
+// $Id$
+
+#include "Control.h"
+
+
+Control::Control (Widget &parent)
+{
+ // Instantiate the sub-components of the Control
+ this->frame_ = XmCreateFrame (parent,
+ (char *) "frame",
+ 0,
+ 0 );
+
+ this->rowcolumn_ = XmCreateRowColumn (this->frame_,
+ (char *)"rwc",
+ 0,
+ 0 );
+
+ this->startwidget_ = XmCreatePushButton (this->rowcolumn_,
+ (char *) "Start",
+ 0,
+ 0);
+
+ this->stopwidget_ = XmCreatePushButton (this->rowcolumn_,
+ (char *) "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_;
+}
+