void ContactApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { registerSyntax("ContactAction", "Contact/*"); registerSyntax("ContactPenetrationAuxAction", "Contact/*"); registerSyntax("ContactPenetrationVarAction", "Contact/*"); registerSyntax("ContactPressureAuxAction", "Contact/*"); registerSyntax("ContactPressureVarAction", "Contact/*"); registerSyntax("NodalAreaAction", "Contact/*"); registerSyntax("NodalAreaVarAction", "Contact/*"); registerAction(ContactAction, "add_aux_kernel"); registerAction(ContactAction, "add_aux_variable"); registerAction(ContactAction, "add_dirac_kernel"); registerTask("output_penetration_info_vars", false); registerAction(ContactAction, "output_penetration_info_vars"); syntax.addDependency("output_penetration_info_vars", "add_output"); registerAction(ContactPenetrationAuxAction, "add_aux_kernel"); registerAction(ContactPenetrationVarAction, "add_aux_variable"); registerAction(ContactPressureAuxAction, "add_aux_kernel"); registerAction(ContactPressureVarAction, "add_aux_variable"); registerAction(NodalAreaAction, "add_user_object"); registerAction(NodalAreaVarAction, "add_aux_variable"); }
void TagNode::init() { registerExpandTreeAction(); if (!myTag.isNull()) { registerAction(new TagEditAction(myTag)); registerAction(new TagCloneAction(myTag)); registerAction(new TagRemoveAction(myTag)); } }
void MooseTestApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { // and add more registerAction(ConvDiffMetaAction, "meta_action"); registerAction(AddLotsOfAuxVariablesAction, "meta_action"); syntax.registerActionSyntax("ConvDiffMetaAction", "ConvectionDiffusion"); syntax.registerActionSyntax("AddAuxVariableAction", "MoreAuxVariables/*", "add_aux_variable"); syntax.registerActionSyntax("AddLotsOfAuxVariablesAction", "LotsOfAuxVariables/*", "add_variable"); }
void SolidMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { syntax.registerActionSyntax("EmptyAction", "BCs/CavityPressure"); syntax.registerActionSyntax("CavityPressureAction", "BCs/CavityPressure/*"); syntax.registerActionSyntax("CavityPressurePPAction", "BCs/CavityPressure/*"); syntax.registerActionSyntax("CavityPressureUOAction", "BCs/CavityPressure/*"); syntax.registerActionSyntax("EmptyAction", "BCs/Pressure"); syntax.registerActionSyntax("PressureAction", "BCs/Pressure/*"); syntax.registerActionSyntax("SolidMechanicsAction", "SolidMechanics/*"); syntax.registerActionSyntax("JIntegralAction", "JIntegral","add_user_object"); syntax.registerActionSyntax("JIntegralAction", "JIntegral","add_aux_variable"); syntax.registerActionSyntax("JIntegralAction", "JIntegral","add_aux_kernel"); syntax.registerActionSyntax("JIntegralAction", "JIntegral","add_postprocessor"); registerAction(PressureAction, "add_bc"); registerAction(CavityPressureAction, "add_bc"); registerAction(CavityPressurePPAction, "add_postprocessor"); registerAction(CavityPressureUOAction, "add_user_object"); registerAction(SolidMechanicsAction, "add_kernel"); registerAction(JIntegralAction, "add_user_object"); registerAction(JIntegralAction, "add_aux_variable"); registerAction(JIntegralAction, "add_aux_kernel"); registerAction(JIntegralAction, "add_postprocessor"); }
void TensorMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { syntax.registerActionSyntax("EmptyAction", "BCs/CavityPressure"); syntax.registerActionSyntax("CavityPressureAction", "BCs/CavityPressure/*"); syntax.registerActionSyntax("CavityPressurePPAction", "BCs/CavityPressure/*"); syntax.registerActionSyntax("CavityPressureUOAction", "BCs/CavityPressure/*"); syntax.registerActionSyntax("TensorMechanicsAction", "Kernels/TensorMechanics"); syntax.registerActionSyntax("DynamicTensorMechanicsAction", "Kernels/DynamicTensorMechanics"); syntax.registerActionSyntax("PoroMechanicsAction", "Kernels/PoroMechanics"); syntax.registerActionSyntax("TensorMechanicsAxisymmetricRZAction", "Kernels/StressDivergence2DAxisymmetricRZ"); syntax.registerActionSyntax("TensorMechanicsRSphericalAction", "Kernels/StressDivergence1DRSpherical"); syntax.registerActionSyntax("EmptyAction", "BCs/Pressure"); syntax.registerActionSyntax("PressureAction", "BCs/Pressure/*"); registerAction(CavityPressureAction, "add_bc"); registerAction(CavityPressurePPAction, "add_postprocessor"); registerAction(CavityPressureUOAction, "add_user_object"); registerAction(TensorMechanicsAction, "add_kernel"); registerAction(DynamicTensorMechanicsAction, "add_kernel"); registerAction(PoroMechanicsAction, "add_kernel"); registerAction(TensorMechanicsAxisymmetricRZAction, "add_kernel"); registerAction(TensorMechanicsRSphericalAction, "add_kernel"); registerAction(PressureAction, "add_bc"); }
void TensorMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { syntax.registerActionSyntax("TensorMechanicsAction", "Kernels/TensorMechanics"); syntax.registerActionSyntax("EmptyAction", "BCs/PressureTM"); syntax.registerActionSyntax("PressureActionTM", "BCs/PressureTM/*"); registerAction(TensorMechanicsAction, "add_kernel"); registerAction(PressureActionTM, "add_bc"); }
void XFEMApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { registerTask("setup_xfem", false); registerAction(XFEMAction, "setup_xfem"); syntax.addDependency("setup_xfem","setup_adaptivity"); registerAction(XFEMAction, "add_aux_variable"); registerAction(XFEMAction, "add_aux_kernel"); syntax.registerActionSyntax("XFEMAction", "XFEM"); syntax.registerActionSyntax("AddUserObjectAction", "XFEM/*"); }
void RichardsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { syntax.registerActionSyntax("Q2PAction", "Q2P", "add_kernel"); syntax.registerActionSyntax("Q2PAction", "Q2P", "add_aux_variable"); syntax.registerActionSyntax("Q2PAction", "Q2P", "add_function"); syntax.registerActionSyntax("Q2PAction", "Q2P", "add_postprocessor"); registerAction(Q2PAction, "add_kernel"); registerAction(Q2PAction, "add_aux_variable"); registerAction(Q2PAction, "add_function"); registerAction(Q2PAction, "add_postprocessor"); }
void TensorMechanicsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { syntax.registerActionSyntax("TensorMechanicsAction", "Kernels/TensorMechanics"); syntax.registerActionSyntax("PoroMechanicsAction", "Kernels/PoroMechanics"); syntax.registerActionSyntax("TensorMechanicsAxisymmetricRZAction", "Kernels/AxisymmetricRZ"); syntax.registerActionSyntax("EmptyAction", "BCs/Pressure"); syntax.registerActionSyntax("PressureAction", "BCs/Pressure/*"); registerAction(TensorMechanicsAction, "add_kernel"); registerAction(PoroMechanicsAction, "add_kernel"); registerAction(TensorMechanicsAxisymmetricRZAction, "add_kernel"); registerAction(PressureAction, "add_bc"); }
void NetworkCatalogRootTree::init() { shared_ptr<NetworkAuthenticationManager> mgr = myLink.authenticationManager(); //registerAction(new ExpandCatalogAction(*this)); //registerAction(new ReloadAction(*this)); if (!mgr.isNull()) { registerAction(new LoginAction(*mgr, this)); registerAction(new LogoutAction(*mgr)); registerAction(new TopupAccountAction(*mgr)); if (mgr->registrationSupported()) { registerAction(new RegisterUserAction(*mgr)); } if (mgr->passwordRecoverySupported()) { registerAction(new PasswordRecoveryAction(*mgr)); } } }
void HeatConductionApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { // This registers an action to add the "slave_flux" vector to the system at the right time registerTask("add_slave_flux_vector", false); addTaskDependency("add_slave_flux_vector", "ready_to_init"); addTaskDependency("init_problem", "add_slave_flux_vector"); registerAction(AddSlaveFluxVectorAction, "add_slave_flux_vector"); syntax.registerActionSyntax("AddSlaveFluxVectorAction", "ThermalContact/*"); syntax.registerActionSyntax("ThermalContactAuxBCsAction", "ThermalContact/*", "add_aux_kernel"); syntax.registerActionSyntax("ThermalContactAuxKernelsAction", "ThermalContact/*", "add_aux_kernel"); syntax.registerActionSyntax("ThermalContactAuxVarsAction", "ThermalContact/*", "add_aux_variable"); syntax.registerActionSyntax("ThermalContactBCsAction", "ThermalContact/*", "add_bc"); syntax.registerActionSyntax("ThermalContactDiracKernelsAction", "ThermalContact/*", "add_dirac_kernel"); syntax.registerActionSyntax("ThermalContactMaterialsAction", "ThermalContact/*", "add_material"); registerAction(ThermalContactAuxBCsAction, "add_aux_kernel"); registerAction(ThermalContactAuxKernelsAction, "add_aux_kernel"); registerAction(ThermalContactAuxVarsAction, "add_aux_variablekernel"); registerAction(ThermalContactBCsAction, "add_bc"); registerAction(ThermalContactDiracKernelsAction, "add_dirac_kernel"); registerAction(ThermalContactMaterialsAction, "add_material"); }
void TrexApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { //syntax.registerActionSyntax(<File Name>, <input block/name>); //registerAction(<File Name>, <type>); syntax.registerActionSyntax("ImageGrainVariableAction", "AuxVariables/ImageGrainVariable"); registerAction(ImageGrainVariableAction, "add_aux_variable"); syntax.registerActionSyntax("ImageGrainICsAction", "ICs/ImageGrainICs"); registerAction(ImageGrainICsAction, "add_ic"); syntax.registerActionSyntax("PointValueOnLineAction", "Postprocessors/PointValueOnLine"); registerAction(PointValueOnLineAction, "add_postprocessor"); syntax.registerActionSyntax("PolycrystalKernelTensorAction", "Kernels/PolycrystalKernelAniso"); registerAction(PolycrystalKernelTensorAction, "add_kernel"); }
LeaveChatAction::LeaveChatAction(QObject *parent) : ActionDescription(parent) { setType(ActionDescription::TypeChat); setName("leaveChatAction"); setIcon(KaduIcon("kadu_icons/block-buddy")); setText(tr("Leave")); registerAction(); }
void QgsShortcutsManager::registerAllChildActions( QObject *object, bool recursive ) { if ( recursive ) { QList< QAction * > actions = object->findChildren< QAction * >(); Q_FOREACH ( QAction *a, actions ) { registerAction( a, a->shortcut().toString() ); } }
QAction * KviIrcContextDisplayAction::addToCustomToolBar(KviCustomToolBar *t) { if(!setupDone()) setup(); KviIrcContextDisplay * w = new KviIrcContextDisplay(t,KVI_COREACTION_IRCCONTEXTDISPLAY); QAction * pAction = t->addWidget(w); // important: when customizing the toolbar, we'll get the action name from QAction::objectName(); pAction->setObjectName(KVI_COREACTION_IRCCONTEXTDISPLAY); registerAction(pAction); return pAction; }
QAction * KviSeparatorAction::addToCustomToolBar(KviCustomToolBar * t) { if(!setupDone()) setup(); QWidget * w = new KviCustomToolBarSeparator(t,KVI_COREACTION_SEPARATOR); QAction * pAction = t->addWidget(w); // important: when customizing the toolbar, we'll get the action name from QAction::objectName(); pAction->setObjectName(KVI_COREACTION_SEPARATOR); registerAction(pAction); return pAction; }
EditTalkableAction::EditTalkableAction(QObject *parent) : ActionDescription(parent) { // TODO: TypeChat | TypeUser or TypeTalkables setType(TypeGlobal); setName("editUserAction"); setIcon(KaduIcon("x-office-address-book")); setText(tr("View Buddy Properties")); registerAction(); }
void FluidPropertiesApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { registerSyntaxTask( "AddFluidPropertiesAction", "Modules/FluidProperties/*", "add_fluid_properties"); registerMooseObjectTask("add_fluid_properties", FluidProperties, false); syntax.addDependency("add_fluid_properties", "init_displaced_problem"); registerAction(AddFluidPropertiesAction, "add_fluid_properties"); }
QAction * KviConnectAction::addToCustomToolBar(KviCustomToolBar *t) { if(!setupDone())setup(); QAction * pAction = new QAction(*(g_pIconManager->getBigIcon(KVI_BIGICON_DISCONNECTED)), m_szConnectString, t); pAction->setStatusTip(m_szConnectString); pAction->setObjectName(KVI_COREACTION_CONNECT); t->addAction(pAction); connect(pAction, SIGNAL(triggered()), this, SLOT(activate())); registerAction(pAction); activeContextStateChanged(); return pAction; }
void ChemicalReactionsApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { #undef registerAction #define registerAction(tplt, action) action_factory.reg<tplt>(stringifyName(tplt), action) syntax.registerActionSyntax("AddPrimarySpeciesAction", "ReactionNetwork"); syntax.registerActionSyntax("AddSecondarySpeciesAction", "ReactionNetwork/AqueousEquilibriumReactions"); syntax.registerActionSyntax("AddSecondarySpeciesAction", "ReactionNetwork/SolidKineticReactions"); syntax.registerActionSyntax("AddCoupledEqSpeciesKernelsAction", "ReactionNetwork/AqueousEquilibriumReactions"); syntax.registerActionSyntax("AddCoupledEqSpeciesAuxKernelsAction", "ReactionNetwork/AqueousEquilibriumReactions"); syntax.registerActionSyntax("AddCoupledSolidKinSpeciesKernelsAction", "ReactionNetwork/SolidKineticReactions"); syntax.registerActionSyntax("AddCoupledSolidKinSpeciesAuxKernelsAction", "ReactionNetwork/SolidKineticReactions"); registerAction(AddPrimarySpeciesAction, "add_variable"); registerAction(AddSecondarySpeciesAction, "add_aux_variable"); registerAction(AddCoupledEqSpeciesKernelsAction, "add_kernel"); registerAction(AddCoupledEqSpeciesAuxKernelsAction, "add_aux_kernel"); registerAction(AddCoupledSolidKinSpeciesKernelsAction, "add_kernel"); registerAction(AddCoupledSolidKinSpeciesAuxKernelsAction, "add_aux_kernel"); #undef registerAction #define registerAction(tplt, action) action_factory.regLegacy<tplt>(stringifyName(tplt), action) }
void MooseTestApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { #undef registerAction #define registerAction(tplt, action) action_factory.reg<tplt>(stringifyName(tplt), action) // and add more registerAction(ConvDiffMetaAction, "meta_action"); registerAction(AddLotsOfAuxVariablesAction, "meta_action"); registerAction(AddLotsOfDiffusion, "add_variable"); registerAction(AddLotsOfDiffusion, "add_kernel"); registerAction(AddLotsOfDiffusion, "add_bc"); syntax.registerActionSyntax("ConvDiffMetaAction", "ConvectionDiffusion"); syntax.registerActionSyntax("AddAuxVariableAction", "MoreAuxVariables/*", "add_aux_variable"); syntax.registerActionSyntax("AddLotsOfAuxVariablesAction", "LotsOfAuxVariables/*", "add_variable"); registerAction(ApplyCoupledVariablesTestAction, "meta_action"); syntax.registerActionSyntax("ApplyCoupledVariablesTestAction", "ApplyInputParametersTest"); syntax.registerActionSyntax("AddLotsOfDiffusion", "Testing/LotsOfDiffusion/*"); #undef registerAction #define registerAction(tplt, action) action_factory.regLegacy<tplt>(stringifyName(tplt), action) }
void NavierStokesApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { #undef registerAction #define registerAction(type, action) \ action_factory.reg<type>(stringifyName(type), action, __FILE__, __LINE__) // Create the syntax registerSyntax("AddNavierStokesVariablesAction", "Modules/NavierStokes/Variables"); registerSyntax("AddNavierStokesICsAction", "Modules/NavierStokes/ICs"); registerSyntax("AddNavierStokesKernelsAction", "Modules/NavierStokes/Kernels"); registerSyntax("AddNavierStokesBCsAction", "Modules/NavierStokes/BCs/*"); // add variables action registerTask("add_navier_stokes_variables", /*is_required=*/false); addTaskDependency("add_navier_stokes_variables", "add_variable"); registerAction(AddNavierStokesVariablesAction, "add_navier_stokes_variables"); // add ICs action registerTask("add_navier_stokes_ics", /*is_required=*/false); addTaskDependency("add_navier_stokes_ics", "add_ic"); registerAction(AddNavierStokesICsAction, "add_navier_stokes_ics"); // add Kernels action registerTask("add_navier_stokes_kernels", /*is_required=*/false); addTaskDependency("add_navier_stokes_kernels", "add_kernel"); registerAction(AddNavierStokesKernelsAction, "add_navier_stokes_kernels"); // add BCs actions registerMooseObjectTask("add_navier_stokes_bcs", NSWeakStagnationInletBC, /*is_required=*/false); appendMooseObjectTask("add_navier_stokes_bcs", NSNoPenetrationBC); appendMooseObjectTask("add_navier_stokes_bcs", NSStaticPressureOutletBC); addTaskDependency("add_navier_stokes_bcs", "add_bc"); registerAction(AddNavierStokesBCsAction, "add_navier_stokes_bcs"); #undef registerAction #define registerAction(type, action) action_factory.regLegacy<type>(stringifyName(type), action) }
void setup( void ) { hardwareSetup(); // Setup the LED to steady on pinMode(BOARD_LED_PIN, OUTPUT); digitalWrite(BOARD_LED_PIN, HIGH); // Setup the button as input pinMode(BOARD_BUTTON_PIN, INPUT); digitalWrite(BOARD_BUTTON_PIN, HIGH); // Setup the sensor pin as an analog input pinMode(sensor_pin,INPUT_ANALOG); setupKeywords(); registerAction(_DIR_, &DIRaction); registerAction(_TYP_, &TYPaction); setupRadioModule(); timer.pause(); // Set up period timer.setPeriod(1000); // in microseconds // Set up an interrupt on channel 1 timer.setMode(TIMER_CH1,TIMER_OUTPUT_COMPARE); timer.setCompare(TIMER_CH1, 1); // Interrupt 1 count after each update timer.attachInterrupt(TIMER_CH1,ledTask); // Refresh the timer's count, prescale, and overflow timer.refresh(); // Start the timer counting timer.resume(); setupRadioModule(); }
void KviActionManager::load(const QString &szFileName) { KviConfigurationFile cfg(szFileName,KviConfigurationFile::Read); KviConfigurationFileIterator it(*(cfg.dict())); while(it.current()) { cfg.setGroup(it.currentKey()); KviKvsUserAction * a = new KviKvsUserAction(this); if(a->load(&cfg))registerAction(a); else delete a; ++it; } }
void QgsShortcutsManager::registerAllChildActions( QObject *object, bool recursive ) { if ( recursive ) { QList< QAction * > actions = object->findChildren< QAction * >(); const auto constActions = actions; for ( QAction *a : constActions ) { registerAction( a, a->shortcut().toString( QKeySequence::NativeText ) ); } } else { const auto constChildren = object->children(); for ( QObject *child : constChildren ) { if ( QAction *a = qobject_cast<QAction *>( child ) ) { registerAction( a, a->shortcut().toString( QKeySequence::NativeText ) ); } } } }
void setupKeywords(){ int i; for (i=0; i<NKEYWORDS; i++) { registerAction(i,&NOPaction); } registerAction(_ACK_,&ACKaction); registerAction(_NAK_,&NAKaction); registerAction(_LAM_,&LAMaction); registerAction(_LFR_,&LFRaction); registerAction(_LFM_,&MEMaction); registerAction(_LSV_,&LSVaction); }
void ModuleController::loadModules() { for (std::string::size_type i=0; i<modules.size(); i++) { if (modules[i]->hasAction()) { modules[i]->getAction()->setActionPerform(actions); registerAction(modules[i]->getAction()); modules[i]->getAction()->setGraphics(modules[i]->getGraphic()); } if (modules[i]->hasGraphics()) { modules[i]->getGraphic()->setActionPerform(actions); registerGraphics(modules[i]->getGraphic()); } modules[i]->initModule(); } }
void PsiToolBar::initialize( QString base, bool createUniqueActions ) { d->base = base; d->uniqueActions.clear(); // PsiOptions::instance()->getOption(base + ".").toString() // setHorizontallyStretchable(PsiOptions::instance()->getOption(base + ".stretchable").toBool()); // setVerticallyStretchable(PsiOptions::instance()->getOption(base + ".stretchable").toBool()); setMovable (!PsiOptions::instance()->getOption(base + ".locked").toBool()); if ( d->psi ) { ActionList actions = d->psi->actionList()->suitableActions( d->type ); QStringList keys = PsiOptions::instance()->getOption(base + ".actions").toStringList(); for (int j = 0; j < keys.size(); j++) { IconAction *action = actions.action( keys[j] ); if ( action && action->isSeparator() ) { addSeparator(); } else if ( action ) { if ( createUniqueActions ) { action = action->copy(); d->uniqueActions.append( action ); } action->addTo( this ); emit registerAction( action ); } else { qWarning("PsiToolBar::initialize(): action %s not found!", keys[j].latin1()); } } } else { qWarning("PsiToolBar::initialize(): psi is NULL!"); } if (PsiOptions::instance()->getOption(base + ".visible").toBool()) { show(); } else { hide(); } }
void PhaseFieldApp::associateSyntax(Syntax & syntax, ActionFactory & action_factory) { syntax.registerActionSyntax("PolycrystalKernelAction", "Kernels/PolycrystalKernel"); syntax.registerActionSyntax("PolycrystalVariablesAction", "Variables/PolycrystalVariables"); syntax.registerActionSyntax("EmptyAction", "ICs/PolycrystalICs"); // placeholder syntax.registerActionSyntax("BicrystalCircleGrainICAction", "ICs/PolycrystalICs/BicrystalCircleGrainIC"); syntax.registerActionSyntax("BicrystalBoundingBoxICAction", "ICs/PolycrystalICs/BicrystalBoundingBoxIC"); syntax.registerActionSyntax("Tricrystal2CircleGrainsICAction", "ICs/PolycrystalICs/Tricrystal2CircleGrainsIC"); syntax.registerActionSyntax("PolycrystalHexGrainICAction", "ICs/PolycrystalICs/PolycrystalHexGrainIC"); syntax.registerActionSyntax("PolycrystalVoronoiICAction", "ICs/PolycrystalICs/PolycrystalVoronoiIC"); syntax.registerActionSyntax("PolycrystalRandomICAction", "ICs/PolycrystalICs/PolycrystalRandomIC"); syntax.registerActionSyntax("ReconVarICAction", "ICs/PolycrystalICs/ReconVarIC"); registerAction(PolycrystalKernelAction, "add_kernel"); registerAction(PolycrystalVariablesAction, "add_variable"); registerAction(BicrystalCircleGrainICAction, "add_ic"); registerAction(BicrystalBoundingBoxICAction, "add_ic"); registerAction(Tricrystal2CircleGrainsICAction, "add_ic"); registerAction(PolycrystalHexGrainICAction, "add_ic"); registerAction(PolycrystalVoronoiICAction, "add_ic"); registerAction(PolycrystalRandomICAction, "add_ic"); registerAction(ReconVarICAction, "add_ic"); }
void PsiToolBar::initialize( Options::ToolbarPrefs &tbPref, bool createUniqueActions ) { d->uniqueActions.clear(); setHorizontallyStretchable( tbPref.stretchable ); setVerticallyStretchable( tbPref.stretchable ); setMovingEnabled ( !tbPref.locked ); if ( d->psi ) { ActionList actions = d->psi->actionList()->suitableActions( d->type ); QStringList keys = tbPref.keys; for (int j = 0; j < keys.size(); j++) { IconAction *action = actions.action( keys[j] ); if ( action && action->isSeparator() ) { addSeparator(); } else if ( action ) { if ( createUniqueActions ) { action = action->copy(); d->uniqueActions.append( action ); } action->addTo( this ); emit registerAction( action ); } else qWarning("PsiToolBar::initialize(): action %s not found!", keys[j].latin1()); } } else qWarning("PsiToolBar::initialize(): psi is NULL!"); if ( tbPref.on ) show(); else hide(); tbPref.dirty = false; }