00001 #include "bcdisplayinfo.h"
00002 #include "blurzoomwindow.h"
00003
00004 #include <libintl.h>
00005 #define _(String) gettext(String)
00006 #define gettext_noop(String) String
00007 #define N_(String) gettext_noop (String)
00008
00009
00010 BlurZoomThread::BlurZoomThread(BlurZoomMain *client)
00011 : Thread()
00012 {
00013 this->client = client;
00014 set_synchronous(0);
00015 gui_started.lock();
00016 completion.lock();
00017 }
00018
00019 BlurZoomThread::~BlurZoomThread()
00020 {
00021
00022 delete window;
00023 }
00024
00025 void BlurZoomThread::run()
00026 {
00027 BC_DisplayInfo info;
00028 window = new BlurZoomWindow(client,
00029 info.get_abs_cursor_x() - 105,
00030 info.get_abs_cursor_y() - 100);
00031 window->create_objects();
00032 gui_started.unlock();
00033 int result = window->run_window();
00034 completion.unlock();
00035
00036 if(result) client->client_side_close();
00037 }
00038
00039
00040
00041
00042
00043
00044 BlurZoomWindow::BlurZoomWindow(BlurZoomMain *client, int x, int y)
00045 : BC_Window(client->gui_string,
00046 x,
00047 y,
00048 300,
00049 170,
00050 300,
00051 170,
00052 0,
00053 0,
00054 1)
00055 {
00056 this->client = client;
00057 }
00058
00059 BlurZoomWindow::~BlurZoomWindow()
00060 {
00061 }
00062
00063 int BlurZoomWindow::create_objects()
00064 {
00065 int x = 10, y = 10;
00066 add_subwindow(new BC_Title(x, y,
00067 _("RadioacTV from EffectTV\n"
00068 "Copyright (C) 2001 FUKUCHI Kentarou")
00069 ));
00070
00071 show_window();
00072 flush();
00073 return 0;
00074 }
00075
00076 int BlurZoomWindow::close_event()
00077 {
00078
00079 set_done(1);
00080 return 1;
00081 }
00082
00083