ScatterCtrl: Added ScatterWindow

git-svn-id: svn://ultimatepp.org/upp/trunk@14446 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2020-05-09 21:52:08 +00:00
parent 1189b356d4
commit 2aacaa55e1

View file

@ -496,6 +496,27 @@ void ScatterCtrl::SetDrawing(T& w, const Size &sz, bool ctrl) {
}
}
class ScatterWindow : public TopWindow {
public:
typedef ScatterWindow CLASSNAME;
ScatterWindow() {
Sizeable().Zoomable();
Add(scatter.SizePos());
scatter.ShowAllMenus().SetPlotAreaLeftMargin(70);
}
ScatterCtrl &operator()() {return scatter;}
ScatterWindow &OpenMain() {
scatter.ZoomToFit(true, true);
TopWindow::OpenMain();
return *this;
}
private:
ScatterCtrl scatter;
};
}
#include "Properties.h"