ui: improved ui of maximized code file window

* Annotations updated when active token Id changes
* FileName in window title
* Maximize button not shown
* Scrolls roughly to the maximized location.
* Maximizing also on double click in code snippet
This commit is contained in:
Eberhard Graether
2014-07-28 01:17:01 +02:00
parent dea79f701b
commit 95929db6e0
11 changed files with 245 additions and 115 deletions
@@ -7,9 +7,12 @@
class MessageShowFile: public Message<MessageShowFile>
{
public:
MessageShowFile(const std::string& filePath, uint lineNumber, const std::vector<Id>& activeTokenIds)
MessageShowFile(
const std::string& filePath, uint startLineNumber, uint endLineNumber, const std::vector<Id>& activeTokenIds
)
: filePath(filePath)
, lineNumber(lineNumber)
, startLineNumber(startLineNumber)
, endLineNumber(endLineNumber)
, activeTokenIds(activeTokenIds)
{
}
@@ -20,7 +23,8 @@ public:
}
const std::string filePath;
const uint lineNumber;
const uint startLineNumber;
const uint endLineNumber;
const std::vector<Id> activeTokenIds;
};