ui: draw scope annotations in CodeView using one big rectangle

And refactored QtCodeFile classes.
This commit is contained in:
Eberhard Graether
2015-05-16 12:57:47 +02:00
parent 8e9b7ec7bc
commit e4d71f8a01
9 changed files with 181 additions and 119 deletions
+2 -7
View File
@@ -16,13 +16,12 @@ class QtCodeSnippet: public QWidget
Q_OBJECT
public:
QtCodeSnippet(
uint startLineNumber,
const std::string& title,
const std::string& code,
std::shared_ptr<TokenLocationFile> locationFile,
QtCodeFile* parent
QtCodeFile* file
);
virtual ~QtCodeSnippet();
@@ -31,13 +30,9 @@ public:
int lineNumberDigits() const;
void updateLineNumberAreaWidthForDigits(int digits);
void update();
void focusToken(Id tokenId);
void defocusToken();
void updateContent();
private:
QtCodeFile* m_parent; // need this?
QPushButton* m_title;
std::shared_ptr<QtCodeArea> m_codeArea;
};