~ubuntu-branches/ubuntu/trusty/fritzing/trusty-proposed

« back to all changes in this revision

Viewing changes to src/items/jumperitem.h

  • Committer: Package Import Robot
  • Author(s): Enrique Hernández Bello
  • Date: 2012-11-11 21:38:56 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20121111213856-0825ywdrtdcshl91
Tags: 0.7.10b-1
* New upstream version. Closes: #661495, #692998
* Removed useless patches.
* Removed SetupAPI.lib from sourceless files.
* Skip dfsg tarball creation if there are no sourceless files.
* Added libqt4-sql-sqlite to dependencies. Thanks to Tom Hummel <tom@bluespice.org>.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
********************************************************************
20
20
 
21
 
$Revision: 6112 $:
 
21
$Revision: 6409 $:
22
22
$Author: cohen@irascible.com $:
23
 
$Date: 2012-06-28 00:18:10 +0200 (Thu, 28 Jun 2012) $
 
23
$Date: 2012-09-13 05:05:28 +0200 (Thu, 13 Sep 2012) $
24
24
 
25
25
********************************************************************/
26
26
 
34
34
        Q_OBJECT
35
35
 
36
36
public:
37
 
        JumperItem( ModelPart * modelPart, ViewIdentifierClass::ViewIdentifier,  const ViewGeometry & , long id, QMenu* itemMenu, bool doLabel); 
 
37
        JumperItem( ModelPart * modelPart, ViewLayer::ViewIdentifier,  const ViewGeometry & , long id, QMenu* itemMenu, bool doLabel); 
38
38
        ~JumperItem();
39
39
 
40
40
    QPainterPath shape() const;
41
41
    QPainterPath hoverShape() const;
42
 
        bool setUpImage(ModelPart* modelPart, ViewIdentifierClass::ViewIdentifier viewIdentifier, const LayerHash & viewLayers, ViewLayer::ViewLayerID, ViewLayer::ViewLayerSpec, bool doConnectors, LayerAttributes &, QString & error);
 
42
        bool setUpImage(ModelPart* modelPart, ViewLayer::ViewIdentifier viewIdentifier, const LayerHash & viewLayers, ViewLayer::ViewLayerID, ViewLayer::ViewLayerSpec, bool doConnectors, LayerAttributes &, QString & error);
43
43
        void saveParams();
44
44
        void getParams(QPointF & pos, QPointF & c0, QPointF & c1);
45
45
        void resize(QPointF pos, QPointF c0, QPointF c1);
71
71
        void resizeAux(double r0x, double r0y, double r1x, double r1y);
72
72
        void rotateEnds(QTransform & rotation, QPointF & tc0, QPointF & tc1); 
73
73
        QPointF calcPos(QPointF p0, QPointF p1);
74
 
        void initialResize(ViewIdentifierClass::ViewIdentifier);
 
74
        void initialResize(ViewLayer::ViewIdentifier);
75
75
        void paintHover(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
76
76
        void paintSelected(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
77
 
    ViewIdentifierClass::ViewIdentifier useViewIdentifierForPixmap(ViewIdentifierClass::ViewIdentifier, bool swappingEnabled);
 
77
    ViewLayer::ViewIdentifier useViewIdentifierForPixmap(ViewLayer::ViewIdentifier, bool swappingEnabled);
78
78
 
79
79
signals:
80
80
        void alignMe(JumperItem *, QPointF & p);