int Scale::handle_event()
{
thread->start();
+return 0;
}
ScaleThread::ScaleThread(MWindow *mwindow)
sprintf(string, "%.0f", aspect_h);
window->aspect_h->update(string);
}
+return 0;
}
if(*output > 10000) *output = 10000;
*output *= -1;
thread->update_window();
+return 0;
}
ScaleOffsetText::ScaleOffsetText(int x, int y, ScaleThread *thread, int *output)
if(*output > 10000) *output = 10000;
if(*output < -10000) *output = -10000;
thread->update_window(1);
+return 0;
}
ScaleRatioText::ScaleRatioText(int x, int y, ScaleThread *thread, float *output)
if(*output < -10000) *output = -10000;
*output *= -1;
thread->update_window();
+return 0;
}
int ScaleConstrain::handle_event()
{
thread->constrain_ratio = get_value();
+return 0;
}
ScaleData::ScaleData(int x, int y, ScaleThread *thread)
{
thread->scale_data = get_value();
thread->update_window();
+return 0;
}
{
thread->auto_aspect = get_value();
thread->update_aspect(thread->window);
+return 0;
}
int ScaleAspectW::handle_event()
{
*output = atof(get_text());
+return 0;
}
int ScaleAspectH::handle_event()
{
*output = atof(get_text());
+return 0;
}