/glogg/glogg/src/ |
H A D | selection.cpp |
|
H A D | selection.h |
|
H A D | quickfind.cpp |
|
H A D | marks.cpp |
|
H A D | overviewwidget.cpp |
|
H A D | logmainview.cpp |
|
H A D | abstractlogview.cpp |
|
H A D | quickfindpattern.cpp |
|
/glogg/src/ |
H A D | selection.cpp | 34 selectedPartial_.line = -1; in Selection() 42 void Selection::selectPortion( int line, int start_column, int end_column ) in selectPortion() argument 48 selectedPartial_.line = line; in selectPortion() 57 selectedPartial_.line = -1; in selectRange() 65 void Selection::selectRangeFromPrevious( int line ) in selectRangeFromPrevious() argument 73 else if ( selectedPartial_.line >= 0 ) in selectRangeFromPrevious() 74 previous_line = selectedPartial_.line; in selectRangeFromPrevious() 78 selectRange( previous_line, line ); in selectRangeFromPrevious() 86 if ( selectedPartial_.line > last_line ) in crop() 87 selectedPartial_.line = -1; in crop() [all …]
|
H A D | selection.h | 34 Portion( int line, int start_column, int end_column ) in Portion() argument 35 { line_ = line; startColumn_ = start_column; endColumn_ = end_column; } in Portion() 37 int line() const { return line_; } in line() function 57 void clear() { selectedPartial_.line = -1; selectedLine_ = -1; }; in clear() 60 void selectLine( int line ) in selectLine() argument 61 { selectedPartial_.line = -1; selectedRange_.startLine = -1; in selectLine() 62 selectedLine_ = line; }; in selectLine() 64 void selectPortion( int line, int start_column, int end_column ); 66 { selectPortion( selection.line(), selection.startColumn(), in selectPortion() 73 void selectRangeFromPrevious( int line ); [all …]
|
H A D | quickfind.cpp | 54 void QuickFind::LastMatchPosition::set( int line, int column ) in set() argument 57 ( ( line <= line_ ) && ( column < column_ ) ) ) in set() 59 line_ = line; in set() 66 set( position.line(), position.column() ); in set() 69 bool QuickFind::LastMatchPosition::isLater( int line, int column ) const in isLater() argument 73 else if ( ( line == line_ ) && ( column >= column_ ) ) in isLater() 75 else if ( line > line_ ) in isLater() 83 return isLater( position.line(), position.column() ); in isLater() 86 bool QuickFind::LastMatchPosition::isSooner( int line, int column ) const in isSooner() argument 90 else if ( ( line == line_ ) && ( column <= column_ ) ) in isSooner() [all …]
|
H A D | marks.cpp | 35 void Marks::addMark( qint64 line, QChar mark ) in addMark() argument 39 if ( ! lookupLineNumber< QList<Mark> >( marks_, line, &index ) ) in addMark() 42 LOG(logDEBUG) << "Inserting mark at line " << line in addMark() 44 marks_.insert( index, Mark( line ) ); in addMark() 48 LOG(logERROR) << "Trying to add an existing mark at line " << line; in addMark() 63 bool Marks::isLineMarked( qint64 line ) const in isLineMarked() 66 return lookupLineNumber< QList<Mark> >( marks_, line, &index ); in isLineMarked() 75 void Marks::deleteMark( qint64 line ) in deleteMark() argument 79 if ( lookupLineNumber< QList<Mark> >( marks_, line, &index ) ) in deleteMark()
|
H A D | overviewwidget.cpp | 181 foreach (Overview::WeightedLine line, *(overview_->getMatchLines()) ) { in paintEvent() 183 * ( line.weight() + 1 ) ); in paintEvent() 186 line.position(), width() - LINE_MARGIN - 1, line.position() ); in paintEvent() 191 foreach (Overview::WeightedLine line, *(overview_->getMarkLines()) ) { in paintEvent() 193 * ( line.weight() + 1 ) ); in paintEvent() 196 line.position(), width() - LINE_MARGIN - 1, line.position() ); in paintEvent() 238 int line = overview_->fileLineFromY( position ); in handleMousePress() local 239 LOG(logDEBUG) << "OverviewWidget::handleMousePress y=" << position << " line=" << line; in handleMousePress() 240 emit lineClicked( line ); in handleMousePress() 243 void OverviewWidget::highlightLine( qint64 line ) in highlightLine() argument [all …]
|
H A D | logmainview.cpp | 76 qint64 line = filteredData_->getMarkBefore( getViewPosition() ); in keyPressEvent() local 77 if ( line >= 0 ) { in keyPressEvent() 78 selectAndDisplayLine( static_cast<LineNumber>( line ) ); in keyPressEvent() 83 qint64 line = filteredData_->getMarkAfter( getViewPosition() ); in keyPressEvent() local 84 if ( line >= 0 ) { in keyPressEvent() 85 selectAndDisplayLine( static_cast<LineNumber>( line ) ); in keyPressEvent()
|
H A D | abstractlogview.cpp | 159 int line_width, const QString& line, in draw() argument 175 QString cutline = line.mid( chunk.start(), chunk.length() ); in draw() 325 int line = convertCoordToLine( mouseEvent->y() ); in mousePressEvent() local 329 selection_.selectRangeFromPrevious( line ); in mousePressEvent() 330 emit updateLineNumber( line ); in mousePressEvent() 339 markingClickLine_ = line; in mousePressEvent() 343 if ( line < logData->getNbLine() ) { in mousePressEvent() 344 selection_.selectLine( line ); in mousePressEvent() 345 emit updateLineNumber( line ); in mousePressEvent() 346 emit newSelection( line ); in mousePressEvent() [all …]
|
/glogg/glogg/src/data/ |
H A D | abstractlogdata.h |
|
H A D | abstractlogdata.cpp |
|
H A D | logfiltereddata.cpp |
|
H A D | logdata.cpp |
|
H A D | logfiltereddata.h |
|
/glogg/src/data/ |
H A D | abstractlogdata.h | 40 QString getLineString( qint64 line ) const; 42 QString getExpandedLineString( qint64 line ) const; 54 int getLineLength( qint64 line ) const; 64 virtual QString doGetLineString( qint64 line ) const = 0; 66 virtual QString doGetExpandedLineString( qint64 line ) const = 0; 76 virtual int doGetLineLength( qint64 line ) const = 0; 82 static inline QString untabify( const QString& line ) { in untabify() argument 86 for ( int j = 0; j < line.length(); j++ ) { in untabify() 87 if ( line[j] == '\t' ) { in untabify() 94 else if ( line[j] == '\0' ) { in untabify() [all …]
|
H A D | abstractlogdata.cpp | 33 QString AbstractLogData::getLineString( qint64 line ) const in getLineString() 35 return doGetLineString(line); in getLineString() 39 QString AbstractLogData::getExpandedLineString( qint64 line ) const in getExpandedLineString() 41 return doGetExpandedLineString(line); in getExpandedLineString() 69 int AbstractLogData::getLineLength( qint64 line ) const in getLineLength() 71 return doGetLineLength( line ); in getLineLength()
|
H A D | logfiltereddata.cpp | 186 void LogFilteredData::addMark( qint64 line, QChar mark ) in addMark() argument 188 if ( ( line >= 0 ) && ( line < sourceLogData_->getNbLine() ) ) { in addMark() 189 marks_.addMark( line, mark ); in addMark() 191 sourceLogData_->getLineLength( line ) ); in addMark() 204 bool LogFilteredData::isLineMarked( qint64 line ) const in isLineMarked() 206 return marks_.isLineMarked( line ); in isLineMarked() 209 qint64 LogFilteredData::getMarkAfter( qint64 line ) const in getMarkAfter() 214 if ( i->lineNumber() > line ) { in getMarkAfter() 223 qint64 LogFilteredData::getMarkBefore( qint64 line ) const in getMarkBefore() 228 if ( i->lineNumber() >= line ) { in getMarkBefore() [all …]
|
H A D | logdata.cpp | 307 int LogData::doGetLineLength( qint64 line ) const in doGetLineLength() 309 if ( line >= indexing_data_.getNbLines() ) { return 0; /* exception? */ } in doGetLineLength() 311 int length = doGetExpandedLineString( line ).length(); in doGetLineLength() 388 QString LogData::doGetLineString( qint64 line ) const in doGetLineString() 390 if ( line >= indexing_data_.getNbLines() ) { return 0; /* exception? */ } in doGetLineString() 395 const qint64 first_byte = (line == 0) ? in doGetLineString() 396 0 : ( indexing_data_.getPosForLine( line-1 ) + after_cr_offset_ ); in doGetLineString() 397 const qint64 end_byte = endOfLinePosition( line ); in doGetLineString() 408 QString LogData::doGetExpandedLineString( qint64 line ) const in doGetExpandedLineString() 410 if ( line >= indexing_data_.getNbLines() ) { return 0; /* exception? */ } in doGetExpandedLineString() [all …]
|
H A D | logfiltereddata.h | 92 void addMark( qint64 line, QChar mark = QChar() ); 96 bool isLineMarked( qint64 line ) const; 98 qint64 getMarkAfter( qint64 line ) const; 100 qint64 getMarkBefore( qint64 line ) const; 105 void deleteMark( qint64 line ); 128 QString doGetLineString( qint64 line ) const; 129 QString doGetExpandedLineString( qint64 line ) const; 134 int doGetLineLength( qint64 line ) const;
|