本文整理汇总了C++中BlAction::setIcon方法的典型用法代码示例。如果您正苦于以下问题:C++ BlAction::setIcon方法的具体用法?C++ BlAction::setIcon怎么用?C++ BlAction::setIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BlAction
的用法示例。
在下文中一共展示了BlAction::setIcon方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BfBulmaFact *bges )
{
BL_FUNC_DEBUG
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_proveedorfactura", g_confpr->value( CONF_DIR_TRADUCCION ).toAscii().constData() );
g_pluginbf_proveedorfactura = bges;
if ( bges->company()->hasTablePrivilege ( "facturap", "SELECT" ) ) {
/// Miramos si existe un menu Compras
QMenu *pPluginMenu = bges->newMenu ( _("&Compras"), "menuCompras", "menuMaestro" );
pPluginMenu->addSeparator();
BlAction *accionA = new BlAction ( _ ( "&Facturas de proveedores" ), 0 );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/supplier-invoice-list.png" ) ) );
accionA->setStatusTip ( _ ( "Facturas de proveedores" ) );
accionA->setWhatsThis ( _ ( "Facturas de proveedores" ) );
accionA->setObjectName("mui_actionProveedoresFacturas");
pPluginMenu->addAction ( accionA );
bges->Listados->addAction ( accionA );
BlAction *accionB = new BlAction ( _ ( "&Nueva factura de proveedor" ), 0 );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/supplier-invoice.png" ) ) );
accionB->setStatusTip ( _ ( "Nueva factura de proveedor" ) );
accionB->setWhatsThis ( _ ( "Nueva factura de proveedor" ) );
accionB->setObjectName("mui_actionProveedorFacturaNueva");
pPluginMenu->addAction ( accionB );
bges->Fichas->addAction ( accionB );
} // end if
return 0;
}
示例2: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BfBulmaFact *bges )
{
BL_FUNC_DEBUG
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_articulo", g_confpr->value( CONF_DIR_TRADUCCION ).toLatin1().constData() );
if (bges->objectName() != "BtBulmaTPVBase") {
g_pluginbf_articulo = (BfBulmaFact * ) bges;
if ( bges->company()->hasTablePrivilege ( "articulo", "SELECT" ) ) {
/// Miramos si existe un menu Articulos
QMenu *pPluginMenu = bges->newMenu ( _("&Articulos"), "menuArticulos", "menuMaestro" );
pPluginMenu->addSeparator();
/// El menú de Articulos en la sección de artículos.
BlAction *accionA = g_pbf_articulo_actionA = new BlAction ( _ ( "&Articulos" ), 0 );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/product-list.png" ) ) );
accionA->setStatusTip ( _ ( "Articulos" ) );
accionA->setWhatsThis ( _ ( "Articulos" ) );
accionA->setObjectName("mui_actionArticulos");
pPluginMenu->addAction ( accionA );
bges->Listados->addAction ( accionA );
BlAction *accionB = g_pbf_articulo_actionB = new BlAction ( _ ( "&Nuevo articulo" ), 0 );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/product.png" ) ) );
accionB->setStatusTip ( _ ( "Nuevo articulo" ) );
accionB->setWhatsThis ( _ ( "Nuevo articulo" ) );
accionB->setObjectName("mui_actionArticuloNuevo");
pPluginMenu->addAction ( accionB );
bges->Fichas->addAction ( accionB );
pPluginMenu->addSeparator();
BlAction *accionC = g_pbf_articulo_actionC = new BlAction ( _ ( "&Tipos de articulo" ), 0 );
accionC->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/product-type.png" ) ) );
accionC->setStatusTip ( _ ( "Tipos de articulo" ) );
accionC->setWhatsThis ( _ ( "Tipos de articulo" ) );
accionC->setObjectName("mui_actionArticulosTipo");
pPluginMenu->addAction ( accionC );
bges->Fichas->addAction ( accionC );
pPluginMenu->addSeparator();
BlAction *accionD = g_pbf_articulo_actionD = new BlAction ( _ ( "&Familias" ), 0 );
accionD->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/product-family.png" ) ) );
accionD->setStatusTip ( _ ( "Familias" ) );
accionD->setWhatsThis ( _ ( "Familias" ) );
accionD->setObjectName("mui_actionFamilias");
pPluginMenu->addAction ( accionD );
bges->Fichas->addAction ( accionD );
} // end if
} // end if
return 0;
}
示例3: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BfBulmaFact *bges )
{
BL_FUNC_DEBUG
/// El plugin necesita un parche en la base de datos para funcionar.
bges->company()->dbPatchVersionCheck("PluginBf_Profesor", "0.12.1-0003");
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_profesor", g_confpr->value( CONF_DIR_TRADUCCION ).toAscii().constData() );
g_pluginbf_profesor = bges;
if ( bges->company()->hasTablePrivilege ( "profesor", "SELECT" ) ) {
/// Miramos si existe un menu Docencia
QMenu *pPluginMenu = bges->newMenu ( _("&Activitats"), "menuActivitats", "menuMaestro" );
/// Agregamos un separador
pPluginMenu->addSeparator();
/// El menú de Tarifas en la sección de artículos.
BlAction *accionA = new BlAction ( _ ( "&Profesores" ), 0 );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/profesor.png" ) ) );
accionA->setStatusTip ( _ ( "Profesores" ) );
accionA->setWhatsThis ( _ ( "Profesores" ) );
accionA->setObjectName("mui_actionProfesores");
pPluginMenu->addAction ( accionA );
bges->Listados->addAction ( accionA );
//connect ( accionA, SIGNAL ( activated() ), this, SLOT ( elslot() ) );
BlAction *accionB = new BlAction ( _ ( "&Nuevo profesor" ), 0 );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/profesor_add.png" ) ) );
accionB->setStatusTip ( _ ( "Nuevo profesor" ) );
accionB->setWhatsThis ( _ ( "Nuevo profesor" ) );
accionB->setObjectName("mui_actionProfesorNuevo");
pPluginMenu->addAction ( accionB );
bges->Fichas->addAction ( accionB );
//connect ( accionB, SIGNAL ( activated() ), this, SLOT ( elslot1() ) );
BlAction *accionC = new BlAction ( _ ( "About FAPAC" ), 0 );
accionC->setStatusTip ( _ ( "About FAPAC" ) );
accionC->setWhatsThis ( _ ( "About FAPAC" ) );
accionC->setObjectName("mui_actionAboutFapac");
bges->menuAcerca_de->addAction ( accionC );
//connect ( accionC, SIGNAL ( activated() ), this, SLOT ( elslot2() ) );
} // end if
return 0;
}
示例4: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BfBulmaFact *bges )
{
BL_FUNC_DEBUG
/// El plugin necesita un parche en la base de datos para funcionar.
bges->company()->dbPatchVersionCheck("PluginBf_MiniContabilidad", "0.12.1-0002");
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_minicontabilidad", g_confpr->value( CONF_DIR_TRADUCCION ).toAscii().constData() );
g_pluginbf_minicontabilidad = bges;
if ( g_pluginbf_minicontabilidad->company()->hasTablePrivilege ( "partida", "SELECT" ) ) {
/// Miramos si existe un menu Articulos
QMenu *pPluginMenu = g_pluginbf_minicontabilidad->newMenu ( _("Economia"), "menuEconomia", "menuMaestro" );
pPluginMenu->addSeparator();
pPluginMenu->addSeparator();
BlAction *accionA = new BlAction ( _ ( "&Partidas contables" ), 0 );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/account_plan.png" ) ) );
accionA->setStatusTip ( _ ( "Partidas contables" ) );
accionA->setWhatsThis ( _ ( "Partidas contables" ) );
accionA->setObjectName("mui_actionContablesPartidas");
pPluginMenu->addAction ( accionA );
g_pluginbf_minicontabilidad->Fichas->addAction ( accionA );
BlAction *accionB = new BlAction ( _ ( "&Anotaciones contables" ), 0 );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/balance-sheet.png" ) ) );
accionB->setStatusTip ( _ ( "Anotaciones contables" ) );
accionB->setWhatsThis ( _ ( "Anotaciones contables" ) );
accionB->setObjectName("mui_actionContablesAnotaciones");
pPluginMenu->addAction ( accionB );
g_pluginbf_minicontabilidad->Fichas->addAction ( accionB );
BlAction *accionC = new BlAction ( _ ( "&Previsiones" ), 0 );
accionC->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/book-list.png" ) ) );
accionC->setStatusTip ( _ ( "Presupuesto Contables" ) );
accionC->setWhatsThis ( _ ( "Presupuestos Contables" ) );
accionC->setObjectName("mui_actionContablesPresupuestos");
pPluginMenu->addAction ( accionC );
g_pluginbf_minicontabilidad->Fichas->addAction ( accionC );
} // end if
g_ap = new ApunteContableView ( ( BfCompany * ) bges->company(), 0 );
bges->company() ->m_pWorkspace->addSubWindow ( g_ap );
return 0;
}
示例5: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BfBulmaFact *bges )
{
BL_FUNC_DEBUG
/// El plugin necesita un parche en la base de datos para funcionar.
bges->company()->dbPatchVersionCheck("PluginBf_Contrato", "0.11.1-0001");
g_pluginbf_contrato = bges;
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_contrato", g_confpr->value( CONF_DIR_TRADUCCION ).toLatin1().constData() );
/// Miramos si existe un menu Ventas
QMenu *pPluginMenu = bges->newMenu ( _("&Ventas"), "menuVentas", "menuMaestro" );
BlAction *accion = new BlAction ( _("&Contratos"), 0 );
accion->setStatusTip ( _("Listado de contratos") );
accion->setWhatsThis ( _("Listado de contratos") );
accion->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/contract-list.png" ) ) );
accion->setObjectName("mui_actionListadoContratos");
pPluginMenu->addAction(accion);
return 0;
}
示例6: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BfBulmaFact *bges )
{
BL_FUNC_DEBUG
/// El plugin necesita un parche en la base de datos para funcionar.
bges->company()->dbPatchVersionCheck("DBRev-CarteraCobros", "0.11.1-0001");
g_pluginbf_carteracobros = bges;
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_carteracobros", g_confpr->value( CONF_DIR_TRADUCCION ).toAscii().constData() );
/// Miramos si existe un menu Ventas
QMenu *pPluginMenu = bges->newMenu( _("&Compras"), "menuVentas", "menuMaestro");
BlAction *accionA = new BlAction ( _("&Cartera de cobros"), 0 );
accionA->setStatusTip ( _("Cartera de cobros") );
accionA->setWhatsThis ( _("Cartera de cobros") );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/receive-list.png" ) ) );
accionA->setObjectName("mui_actionCarteraCobros");
/// Añadimos la nueva opción al menú principal del programa.
pPluginMenu->addSeparator();
pPluginMenu->addAction ( accionA );
bges->Listados->addAction (accionA);
return 0;
}
示例7: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BfBulmaFact *bges )
{
BL_FUNC_DEBUG
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_actividad", g_confpr->value( CONF_DIR_TRADUCCION ).toLatin1().constData() );
g_pluginbf_actividad = bges;
if ( bges->company()->hasTablePrivilege ( "cobro", "SELECT" ) ) {
/// Miramos si existe un menu Ventas
QMenu *pPluginMenu = bges->newMenu ( _("&Activitats"), "menuActivitats", "menuMaestro" );
pPluginMenu->addSeparator();
BlAction *accionA = new BlAction ( _ ( "&Actividades" ), 0 );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/actividad.png" ) ) );
accionA->setStatusTip ( _ ( "Actividades" ) );
accionA->setWhatsThis ( _ ( "Actividades" ) );
accionA->setObjectName("mui_actionActividades");
pPluginMenu->addAction ( accionA );
bges->Listados->addAction ( accionA );
BlAction *accionB = new BlAction ( _ ( "&Nueva actividad" ), 0 );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/actividad_add.png" ) ) );
accionB->setStatusTip ( _ ( "Nueva actividad" ) );
accionB->setWhatsThis ( _ ( "Nueva actividad" ) );
accionB->setObjectName("mui_actionActividadNueva");
pPluginMenu->addAction ( accionB );
bges->Fichas->addAction ( accionB );
pPluginMenu->addSeparator();
BlAction *accionC = new BlAction ( _ ( "&Tipos de Actividad" ), 0 );
accionC->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/actividad.png" ) ) );
accionC->setStatusTip ( _ ( "Tipos de Actividad" ) );
accionC->setWhatsThis ( _ ( "Tipos de Actividad" ) );
accionC->setObjectName("mui_actionActividadTipos");
pPluginMenu->addAction ( accionC );
bges->Fichas->addAction ( accionC );
} // end if
return 0;
}
示例8: entryPoint
/**
\return
**/
int entryPoint ( BcBulmaCont *bcont )
{
BL_FUNC_DEBUG
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbc_registroiva", g_confpr->value( CONF_DIR_TRADUCCION ).toAscii().constData() );
g_pluginbc_registroiva = bcont;
QMenu *pPluginMenu = bcont->newMenu(_("&Iva"), "menuIva", "menuMaestro");
/// Creamos el menú.
BlAction *accionA = new BlAction ( _ ( "&Registro de IVA" ), 0 );
accionA->setStatusTip ( _ ( "Registro de IVA" ) );
accionA->setWhatsThis ( _ ( "Registro de IVA" ) );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/vat.png" ) ) );
accionA->setObjectName("mui_actionRegistroIVA");
pPluginMenu->addAction ( accionA );
bcont->toolBar->addAction ( accionA );
BlAction *accionB = new BlAction ( _ ( "&Cobros y pagos" ), 0 );
accionB->setStatusTip ( _ ( "Cobros y pagos" ) );
accionB->setWhatsThis ( _ ( "Cobros y pagos" ) );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/bank-list.png") ) );
accionB->setObjectName ("mui_actionCobrosYPagos");
pPluginMenu->addAction ( accionB );
bcont->toolBar->addAction ( accionB );
BlAction *accionC = new BlAction ( _ ( "&Modelo 347" ), 0 );
accionC->setStatusTip ( _ ( "Modelo 347" ) );
accionC->setWhatsThis ( _ ( "Modelo 347" ) );
// accion2->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/bank-list.png") ) );
accionC->setObjectName ("mui_actionModelo347");
pPluginMenu->addAction ( accionC );
return 0;
}
示例9: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BlMainWindow *bges )
{
BL_FUNC_DEBUG
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_cliente", g_confpr->value( CONF_DIR_TRADUCCION ).toAscii().constData() );
if (bges->objectName() != "BtBulmaTPVBase") {
g_pluginbf_cliente = (BfBulmaFact * ) bges;
if ( g_pluginbf_cliente->company()->hasTablePrivilege ( "cliente", "SELECT" ) ) {
/// Miramos si existe un menu Ventas
QMenu *pPluginMenu = g_pluginbf_cliente->newMenu ( _("&Ventas"), "menuVentas", "menuMaestro" );
pPluginMenu->addSeparator();
BlAction *accionA = new BlAction ( _ ( "&Clientes" ), 0 );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/client-list.png" ) ) );
accionA->setStatusTip ( _ ( "Clientes" ) );
accionA->setWhatsThis ( _ ( "Clientes" ) );
accionA->setObjectName("mui_actionClientes");
pPluginMenu->addAction ( accionA );
g_pluginbf_cliente->Listados->addAction ( accionA );
BlAction *accionB = new BlAction ( _ ( "&Nuevo cliente" ), 0 );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/client.png" ) ) );
accionB->setStatusTip ( _ ( "Nuevo cliente" ) );
accionB->setWhatsThis ( _ ( "Nuevo cliente" ) );
accionB->setObjectName("mui_actionNuevoCliente");
pPluginMenu->addAction ( accionB );
g_pluginbf_cliente->Fichas->addAction ( accionB );
} // end if
} // end if
return 0;
}
示例10: entryPoint
/**
\param bcont
**/
int entryPoint ( BcBulmaCont *bcont )
{
BL_FUNC_DEBUG
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbc_balance", g_confpr->value( CONF_DIR_TRADUCCION ).toAscii().constData() );
g_pluginbc_balance = bcont;
QMenu *pPluginMenu = bcont->newMenu( _("&Ver"), "menuVer", "menuMaestro");
BlAction *accionA = new BlAction ( _ ( "&Balance" ), 0 );
accionA->setStatusTip ( _ ( "Permite realizar balances" ) );
accionA->setWhatsThis ( _ ( "Podra disponer de la informacion del balance" ) );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/BulmaCont32x32/images/png/i_balance.xpm" ) ) );
accionA->setObjectName("mui_actionBalance");
pPluginMenu->addAction ( accionA );
bcont->toolBar->addAction ( accionA );
return 0;
}
示例11: entryPoint
/**
\param bcont
**/
int entryPoint ( BfBulmaFact *bcont )
{
BL_FUNC_DEBUG
g_selcanales = new BcCanalSeleccionarView ( bcont->company(), 0 );
g_selccostes = new BcCentroCosteSeleccionarView (bcont->company(), 0);
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_canalyccoste", g_confpr->value( CONF_DIR_TRADUCCION ).toLatin1().constData() );
g_pluginbf_canalyccoste = bcont;
QMenu *pPluginMenu = bcont->menuMaestro;
pPluginMenu->addSeparator();
BlAction *accionA = new BlAction ( _ ( "&Canal" ), 0 );
accionA->setStatusTip ( _ ( "Ver Canales" ) );
accionA->setWhatsThis ( _ ( "Ver Canales" ) );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/BulmaCont32x32/images/png/i_canales.xpm" ) ) );
accionA->setObjectName("mui_actionCanal");
pPluginMenu->addAction ( accionA );
BlAction *accionB = new BlAction ( _ ( "&Centros de Coste" ), 0 );
accionB->setStatusTip ( _ ( "Ver Centros de Coste" ) );
accionB->setWhatsThis ( _ ( "Ver Centros de Coste" ) );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/BulmaCont32x32/images/png/i_centroCoste.xpm" ) ) );
accionB->setObjectName("mui_actionCCoste");
pPluginMenu->addAction ( accionB );
/// Añadimos la nueva opción al menú principal del programa.
/// Usamos un toolBox especial para meter los botones de contabilidad.
QToolBar *toolCont = bcont->findChild<QToolBar *> ( "contabilidad" );
if ( !toolCont) {
toolCont = new QToolBar(bcont);
toolCont->setObjectName("contabilidad");
toolCont->setFocusPolicy(Qt::TabFocus);
toolCont->setOrientation(Qt::Horizontal);
toolCont->setIconSize(QSize(32, 32));
toolCont->setWindowTitle(N_("Contabilidad", 0));
toolCont->setToolTip(N_("Contabilidad", 0));
toolCont->setStatusTip(N_("Contabilidad", 0));
toolCont->setWhatsThis(N_("Contabilidad", 0));
toolCont->setAccessibleName(N_("Contabilidad", 0));
toolCont->setAccessibleDescription(N_("Contabilidad", 0));
bcont->addToolBar(Qt::TopToolBarArea, toolCont);
} // end if
toolCont->addAction(accionA);
toolCont->addAction(accionB);
// =================================================
/// Vamos a probar con un docwindow.
BlDockWidget *doc1 = new BlDockWidget ( _ ( "Selector de Canales" ), bcont );
doc1->setObjectName("mui_selcanales");
doc1->setFeatures ( QDockWidget::AllDockWidgetFeatures );
doc1->setGeometry ( 100, 100, 100, 500 );
doc1->resize ( 330, 250 );
bcont->addDockWidget ( Qt::RightDockWidgetArea, doc1 );
doc1->show();
doc1->setWidget ( g_selcanales );
// =================================================
/**
*
*
*
*
*/
// =================================================
/// Vamos a probar con un docwindow.
BlDockWidget *doc2 = new BlDockWidget ( _ ( "Selector de Centros de Coste" ), bcont );
doc2->setObjectName("mui_selcostes");
doc2->setFeatures ( QDockWidget::AllDockWidgetFeatures );
doc2->setGeometry ( 100, 100, 100, 500 );
doc2->resize ( 330, 250 );
bcont->addDockWidget ( Qt::RightDockWidgetArea, doc2 );
doc2->show();
doc2->setWidget ( g_selccostes );
return 0;
}
示例12: entryPoint
/**
\param bges
\return
**/
int entryPoint ( BfBulmaFact *bges )
{
BL_FUNC_DEBUG
/// Inicializa el sistema de traducciones 'gettext'.
setlocale ( LC_ALL, "" );
blBindTextDomain ( "pluginbf_alumno", g_confpr->value( CONF_DIR_TRADUCCION ).toLatin1().constData() );
g_pluginbf_alumno = bges;
if ( bges->company()->hasTablePrivilege ( "alumno", "SELECT" ) ) {
/// Miramos si existe un menu Docencia
QMenu *pPluginMenu = bges->newMenu ( _("&Associats"), "menuAssociats", "menuMaestro" );
/// Agrego un separador
pPluginMenu->addSeparator();
BlAction *accionA = new BlAction ( _ ( "&Alumnos" ), 0 );
accionA->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/alumno-list.png" ) ) );
accionA->setStatusTip ( _ ( "Alumnos" ) );
accionA->setWhatsThis ( _ ( "Alumnos" ) );
accionA->setObjectName("mui_actionAlumnos");
pPluginMenu->addAction ( accionA );
bges->Listados->addAction ( accionA );
BlAction *accionB = new BlAction ( _ ( "&Nuevo alumno" ), 0 );
accionB->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/alumno-new.png" ) ) );
accionB->setStatusTip ( _ ( "Nuevo alumno" ) );
accionB->setWhatsThis ( _ ( "Nuevo alumno" ) );
accionB->setObjectName("mui_actionAlumnoNuevo");
pPluginMenu->addAction ( accionB );
bges->Fichas->addAction ( accionB );
/// Miramos si existe un menu Docencia
QMenu *pGesMenu = bges->newMenu ( _("&Associats"), "menuAssociats", "menuMaestro" );
/// Agrego un separador
pGesMenu->addSeparator();
BlAction *accionC = new BlAction ( _ ( "&Cuotas Socio" ), 0 );
accionC->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/mix_money_32.png" ) ) );
accionC->setStatusTip ( _ ( "Cuotas por alumno" ) );
accionC->setWhatsThis ( _ ( "Cuotas por alumno" ) );
accionC->setObjectName("mui_actionAlumnoCuotas");
pGesMenu->addAction ( accionC );
bges->Fichas->addAction ( accionC );
BlAction *accionH = new BlAction ( _ ( "&Descuentos por actividades contratadas" ), 0 );
accionH->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/mix_money_32.png" ) ) );
accionH->setStatusTip ( _ ( "Descuentos por actividades contratadas" ) );
accionH->setWhatsThis ( _ ( "Descuentos por actividades contratadas" ) );
accionH->setObjectName("mui_actionDescuentosCuotas");
pGesMenu->addAction ( accionH );
bges->Fichas->addAction ( accionH );
/// Agrego un separador
pGesMenu->addSeparator();
BlAction *accionD = new BlAction ( _ ( "&Clases" ), 0 );
accionD->setStatusTip ( _ ( "Clases" ) );
accionD->setWhatsThis ( _ ( "Clases" ) );
accionD->setObjectName("mui_actionClases");
accionD->setIcon ( QIcon ( QString::fromUtf8 ( ":/ImgGestionAula/icons/warehouse.png" ) ) );
pGesMenu->addAction ( accionD );
bges->Fichas->addAction ( accionD );
BlAction *accionE = new BlAction ( _ ( "&Promocion de Clases" ), 0 );
accionE->setStatusTip ( _ ( "Promocion de Clases" ) );
accionE->setWhatsThis ( _ ( "Promocion de Clases" ) );
accionE->setObjectName("mui_actionPromocionClases");
accionE->setIcon ( QIcon ( QString::fromUtf8 ( ":/Images/i_promocion.png" ) ) );
pGesMenu->addAction ( accionE );
bges->Fichas->addAction ( accionE );
} // end if
return 0;
}