> Getting rid of the moc was pretty much the first thing they accomplished.
but it's not a proper replacement.
With Qt's moc you just annotate the class:
class Foo {
Q_OBJECT
Q_SIGNAL void f(int a, int b);
Q_INVOKABLE void g(int c, int d);
};
with CopperSpice (and verdigris, and anything else that does not use an external code generator) you have to repeat all the names and use much more macros:
class Foo {
CS_OBJECT(Foo)
CS_SIGNAL_1(Public, void f(int a, int b));
CS_SIGNAL_2(f, a, b);
CS_INVOKABLE_METHOD_1(Public, void g(int c, int d));
CS_INVOKABLE_METHOD_2(g, c, d);
};
but it's not a proper replacement.
With Qt's moc you just annotate the class:
with CopperSpice (and verdigris, and anything else that does not use an external code generator) you have to repeat all the names and use much more macros: