Lines Matching refs:line

60 	"line %" B_PRId32 ".";
62 "line %" B_PRId32 ".";
64 "line %" B_PRId32 ".";
104 BRect LineRect(uint32 line) const;
137 BreakpointMarker* BreakpointMarkerAtLine(uint32 line);
154 static int _CompareLineMarkerTemplate(const uint32* line,
156 static int _CompareLineMarker(const uint32* line,
159 const uint32* line,
213 Marker(uint32 line);
226 InstructionPointerMarker(uint32 line,
245 BreakpointMarker(uint32 line,
269 MarkerByLinePredicate(uint32 line)
271 fLine(line)
313 line = _line;
319 return line == other.line && offset == other.offset;
322 int32 line;
334 inline float _FormattedLineWidth(const char* line) const;
336 void _DrawLineSyntaxSection(const char* line,
339 inline void _DrawLineSegment(const char* line,
342 float _FormattedPosition(int32 line,
360 int32 line);
362 int32 line);
443 int32 line = (int32)yOffset / (int32)fFontInfo->lineHeight;
444 return line < lineCount ? line : -1;
461 SourceView::BaseView::LineRect(uint32 line) const
463 float y = (float)line * fFontInfo->lineHeight;
471 SourceView::MarkerManager::Marker::Marker(uint32 line)
473 fLine(line)
494 uint32 line, bool topIP, bool currentIP)
496 Marker(line),
561 SourceView::MarkerManager::BreakpointMarker::BreakpointMarker(uint32 line,
564 Marker(line),
684 int32 line = statement->StartSourceLocation().Line();
685 if (line < 0 || line >= fSourceCode->CountLines())
700 line, isTopFrame, frame == fStackFrame);
707 // sort by line
749 int32 line = statement->StartSourceLocation().Line();
750 if (line < 0 || line >= fSourceCode->CountLines())
762 line, breakpointInstance->Address(), breakpoint);
769 // sort by line
816 SourceView::MarkerManager::BreakpointMarkerAtLine(uint32 line)
818 return fBreakpointMarkers.BinarySearchByKey(line,
845 SourceView::MarkerManager::_CompareLineMarkerTemplate(const uint32* line,
848 if (*line < marker->Line())
850 return *line == marker->Line() ? 0 : 1;
855 SourceView::MarkerManager::_CompareLineMarker(const uint32* line,
858 return _CompareLineMarkerTemplate<Marker>(line, marker);
863 SourceView::MarkerManager::_CompareLineBreakpointMarker(const uint32* line,
866 return _CompareLineMarkerTemplate<BreakpointMarker>(line, marker);
958 for (int32 line = minLine; line <= maxLine; line++) {
962 FillRect(LineRect(line), B_SOLID_LOW);
964 && marker->Line() == (uint32)line) {
965 marker->Draw(this, LineRect(line));
974 if (!fSourceCode->GetStatementLocationRange(SourceLocation(line),
976 || statementStart.Line() != line) {
980 float y = ((float)line + 0.5f) * fFontInfo->lineHeight;
1001 int32 line = LineAtOffset(where.y);
1004 if (!fSourceView->GetStatementForLine(line, statement))
1017 fMarkerManager->BreakpointMarkerAtLine(line);
1048 int32 line = LineAtOffset(point.y);
1049 if (line < 0)
1055 SourceLocation(line), statement) != B_OK) {
1059 if (statement->StartSourceLocation().Line() != line)
1063 fMarkerManager->BreakpointMarkerAtLine(line);
1067 text.SetToFormat(kEnableBreakpointMessage, line);
1070 text.SetToFormat(kClearBreakpointMessage, line);
1072 text.SetToFormat(kDisableBreakpointMessage, line);
1075 text.SetToFormat(kClearBreakpointMessage, line);
1077 text.SetToFormat(kEnableBreakpointMessage, line);
1173 // syntax line data
1247 if (fSelectionStart.line != -1 && fSelectionEnd.line != -1) {
1310 fSelectionStart.line = 0;
1312 fSelectionEnd.line = fSourceCode->CountLines() - 1;
1314 fSelectionEnd.line);
1381 int32 line = LineAtOffset(where.y);
1382 if (line < 0)
1399 if (!_AddGeneralActions(menu, line))
1402 if (!_AddFlowControlActions(menu, line))
1426 if (point.line < 0)
1437 if (point.line > fSelectionBase.line) {
1440 } else if (point.line < fSelectionBase.line) {
1529 for (int32 i = 0; const char* line = fSourceCode->LineAt(i); i++)
1530 fMaxLineWidth = std::max(fMaxLineWidth, _FormattedLineWidth(line));
1538 SourceView::TextView::_FormattedLineWidth(const char* line) const
1542 for (; line[i] != '\0'; i++) {
1543 if (line[i] == '\t')
1554 SourceView::TextView::_DrawLineSyntaxSection(const char* line, int32 length,
1560 if (line[i] == '\t') {
1563 _DrawLineSegment(line + start, currentLength, _offset);
1578 _DrawLineSegment(line + start, currentLength, _offset);
1583 SourceView::TextView::_DrawLineSegment(const char* line, int32 length,
1586 DrawString(line, length, _offset);
1599 SourceView::TextView::_FormattedPosition(int32 line, int32 offset) const
1603 if (fSourceCode->LineAt(line)[i] == '\t')
1616 int32 line = LineAtOffset(where.y);
1618 if (line >= 0) {
1620 int32 lineLength = fSourceCode->LineLengthAt(line);
1621 const char* sourceLine = fSourceCode->LineAt(line);
1639 return SelectionPoint(line, offset);
1646 if (fSelectionStart.line == -1 && fSelectionEnd.line == -1)
1651 if (fSelectionStart.line == fSelectionEnd.line) {
1653 selectionRect.left = _FormattedPosition(fSelectionStart.line,
1655 selectionRect.top = fSelectionStart.line * fFontInfo->lineHeight;
1656 selectionRect.right = _FormattedPosition(fSelectionEnd.line,
1662 // add rect for starting line
1663 selectionRect.left = _FormattedPosition(fSelectionStart.line,
1665 selectionRect.top = fSelectionStart.line * fFontInfo->lineHeight;
1671 if (fSelectionEnd.line - fSelectionStart.line > 1) {
1673 selectionRect.top = (fSelectionStart.line + 1)
1676 selectionRect.bottom = fSelectionEnd.line * fFontInfo->lineHeight;
1680 // add rect for last line (if needed)
1683 selectionRect.top = fSelectionEnd.line * fFontInfo->lineHeight;
1684 selectionRect.right = _FormattedPosition(fSelectionEnd.line,
1697 if (fSelectionStart.line == -1 || fSelectionEnd.line == -1)
1700 if (fSelectionStart.line == fSelectionEnd.line) {
1701 text.SetTo(fSourceCode->LineAt(fSelectionStart.line)
1705 text.SetTo(fSourceCode->LineAt(fSelectionStart.line)
1708 for (int32 i = fSelectionStart.line + 1; i < fSelectionEnd.line; i++)
1710 text.Append(fSourceCode->LineAt(fSelectionEnd.line),
1736 const char* line = fSourceCode->LineAt(point.line);
1737 int32 length = fSourceCode->LineLengthAt(point.line);
1741 if (!isalpha(line[end]) && !isdigit(line[end]))
1746 if (!isalpha(line[start - 1]) && !isdigit(line[start - 1]))
1752 if (point.line >= fSelectionBase.line
1753 || (point.line == fSelectionBase.line
1755 fSelectionStart.line = fSelectionBase.line;
1757 fSelectionEnd.line = point.line;
1759 } else if (point.line < fSelectionBase.line) {
1760 fSelectionStart.line = point.line;
1762 fSelectionEnd.line = fSelectionBase.line;
1764 } else if (point.line == fSelectionBase.line) {
1766 fSelectionStart.line = point.line;
1768 fSelectionEnd.line = point.line;
1772 fSelectionBase.line = fSelectionStart.line = point.line;
1774 fSelectionEnd.line = point.line;
1787 if (point.line >= fSelectionBase.line) {
1788 fSelectionStart.line = fSelectionBase.line;
1790 fSelectionEnd.line = point.line;
1791 fSelectionEnd.offset = fSourceCode->LineLengthAt(point.line);
1793 fSelectionStart.line = point.line;
1795 fSelectionEnd.line = fSelectionBase.line;
1797 fSelectionBase.line);
1800 fSelectionStart.line = fSelectionEnd.line = point.line;
1802 fSelectionEnd.offset = fSourceCode->LineLengthAt(point.line);
1903 SourceView::TextView::_AddGeneralActions(BPopUpMenu* menu, int32 line)
1913 message->AddInt32("line", line);
1956 SourceView::TextView::_AddFlowControlActions(BPopUpMenu* menu, int32 line)
1959 if (!fSourceView->GetStatementForLine(line, statement))
2094 int32 line;
2095 if (message->FindInt32("line", &line) != B_OK)
2097 // be:line is 1-based.
2098 ++line;
2120 trackerMessage.AddInt32("be:line", line);
2310 SourceView::ScrollToLine(uint32 line)
2312 TRACE_GUI("SourceView::ScrollToLine(%" B_PRIu32 ")\n", line);
2314 if (fSourceCode == NULL || line >= (uint32)fSourceCode->CountLines())
2317 float top = (float)line * fFontInfo.lineHeight;
2322 TRACE_GUI("SourceView::ScrollToLine(%" B_PRId32 ")\n", line);
2323 TRACE_GUI(" visible: (%f, %f) - (%f, %f), line: %f - %f\n", visible.left,
2327 // least one more line is visible.
2407 SourceView::GetStatementForLine(int32 line, Statement*& _statement)
2409 if (line < 0)
2414 if (fTeam->GetStatementAtSourceLocation(fSourceCode, SourceLocation(line),
2419 if (statement->StartSourceLocation().Line() != line)