ChanSearchText::ChanSearchText(ChanSearchGUI *gui, int x, int y, int w)
ChanSearchText::ChanSearchText(ChanSearchGUI *gui, int x, int y, int w)
- : BC_TextBox(x, y, w, 1, "")
+ : BC_TextBox(x, y, w, 1, "")
int pady = BC_TextBox::calculate_h(this, MEDIUMFONT, 0, 1) + 5;
int padx = BC_Title::calculate_w(this, (char*)"X", MEDIUMFONT);
int x = padx/2, y = pady/4;
int pady = BC_TextBox::calculate_h(this, MEDIUMFONT, 0, 1) + 5;
int padx = BC_Title::calculate_w(this, (char*)"X", MEDIUMFONT);
int x = padx/2, y = pady/4;
BC_Title *title = new BC_Title(text_x, text_y, _("Text:"), MEDIUMFONT, YELLOW);
add_subwindow(title); x += title->get_w();
BC_Title *title = new BC_Title(text_x, text_y, _("Text:"), MEDIUMFONT, YELLOW);
add_subwindow(title); x += title->get_w();
search_text = new ChanSearchText(this, x, y, get_w()-x-10);
add_subwindow(search_text);
x = padx; y += pady + 5;
search_text = new ChanSearchText(this, x, y, get_w()-x-10);
add_subwindow(search_text);
x = padx; y += pady + 5;
search_column_titles[2] = _("Start time");
search_column_widths[0] = 120;
search_column_widths[2] = 120;
search_column_titles[2] = _("Start time");
search_column_widths[0] = 120;
search_column_widths[2] = 120;
struct tm xtm; localtime_r(&xt,&xtm);
cp += sprintf(cp,"%02d:%02d",xtm.tm_hour, xtm.tm_min);
if( !xtm.tm_hour && !xtm.tm_min ) {
struct tm xtm; localtime_r(&xt,&xtm);
cp += sprintf(cp,"%02d:%02d",xtm.tm_hour, xtm.tm_min);
if( !xtm.tm_hour && !xtm.tm_min ) {