- if( vframe )
- draw_vframe(vframe, get_w()-vframe->get_w()-10, y);
- else if( tp->isauto ) {
- int wh = toggle->get_h() - 4;
- GWindowColorButton *color_button =
- new GWindowColorButton(toggle, get_w()-wh-10, y+2, wh);
- add_tool(color_button);
- color_button->set_color(color);
- color_button->draw_face();
+ if( tp->isauto > 0 ) {
+ VFrame *vframe = 0;
+ switch( ref ) {
+ case AUTOMATION_MODE: vframe = mwindow->theme->modekeyframe_data; break;
+ case AUTOMATION_PAN: vframe = mwindow->theme->pankeyframe_data; break;
+ case AUTOMATION_MASK: vframe = mwindow->theme->maskkeyframe_data; break;
+ }
+ if( !vframe ) {
+ int wh = toggle->get_h() - 4;
+ GWindowColorButton *color_button =
+ new GWindowColorButton(toggle, get_w()-wh-10, y+2, wh);
+ add_tool(color_button);
+ color_button->set_color(color);
+ color_button->draw_face();
+ }
+ else
+ draw_vframe(vframe, get_w()-vframe->get_w()-10, y);
+ }
+ else if( tp->isauto < 0 ) {
+ const char *accel = 0;
+ switch( ref ) {
+ case NONAUTOTOGGLES_CAMERA_XYZ:
+ camera_xyz = toggle;
+ accel = _("SHF+F1");
+ break;
+ case NONAUTOTOGGLES_PROJECTOR_XYZ:
+ projector_xyz = toggle;
+ accel = _("SHF+F2");
+ break;
+ }
+ if( accel ) {
+ int x1 = get_w() - BC_Title::calculate_w(this, accel) - 10;
+ add_subwindow(new BC_Title(x1, y, accel));
+ }