x, y));
x = x0;
y += 35;
+ add_subwindow(new BC_Bar(5, y, get_w()/2 - 30));
+ y += 15;
+
+ add_subwindow(new BC_Title(x, y, _("Color:"), LARGEFONT,
+ resources->text_default));
+ y += 35;
add_subwindow(title = new BC_Title(x, y, _("Highlighting Inversion color:")));
x += title->get_w() + margin;
char hex_color[BCSTRLEN];
add_subwindow(displacement);
y1 += displacement->get_h() + 5;
add_subwindow(thumbnails = new ViewThumbnails(x1, y1, pwindow));
+ y1 += thumbnails->get_h() + 5;
+ PerpetualSession *perpetual = new PerpetualSession(x1, y1, pwindow);
+ add_subwindow(perpetual);
+ y1 += perpetual->get_h() + 5;
if( y < y1 ) y = y1;
}
return popup->handle_event();
}
+PerpetualSession::PerpetualSession(int x, int y, PreferencesWindow *pwindow)
+ : BC_CheckBox(x, y,
+ pwindow->thread->preferences->perpetual_session, _("Perpetual session"))
+{
+ this->pwindow = pwindow;
+}
+
+int PerpetualSession::handle_event()
+{
+ pwindow->thread->preferences->perpetual_session = get_value();
+ return 1;
+}
+