mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
added JPQTPlotter signal, when widget was resized
This commit is contained in:
parent
d6e6b1d53b
commit
d2b4e07c94
@ -30,6 +30,7 @@ Changes, compared to \ref page_whatsnew_V2019_11 "v2019.11" include:
|
||||
<li>new: all geometric objects can either be drawn as graphic element (i.e. lines are straight line, even on non-linear axes), or as mathematical curve (i.e. on non-linear axes, lines become the appropriate curve representing the linear function, connecting the given start/end-points). The only exceptions are ellipses (and the derived arcs,pies,chords), which are always drawn as mathematical curves</li>
|
||||
<li>new: a new graph class JKQTPXYFunctionLineGraph draws parametric 2D curves ( \f$ [x,y] = f(t) \f$ ), see \ref JKQTPlotterEvalCurves for an example</li>
|
||||
<li>new: added several new copy/set-functions to JKQTPDatastore</li>
|
||||
<li>new: added JPQTPlotter signal, when widget was resized</li>
|
||||
</ul>
|
||||
|
||||
\subsection page_whatsnew_TRUNK_DOWNLOAD trunk: Download
|
||||
|
@ -1217,7 +1217,10 @@ void JKQTPlotter::delayedResizeEvent()
|
||||
sizeChanged=true;
|
||||
}
|
||||
|
||||
if (sizeChanged) redrawPlot();
|
||||
if (sizeChanged) {
|
||||
emit widgetResized(width(), height(), this);
|
||||
redrawPlot();
|
||||
}
|
||||
}
|
||||
|
||||
void JKQTPlotter::leaveEvent(QEvent * /*event*/) {
|
||||
|
@ -1319,6 +1319,16 @@ class JKQTPLOTTER_LIB_EXPORT JKQTPlotter: public QWidget {
|
||||
*/
|
||||
void zoomChangedLocally(double newxmin, double newxmax, double newymin, double newymax, JKQTPlotter* sender);
|
||||
|
||||
/** \brief signal: emitted whenever the widget is resized
|
||||
*
|
||||
* \param new_width new width of the widget (in pixels)
|
||||
* \param new_height new height of the widget (in pixels)
|
||||
* \param sender JKQTPlotter sending this event
|
||||
*
|
||||
* This signal is designed to be connected to these slots: synchronizeXAxis(), synchronizeYAxis(), synchronizeXYAxis()
|
||||
*/
|
||||
void widgetResized(int new_width, int new_height, JKQTPlotter* sender);
|
||||
|
||||
/** \brief emitted when the mouse action JKQTPlotter::ScribbleEvents and a click event from the mouse occurs inside the plot,
|
||||
* or the mouse moved while the left button is pressed down
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user