void TCore::on_timer() { qDebug ()<<__FUNCTION__; label_and_move(); labelF(); labelI_and_hide(); list(); enterF(); window_title(); enterI(); graph(); led(); dial(); lcd_label(); }
void SeqStudioWindow::AddViews(BRect frame) { mBg = new BView(frame, "BG", B_FOLLOW_ALL, B_WILL_DRAW); if (!mBg) return; mBg->SetViewColor( Prefs().Color(AM_AUX_WINDOW_BG_C) ); /* Layout the frames. */ float spaceX = 5, spaceY = 5; float divider = mBg->StringWidth("Device:") + 10; BRect labelF(spaceX, frame.Height() - spaceY - Prefs().Size(TEXTCTRL_Y), frame.Width() - spaceX, frame.Height() - spaceY); BRect devicesF(labelF); devicesF.bottom = devicesF.top - spaceY; devicesF.top = devicesF.bottom - Prefs().Size(MENUFIELD_Y); BRect studioF(devicesF); studioF.bottom = devicesF.top - spaceY; studioF.top = spaceY; /* The consumer list view. */ _EndpointList* consumerList = new _EndpointList(studioF); if (consumerList) { mBg->AddChild(consumerList); } /* The Device field. */ mDeviceCtrl = new_device_control(devicesF); if (mDeviceCtrl) { mDeviceCtrl->SetDivider(divider); mDeviceCtrl->SetEnabled(false); mBg->AddChild(mDeviceCtrl); } /* The Label field. */ mLabelCtrl = new BTextControl(labelF, "label_ctrl", "Label:", NULL, new BMessage(LABEL_MSG), B_FOLLOW_LEFT_RIGHT | B_FOLLOW_BOTTOM); if (mLabelCtrl) { mLabelCtrl->SetDivider(divider); mLabelCtrl->MakeFocus(true); mLabelCtrl->SetEnabled(false); mBg->AddChild(mLabelCtrl); } if (consumerList) consumerList->SetTargets(mLabelCtrl, mDeviceCtrl); AddChild(mBg); }