//*********************// // SLOTS // //*********************// void QComponentTreeLibrary::componentPressed() { std::string tName; if (!templateName.empty()) tName = templates->currentText().toStdString(); emit( componentDragged( description, tName, entry)); label->setDown(false); }
ComponentLibrary *QCategoryTreeLibrary::addComponent(const std::string &componentName, ClassEntry::SPtr entry, const std::vector< std::string > &exampleFiles) { QComponentTreeLibrary *component = static_cast<QComponentTreeLibrary *>(CategoryLibrary::addComponent(componentName, entry, exampleFiles)); if (component) { connect( component->getQWidget(), SIGNAL( componentDragged( std::string, std::string, ClassEntry::SPtr ) ), this, SLOT( componentDraggedReception( std::string, std::string, ClassEntry::SPtr) ) ); } return component; }
//*********************// // SLOTS // //*********************// void QCategoryLibrary::componentDraggedReception( std::string description, std::string templateName, ClassEntry* componentEntry) { emit( componentDragged( description, this->getName(), templateName, componentEntry) ); }
//*********************// // SLOTS // //*********************// void QSofaLibrary::componentDraggedReception( std::string description, std::string categoryName, std::string templateName, ClassEntry* componentEntry) { emit(componentDragged(description, categoryName,templateName,componentEntry)); }