add BC_SCALE env var for hi def monitors, cleanup theme data
[goodguy/cinelerra.git] / cinelerra-5.1 / guicast / bcnewfolder.C
index cc9d4b1b91831ab37a3f5b60b81a315da3938ef4..2d73b49d0772d58fb8ee6e55fb3e6fe4b56e5a62 100644 (file)
  *
  */
 
-#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"
 #include <sys/stat.h>
 
 
-
-
-
-
-
 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;
 }