: BC_DialogThread()
{
this->mwindow = mwindow;
+ this->result = 0;
}
WWindow::~WWindow()
if( running() ) return;
this->do_warning = do_warning;
this->warn_text = warn_text;
+ this->result = 0;
start();
}
void WWindow::handle_close_event(int result)
{
+ this->result = result;
gui = 0;
}
return gui;
}
+int WWindow::wait_result()
+{
+ if( !running() ) return -1;
+ join();
+ return result;
+}
+
WWindowGUI::WWindowGUI(WWindow *thread, int x, int y)
: BC_Window(_(PROGRAM_NAME ": Warning"), x, y, 640, 100, 640, 100, 0, 0, 1)
{