// ---------------------------------------------------------- void QucsApp::slotCreatePackage() { editText->setHidden(true); // disable text edit of component property PackageDialog *d = new PackageDialog(this, true); d->exec(); }
// ---------------------------------------------------------- void QucsApp::slotExtractPackage() { editText->setHidden(true); // disable text edit of component property PackageDialog *d = new PackageDialog(this, false); d->show(); d->extractPackage(); readProjects(); }
void PackagesPage::onPackageAdd() { PackageDialog* dlg = new PackageDialog(_model, this); if(dlg->exec()==QDialog::Accepted) { _model->select(); _ui->_listPackages->scrollToBottom(); updateHeader(); } delete dlg; }
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; }