// +++++++++++++++++++++++++ NinjamTrackView::NinjamTrackView(Controller::MainController *mainController, long trackID) : BaseTrackView(mainController, trackID), orientation(Qt::Vertical) { channelNameLabel = new MarqueeLabel(); channelNameLabel->setObjectName("channelName"); channelNameLabel->setText(""); channelNameLabel->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Maximum)); chunksDisplay = new IntervalChunksDisplay(this); chunksDisplay->setObjectName("chunksDisplay"); chunksDisplay->setVisible(false); setupVerticalLayout(); setUnlightStatus(true); // disabled/grayed until receive the first bytes. }
LocalTrackView::LocalTrackView(Controller::MainController *mainController, int channelIndex) : BaseTrackView(mainController, channelIndex), inputNode(nullptr) { Q_ASSERT(mainController); // insert a input node in controller inputNode = new Audio::LocalInputAudioNode(channelIndex); trackID = mainController->addInputTrackNode(this->inputNode); bindThisViewWithTrackNodeSignals();// now is secure bind this LocalTrackView with the respective TrackNode model setInitialValues(1.0f, BaseTrackView::Boost::ZERO, 0.0f, false); setUnlightStatus(false); peakMetersOnly = false; }
LocalTrackView::LocalTrackView(Controller::MainController *mainController, int channelIndex) : BaseTrackView(mainController, channelIndex), inputNode(nullptr), usingSmallSpacing(false), peakMetersOnly(false), buttonStereoInversion(createStereoInversionButton()) { Q_ASSERT(mainController); // insert a input node in controller inputNode = new Audio::LocalInputNode(mainController, channelIndex); trackID = mainController->addInputTrackNode(this->inputNode); bindThisViewWithTrackNodeSignals();// now is secure bind this LocalTrackView with the respective TrackNode model setInitialValues(1.0f, BaseTrackView::Boost::ZERO, 0.0f, false, false); setUnlightStatus(false); secondaryChildsLayout->addWidget(buttonStereoInversion); }