logic: fixes all over the place

* fixed refreshing to send another ui refresh message after parsing
* keepContent field for MessageBase so that views won't update
* fixed searchmatching to only weigh uppercase letters next to lowercase ones
* fixed file not jumping back to snippets when activating edge
* clicking into empty space deselects active edge
* clear file manager files on every fetch
* added db transaction for file clearing
* use zooming instead of changing font size
This commit is contained in:
Eberhard Graether
2015-10-02 17:07:03 +02:00
parent a855e14ebf
commit acfbe510fb
26 changed files with 253 additions and 90 deletions
+11 -3
View File
@@ -60,9 +60,11 @@ void GraphViewStyle::setImpl(std::shared_ptr<GraphViewStyleImpl> impl)
void GraphViewStyle::loadStyleSettings()
{
s_fontSize = ApplicationSettings::getInstance()->getFontSize();
s_fontSize = 14;
s_fontName = ApplicationSettings::getInstance()->getFontName();
s_zoomFactor = ApplicationSettings::getInstance()->getFontSize() / float(s_fontSize);
s_charWidths.clear();
s_charHeights.clear();
}
@@ -132,7 +134,7 @@ size_t GraphViewStyle::getFontSizeOfAccessNode()
size_t GraphViewStyle::getFontSizeOfExpandToggleNode()
{
return s_fontSize - 5;
return s_fontSize - 3;
}
size_t GraphViewStyle::getFontSizeOfCountCircle()
@@ -243,7 +245,7 @@ GraphViewStyle::NodeMargins GraphViewStyle::getMarginsOfExpandToggleNode()
{
NodeMargins margins;
margins.left = margins.right = margins.top = margins.bottom = 7;
margins.left = margins.right = margins.top = margins.bottom = 6;
margins.minWidth = margins.charHeight = getFontSizeOfExpandToggleNode();
return margins;
@@ -513,6 +515,11 @@ int GraphViewStyle::toGridGap(int x)
return s_gridCellPadding + toGridOffset(x - s_gridCellPadding);
}
float GraphViewStyle::getZoomFactor()
{
return s_zoomFactor;
}
void GraphViewStyle::addIcon(Node::NodeType type, bool hasChildren, NodeStyle* style)
{
switch (type)
@@ -560,3 +567,4 @@ std::shared_ptr<GraphViewStyleImpl> GraphViewStyle::s_impl;
int GraphViewStyle::s_fontSize;
std::string GraphViewStyle::s_fontName;
float GraphViewStyle::s_zoomFactor;