8 const QVector< double >& r,
9 double invertValue,
double left,
double right )
11 invert( invertValue ),
12 range_left( left ), range_right( right )
18 setWindowTitle( tr(
"Scan Editor" ) );
21 QVBoxLayout*
main =
new QVBoxLayout(
this );
22 main->setSpacing ( 2 );
23 main->setContentsMargins( 2, 2, 2, 2 );
27 tr(
"Edit Single Scan" ),
32 main->addLayout( plot );
39 radii =
new double[ size ];
40 values =
new double[ size ];
47 fgSym.setStyle( QwtSymbol::Ellipse );
65 QHBoxLayout* instructions =
new QHBoxLayout;
67 QLabel* lb_instructions =
us_label( tr(
"Step-by-Step\nInstructions:" ) );
68 instructions->addWidget( lb_instructions );
73 QFont f = te_instructions->font();
76 te_instructions->setMaximumHeight( fm.lineSpacing() * 5 );
78 te_instructions->setText(
79 tr(
"1. Use the zoom function as needed to focus on a point.\n"
80 "2. Use Control-Left Press to select the point desired.\n"
81 "3. Drag the point to the value desired." ) );
83 instructions->addWidget( te_instructions );
84 main ->addLayout( instructions );
87 QHBoxLayout* buttons =
new QHBoxLayout;
90 connect( pb_reset, SIGNAL( clicked() ), SLOT(
reset() ) );
91 buttons->addWidget( pb_reset );
94 connect( pb_help, SIGNAL( clicked() ), SLOT(
help() ) );
95 buttons->addWidget( pb_help );
98 connect( pb_cancel, SIGNAL( clicked() ), SLOT( close() ) );
99 buttons->addWidget( pb_cancel );
102 connect( pb_accept, SIGNAL( clicked() ), SLOT(
done() ) );
103 buttons->addWidget( pb_accept );
105 main->addLayout( buttons );
107 connect(
pick, SIGNAL( cMouseDownRaw( QMouseEvent* ) ),
110 connect(
pick, SIGNAL( cMouseUp (
const QwtDoublePoint& ) ),
111 SLOT (
end_drag (
const QwtDoublePoint& ) ) );
113 connect(
pick, SIGNAL( cMouseDrag (
const QwtDoublePoint& ) ),
114 SLOT (
drag (
const QwtDoublePoint& ) ) );
170 for (
int j = indexLeft; j <= indexRight; j++ )