X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fprobeprefs.C;h=bf903ffdf4e0c25bad8b95f62c49c78a2f72784f;hb=e6b185e4309d5f1d0c70d1d16079a5d32b7e67e2;hp=57472372341bb816d9e04f543a5bb5cfd9bd85c9;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/probeprefs.C b/cinelerra-5.1/cinelerra/probeprefs.C index 57472372..bf903ffd 100644 --- a/cinelerra-5.1/cinelerra/probeprefs.C +++ b/cinelerra-5.1/cinelerra/probeprefs.C @@ -1,3 +1,23 @@ +/* + * CINELERRA + * Copyright (C) 2016-2020 William Morrow + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published + * by the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA + */ + #include "bcwindowbase.h" #include "bcdisplayinfo.h" #include "bcdialog.h" @@ -50,7 +70,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; @@ -59,6 +79,8 @@ ProbeEditWindow::ProbeEditWindow(FileProbeDialog *pb_dialog, int x, int y) probe_enabled = 0; pb_enabled = 0; pb_disabled = 0; +// *** CONTEXT_HELP *** + context_help_set_keyword("Probe Order when Loading Media"); } ProbeEditWindow::~ProbeEditWindow() @@ -69,6 +91,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 +103,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 +255,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; }