Пример #1
0
// -----------------------------------------------------------------------------
//  Called when the OK button is clicked.
// -----------------------------------------------------------------------------
void FilterMaker::on_generateBtn_clicked()
{
  QString filterName = this->filterName->text();

  // Update all filter file generators with information from table
  updateFilterFileGenerators();

  // Generate the implementation, header, and test files
  generateFilterFiles();

  // Add to the SourceList.cmake file
  updateSourceList();

  // Add to the Test Locations file
  updateTestLocations();

  // Add to the CMakeLists.txt file in the Test folder
  updateTestList();

  emit updateStatusBar("'" + filterName + "' Generation Completed");
}
Пример #2
0
    layout->addWidget(m_destFilename, 2, 1, 1, 3);

    m_tabWidget->addTab(widget, "&Points of Interest");

    widget = new QWidget(this);
    layout = new QGridLayout(widget);
    layout->setContentsMargins(0, 0, 0, 0);
    layout->setRowStretch(1, 1);

    label = new QLabel("This Page does not work yet!!!", this);
    label->setAlignment(Qt::AlignCenter);
    layout->addWidget(label, 0, 0, 1, 2);

    QPushButton *updateList = new QPushButton("Update list", this);
    connect(updateList, SIGNAL(clicked()), this, SLOT(updateSourceList()));
    layout->addWidget(updateList, 0, 2);

    layout->addWidget(m_packageList, 1, 0, 1, 3);

    label = new QLabel("Download into directory:", this);
    layout->addWidget(label, 2, 0);

    layout->addWidget(m_destDir, 2, 1, 1, 2);

    m_tabWidget->addTab(widget, "&Routing data");

    connect(m_manager, SIGNAL(finished(QNetworkReply*)),
            this, SLOT(replyFinished(QNetworkReply*)));

    resize(320, 240);