X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fprobeprefs.C;h=47460c7ede46875eb4013ae12d23f03484ed6ec5;hp=57472372341bb816d9e04f543a5bb5cfd9bd85c9;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/cinelerra/probeprefs.C b/cinelerra-5.1/cinelerra/probeprefs.C index 57472372..47460c7e 100644 --- a/cinelerra-5.1/cinelerra/probeprefs.C +++ b/cinelerra-5.1/cinelerra/probeprefs.C @@ -50,7 +50,7 @@ void FileProbeDialog::handle_close_event(int result) ProbeEditWindow::ProbeEditWindow(FileProbeDialog *pb_dialog, int x, int y) - : BC_Window(_(PROGRAM_NAME ": Probes"), x, y, 300, 200, 300, 200, 0, 0, 1) + : BC_Window(_(PROGRAM_NAME ": Probes"), x, y, xS(300), yS(200), xS(300), yS(200), 0, 0, 1) { this->pb_dialog = pb_dialog; probe_list = 0; @@ -69,6 +69,7 @@ ProbeEditWindow::~ProbeEditWindow() void ProbeEditWindow::create_objects() { + int xs10 = xS(10), ys10 = yS(10); lock_window("ProbeEditWindow::create_objects"); pb_enabled = new BC_Pixmap(this, BC_WindowBase::get_resources()->listbox_up, @@ -80,14 +81,14 @@ void ProbeEditWindow::create_objects() for( int i=0; ifile_probes.size(); ++i ) { probe_items.append(new ProbePrefItem(this, preferences->file_probes[i])); } - int x = 10, y = 10; + int x = xs10, y = ys10; add_subwindow(probe_list = new ProbePrefList(this, x, y)); y += probe_list->get_h(); int x1 = x, y1 = y; add_subwindow(probe_up_button = new ProbeUpButton(this, x1, y1)); - x1 += probe_up_button->get_w() + 10; + x1 += probe_up_button->get_w() + xs10; add_subwindow(probe_down_button = new ProbeDownButton(this, x1, y1)); - x1 += probe_down_button->get_w() + 10; + x1 += probe_down_button->get_w() + xs10; add_subwindow(probe_enabled = new ProbeEnabled(this, x1, y1)); probe_enabled->disable(); @@ -232,8 +233,9 @@ void ProbePrefItem::set_armed(int armed) } ProbePrefList::ProbePrefList(ProbeEditWindow *pb_window, int x, int y) - : BC_ListBox(x, y, pb_window->get_w()-x-10, pb_window->get_h()-y-80, LISTBOX_ICON_LIST, - (ArrayList*) &pb_window->probe_items, 0, 0) + : BC_ListBox(x, y, pb_window->get_w()-x-xS(10), pb_window->get_h()-y-yS(80), + LISTBOX_ICON_LIST, (ArrayList*) &pb_window->probe_items, + 0, 0) { this->pb_window = pb_window; }