Example #1
0
extern "C" G_MODULE_EXPORT void on_ClassPreferencesMenuitem_activate(
    GtkWidget * /*widget*/, gpointer /*data*/)
    {
    ClassNode *node = gClassDiagramView->getNode(gStartPosInfo.x, gStartPosInfo.y);
    if(node)
        {
        ClassPreferencesDialog dlg;
        if(dlg.run(*Builder::getBuilder(), node->getNodeOptions()))
            {
            gClassDiagramView->getDiagram().changeOptions(getDrawOptions(
                    gClassDiagramView->getGuiOptions()));
            gClassDiagramView->drawToDrawingArea();
            }
        }
    }