X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcdelete.C;fp=cinelerra-5.1%2Fguicast%2Fbcdelete.C;h=2267f4eeda502e0b62c90460663492d8e1a1825a;hp=972eff3dd9583474f5b03fa76399fd2342535c45;hb=0df48ad2d876409c5beeae2e21933a728ea76c33;hpb=bd570c5fa5f5473b670673368dc30356aa6c43fa diff --git a/cinelerra-5.1/guicast/bcdelete.C b/cinelerra-5.1/guicast/bcdelete.C index 972eff3d..2267f4ee 100644 --- a/cinelerra-5.1/guicast/bcdelete.C +++ b/cinelerra-5.1/guicast/bcdelete.C @@ -25,20 +25,9 @@ #include "language.h" - - - BC_DeleteFile::BC_DeleteFile(BC_FileBox *filebox, int x, int y) : BC_Window(filebox->get_delete_title(), - x, - y, - 320, - 480, - 0, - 0, - 0, - 0, - 1) + x, y, xS(320), yS(480), 0, 0, 0, 0, 1) { this->filebox = filebox; data = 0; @@ -51,7 +40,7 @@ BC_DeleteFile::~BC_DeleteFile() void BC_DeleteFile::create_objects() { - int x = 10, y = 10; + int x = xS(10), y = yS(10); data = new ArrayList; int i = 1; char *path; @@ -67,15 +56,11 @@ void BC_DeleteFile::create_objects() BC_Title *title; add_subwindow(title = new BC_Title(x, y, _("Really delete the following files?"))); - y += title->get_h() + 5; + y += title->get_h() + yS(5); BC_DeleteList *list; - add_subwindow(list = new BC_DeleteList(filebox, - x, - y, - get_w() - x * 2, - get_h() - y - BC_OKButton::calculate_h() - 20, - data)); - y += list->get_h() + 5; + add_subwindow(list = new BC_DeleteList(filebox, x, y, + get_w() - x * 2, get_h() - y - BC_OKButton::calculate_h() - xS(20), data)); + y += list->get_h() + yS(5); add_subwindow(new BC_OKButton(this)); add_subwindow(new BC_CancelButton(this)); show_window(); @@ -83,34 +68,15 @@ void BC_DeleteFile::create_objects() } - - - BC_DeleteList::BC_DeleteList(BC_FileBox *filebox, - int x, - int y, - int w, - int h, + int x, int y, int w, int h, ArrayList *data) - : BC_ListBox(x, - y, - w, - h, - LISTBOX_TEXT, - data) + : BC_ListBox(x, y, w, h, LISTBOX_TEXT, data) { this->filebox = filebox; } - - - - - - - - BC_DeleteThread::BC_DeleteThread(BC_FileBox *filebox) : BC_DialogThread() { @@ -136,10 +102,3 @@ BC_Window* BC_DeleteThread::new_gui() return result; } - - - - - - -