Lines Matching refs:curPos_

70 	  curPos_{ 0, 0 },  in OrderListPanel()
122 curPos_, in __anone18887850102()
123 QPoint(calculateColumnsWidthWithRowNum(leftTrackVisIdx_, curPos_.trackVisIdx), curRowY_ - 8)); in __anone18887850102()
159 curPos_.row = 0; // Init in waitPaintFinish()
201 bool cond = (max <= curPos_.trackVisIdx); in setVisibleTracks()
202 if (cond) curPos_.trackVisIdx = max; in setVisibleTracks()
203 leftTrackVisIdx_ = std::min(leftTrackVisIdx_, curPos_.trackVisIdx); in setVisibleTracks()
212 emit hScrollBarChangeRequested(config_->getMoveCursorByHorizontalScroll() ? curPos_.trackVisIdx in setVisibleTracks()
345 curPos_.row, rowNumWidthCnt_, rowNumBase_, QChar('0') in drawRows()
349 orderRowData_ = bt_->getOrderData(curSongNum_, curPos_.row); in drawRows()
352 if (trackVisIdx == curPos_.trackVisIdx) // Paint current cell in drawRows()
354 if (((hovPos_.row == curPos_.row || hovPos_.row == -2) && hovPos_.trackVisIdx == trackVisIdx) in drawRows()
355 || (hovPos_.trackVisIdx == -2 && hovPos_.row == curPos_.row)) // Paint hover in drawRows()
358 && isSelectedCell(trackVisIdx, curPos_.row)) // Paint selected in drawRows()
371 viewedCenterPos_.row = curPos_.row; in drawRows()
378 viewedFirstPos_.row = curPos_.row; in drawRows()
379 endY = std::max(0, viewedCenterY_ - rowFontHeight_ * curPos_.row); in drawRows()
380 …edCenterY_ - rowFontHeight_, baseY = viewedCenterBaseY_ - rowFontHeight_, rowNum = curPos_.row - 1; in drawRows()
425 viewedLastPos_.row = curPos_.row; in drawRows()
427 …viewedCenterY_ + rowFontHeight_ * (static_cast<int>(bt_->getOrderSize(curSongNum_)) - curPos_.row … in drawRows()
428 …edCenterY_ + rowFontHeight_, baseY = viewedCenterBaseY_ + rowFontHeight_, rowNum = curPos_.row + 1; in drawRows()
540 curPos_.row, rowNumWidthCnt_, rowNumBase_, QChar('0') in quickDrawRows()
543 orderRowData_ = bt_->getOrderData(curSongNum_, curPos_.row); in quickDrawRows()
546 if (trackVisIdx == curPos_.trackVisIdx) // Paint current cell in quickDrawRows()
548 if (((hovPos_.row == curPos_.row || hovPos_.row == -2) && hovPos_.trackVisIdx == trackVisIdx) in quickDrawRows()
549 || (hovPos_.trackVisIdx == -2 && hovPos_.row == curPos_.row)) // Paint hover in quickDrawRows()
552 && isSelectedCell(trackVisIdx, curPos_.row)) // Paint selected in quickDrawRows()
563 viewedCenterPos_ = curPos_; in quickDrawRows()
715 int prevTrackIdx = curPos_.trackVisIdx; in moveCursorToRight()
716 int tmp = curPos_.trackVisIdx + n; in moveCursorToRight()
721 curPos_.trackVisIdx = tmp; in moveCursorToRight()
729 curPos_.trackVisIdx = static_cast<int>(visTracks_.size()) - 1; in moveCursorToRight()
743 curPos_.trackVisIdx = 0; in moveCursorToRight()
748 curPos_.trackVisIdx = tmp; in moveCursorToRight()
753 if (prevTrackIdx < curPos_.trackVisIdx) { in moveCursorToRight()
754 …while (calculateColumnsWidthWithRowNum(leftTrackVisIdx_, curPos_.trackVisIdx) > geometry().width()) in moveCursorToRight()
758 if (curPos_.trackVisIdx < leftTrackVisIdx_) leftTrackVisIdx_ = curPos_.trackVisIdx; in moveCursorToRight()
765 emit hScrollBarChangeRequested(config_->getMoveCursorByHorizontalScroll() ? curPos_.trackVisIdx in moveCursorToRight()
769 if (!isIgnoreToPattern_) emit currentTrackChanged(curPos_.trackVisIdx); // Send to pattern editor in moveCursorToRight()
793 int tmp = curPos_.row + n; in moveCursorToDown()
799 curPos_.row = tmp; in moveCursorToDown()
814 curPos_.row = tmp; in moveCursorToDown()
823 emit vScrollBarChangeRequested(curPos_.row, static_cast<int>(bt_->getOrderSize(curSongNum_)) - 1); in moveCursorToDown()
826 emit currentOrderChanged(curPos_.row); in moveCursorToDown()
855 int prevTrackIdx = std::exchange(curPos_.trackVisIdx, trackVisIdx); in updatePositionByOrderUpdate()
856 if (prevTrackIdx < curPos_.trackVisIdx) { in updatePositionByOrderUpdate()
857 …while (calculateColumnsWidthWithRowNum(leftTrackVisIdx_, curPos_.trackVisIdx) > geometry().width()… in updatePositionByOrderUpdate()
863 if (curPos_.trackVisIdx < leftTrackVisIdx_) { in updatePositionByOrderUpdate()
864 leftTrackVisIdx_ = curPos_.trackVisIdx; in updatePositionByOrderUpdate()
871 emit hScrollBarChangeRequested(config_->getMoveCursorByHorizontalScroll() ? curPos_.trackVisIdx in updatePositionByOrderUpdate()
875 int tmp = std::exchange(curPos_.row, bt_->getCurrentOrderNumber()); in updatePositionByOrderUpdate()
876 int d = curPos_.row - tmp; in updatePositionByOrderUpdate()
878 emit vScrollBarChangeRequested(curPos_.row, static_cast<int>(bt_->getOrderSize(curSongNum_)) - 1); in updatePositionByOrderUpdate()
968 …bt_->setOrderPatternDigit(curSongNum_, visTracks_.at(curPos_.trackVisIdx), curPos_.row, n, (entryC… in setCellOrderNum()
969 comStack_.lock()->push(new SetPatternToOrderQtCommand(this, curPos_, (entryCnt_ == 1))); in setCellOrderNum()
979 bt_->insertOrderBelow(curSongNum_, curPos_.row); in insertOrderBelow()
986 bt_->deleteOrder(curSongNum_, curPos_.row); in deleteOrder()
1168 if (int dif = num - curPos_.trackVisIdx) moveCursorToRight(dif); in onHScrollBarChanged()
1179 if (int dif = num - curPos_.row) moveCursorToDown(dif); in onVScrollBarChanged()
1187 if (int dif = idx - curPos_.trackVisIdx) moveCursorToRight(dif); in onPatternEditorCurrentTrackChanged()
1194 if (int dif = num - curPos_.row) moveCursorToDown(dif); in onPatternEditorCurrentOrderChanged()
1201 if (s <= curPos_.row) { in onOrderEdited()
1202 curPos_.row = s - 1; in onOrderEdited()
1203 bt_->setCurrentOrderNumber(curPos_.row); in onOrderEdited()
1215 curPos_ = { visTracks_.front(), bt_->getCurrentOrderNumber() }; in onSongLoaded()
1244 pasteCopiedCells(curPos_); in onPastePressed()
1270 start = { curPos_.trackVisIdx, 0 }; in onSelectPressed()
1271 end = { curPos_.trackVisIdx, max }; in onSelectPressed()
1279 OrderPosition start = { 0, curPos_.row }; in onSelectPressed()
1280 OrderPosition end = { static_cast<int>(visTracks_.size() - 1), curPos_.row }; in onSelectPressed()
1287 OrderPosition start = { curPos_.trackVisIdx, 0 }; in onSelectPressed()
1288 OrderPosition end = { curPos_.trackVisIdx, static_cast<int>(bt_->getOrderSize(curSongNum_) - 1) }; in onSelectPressed()
1295 setSelectedRectangle(curPos_, curPos_); in onSelectPressed()
1308 bt_->duplicateOrder(curSongNum_, curPos_.row); in onDuplicatePressed()
1314 if ((isUp && curPos_.row == 0) in onMoveOrderPressed()
1315 || (!isUp && curPos_.row == static_cast<int>(bt_->getOrderSize(curSongNum_)) - 1)) in onMoveOrderPressed()
1318 bt_->MoveOrder(curSongNum_, curPos_.row, isUp); in onMoveOrderPressed()
1333 bt_->cloneOrder(curSongNum_, curPos_.row); in onCloneOrderPressed()
1339 curPos_.row = bt_->getCurrentOrderNumber(); in onFollowModeChanged()
1340 emit vScrollBarChangeRequested(curPos_.row, static_cast<int>(bt_->getOrderSize(curSongNum_)) - 1); in onFollowModeChanged()
1382 shiftPressedPos_ = curPos_; in keyPressed()
1386 …f (event->modifiers().testFlag(Qt::ShiftModifier)) setSelectedRectangle(shiftPressedPos_, curPos_); in keyPressed()
1391 …f (event->modifiers().testFlag(Qt::ShiftModifier)) setSelectedRectangle(shiftPressedPos_, curPos_); in keyPressed()
1400 …f (event->modifiers().testFlag(Qt::ShiftModifier)) setSelectedRectangle(shiftPressedPos_, curPos_); in keyPressed()
1410 …f (event->modifiers().testFlag(Qt::ShiftModifier)) setSelectedRectangle(shiftPressedPos_, curPos_); in keyPressed()
1419 moveCursorToDown(-curPos_.row); in keyPressed()
1420 …f (event->modifiers().testFlag(Qt::ShiftModifier)) setSelectedRectangle(shiftPressedPos_, curPos_); in keyPressed()
1430 static_cast<int>(bt_->getOrderSize(curSongNum_)) - curPos_.row - 1); in keyPressed()
1431 …f (event->modifiers().testFlag(Qt::ShiftModifier)) setSelectedRectangle(shiftPressedPos_, curPos_); in keyPressed()
1441 …f (event->modifiers().testFlag(Qt::ShiftModifier)) setSelectedRectangle(shiftPressedPos_, curPos_); in keyPressed()
1451 …f (event->modifiers().testFlag(Qt::ShiftModifier)) setSelectedRectangle(shiftPressedPos_, curPos_); in keyPressed()
1553 int horDif = hovPos_.trackVisIdx - curPos_.trackVisIdx; in mouseReleaseEvent()
1554 int verDif = hovPos_.row - curPos_.row; in mouseReleaseEvent()
1559 int horDif = hovPos_.trackVisIdx - curPos_.trackVisIdx; in mouseReleaseEvent()
1564 int verDif = hovPos_.row - curPos_.row; in mouseReleaseEvent()
1607 int tmp = curPos_.row + (pos.y() - curRowY_) / rowFontHeight_ - 1; in mouseHoverd()
1611 hovPos_.row = curPos_.row + (pos.y() - curRowY_) / rowFontHeight_; in mouseHoverd()