myYDistance2 = yMap2.s2() - yMap2.s1();
}
myPlot->canvas()->installEventFilter( this );
+
+ connect( myPlot, SIGNAL( plotZoomed() ), this, SIGNAL( manualTransformationApplied() ) );
}
/*!
Destructor
myPlot->setAxisScale( QwtPlot::yRight, yMap2.s1(), yMap2.s2() );
}
myPlot->replot();
+
+ emit fitAllApplied();
}
/*!
myPlot->invTransform( QwtPlot::xBottom, rect.left() ),
myPlot->invTransform( QwtPlot::xBottom, rect.right() ) );
myPlot->replot();
+
+ emit manualTransformationApplied();
}
/*!
if ( mode == 0 || mode == 1 )
myPlot->setAxisScale( QwtPlot::xBottom, xMin, xMax );
myPlot->replot();
+
+ emit manualTransformationApplied();
}
/*!
myPlot->invTransform( QwtPlot::yRight, myPnt.y() ) - myYDistance2/2,
myPlot->invTransform( QwtPlot::yRight, myPnt.y() ) + myYDistance2/2 );
myPlot->replot();
+ emit manualTransformationApplied();
}
}
else {
canvas()->setMouseTracking( true );
myPlotZoomer->setEnabled( true );
+
+ connect( myPlotZoomer, SIGNAL( zoomed( const QwtDoubleRect& ) ), this, SIGNAL( plotZoomed() ) );
}
/*!
myPlot->invTransform( QwtPlot::yRight, y2Map.transform( y2Map.s2() )-incrY ) );
}
myPlot->replot();
+
+ emit manualTransformationApplied();
}
/*!
myPlot->invTransform( QwtPlot::yRight, y2Map.transform( y2Map.s2() ) + incrY ) );
}
myPlot->replot();
+
+ emit manualTransformationApplied();
}
#define INCREMENT_FOR_OP 10
void yRangeUpdated( const double&, const double&, const double&, const double&);
void bothRangesUpdated( const double&, const double&, const double&,
const double&, const double&, const double& );
-
+ void manualTransformationApplied();
+ void fitAllApplied();
+
protected:
Plot2d_Plot2d* myPlot;
int myOperation;
protected:
bool existMarker( const QwtSymbol::Style typeMarker, const QColor& color, const Qt::PenStyle typeLine );
+signals:
+ void plotZoomed();
+
protected:
CurveDict myCurves;
QwtPlotGrid* myGrid;
return false;
}
+/*!
+ \brief Moves the widget to the end of its area
+ \param wid widget to be moved
+ \return TRUE if operation is completed successfully, FALSE otherwise
+*/
+bool QtxWorkstack::moveToEnd( QWidget* wid )
+{
+ if ( wid )
+ {
+ QtxWorkstackArea* area = wgArea( wid );
+ if ( area )
+ {
+ // find index of the second widget
+ QWidgetList wgList = area->widgetList();
+ int idx = wgList.count();
+ area->removeWidget( wid, true );
+ area->insertWidget( wid, idx );
+ return true;
+ }
+ }
+ return false;
+}
+
/*!
\brief Group all windows in one area
\return TRUE if operation is completed successfully, FALSE otherwise