sourcewnd.h (kdbg-3.0.0) | : | sourcewnd.h (kdbg-3.0.1) | ||
---|---|---|---|---|
skipping to change at line 63 | skipping to change at line 63 | |||
void disassembled(int lineNo, const std::list<DisassembledCode>& disass); | void disassembled(int lineNo, const std::list<DisassembledCode>& disass); | |||
void activeLine(int& lineNo, DbgAddr& address); | void activeLine(int& lineNo, DbgAddr& address); | |||
static QString extendExpr(const QString &plainText, | static QString extendExpr(const QString &plainText, | |||
int wordStart, | int wordStart, | |||
int wordEnd); | int wordEnd); | |||
protected: | protected: | |||
void drawLineInfoArea(QPainter* p, QPaintEvent* event); | void drawLineInfoArea(QPainter* p, QPaintEvent* event); | |||
void infoMousePress(QMouseEvent* ev); | void infoMousePress(QMouseEvent* ev); | |||
virtual void resizeEvent(QResizeEvent* e); | void resizeEvent(QResizeEvent* e) override; | |||
virtual void contextMenuEvent(QContextMenuEvent* e); | void contextMenuEvent(QContextMenuEvent* e) override; | |||
virtual void keyPressEvent(QKeyEvent* ev); | void keyPressEvent(QKeyEvent* ev) override; | |||
virtual void changeEvent(QEvent* ev); | void changeEvent(QEvent* ev) override; | |||
void expandRow(int row); | void expandRow(int row); | |||
void collapseRow(int row); | void collapseRow(int row); | |||
void scrollToRow(int row); | void scrollToRow(int row); | |||
/** translates (0-based) line number plus a code address into a row number * / | /** translates (0-based) line number plus a code address into a row number * / | |||
int lineToRow(int row, const DbgAddr& address); | int lineToRow(int row, const DbgAddr& address); | |||
int lineInfoAreaWidth() const; | int lineInfoAreaWidth() const; | |||
QColor lineSelectionColor() const; | ||||
void actionExpandRow(int row); | void actionExpandRow(int row); | |||
void actionCollapseRow(int row); | void actionCollapseRow(int row); | |||
signals: | signals: | |||
void clickedLeft(const QString&, int, const DbgAddr& address, bool); | void clickedLeft(const QString&, int, const DbgAddr& address, bool); | |||
void clickedMid(const QString&, int, const DbgAddr& address); | void clickedMid(const QString&, int, const DbgAddr& address); | |||
void disassemble(const QString&, int); | void disassemble(const QString&, int); | |||
void expanded(int lineNo); /* source lineNo has been expanded */ | void expanded(int lineNo); /* source lineNo has been expanded */ | |||
void collapsed(int lineNo); /* source lineNo has been collaps ed */ | void collapsed(int lineNo); /* source lineNo has been collaps ed */ | |||
skipping to change at line 127 | skipping to change at line 128 | |||
int m_widthLineNo; //!< The width of the line number columns | int m_widthLineNo; //!< The width of the line number columns | |||
LineInfoArea* m_lineInfoArea; | LineInfoArea* m_lineInfoArea; | |||
friend class LineInfoArea; | friend class LineInfoArea; | |||
}; | }; | |||
class LineInfoArea : public QWidget | class LineInfoArea : public QWidget | |||
{ | { | |||
public: | public: | |||
LineInfoArea(QWidget* parent) : QWidget(parent) { } | LineInfoArea(QWidget* parent) : QWidget(parent) { } | |||
virtual void paintEvent(QPaintEvent* e); | void paintEvent(QPaintEvent* e) override; | |||
virtual void mousePressEvent(QMouseEvent* ev); | void mousePressEvent(QMouseEvent* ev) override; | |||
virtual void contextMenuEvent(QContextMenuEvent* e); | void contextMenuEvent(QContextMenuEvent* e) override; | |||
}; | }; | |||
class HighlightCpp : public QSyntaxHighlighter | class HighlightCpp : public QSyntaxHighlighter | |||
{ | { | |||
SourceWindow* m_srcWnd; | SourceWindow* m_srcWnd; | |||
public: | public: | |||
HighlightCpp(SourceWindow* srcWnd); | HighlightCpp(SourceWindow* srcWnd); | |||
virtual void highlightBlock(const QString& text); | void highlightBlock(const QString& text) override; | |||
int highlight(const QString& text, int state); | int highlight(const QString& text, int state); | |||
static bool isCppKeyword(const QString& word); | static bool isCppKeyword(const QString& word); | |||
}; | }; | |||
#endif // SOURCEWND_H | #endif // SOURCEWND_H | |||
End of changes. 4 change blocks. | ||||
8 lines changed or deleted | 9 lines changed or added |