Ktl J Ohny B Log


Commit Date  
[351870] by Julian Bäume Julian Bäume

fix stüpid bugs

2010-09-06 23:43:12 Tree
[b13168] by Julian Bäume Julian Bäume

some code cleanup and optimizations

* use initialisation via copy-constructor not an implizit one
(see
http://marcmutz.wordpress.com/2010/08/16/a-case-against-direct-initialisation/)
* don’t resize internal data when routing and scene-rect changed
* redundant information is redundant

2010-09-06 23:35:45 Tree
[602c35] by Julian Bäume Julian Bäume

better routing because of new interfaces

make use of the new api of the scene. this connects some slots of the
router to some signals provided by the scene.

2010-09-06 23:31:46 Tree
[8bd4cd] by Julian Bäume Julian Bäume

provide better ways to inform router about changes

add some signals to the scene, to better handle the moving of items
within the scene to inform the routing plugin about these.

also add some type information for own implementations of some
QGraphicsItems to allow qgraphicsitem_cast.

2010-09-06 23:21:23 Tree
[cffad1] by Julian Bäume Julian Bäume

let PinItem handle the offset internally

no need to let all classes know about it.

2010-09-06 15:38:57 Tree
[b59c6c] by Julian Bäume Julian Bäume

better update handling in automatic_router

make update() private and remove scene-parameter. also remove
interal "update needed" state.

2010-09-06 15:38:41 Tree
[7163c4] by Julian Bäume Julian Bäume

assert -> Q_ASSERT

better use Q_ASSERT in Qt programms

2010-09-05 22:24:31 Tree
[e6077b] by Julian Bäume Julian Bäume

add custom QGraphicsItem types

this will help to avoid dynamic_casts for those items

2010-08-18 03:49:33 Tree
[5118b5] by Julian Bäume Julian Bäume

cleanup automatic_router plugin

this is a pretty large commit that fixes some issues in automatic_router
plugin and makes it basically work, if the internal scores are all
up-to-date. routing will then behave very similar to the kde3 version.

there have been some misunderstandings with the coordinate-systems, so
these bugs are also fixed, now. some changes to the circuit plugin were
necessary to make this work. the components had to be moved by 4px as
well as had the connectors.

all in all the code in automatic_router is now cleaned up a bit and
works, kind of. there is still some work to be done update the internal
scores to represent the actual scene.

2010-08-18 01:57:11 Tree
[79fa7c] by Julian Bäume Julian Bäume

cleanup routing code

this now works with much less creating and deleting of graphicsitems and
therefore is better ;) it has the same result, though

2010-08-18 01:47:31 Tree
[6a7e36] by Julian Bäume Julian Bäume

add parameter to IDocumentScene::finishRouting()

this makes it possible to align points to the grid, if necessary. this
also fixes a small bug within working code, because sometimes it was
possible to "connect" the connector to a cell next to the cell
containing the pin, because of rounding issues.

2010-08-18 01:43:18 Tree
[cc8091] by Julian Bäume Julian Bäume

move utils.h into automatic_router plugin

it's only needed there and only because of compatibility issues with the
kde3 version

2010-08-18 01:40:22 Tree
[dc1613] by Julian Bäume Julian Bäume

let Qt handle all selection of QGraphicsItems

This seemed to be redundant, so it can also be removed.

2010-08-16 13:19:27 Tree
[aaa7bc] by Julian Bäume Julian Bäume

make connectors not moveable

this fixes strange behaviour when moving around connector or connectors
and components in a group.

2010-08-12 22:28:23 Tree
[07f643] by Julian Bäume Julian Bäume

rename pins

the pins are numbered starting from 0. this needs some more work to
provide logic components with more input pins, but this will be done
later. for now this fixes compatibility issues with the kde3 version
(and logic components with 2 inputs)

2010-08-12 22:15:26 Tree
[c9b8c4] by Julian Bäume Julian Bäume

rename itemById -> item(QString id)

the parameter clearly indicates, that the id is used to find the item

2010-08-12 09:45:04 Tree
[ce49fd] by Julian Bäume Julian Bäume

tweak parameters of routing

the visualisation of routing-data looks better with these parameters.
routing seems to be done fine, when the routinginformation is
up-to-date. (the later still needs some fixes)

2010-08-12 00:24:45 Tree
[3fed6f] by Julian Bäume Julian Bäume

add method to IComponentItem class

for routing, it's sometimes necessary to find out about all nodes of an
item. this method returns a list of all nodes.

2010-08-12 00:23:21 Tree
[979ec7] by Julian Bäume Julian Bäume

implement rerouting

this is a quite stupid algorithm, but it works for now. We just rerout
everything ;)

2010-08-05 14:51:47 Tree
[e42fe5] by Julian Bäume Julian Bäume

change constructors of ConnectorItem

this helps with routing and rerouting, because the ConnectorItem now
knows a bit more about its environment within the scene

2010-08-05 14:50:11 Tree
[a15e7d] by Julian Bäume Julian Bäume

change method and make it public

IComponentItem is now able to provide a Node instance that represents
the node with the given id. This is useful to provide information for
connectors.

2010-08-05 14:48:01 Tree
[5f6a89] by Julian Bäume Julian Bäume

add methods to IDocumentScene and implement them

Implementation is in CircuitScene. This information will be used for
rerouting a circuit.

2010-08-05 14:48:01 Tree
[e8a14a] by Julian Bäume Julian Bäume

keep track of Nodes in ConnectorItem

Implement getters and settters for startNode and endNode attributes.

2010-08-05 14:29:02 Tree
[0b703b] by Julian Bäume Julian Bäume

keep pointers to Node in Connector

Change the API of the Connector-interface and implement getters and
setters for start and end node.

2010-08-05 14:22:26 Tree
[61aeb5] by Julian Bäume Julian Bäume

fix PinItem position within the scene

PinItem::scenePos() will now return the center of the rect. This is
better for routing, because of the old implementation.

2010-08-05 14:18:27 Tree
Older >