1 #include "assetremove.h"
3 #include "mwindowgui.h"
6 #define _(String) gettext(String)
7 #define gettext_noop(String) String
8 #define N_(String) gettext_noop (String)
11 AssetRemoveWindow::AssetRemoveWindow(MWindow *mwindow)
12 : BC_Window(PROGRAM_NAME ": Remove assets",
13 mwindow->gui->get_abs_cursor_x(),
14 mwindow->gui->get_abs_cursor_y(),
23 this->mwindow = mwindow;
25 void AssetRemoveWindow::create_objects()
28 add_subwindow(new BC_Title(x, y, _("Permanently remove from disk?")));
29 add_subwindow(new BC_OKButton(this));
30 add_subwindow(new BC_CancelButton(this));
36 AssetRemoveThread::AssetRemoveThread(MWindow *mwindow)
39 this->mwindow = mwindow;
40 Thread::set_synchronous(0);
42 void AssetRemoveThread::run()
44 AssetRemoveWindow *window = new AssetRemoveWindow(mwindow);
45 window->create_objects();
46 int result = window->run_window();
51 mwindow->remove_assets_from_disk();