X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcnewfolder.C;h=2d73b49d0772d58fb8ee6e55fb3e6fe4b56e5a62;hb=22c6251d37911a11e322bf7518e6a992ea0bb6c7;hp=cc9d4b1b91831ab37a3f5b60b81a315da3938ef4;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/guicast/bcnewfolder.C b/cinelerra-5.1/guicast/bcnewfolder.C index cc9d4b1b..2d73b49d 100644 --- a/cinelerra-5.1/guicast/bcnewfolder.C +++ b/cinelerra-5.1/guicast/bcnewfolder.C @@ -19,10 +19,11 @@ * */ -#include "condition.h" +#include "bcresources.h" #include "bcfilebox.h" #include "bcnewfolder.h" #include "bctitle.h" +#include "condition.h" #include "filesystem.h" #include "language.h" #include "mutex.h" @@ -30,22 +31,9 @@ #include - - - - - BC_NewFolder::BC_NewFolder(int x, int y, BC_FileBox *filebox) : BC_Window(filebox->get_newfolder_title(), - x, - y, - 320, - 120, - 0, - 0, - 0, - 0, - 1) + x, y, xS(320), yS(120), 0, 0, 0, 0, 1) { } @@ -57,13 +45,13 @@ BC_NewFolder::~BC_NewFolder() void BC_NewFolder::create_objects() { lock_window("BC_NewFolder::create_objects"); - int x = 10, y = 10; + int x = xS(10), y = yS(10); add_tool(new BC_Title(x, y, _("Enter the name of the folder:"))); - y += 20; - add_subwindow(textbox = new BC_TextBox(x, y, 300, 1, _("Untitled"))); - y += 30; + y += yS(20); + add_subwindow(textbox = new BC_TextBox(x, y, xS(300), 1, _("Untitled"))); + y += yS(30); add_subwindow(new BC_OKButton(this)); - x = get_w() - 100; + x = get_w() - xS(100); add_subwindow(new BC_CancelButton(this)); show_window(); unlock_window(); @@ -86,7 +74,7 @@ BC_NewFolderThread::BC_NewFolderThread(BC_FileBox *filebox) BC_NewFolderThread::~BC_NewFolderThread() { - interrupt(); + interrupt(); delete change_lock; delete completion_lock; }