void BrowserRelation::menu() { Q3PopupMenu m(0, name); Q3PopupMenu toolm(0); MenuFactory::createTitle(m, def->definition(FALSE, TRUE)); m.insertSeparator(); if (!deletedp()) { if (!in_edition()) { m.setWhatsThis(m.insertItem(TR("Edit"), 0), TR("to edit the <i>relation</i>, \ a double click with the left mouse button does the same thing")); if (!is_read_only && (edition_number == 0)) { if (RelationData::isa_association(def->get_type())) { m.setWhatsThis(m.insertItem(TR("Duplicate"), 1), TR("to copy the <i>relation</i> in a new one")); if (get_oper == 0) m.setWhatsThis(m.insertItem(TR("New get operation"), 4), TR("to auto define the <i>get operation</i>")); if (set_oper == 0) m.setWhatsThis(m.insertItem(TR("New set operation"), 5), TR("to auto define the <i>set operation</i>")); if ((get_oper == 0) && (set_oper == 0)) m.setWhatsThis(m.insertItem(TR("New get and set operation"), 6), TR("to auto define the <i>get</i> and <i>set operation</i>s")); m.insertSeparator(); } } m.setWhatsThis(m.insertItem(TR("Referenced by"), 8), TR("to know who reference the <i>relation</i>")); m.insertSeparator(); if (!is_read_only && (edition_number == 0)) { m.setWhatsThis(m.insertItem(TR("Delete"), 2), TR("to delete the <i>relation</i>. \ Note that you can undelete it after")); } m.insertSeparator(); }
void BrowserRelation::menu() { QMenu m(name,0); QMenu toolm(0); MenuFactory::createTitle(m, def->definition(FALSE, TRUE)); m.addSeparator(); if (!deletedp()) { if (!in_edition()) { MenuFactory::addItem(m, QObject::tr("Edit"), 0, QObject::tr("to edit the <i>relation</i>, \ a double click with the left mouse button does the same thing")); if (!is_read_only && (edition_number == 0)) { if (RelationData::isa_association(def->get_type())) { MenuFactory::addItem(m, QObject::tr("Duplicate"), 1, QObject::tr("to copy the <i>relation</i> in a new one")); if (get_oper == 0) MenuFactory::addItem(m, QObject::tr("New get operation"), 4, QObject::tr("to auto define the <i>get operation</i>")); if (set_oper == 0) MenuFactory::addItem(m, QObject::tr("New set operation"), 5, QObject::tr("to auto define the <i>set operation</i>")); if ((get_oper == 0) && (set_oper == 0)) MenuFactory::addItem(m, QObject::tr("New get and set operation"), 6, QObject::tr("to auto define the <i>get</i> and <i>set operation</i>s")); m.addSeparator(); } } MenuFactory::addItem(m, QObject::tr("Referenced by"), 8, QObject::tr("to know who reference the <i>relation</i>")); m.addSeparator(); if (!is_read_only && (edition_number == 0)) { MenuFactory::addItem(m, QObject::tr("Delete"), 2, QObject::tr("to delete the <i>relation</i>. \ Note that you can undelete it after")); } m.addSeparator(); }
void BrowserSimpleRelation::menu() { Q3PopupMenu m(0, name); Q3PopupMenu toolm(0); MenuFactory::createTitle(m, def->definition(FALSE, TRUE)); m.insertSeparator(); if (!deletedp()) { if (!in_edition()) { m.setWhatsThis(m.insertItem(TR("Edit"), 0), TR("to edit the <i>relation</i>, \ a double click with the left mouse button does the same thing")); if (!is_read_only && (edition_number == 0)) { m.setWhatsThis(m.insertItem(TR("Delete"), 2), TR("to delete the <i>relation</i>. \ Note that you can undelete it after")); } m.insertSeparator(); }
void BrowserTransition::menu() { QMenu m("transition",0); QMenu toolm(0); MenuFactory::createTitle(m, def->definition(FALSE, TRUE)); m.addSeparator(); if (!deletedp()) { if (!in_edition()) { MenuFactory::addItem(m, QObject::tr("Edit"), 0, QObject::tr("to edit the <i>transition</i>, \ a double click with the left mouse button does the same thing")); if (!is_read_only && (edition_number == 0)) { MenuFactory::addItem(m, QObject::tr("Delete"), 2, QObject::tr("to delete the <i>transition</i>. \ Note that you can undelete it after")); } m.addSeparator(); }