summaryrefslogtreecommitdiff
path: root/TAO/tests/Xt_Stopwatch/Stopwatch_display.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Xt_Stopwatch/Stopwatch_display.cpp')
-rw-r--r--TAO/tests/Xt_Stopwatch/Stopwatch_display.cpp45
1 files changed, 0 insertions, 45 deletions
diff --git a/TAO/tests/Xt_Stopwatch/Stopwatch_display.cpp b/TAO/tests/Xt_Stopwatch/Stopwatch_display.cpp
deleted file mode 100644
index 31bfb278009..00000000000
--- a/TAO/tests/Xt_Stopwatch/Stopwatch_display.cpp
+++ /dev/null
@@ -1,45 +0,0 @@
-// $Id$
-#include "Stopwatch_display.h"
-
-Stopwatch_display::Stopwatch_display (Widget &parent )
-{
- // Instantiate the sub-components of the Stopwatch_display
- this->frame_ = XtCreateWidget ("frame", xmFrameWidgetClass,
- parent, 0, 0 );
- this->label_ = XtCreateWidget ("label", xmLabelWidgetClass,
- this->frame_, 0, 0 );
-}
-
-Stopwatch_display::~Stopwatch_display ( )
-{
- //No-op
-}
-
-void
-Stopwatch_display::manage (void)
-{
- XtManageChild (this->frame_);
- XtManageChild (this->label_);
-}
-
-void
-Stopwatch_display::set_time (CORBA::Float time)
-{
- char buf[50];
-
- // Format value as a string
- ACE_OS::sprintf (buf, "%6.3f", time);
-
- // Convert to compound string
- XmString xmstr = XmStringCreateSimple (buf);
-
- // Display the string in the Label widget
- XtVaSetValues (this->label_, XmNlabelString, xmstr, NULL);
- //??Can use XtSetValues with ac and al values..
-
- // The compound string can be freed once passed to the widget
- XmStringFree (xmstr);
-}
-
-
-