Ignore:
Timestamp:
2013-03-01T23:20:40+01:00 (11 years ago)
Author:
adeas31
Message:
  • Component attributes dialog.
  • some minor fixes with the model switcher dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OMEdit/OMEditGUI/GUI/Dialogs/ImportFMUDialog.cpp

    r15399 r15424  
    9898  // set grid layout
    9999  Label *pNoteLabel = new Label(tr("* This feature is experimental. Most models are not yet handled by it."));
    100   QGridLayout *mainLayout = new QGridLayout;
    101   mainLayout->setAlignment(Qt::AlignTop | Qt::AlignLeft);
    102   mainLayout->addWidget(mpImportFMUHeading, 0, 0, 1, 3);
    103   mainLayout->addWidget(mpHorizontalLine, 1, 0, 1, 3);
    104   mainLayout->addWidget(mpFmuFileLabel, 2, 0);
    105   mainLayout->addWidget(mpFmuFileTextBox, 2, 1);
    106   mainLayout->addWidget(mpBrowseFileButton, 2, 2);
    107   mainLayout->addWidget(mpOutputDirectoryLabel, 3, 0);
    108   mainLayout->addWidget(mpOutputDirectoryTextBox, 3, 1);
    109   mainLayout->addWidget(mpBrowseDirectoryButton, 3, 2);
    110   mainLayout->addWidget(mpOutputDirectoryNoteLabel, 4, 0, 1, 3, Qt::AlignLeft);
    111   mainLayout->addWidget(mpLogLevelLabel, 5, 0);
    112   mainLayout->addWidget(mpLogLevelComboBox, 5, 1, 1, 2);
    113   mainLayout->addWidget(mpDebugLoggingCheckBox, 6, 0, 1, 3);
    114   mainLayout->addWidget(mpGenerateIntputConnectors, 7, 0, 1, 3);
    115   mainLayout->addWidget(mpGenerateOutputConnectors, 8, 0, 1, 3);
    116   mainLayout->addWidget(pNoteLabel, 9, 0, 1, 3, Qt::AlignLeft);
    117   mainLayout->addWidget(mpImportButton, 10, 0, 1, 3, Qt::AlignRight);
    118   setLayout(mainLayout);
     100  QGridLayout *pMainLayout = new QGridLayout;
     101  pMainLayout->setAlignment(Qt::AlignTop | Qt::AlignLeft);
     102  pMainLayout->addWidget(mpImportFMUHeading, 0, 0, 1, 3);
     103  pMainLayout->addWidget(mpHorizontalLine, 1, 0, 1, 3);
     104  pMainLayout->addWidget(mpFmuFileLabel, 2, 0);
     105  pMainLayout->addWidget(mpFmuFileTextBox, 2, 1);
     106  pMainLayout->addWidget(mpBrowseFileButton, 2, 2);
     107  pMainLayout->addWidget(mpOutputDirectoryLabel, 3, 0);
     108  pMainLayout->addWidget(mpOutputDirectoryTextBox, 3, 1);
     109  pMainLayout->addWidget(mpBrowseDirectoryButton, 3, 2);
     110  pMainLayout->addWidget(mpOutputDirectoryNoteLabel, 4, 0, 1, 3, Qt::AlignLeft);
     111  pMainLayout->addWidget(mpLogLevelLabel, 5, 0);
     112  pMainLayout->addWidget(mpLogLevelComboBox, 5, 1, 1, 2);
     113  pMainLayout->addWidget(mpDebugLoggingCheckBox, 6, 0, 1, 3);
     114  pMainLayout->addWidget(mpGenerateIntputConnectors, 7, 0, 1, 3);
     115  pMainLayout->addWidget(mpGenerateOutputConnectors, 8, 0, 1, 3);
     116  pMainLayout->addWidget(pNoteLabel, 9, 0, 1, 3, Qt::AlignLeft);
     117  pMainLayout->addWidget(mpImportButton, 10, 0, 1, 3, Qt::AlignRight);
     118  setLayout(pMainLayout);
    119119}
    120120
Note: See TracChangeset for help on using the changeset viewer.