blob: 6d3de01204b5847987d5596a0803dc49919285a9 (
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
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_;
}
|