}
auto_zoom_text->update(string);
const char *group_name = AutoTypeMenu::to_text(autogroup_type);
- auto_type->set_text(group_name, color);
+ auto_type->set_text(group_name);
}
AutoTypeMenu::AutoTypeMenu(MWindow *mwindow, ZoomBar *zoombar, int x, int y, int wid)
- : BC_PopupMenu(x, y, wid, to_text(mwindow->edl->local_session->zoombar_showautotype), 1)
+ : BC_PopupMenu(x, y, wid, to_text(mwindow->edl->local_session->zoombar_showautotype), 1)
{
this->mwindow = mwindow;
this->zoombar = zoombar;
return AUTOGROUPTYPE_INT255;
}
+int AutoTypeMenu::draw_face(int dx)
+{
+ BC_PopupMenu::draw_face(dx);
+ int color = mwindow->edl->local_session->zoombar_showautocolor;
+ if( color >= 0 ) {
+ set_color(color);
+ int margin = get_margin();
+ int mx = margin+5, my = 3*margin/8;
+ int bh = get_h() - 2*my;
+ draw_box(mx,my, bh,bh);
+ }
+ return 1;
+}
+
int AutoTypeMenu::handle_event()
{
mwindow->edl->local_session->zoombar_showautotype = from_text(this->get_text());