void StateWidget::showProperties() { DocWindow *docwindow = UMLApp::app()->getDocWindow(); docwindow->updateDocumentation(false); StateDialog dialog(m_pView, this); if (dialog.exec() && dialog.getChangesMade()) { docwindow->showDocumentation(this, true); UMLApp::app()->getDocument()->setModified(true); } }
void UMLWidget::showProperties() { // will already be selected so make sure docWindow updates the doc // back it the widget DocWindow *docwindow = UMLApp::app()->getDocWindow(); docwindow->updateDocumentation( false ); ClassPropDlg *dlg = new ClassPropDlg((QWidget*)UMLApp::app(), this); if (dlg->exec()) { docwindow->showDocumentation( getUMLObject() , true ); m_pDoc->setModified(true); } dlg->close(true); //wipe from memory }
/** * Display the properties configuration dialog for the object. * * @param parent The parent widget. * @return True for success of this operation. */ bool UMLObject::showPropertiesDialog(QWidget *parent) { DocWindow *docwindow = UMLApp::app()->docWindow(); docwindow->updateDocumentation(false); QPointer<ClassPropertiesDialog> dlg = new ClassPropertiesDialog(parent, this, false); bool modified = false; if (dlg->exec()) { docwindow->showDocumentation(this, true); UMLApp::app()->document()->setModified(true); modified = true; } dlg->close(); delete dlg; return modified; }
/** * This method is called if you wish to see the properties of a * UMLObject. A dialog box will be displayed from which you * can change the object's properties. * * @param page The page to show. * @param assoc Whether to show association page. * @return True if we modified the object. */ bool UMLObject::showPropertiesPagedDialog(int page, bool assoc) { Q_UNUSED(page); DocWindow *docwindow = UMLApp::app()->docWindow(); docwindow->updateDocumentation(false); QPointer<ClassPropDlg> dlg = new ClassPropDlg((QWidget*)UMLApp::app(), this, assoc); bool modified = false; if (dlg->exec()) { docwindow->showDocumentation(this, true); UMLApp::app()->document()->setModified(true); modified = true; } dlg->close(); delete dlg; return modified; }