Inheritance: QObject, IDisposable
コード例 #1
0
ファイル: NoAccountsWidget.cs プロジェクト: toothrot/synapse
        public NoAccountsWidget(QWidget parent)
            : base(parent)
        {
            SetupUi();

            m_Scene = new QGraphicsScene(m_Scene);
            m_GraphicsView.SetScene(m_Scene);
            m_Scene.SetSceneRect(0, 0, 200, 200);

            var octy = new QGraphicsPixmapItem(new QPixmap("resource:/octy.png"));
            octy.SetPos(0, 10);
            m_Scene.AddItem(octy);

            // TODO: Add bubbles!

            m_TimeLine = new QTimeLine(2000, m_Scene);
            m_TimeLine.curveShape = QTimeLine.CurveShape.EaseOutCurve;
            QObject.Connect(m_TimeLine, Qt.SIGNAL("finished()"), HandleTimerFinished);

            QGraphicsItemAnimation animation = new QGraphicsItemAnimation(m_Scene);
            animation.SetItem(octy);
            animation.SetTimeLine(m_TimeLine);
            animation.SetPosAt(1, new QPointF(0, 0));

            m_TimeLine.Start();
        }
コード例 #2
0
ファイル: AboutDialog.cs プロジェクト: jrudolph/synapse
        public AboutDialog(QWidget parentWindow)
            : base(parentWindow)
        {
            SetupUi();

            m_Scene = new QGraphicsScene(m_Scene);
            graphicsView.SetScene(m_Scene);
            m_Scene.SetSceneRect(0, 0, 200, 200);

            textLabel.Pixmap = new QPixmap("resource:/text.png");

            var octy = new QGraphicsPixmapItem(new QPixmap("resource:/octy.png"));
            octy.SetPos(0, 10);
            m_Scene.AddItem(octy);

            m_TimeLine = new QTimeLine(2000, m_Scene);
            m_TimeLine.curveShape = QTimeLine.CurveShape.EaseOutCurve;
            QObject.Connect(m_TimeLine, Qt.SIGNAL("finished()"), TimerFinished);

            QGraphicsItemAnimation animation = new QGraphicsItemAnimation(m_Scene);
            animation.SetItem(octy);
            animation.SetTimeLine(m_TimeLine);
            animation.SetPosAt(1, new QPointF(0, 0));

            m_TimeLine.Start();

            Gui.CenterWidgetOnScreen(this);
        }
コード例 #3
0
ファイル: QGraphicsItemAnimation.cs プロジェクト: KDE/qyoto
 public void SetTimeLine(QTimeLine timeLine)
 {
     interceptor.Invoke("setTimeLine#", "setTimeLine(QTimeLine*)", typeof(void), typeof(QTimeLine), timeLine);
 }
コード例 #4
0
 public void SetTimeLine(QTimeLine timeLine)
 {
     interceptor.Invoke("setTimeLine#", "setTimeLine(QTimeLine*)", typeof(void), typeof(QTimeLine), timeLine);
 }