1 #include "bcdisplayinfo.h"
2 #include "holowindow.h"
5 #define _(String) gettext(String)
6 #define gettext_noop(String) String
7 #define N_(String) gettext_noop (String)
10 HoloThread::HoloThread(HoloMain *client)
13 this->client = client;
19 HoloThread::~HoloThread()
21 // Window always deleted here
25 void HoloThread::run()
28 window = new HoloWindow(client,
29 info.get_abs_cursor_x() - 105,
30 info.get_abs_cursor_y() - 100);
31 window->create_objects();
33 int result = window->run_window();
35 // Last command executed in thread
36 if(result) client->client_side_close();
44 HoloWindow::HoloWindow(HoloMain *client, int x, int y)
45 : BC_Window(client->gui_string,
56 this->client = client;
59 HoloWindow::~HoloWindow()
63 int HoloWindow::create_objects()
66 add_subwindow(new BC_Title(x, y,
67 _("HolographicTV from EffectTV\n"
68 "Copyright (C) 2001 FUKUCHI Kentarou")
76 int HoloWindow::close_event()
78 // Set result to 1 to indicate a client side close