1 #include "assetremove.h"
4 #include "mwindowgui.h"
8 AssetRemoveWindow::AssetRemoveWindow(MWindow *mwindow)
9 : BC_Window(PROGRAM_NAME ": Remove assets",
10 mwindow->gui->get_abs_cursor_x(1),
11 mwindow->gui->get_abs_cursor_y(1),
20 this->mwindow = mwindow;
22 void AssetRemoveWindow::create_objects()
25 add_subwindow(new BC_Title(x, y, _("Permanently remove from disk?")));
26 add_subwindow(new BC_OKButton(this));
27 add_subwindow(new BC_CancelButton(this));
33 AssetRemoveThread::AssetRemoveThread(MWindow *mwindow)
36 this->mwindow = mwindow;
37 Thread::set_synchronous(0);
39 void AssetRemoveThread::run()
41 AssetRemoveWindow *window = new AssetRemoveWindow(mwindow);
42 window->create_objects();
43 int result = window->run_window();
48 mwindow->remove_assets_from_disk();