Esempio n. 1
0
// ----------------------------------------------------------
void QucsApp::slotCreatePackage()
{
  editText->setHidden(true); // disable text edit of component property

  PackageDialog *d = new PackageDialog(this, true);
  d->exec();
}
Esempio n. 2
0
// ----------------------------------------------------------
void QucsApp::slotExtractPackage()
{
  editText->setHidden(true); // disable text edit of component property
  PackageDialog *d = new PackageDialog(this, false);
  d->show();
  d->extractPackage();
  readProjects();
}
Esempio n. 3
0
void PackagesPage::onPackageAdd()
{
    PackageDialog* dlg = new PackageDialog(_model, this);
    if(dlg->exec()==QDialog::Accepted)
    {
        _model->select();
        _ui->_listPackages->scrollToBottom();
        updateHeader();
    }
    delete dlg;
}
Esempio n. 4
0
void PackagesPage::onEditPackage(QModelIndex index)
{
    PackageDialog* dlg = new PackageDialog(_model, this);
    dlg->setData(index);
    if(dlg->exec()==QDialog::Accepted)
    {
        _model->select();
        _ui->_listPackages->scrollToBottom();
        updateHeader();
    }
    delete dlg;
}