KDE

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • KDE/kdebindings/qtruby

    0 answers - 5527 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    SVN commit 563195 by rdale:
    * Added a QVariantList marshaller
    * The correct QGraphicsScene event class instance is instantianted from
    the event.type()'s
    * The Qt::GraphicsItems in a Qt::GraphicsScene are marked so they won't
    won't get garbage collected prematurely
    * Added QT_TR_NP() and QT_TRANSLATE_NP() methods for completeness
    * Added Qt::Graphics examples: graphicsview/collidingmice and dragdroprobot
    CCMAIL: kde-bindings (AT) kde (DOT) org
    M +10 -0 ChangeLog
    A rubylib/examples/graphicsview (directory)
    A (directory)
    A (directory)
    AM
    A
    A
    A
    A
    A (directory)
    A
    A (directory)
    AM
    A
    A
    A
    A
    M +44 -1 rubylib/qtruby/handlers.cpp
    M +39 -0
    #563194:563195
    @@ -1,3 +1,13 @@
    +2006-07-16 Richard Dale <rdale (AT) foton (DOT) es>
    +
    +* Added a QVariantList marshaller
    +* The correct QGraphicsScene event class instance is instantianted from
    + the event.type()'s
    +* The Qt::GraphicsItems in a Qt::GraphicsScene are marked so they won't
    + won't get garbage collected prematurely
    +* Added QT_TR_NP() and QT_TRANSLATE_NP() methods for completeness
    +* Added Qt::Graphics examples: graphicsview/collidingmice and dragdroprobot
    +
    2006-07-05 Richard Dale <rdale (AT) foton (DOT) es>
    * Added some marshallers for Qt 4.2, for QList<QGraphicsItem*>,
    ** #property svn:mime-type
    + application/octet-stream
    ** #property svn:mime-type
    + application/octet-stream
    #563194:563195
    @@ -43,6 +43,7 @@
    #include <QtCore/qhash.h>
    #if QT_VERSIN >= 0x40200
    +#include <QtGui/qgraphicsscene.h>
    #include <QtGui/qgraphicsitem.h>
    #include <QtGui/qstandarditemmodel.h>
    #include <QtGui/qundostack.h>
    @@ -205,6 +206,24 @@
    return;
    }
    +#if QT_VERSIN >= 0x40200
    +if (isDerivedFromByName(o->smoke, className, "QGraphicsScene")) {
    +QGraphicsScene * scene = (QGraphicsScene *) o->smoke->cast(o->ptr, o->classId, o->smoke->idClass("QGraphicsScene"));
    +QList<QGraphicsItem *list = scene->items();
    +for (int i = 0; i < list.size(); i++) {
    +QGraphicsItem * item = list.at(i);
    +if (item != 0) {
    +obj = getP(item);
    +if (obj != Qnil) {
    +if (do_debug & qtdb_gc) qWarning("Marking (%s*)%p -%p\n", "QGraphicsItem", item, (void*)obj);
    +rb_gc_mark(obj);
    +}
    +}
    +}
    +return;
    +}
    +#endif
    +
    if (isDerivedFromByName(o->smoke, className, "Q")) {
    Q * qobject = (Q *) o->smoke->cast(o->ptr, o->classId, o->smoke->idClass("Q"));
    // mark the Q tree if the current item doesn't have a parent.
    @@ -466,6 +485,30 @@
    case QEvent::AccessibilityHelp:
    case
    return "Qt::Event";
    +#if QT_VERSIN >= 0x40200
    +case
    +case
    +case
    +case
    +return "Qt::GraphicsSceneMouseEvent";
    +case
    +return "";
    +case
    +case
    +case
    +return "Qt::GraphicsSceneHoverEvent";
    +case QEvent::GraphicsSceneHelp:
    +return "Qt::GraphicsSceneHelpEvent";
    +case
    +case QEvent::GraphicsSceneDragMove:
    +case
    +case QEvent::GraphicsSceneDrop:
    +return "Qt::GraphicsSceneDragDropEvent";
    +case QEvent::GraphicsSceneWheel:
    +return "Qt::GraphicsSceneWheelEvent";
    +case QEvent::KeyboardLayoutChange:
    +return "Qt::Event";
    +#endif
    default:
    break;
    }
    @@ -1839,7 +1882,6 @@
    { "QList<qreal>", marshall_QListqreal },
    { "QList<int>", marshall_QListInt },
    { "QList<int>&", marshall_QListInt },
    - { "QList<QVariant>", marshall_QVariantList },
    { "QList<QTableWidgetSelectionRange>", },
    { "QList<QTextLayout::FormatRange>", },
    { "QList<QTextLayout::FormatRange>&", },
    @@ -1849,6 +1891,7 @@
    { "QList<QHostAddress>&", marshall_QHostAddressList },
    { "QList<QVariant>", marshall_QVariantList },
    { "QList<QVariant>&", marshall_QVariantList },
    + { "QVariantList&", marshall_QVariantList },
    { "QList<QPixmap>", marshall_QPixmapList },
    { "QList<QModelIndex>", marshall_QModelIndexList },
    { "QList<QModelIndex>&", marshall_QModelIndexList },
    #563194:563195
    @@ -388,6 +388,12 @@
    end
    end
    +class DragEnterEvent < Qt::Base
    +def type(*args)
    +method_missing(:type, *args)
    +end
    +end
    +
    class DragLeaveEvent < Qt::Base
    def type(*args)
    method_missing(:type, *args)
    @@ -487,6 +493,36 @@
    end
    end
    +class GraphicsSceneMouseEvent < Qt::Base
    +def type(*args)
    +method_missing(:type, *args)
    +end
    +end
    +
    +class GraphicsSceneContextMenuEvent < Qt::Base
    +def type(*args)
    +method_missing(:type, *args)
    +end
    +end
    +
    +class GraphicsSceneHoverEvent < Qt::Base
    +def type(*args)
    +method_missing(:type, *args)
    +end
    +end
    +
    +class GraphicsSceneHelpEvent < Qt::Base
    +def type(*args)
    +method_missing(:type, *args)
    +end
    +end
    +
    +class GraphicsSceneWheelEvent < Qt::Base
    +def type(*args)
    +method_missing(:type, *args)
    +end
    +end
    +
    class Gradient < Qt::Base
    def type(*args)
    method_missing(:type, *args)
    @@ -2097,6 +2133,9 @@
    def emit(signal)
    return signal
    end
    +
    +def QT_TR_NP(x) x end
    +def QT_TRANSLATE_NP(scope, x) x end
    end
    class Module
    Kde-bindings mailing list
    Kde-bindings (AT) kde (DOT) org

Re: KDE/kdebindings/qtruby


max 4000 letters.
Your nickname that display:
In order to stop the spam: 7 + 6 =
QUESTION ON "KDE"

EMSDN.COM