Esempio n. 1
0
//*********************//
// SLOTS               //
//*********************//
void QComponentTreeLibrary::componentPressed()
{
    std::string tName;
    if (!templateName.empty()) tName = templates->currentText().toStdString();

    emit( componentDragged( description, tName, entry));
    label->setDown(false);
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
//*********************//
// SLOTS               //
//*********************//
void QCategoryLibrary::componentDraggedReception( std::string description, std::string templateName, ClassEntry* componentEntry)
{
    emit( componentDragged( description, this->getName(), templateName, componentEntry) );
}
Esempio n. 4
0
//*********************//
// SLOTS               //
//*********************//
void QSofaLibrary::componentDraggedReception( std::string description, std::string categoryName, std::string templateName, ClassEntry* componentEntry)
{
    emit(componentDragged(description, categoryName,templateName,componentEntry));
}