// -------------------------------------------------------------- void QucsApp::slotChangeProps() { QWidget *Doc = DocumentTab->currentPage(); if(Doc->inherits("QTextEdit")) { ((TextDoc*)Doc)->viewport()->setFocus(); SearchDia->initSearch(true); } else { ChangeDialog *d = new ChangeDialog((Schematic*)Doc); if(d->exec() == QDialog::Accepted) { ((Schematic*)Doc)->setChanged(true, true); ((Schematic*)Doc)->viewport()->update(); } } }
// -------------------------------------------------------------- void QucsApp::slotChangeProps() { QWidget *Doc = DocumentTab->currentWidget(); if(isTextDocument(Doc)) { ((TextDoc*)Doc)->viewport()->setFocus(); SearchDia->initSearch(Doc, ((TextDoc *)Doc)->textCursor().selectedText(), true); } else { ChangeDialog *d = new ChangeDialog((Schematic*)Doc); if(d->exec() == QDialog::Accepted) { ((Schematic*)Doc)->setChanged(true, true); ((Schematic*)Doc)->viewport()->update(); } } }
void tipClass::addText() { ChangeDialog *changedlg = new ChangeDialog(this); connect(changedlg, SIGNAL(sendInfo(std::string, QDate, QDateTime)), this, SLOT(showChange(std::string, QDate, QDateTime))); changedlg->show(); }