UnconditionalFrameEditDlg::UnconditionalFrameEditDlg(IFrame** pouFrame, eMode eUIType, QWidget* parent)
    : QDialog(parent)
{
    m_pouFrame = pouFrame;
    m_eUIMode = eUIType;




    m_pouLDFCluster = LDFDatabaseManager::GetDatabaseManager()->GetLDFCluster();
    ui.setupUi(this);
    layout()->setSizeConstraint( QLayout::SetFixedSize );
    SetUpUi();



    connect(ui.btnMapSignal, SIGNAL(clicked(bool)), this, SLOT(onMapSignal(bool)));
    connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(onSelectionOk()));
    connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(onSelectionCancel()));
    connect(ui.comboPublisher, SIGNAL(currentIndexChanged(QString)), this, SLOT(onChangePublisher(QString)));
    connect(ui.comboFrameLength, SIGNAL(currentIndexChanged(QString)), this, SLOT(onChangeFrameLength(QString)));

    QIcon ouWindowIcon;
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/16x16/Frame.png", QSize(16, 16));
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/22x22/Frame.png", QSize(16, 16));
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/32x32/Frame.png", QSize(16, 16));

    setWindowIcon(ouWindowIcon);

}
Beispiel #2
0
CodingDlg::CodingDlg(ICluster* pouCluster, ICoding** pouCoding, bool bNew, QWidget* parent)
    : QDialog(parent)
{
    ui.setupUi(this);
    m_pLdfCluster = pouCluster;
    m_pCoding = pouCoding;
    m_bEditMode = !bNew;
    vPrepareValidations();
    ui.buttonDeletePhysical->setDisabled(true);
    ui.buttonDeleteLogical->setDisabled(true);


    setWindowTitle("Create Coding");

    if ( true == m_bEditMode )
    {
        vPrepareUiForEdit();
    }
    connect(ui.buttonAddLogical, SIGNAL(clicked()), this, SLOT(AddLogicalRow()));
    connect(ui.buttonAddPhysical, SIGNAL(clicked()), this, SLOT(AddPhysicalRow()));
    connect(ui.buttonDeleteLogical, SIGNAL(clicked()), this, SLOT(DeleteLogicalRow()));
    connect(ui.buttonDeletePhysical, SIGNAL(clicked()), this, SLOT(DeletePhysicalRow()));
    connect(ui.tableLogicalValues, SIGNAL(ui.tableLogicalValues->itemSelectionChanged()), this, SLOT(ItemSelectionChangeLogical()));

    connect(ui.buttonOption, SIGNAL(accepted()), this, SLOT(onSelectionOk()));
    connect(ui.buttonOption, SIGNAL(rejected()), this, SLOT(onSelecetionCancel()));

    QIcon ouWindowIcon;
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/16x16/Coding.png", QSize(16, 16));
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/22x22/Coding.png", QSize(16, 16));
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/32x32/Coding.png", QSize(16, 16));

    setWindowIcon(ouWindowIcon);
}
MapSignalsDlg::MapSignalsDlg(UID_ELEMENT uidEcu, int nFrameLen, std::map<UID_ELEMENT, SignalInstanse> mapSignals, QWidget* parent)
{
    IElement* pElement = nullptr;
    m_pouEcu = nullptr;
    m_nFrameLen = nFrameLen;
    if(EC_SUCCESS == LDFDatabaseManager::GetDatabaseManager()->GetLDFCluster()->GetElement(eEcuElement, uidEcu, &pElement))
    {
        m_pouEcu = (IEcu*)pElement;
    }

    m_mapSignalUIDSigInst = mapSignals;
    ui.setupUi(this);



    connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(onSelectionOk()));
    connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(onSelectionCancel()));

    QIcon ouWindowIcon;
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/16x16/Signals.png", QSize(16, 16));
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/22x22/Signals.png", QSize(16, 16));
    ouWindowIcon.addFile(":/LDFEditorIcons/Resources/icons/32x32/Signals.png", QSize(16, 16));

    setWindowIcon(ouWindowIcon);
    std::string strEcuName;
    m_pouEcu->GetName(strEcuName);
    setWindowTitle(tr("Signals Published by ECU - %1").arg(strEcuName.c_str()));

    SetUpUi();
}