projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add BC_SCALE env var for hi def monitors, cleanup theme data
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
cinelerra
/
savefile.C
diff --git
a/cinelerra-5.1/cinelerra/savefile.C
b/cinelerra-5.1/cinelerra/savefile.C
index ffd9aef688638b0ed41acee22492dfaf66bbbf31..552f2d353e9cf3b43745c1e9c1970c1715b92542 100644
(file)
--- a/
cinelerra-5.1/cinelerra/savefile.C
+++ b/
cinelerra-5.1/cinelerra/savefile.C
@@
-39,13
+39,6
@@
#include <string.h>
#include <string.h>
-
-
-
-
-
-
-
SaveBackup::SaveBackup(MWindow *mwindow)
: BC_MenuItem(_("Save backup"), "b", 'b')
{
SaveBackup::SaveBackup(MWindow *mwindow)
: BC_MenuItem(_("Save backup"), "b", 'b')
{
@@
-59,15
+52,6
@@
int SaveBackup::handle_event()
}
}
-
-
-
-
-
-
-
-
-
Save::Save(MWindow *mwindow) : BC_MenuItem(_("Save"), "s", 's')
{
this->mwindow = mwindow;
Save::Save(MWindow *mwindow) : BC_MenuItem(_("Save"), "s", 's')
{
this->mwindow = mwindow;
@@
-252,7
+236,7
@@
int SaveProjectModeItem::handle_event()
}
SaveProjectMode::SaveProjectMode(SaveProjectWindow *gui, int x, int y)
}
SaveProjectMode::SaveProjectMode(SaveProjectWindow *gui, int x, int y)
- : BC_PopupMenu(x, y,
100
, "")
+ : BC_PopupMenu(x, y,
xS(100)
, "")
{
this->gui = gui;
save_modes[SAVE_PROJECT_COPY] = _("Copy");
{
this->gui = gui;
save_modes[SAVE_PROJECT_COPY] = _("Copy");
@@
-298,7
+282,7
@@
SaveProjectWindow::SaveProjectWindow(MWindow *mwindow, const char *dir_path,
mwindow->gui->get_abs_cursor_x(1),
mwindow->gui->get_abs_cursor_y(1) -
BC_WindowBase::get_resources()->filebox_h / 2,
mwindow->gui->get_abs_cursor_x(1),
mwindow->gui->get_abs_cursor_y(1) -
BC_WindowBase::get_resources()->filebox_h / 2,
-
540, 220, 540, 220
, 0)
+
xS(540), yS(220), xS(540), yS(220)
, 0)
{
this->mwindow = mwindow;
strcpy(this->dir_path, dir_path);
{
this->mwindow = mwindow;
strcpy(this->dir_path, dir_path);
@@
-312,26
+296,28
@@
SaveProjectWindow::~SaveProjectWindow()
void SaveProjectWindow::create_objects()
{
void SaveProjectWindow::create_objects()
{
- int x = 20, y = 20, x1 = get_w()-80;
+ int xs10 = xS(10), xs20 = xS(20);
+ int ys10 = yS(10), ys20 = yS(20);
+ int x = xs20, y = ys20, x1 = get_w()-xS(80);
BC_Title *title;
add_subwindow(title = new BC_Title(x, y, _("Project Directory:")));
BC_Title *title;
add_subwindow(title = new BC_Title(x, y, _("Project Directory:")));
- y += title->get_h() + 10;
+ y += title->get_h() +
ys
10;
add_subwindow(textbox = new SaveProjectTextBox(this, x, y, x1-x));
add_subwindow(textbox = new SaveProjectTextBox(this, x, y, x1-x));
- x1 += 10;
+ x1 +=
xs
10;
add_subwindow(recent_project = new BC_RecentList("RECENT_PROJECT",
add_subwindow(recent_project = new BC_RecentList("RECENT_PROJECT",
- mwindow->defaults, textbox, 10, x1, y,
300, 100
));
+ mwindow->defaults, textbox, 10, x1, y,
xS(300), yS(100)
));
recent_project->load_items("RECENT_PROJECT");
recent_project->load_items("RECENT_PROJECT");
- x1 += recent_project->get_w() + 10;
+ x1 += recent_project->get_w() +
xs
10;
add_subwindow(browse_button = new BrowseButton(mwindow->theme, this,
add_subwindow(browse_button = new BrowseButton(mwindow->theme, this,
- textbox, x1, y-
5
, "", "", "", 1));
- y += textbox->get_h() + 20;
+ textbox, x1, y-
yS(5)
, "", "", "", 1));
+ y += textbox->get_h() +
ys
20;
add_subwindow(mode_popup = new SaveProjectMode(this, x, y));
mode_popup->create_objects();
add_subwindow(mode_popup = new SaveProjectMode(this, x, y));
mode_popup->create_objects();
- y += mode_popup->get_h() + 10;
+ y += mode_popup->get_h() +
ys
10;
x1 = x;
BC_CheckBox *overwrite_files, *reload_project;
add_subwindow(overwrite_files = new BC_CheckBox(x1, y, &overwrite, _("Overwrite files")));
x1 = x;
BC_CheckBox *overwrite_files, *reload_project;
add_subwindow(overwrite_files = new BC_CheckBox(x1, y, &overwrite, _("Overwrite files")));
- x1 += overwrite_files->get_w() + 20;
+ x1 += overwrite_files->get_w() +
xs
20;
add_subwindow(reload_project = new BC_CheckBox(x1, y, &reload, _("Reload project")));
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));
add_subwindow(reload_project = new BC_CheckBox(x1, y, &reload, _("Reload project")));
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));