X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Ffilesndfile.C;h=ffd59b46fdd2967fb7f61480bf16c2b25e75f810;hp=9351378b97e4a7f1a2d09f75c04155f3532c733f;hb=refs%2Fheads%2Fmaster;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1 diff --git a/cinelerra-5.1/cinelerra/filesndfile.C b/cinelerra-5.1/cinelerra/filesndfile.C index 9351378b..a24002f3 100644 --- a/cinelerra-5.1/cinelerra/filesndfile.C +++ b/cinelerra-5.1/cinelerra/filesndfile.C @@ -371,13 +371,13 @@ void FileSndFile::get_parameters(BC_WindowBase *parent_window, SndFileConfig::SndFileConfig(BC_WindowBase *parent_window, Asset *asset) : BC_Window(_(PROGRAM_NAME ": Audio Compression"), - parent_window->get_abs_cursor_x(1), - parent_window->get_abs_cursor_y(1), - 250, - 250) + parent_window->get_abs_cursor_x(1), parent_window->get_abs_cursor_y(1), + xS(250), yS(250)) { this->parent_window = parent_window; this->asset = asset; +// *** CONTEXT_HELP *** + context_help_set_keyword("Single File Rendering"); } SndFileConfig::~SndFileConfig() @@ -392,8 +392,9 @@ SndFileConfig::~SndFileConfig() void SndFileConfig::create_objects() { + int xs10 = xS(10); lock_window("SndFileConfig::create_objects"); - int x = 10, y = 10; + int x = xs10, y = yS(10); bits_popup = 0; switch(asset->format) @@ -402,27 +403,27 @@ void SndFileConfig::create_objects() case FILE_PCM: case FILE_AIFF: add_tool(new BC_Title(x, y, _("Compression:"))); - y += 25; + y += yS(25); if(asset->format == FILE_WAV) bits_popup = new BitsPopup(this, x, y, &asset->bits, 0, 0, 1, 1, 0); else bits_popup = new BitsPopup(this, x, y, &asset->bits, 0, 0, 0, 0, 0); - y += 40; + y += yS(40); bits_popup->create_objects(); break; } - x = 10; + x = xs10; if(asset->format != FILE_AU) add_subwindow(new BC_CheckBox(x, y, &asset->dither, _("Dither"))); - y += 30; + y += yS(30); if(asset->format == FILE_PCM) { add_subwindow(new BC_CheckBox(x, y, &asset->signed_, _("Signed"))); - y += 35; + y += yS(35); add_subwindow(new BC_Title(x, y, _("Byte order:"))); - add_subwindow(hilo = new SndFileHILO(this, x + 100, y)); - add_subwindow(lohi = new SndFileLOHI(this, x + 170, y)); + add_subwindow(hilo = new SndFileHILO(this, x + xS(100), y)); + add_subwindow(lohi = new SndFileLOHI(this, x + xS(170), y)); } add_subwindow(new BC_OKButton(this)); show_window(1); @@ -441,6 +442,7 @@ SndFileHILO::SndFileHILO(SndFileConfig *gui, int x, int y) : BC_Radial(x, y, gui->asset->byte_order == 0, _("Hi Lo")) { this->gui = gui; + set_tooltip(_("Little Endian")); } int SndFileHILO::handle_event() { @@ -456,6 +458,7 @@ SndFileLOHI::SndFileLOHI(SndFileConfig *gui, int x, int y) : BC_Radial(x, y, gui->asset->byte_order == 1, _("Lo Hi")) { this->gui = gui; + set_tooltip(_("Big Endian")); } int SndFileLOHI::handle_event() {