"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "uppsrc/ScatterCtrl/Properties.cpp" between
upp-x11-src-13648.tar.gz and upp-x11-src-13659.tar.gz

About: Ultimate++ is a C++ cross-platform rapid application development framework. Stable release.

Properties.cpp  (upp-x11-src-13648):Properties.cpp  (upp-x11-src-13659)
skipping to change at line 327 skipping to change at line 327
editHeight <<= scatter.GetSaveSize().cy; editHeight <<= scatter.GetSaveSize().cy;
opResponsive <<= scatter.ScatterDraw::IsResponsive(); opResponsive <<= scatter.ScatterDraw::IsResponsive();
editSensitivity <<= scatter.ScatterDraw::GetResponsivenessFactor(); editSensitivity <<= scatter.ScatterDraw::GetResponsivenessFactor();
editJpgQ <<= scatter.GetJPGQuality(); editJpgQ <<= scatter.GetJPGQuality();
editWidth <<= THISBACK(Change); editWidth <<= THISBACK(Change);
editHeight <<= THISBACK(Change); editHeight <<= THISBACK(Change);
opResponsive <<= THISBACK(Change); opResponsive <<= THISBACK(Change);
editSensitivity <<= THISBACK(Change); editSensitivity <<= THISBACK(Change);
editJpgQ <<= THISBACK(Change); editJpgQ <<= THISBACK(Change);
butApplyToAll <<= THISBACK(ChangeAll);
Change(); Change();
} }
void GeneralTab::Change() void GeneralTab::Change()
{ {
ScatterCtrl &scatter = *pscatter; ScatterCtrl &scatter = *pscatter;
scatter.SetMode(~dropResolution); scatter.SetMode(~dropResolution);
scatter.Rotate((ScatterCtrl::Angle)(int)dropRotate.GetData()); scatter.Rotate((ScatterCtrl::Angle)(int)dropRotate.GetData());
Size size(~editWidth, ~editHeight); Size size(~editWidth, ~editHeight);
scatter.SetSaveSize(size); scatter.SetSaveSize(size);
scatter.ScatterDraw::Responsive(~opResponsive, ~editSensitivity); scatter.ScatterDraw::Responsive(~opResponsive, ~editSensitivity);
scatter.SetJPGQuality(~editJpgQ); scatter.SetJPGQuality(~editJpgQ);
scatter.SetModify(); scatter.SetModify();
scatter.Refresh(); scatter.Refresh();
} }
void GeneralTab::ChangeAll()
{
for (int i = 0; i < ScatterCtrl::GetInstancesCount(); ++i) {
ScatterCtrl &scatter = ScatterCtrl::GetInstance(i);
scatter.SetMode(~dropResolution);
scatter.Rotate((ScatterCtrl::Angle)(int)dropRotate.GetData());
Size size(~editWidth, ~editHeight);
scatter.SetSaveSize(size);
scatter.ScatterDraw::Responsive(~opResponsive, ~editSensitivity);
scatter.SetJPGQuality(~editJpgQ);
scatter.SetModify();
scatter.Refresh();
}
}
void SeriesTab::Init(ScatterCtrl& scatter) void SeriesTab::Init(ScatterCtrl& scatter)
{ {
CtrlLayout(left); CtrlLayout(left);
CtrlLayout(right); CtrlLayout(right);
Horz(left.SizePos(), right.SizePos()); Horz(left.SizePos(), right.SizePos());
SetPos(3000, 0); SetPos(3000, 0);
SizePos(); SizePos();
pscatter = &scatter; pscatter = &scatter;
 End of changes. 2 change blocks. 
0 lines changed or deleted 19 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)