00001 #include "mwindow.h"
00002 #include "mwindowgui.h"
00003 #include "recconfirmdelete.h"
00004
00005
00006 #include <libintl.h>
00007 #define _(String) gettext(String)
00008 #define gettext_noop(String) String
00009 #define N_(String) gettext_noop (String)
00010
00011
00012 RecConfirmDelete::RecConfirmDelete(MWindow *mwindow)
00013 : BC_Window(PROGRAM_NAME ": Confirm",
00014 mwindow->gui->get_abs_cursor_x(1),
00015 mwindow->gui->get_abs_cursor_y(1),
00016 320, 100)
00017 {
00018 }
00019
00020 RecConfirmDelete::~RecConfirmDelete()
00021 {
00022 }
00023
00024 int RecConfirmDelete::create_objects(char *string)
00025 {
00026 char string2[256];
00027 int x = 10, y = 10;
00028 sprintf(string2, _("Delete this file and %s?"), string);
00029 add_subwindow(new BC_Title(x, y, string2));
00030 y += 30;
00031 add_subwindow(new BC_OKButton(x, y));
00032 x = get_w() - 100;
00033 add_subwindow(new BC_CancelButton(x, y));
00034 return 0;
00035 }
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046