ConfirmSaveWindow::ConfirmSaveWindow(MWindow *mwindow,
ArrayList<BC_ListBoxItem*> *list)
: BC_Window(_(PROGRAM_NAME ": File Exists"),
ConfirmSaveWindow::ConfirmSaveWindow(MWindow *mwindow,
ArrayList<BC_ListBoxItem*> *list)
: BC_Window(_(PROGRAM_NAME ": File Exists"),
- mwindow->gui->get_abs_cursor_x(1) - 160,
- mwindow->gui->get_abs_cursor_y(1) - 120,
- 320,
- 320)
+ mwindow->gui->get_abs_cursor_x(1) - CSW_W/2,
+ mwindow->gui->get_abs_cursor_y(1) - CSW_H/2,
+ CSW_W, CSW_H)
lock_window("ConfirmSaveWindow::create_objects");
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));
lock_window("ConfirmSaveWindow::create_objects");
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));
add_subwindow(title = new BC_Title(x,
y,
_("The following files exist. Overwrite them?")));
add_subwindow(title = new BC_Title(x,
y,
_("The following files exist. Overwrite them?")));
- y += 30;
- add_subwindow(listbox = new BC_ListBox(x,
- y,
- get_w() - x - 10,
- get_h() - y - BC_OKButton::calculate_h() - 10,
+ y += ys30;
+ add_subwindow(listbox = new BC_ListBox(x, y,
+ get_w() - x - xs10,
+ get_h() - y - BC_OKButton::calculate_h() - ys10,
- y += 30;
- listbox->reposition_window(x,
- y,
- w - x - 10,
- h - y - 50);
+ y += ys30;
+ listbox->reposition_window(x, y,
+ w - x - xs10,
+ h - y - BC_OKButton::calculate_h() - ys10);