umbrello API Documentation

umlrolepropertiesbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file '/home/kellogg/kdesdk-3.5-branch/umbrello/umbrello/dialogs/umlrolepropertiesbase.ui'
00005 **
00006 ** Created: Mi Mai 9 20:21:39 2007
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "umlrolepropertiesbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qgroupbox.h>
00017 #include <qlabel.h>
00018 #include <qlineedit.h>
00019 #include <qtextedit.h>
00020 #include <qbuttongroup.h>
00021 #include <qradiobutton.h>
00022 #include <qlayout.h>
00023 #include <qtooltip.h>
00024 #include <qwhatsthis.h>
00025 
00026 /*
00027  *  Constructs a UMLRolePropertiesBase as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  */
00030 UMLRolePropertiesBase::UMLRolePropertiesBase( QWidget* parent, const char* name, WFlags fl )
00031     : QWidget( parent, name, fl )
00032 {
00033     if ( !name )
00034     setName( "UMLRolePropertiesBase" );
00035 
00036     QWidget* privateLayoutWidget = new QWidget( this, "layout6" );
00037     privateLayoutWidget->setGeometry( QRect( 10, 10, 400, 520 ) );
00038     layout6 = new QGridLayout( privateLayoutWidget, 1, 1, 11, 6, "layout6"); 
00039 
00040     propsGroupBox = new QGroupBox( privateLayoutWidget, "propsGroupBox" );
00041 
00042     QWidget* privateLayoutWidget_2 = new QWidget( propsGroupBox, "layout5" );
00043     privateLayoutWidget_2->setGeometry( QRect( 10, 30, 360, 70 ) );
00044     layout5 = new QGridLayout( privateLayoutWidget_2, 1, 1, 11, 6, "layout5"); 
00045 
00046     roleNameLabel = new QLabel( privateLayoutWidget_2, "roleNameLabel" );
00047 
00048     layout5->addWidget( roleNameLabel, 0, 0 );
00049 
00050     m_pMultiLE = new QLineEdit( privateLayoutWidget_2, "m_pMultiLE" );
00051 
00052     layout5->addWidget( m_pMultiLE, 1, 1 );
00053 
00054     m_pRoleLE = new QLineEdit( privateLayoutWidget_2, "m_pRoleLE" );
00055 
00056     layout5->addWidget( m_pRoleLE, 0, 1 );
00057 
00058     textLabel2 = new QLabel( privateLayoutWidget_2, "textLabel2" );
00059 
00060     layout5->addWidget( textLabel2, 1, 0 );
00061 
00062     layout6->addWidget( propsGroupBox, 0, 0 );
00063 
00064     docGroupBox = new QGroupBox( privateLayoutWidget, "docGroupBox" );
00065     docGroupBox->setColumnLayout(0, Qt::Vertical );
00066     docGroupBox->layout()->setSpacing( 6 );
00067     docGroupBox->layout()->setMargin( 11 );
00068     docGroupBoxLayout = new QGridLayout( docGroupBox->layout() );
00069     docGroupBoxLayout->setAlignment( Qt::AlignTop );
00070 
00071     m_pDocTE = new QTextEdit( docGroupBox, "m_pDocTE" );
00072 
00073     docGroupBoxLayout->addWidget( m_pDocTE, 0, 0 );
00074 
00075     layout6->addWidget( docGroupBox, 3, 0 );
00076 
00077     changeabilityButtonGroup = new QButtonGroup( privateLayoutWidget, "changeabilityButtonGroup" );
00078     changeabilityButtonGroup->setColumnLayout(0, Qt::Vertical );
00079     changeabilityButtonGroup->layout()->setSpacing( 6 );
00080     changeabilityButtonGroup->layout()->setMargin( 11 );
00081     changeabilityButtonGroupLayout = new QGridLayout( changeabilityButtonGroup->layout() );
00082     changeabilityButtonGroupLayout->setAlignment( Qt::AlignTop );
00083 
00084     layout2 = new QGridLayout( 0, 1, 1, 0, 6, "layout2"); 
00085 
00086     m_pAddOnlyRB = new QRadioButton( changeabilityButtonGroup, "m_pAddOnlyRB" );
00087 
00088     layout2->addWidget( m_pAddOnlyRB, 0, 2 );
00089 
00090     m_pFrozenRB = new QRadioButton( changeabilityButtonGroup, "m_pFrozenRB" );
00091 
00092     layout2->addWidget( m_pFrozenRB, 0, 1 );
00093 
00094     m_pChangeableRB = new QRadioButton( changeabilityButtonGroup, "m_pChangeableRB" );
00095     m_pChangeableRB->setChecked( TRUE );
00096 
00097     layout2->addWidget( m_pChangeableRB, 0, 0 );
00098 
00099     changeabilityButtonGroupLayout->addLayout( layout2, 0, 0 );
00100 
00101     layout6->addWidget( changeabilityButtonGroup, 2, 0 );
00102 
00103     visibilityButtonGroup = new QButtonGroup( privateLayoutWidget, "visibilityButtonGroup" );
00104     visibilityButtonGroup->setColumnLayout(0, Qt::Vertical );
00105     visibilityButtonGroup->layout()->setSpacing( 6 );
00106     visibilityButtonGroup->layout()->setMargin( 11 );
00107     visibilityButtonGroupLayout = new QGridLayout( visibilityButtonGroup->layout() );
00108     visibilityButtonGroupLayout->setAlignment( Qt::AlignTop );
00109 
00110     m_pPublicRB = new QRadioButton( visibilityButtonGroup, "m_pPublicRB" );
00111     m_pPublicRB->setChecked( TRUE );
00112 
00113     visibilityButtonGroupLayout->addWidget( m_pPublicRB, 0, 0 );
00114 
00115     m_pPrivateRB = new QRadioButton( visibilityButtonGroup, "m_pPrivateRB" );
00116 
00117     visibilityButtonGroupLayout->addWidget( m_pPrivateRB, 0, 1 );
00118 
00119     m_pProtectedRB = new QRadioButton( visibilityButtonGroup, "m_pProtectedRB" );
00120 
00121     visibilityButtonGroupLayout->addWidget( m_pProtectedRB, 0, 2 );
00122 
00123     m_pImplementationRB = new QRadioButton( visibilityButtonGroup, "m_pImplementationRB" );
00124 
00125     visibilityButtonGroupLayout->addWidget( m_pImplementationRB, 0, 3 );
00126 
00127     layout6->addWidget( visibilityButtonGroup, 1, 0 );
00128     languageChange();
00129     resize( QSize(572, 545).expandedTo(minimumSizeHint()) );
00130     clearWState( WState_Polished );
00131 }
00132 
00133 /*
00134  *  Destroys the object and frees any allocated resources
00135  */
00136 UMLRolePropertiesBase::~UMLRolePropertiesBase()
00137 {
00138     // no need to delete child widgets, Qt does it all for us
00139 }
00140 
00141 /*
00142  *  Sets the strings of the subwidgets using the current
00143  *  language.
00144  */
00145 void UMLRolePropertiesBase::languageChange()
00146 {
00147     propsGroupBox->setTitle( tr2i18n( "Role Properties" ) );
00148     roleNameLabel->setText( tr2i18n( "Rolename:" ) );
00149     textLabel2->setText( tr2i18n( "Multiplicity:" ) );
00150     docGroupBox->setTitle( tr2i18n( "Documentation" ) );
00151     changeabilityButtonGroup->setTitle( tr2i18n( "Role Changeability" ) );
00152     m_pAddOnlyRB->setText( tr2i18n( "Add only" ) );
00153     m_pFrozenRB->setText( tr2i18n( "Frozen" ) );
00154     m_pChangeableRB->setText( tr2i18n( "Changeable" ) );
00155     visibilityButtonGroup->setTitle( tr2i18n( "Role Visibility" ) );
00156     m_pPublicRB->setText( tr2i18n( "Public" ) );
00157     m_pPrivateRB->setText( tr2i18n( "Private" ) );
00158     m_pProtectedRB->setText( tr2i18n( "Protected" ) );
00159     m_pImplementationRB->setText( tr2i18n( "Implementation" ) );
00160 }
00161 
00162 #include "umlrolepropertiesbase.moc"
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:01 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003