umlroledialog.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include "umlroledialog.h"
00014
00015
00016 #include <qlayout.h>
00017 #include <kdebug.h>
00018 #include <klocale.h>
00019
00020
00021 #include "../umlrole.h"
00022 #include "umlroleproperties.h"
00023
00024 UMLRoleDialog::UMLRoleDialog( QWidget * parent, UMLRole * pRole )
00025 : KDialogBase( Plain, i18n("Role Properties"), Help | Ok | Cancel , Ok, parent, "_UMLROLEDLG_", true, true)
00026 {
00027 m_pRole = pRole;
00028 setupDialog();
00029 }
00030
00031 UMLRoleDialog::~UMLRoleDialog() {}
00032
00033 void UMLRoleDialog::setupDialog() {
00034
00035 m_pRoleProps = new UMLRoleProperties(this, m_pRole);
00036 setMainWidget( m_pRoleProps );
00037
00038 resize( QSize(425, 620).expandedTo(minimumSizeHint()) );
00039
00040
00041
00042 }
00043
00044 bool UMLRoleDialog::apply() {
00045 if( m_pRoleProps ) {
00046 m_pRoleProps->updateObject();
00047 return true;
00048 }
00049 return false;
00050 }
00051
00052 void UMLRoleDialog::slotApply() {
00053 apply();
00054 }
00055
00056 void UMLRoleDialog::slotOk() {
00057 if ( apply() ) {
00058 accept();
00059 }
00060 }
00061
00062
00063 #include "umlroledialog.moc"
This file is part of the documentation for umbrello Version 3.1.0.