"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/widgets/OverviewView.cpp" between
cutter-1.8.3.tar.gz and cutter-1.9.0.tar.gz

About: cutter is a Qt and C++ GUI for radare2 reverse engineering framework.

OverviewView.cpp  (cutter-1.8.3):OverviewView.cpp  (cutter-1.9.0)
skipping to change at line 30 skipping to change at line 30
{ {
width = baseWidth; width = baseWidth;
height = baseHeight; height = baseHeight;
blocks = baseBlocks; blocks = baseBlocks;
edgeConfigurations = baseEdgeConfigurations; edgeConfigurations = baseEdgeConfigurations;
scaleAndCenter(); scaleAndCenter();
setCacheDirty(); setCacheDirty();
viewport()->update(); viewport()->update();
} }
void OverviewView::centreRect()
{
qreal w = rangeRect.width();
qreal h = rangeRect.height();
initialDiff = QPointF(w / 2, h / 2);
}
OverviewView::~OverviewView() OverviewView::~OverviewView()
{ {
} }
void OverviewView::scaleAndCenter() void OverviewView::scaleAndCenter()
{ {
qreal wScale = (qreal)viewport()->width() / width; qreal wScale = (qreal)viewport()->width() / width;
qreal hScale = (qreal)viewport()->height() / height; qreal hScale = (qreal)viewport()->height() / height;
setViewScale(std::min(wScale, hScale)); setViewScale(std::min(wScale, hScale));
center(); center();
skipping to change at line 133 skipping to change at line 140
event->ignore(); event->ignore();
} }
GraphView::EdgeConfiguration OverviewView::edgeConfiguration(GraphView::GraphBlo ck &from, GraphView::EdgeConfiguration OverviewView::edgeConfiguration(GraphView::GraphBlo ck &from,
GraphView::GraphBlo ck *to) GraphView::GraphBlo ck *to)
{ {
EdgeConfiguration ec; EdgeConfiguration ec;
auto baseEcIt = edgeConfigurations.find({from.entry, to->entry}); auto baseEcIt = edgeConfigurations.find({from.entry, to->entry});
if (baseEcIt != edgeConfigurations.end()) if (baseEcIt != edgeConfigurations.end())
ec = baseEcIt->second; ec = baseEcIt->second;
ec.width_scale = getViewScale(); ec.width_scale = 1.0 / getViewScale();
return ec; return ec;
} }
void OverviewView::colorsUpdatedSlot() void OverviewView::colorsUpdatedSlot()
{ {
disassemblyBackgroundColor = ConfigColor("gui.overview.node"); disassemblyBackgroundColor = ConfigColor("gui.overview.node");
graphNodeColor = ConfigColor("gui.border"); graphNodeColor = ConfigColor("gui.border");
backgroundColor = ConfigColor("gui.background"); backgroundColor = ConfigColor("gui.background");
graphSelectionFill = ConfigColor("gui.overview.fill"); graphSelectionFill = ConfigColor("gui.overview.fill");
graphSelectionBorder = ConfigColor("gui.overview.border"); graphSelectionBorder = ConfigColor("gui.overview.border");
 End of changes. 2 change blocks. 
1 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)