IVTCWindow::IVTCWindow(IVTCMain *client)
: PluginClientWindow(client,
- 210,
- 230,
- 210,
- 230,
+ xS(210),
+ yS(200),
+ xS(210),
+ yS(200),
0)
{
this->client = client;
void IVTCWindow::create_objects()
{
- int x = 10, y = 10;
+ int xs10 = xS(10);
+ int ys10 = yS(10), ys20 = yS(20), ys30 = yS(30), ys40 = yS(40);
+ int x = xs10, y = ys10;
add_tool(new BC_Title(x, y, _("Pattern offset:")));
- y += 20;
+ y += ys20;
add_tool(frame_offset = new IVTCOffset(client, x, y));
- y += 30;
+ y += ys30;
add_tool(first_field = new IVTCFieldOrder(client, x, y));
-// y += 30;
+// y += ys30;
// add_tool(automatic = new IVTCAuto(client, x, y));
- y += 40;
+ y += ys40;
add_subwindow(new BC_Title(x, y, _("Pattern:")));
- y += 20;
+ y += ys20;
for(int i = 0; i < TOTAL_PATTERNS; i++)
{
add_subwindow(pattern[i] = new IVTCPattern(client,
_(pattern_text[i]),
x,
y));
- y += 20;
+ y += ys20;
}
if(client->config.pattern == IVTCConfig::AUTOMATIC)
frame_offset->disable();
first_field->disable();
}
-// y += 30;
+// y += ys30;
// add_tool(new BC_Title(x, y, _("Field threshold:")));
-// y += 20;
+// y += ys20;
// add_tool(threshold = new IVTCAutoThreshold(client, x, y));
show_window();
flush();
IVTCOffset::IVTCOffset(IVTCMain *client, int x, int y)
: BC_TextBox(x,
y,
- 190,
+ xS(190),
1,
client->config.frame_offset)
{
IVTCAutoThreshold::IVTCAutoThreshold(IVTCMain *client, int x, int y)
- : BC_TextBox(x, y, 190, 1, client->config.auto_threshold)
+ : BC_TextBox(x, y, xS(190), 1, client->config.auto_threshold)
{
this->client = client;
}