void ChannelEditWindow::create_objects()
{
+ lock_window("ChannelEditWindow::create_objects");
int x = 10, y = 10;
// Create channel list
edit_thread = new ChannelEditEditThread(this, channel_picker);
picture_thread = new ChannelEditPictureThread(channel_picker);
show_window();
+ unlock_window();
}
int ChannelEditWindow::close_event()
}
-
-
-
-
-
-
-
-
-
-
-// ========================= confirm overwrite by channel scannin
-
+// ========================= confirm overwrite by channel scanning
ConfirmScan::ConfirmScan(ChannelEditWindow *gui, int x, int y)
: BC_Window(_(PROGRAM_NAME ": Scan confirm"),
- x,
- y,
- 350,
- BC_OKButton::calculate_h() + 130,
- 0,
- 0,
- 0,
- 0,
- 1)
+ x, y, 350, BC_OKButton::calculate_h() + 130,
+ 0, 0, 0, 0, 1)
{
this->gui = gui;
}
void ConfirmScan::create_objects()
{
+ lock_window("ConfirmScan::create_objects");
int x = 10, y = 10;
int y2 = 0, x2 = 0;
BC_Title *title;
add_subwindow(new BC_OKButton(this));
add_subwindow(new BC_CancelButton(this));
show_window();
+ unlock_window();
}
-
-
-
-
-
-
ConfirmScanThread::ConfirmScanThread(ChannelEditWindow *gui)
: BC_DialogThread()
{
: BC_Window(_(PROGRAM_NAME ": Edit Channel"),
channel_picker->parent_window->get_abs_cursor_x(1),
channel_picker->parent_window->get_abs_cursor_y(1),
- 390,
- 300,
- 390,
- 300,
- 0,
- 0,
- 1)
+ 390, 300, 390, 300, 0, 0, 1)
{
this->channel_picker = channel_picker;
this->window = window;
ChannelEditEditWindow::~ChannelEditEditWindow()
{
}
+
void ChannelEditEditWindow::create_objects(Channel *channel)
{
+ lock_window("ChannelEditEditWindow::create_objects");
this->new_channel = channel;
Channel *channel_usage = channel_picker->get_channel_usage();
title_text = 0;
x += 200;
add_subwindow(new BC_CancelButton(this));
show_window();
+ unlock_window();
}
ChannelEditEditTitle::ChannelEditEditTitle(int x,
: BC_Window(_(PROGRAM_NAME ": Picture"),
channel_picker->mwindow->session->picture_x,
channel_picker->mwindow->session->picture_y,
- calculate_w(channel_picker),
- calculate_h(channel_picker),
- calculate_w(channel_picker),
- calculate_h(channel_picker))
+ calculate_w(channel_picker), calculate_h(channel_picker),
+ calculate_w(channel_picker), calculate_h(channel_picker))
{
this->thread = thread;
this->channel_picker = channel_picker;
void ChannelEditPictureWindow::create_objects()
{
+ lock_window("ChannelEditPictureWindow::create_objects");
int x = 10, y = 10;
int widget_border = ((Theme*)channel_picker->get_theme())->widget_border;
int x1 = get_w() - BC_Pot::calculate_w() * 2 - widget_border * 2;
y += pad;
add_subwindow(new BC_OKButton(this));
show_window();
+ unlock_window();
}
int ChannelEditPictureWindow::translation_event()