umbrello API Documentation

javacodegenerationformbase.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/codegenerators/javacodegenerationformbase.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 "javacodegenerationformbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qgroupbox.h>
00017 #include <qcheckbox.h>
00018 #include <qcombobox.h>
00019 #include <qlabel.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023 
00024 /*
00025  *  Constructs a JavaCodeGenerationFormBase as a child of 'parent', with the
00026  *  name 'name' and widget flags set to 'f'.
00027  */
00028 JavaCodeGenerationFormBase::JavaCodeGenerationFormBase( QWidget* parent, const char* name, WFlags fl )
00029     : QWidget( parent, name, fl )
00030 {
00031     if ( !name )
00032     setName( "Form1" );
00033     Form1Layout = new QGridLayout( this, 1, 1, 11, 6, "Form1Layout"); 
00034 
00035     layout6 = new QGridLayout( 0, 1, 1, 0, 6, "layout6"); 
00036 
00037     groupBox3 = new QGroupBox( this, "groupBox3" );
00038     groupBox3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, groupBox3->sizePolicy().hasHeightForWidth() ) );
00039     groupBox3->setColumnLayout(0, Qt::Vertical );
00040     groupBox3->layout()->setSpacing( 6 );
00041     groupBox3->layout()->setMargin( 11 );
00042     groupBox3Layout = new QVBoxLayout( groupBox3->layout() );
00043     groupBox3Layout->setAlignment( Qt::AlignTop );
00044 
00045     m_makeANTDocumentCheckBox = new QCheckBox( groupBox3, "m_makeANTDocumentCheckBox" );
00046     groupBox3Layout->addWidget( m_makeANTDocumentCheckBox );
00047 
00048     layout6->addWidget( groupBox3, 3, 0 );
00049 
00050     groupBox2 = new QGroupBox( this, "groupBox2" );
00051     groupBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, groupBox2->sizePolicy().hasHeightForWidth() ) );
00052     groupBox2->setColumnLayout(0, Qt::Vertical );
00053     groupBox2->layout()->setSpacing( 6 );
00054     groupBox2->layout()->setMargin( 11 );
00055     groupBox2Layout = new QGridLayout( groupBox2->layout() );
00056     groupBox2Layout->setAlignment( Qt::AlignTop );
00057 
00058     layout2 = new QGridLayout( 0, 1, 1, 0, 6, "layout2"); 
00059 
00060     m_generateConstructors = new QCheckBox( groupBox2, "m_generateConstructors" );
00061     m_generateConstructors->setChecked( FALSE );
00062 
00063     layout2->addWidget( m_generateConstructors, 0, 0 );
00064 
00065     m_generateAssocAccessors = new QCheckBox( groupBox2, "m_generateAssocAccessors" );
00066     m_generateAssocAccessors->setChecked( TRUE );
00067 
00068     layout2->addWidget( m_generateAssocAccessors, 2, 0 );
00069 
00070     m_generateAttribAccessors = new QCheckBox( groupBox2, "m_generateAttribAccessors" );
00071     m_generateAttribAccessors->setChecked( TRUE );
00072 
00073     layout2->addWidget( m_generateAttribAccessors, 1, 0 );
00074 
00075     groupBox2Layout->addLayout( layout2, 0, 0 );
00076 
00077     layout4 = new QGridLayout( 0, 1, 1, 0, 6, "layout4"); 
00078 
00079     m_accessorScopeCB = new QComboBox( FALSE, groupBox2, "m_accessorScopeCB" );
00080 
00081     layout4->addWidget( m_accessorScopeCB, 0, 1 );
00082 
00083     textLabel1_3 = new QLabel( groupBox2, "textLabel1_3" );
00084 
00085     layout4->addWidget( textLabel1_3, 0, 0 );
00086 
00087     groupBox2Layout->addLayout( layout4, 1, 0 );
00088 
00089     layout4_2 = new QGridLayout( 0, 1, 1, 0, 6, "layout4_2"); 
00090 
00091     textLabel1_3_2 = new QLabel( groupBox2, "textLabel1_3_2" );
00092 
00093     layout4_2->addWidget( textLabel1_3_2, 0, 0 );
00094 
00095     m_assocFieldScopeCB = new QComboBox( FALSE, groupBox2, "m_assocFieldScopeCB" );
00096 
00097     layout4_2->addWidget( m_assocFieldScopeCB, 0, 1 );
00098 
00099     groupBox2Layout->addLayout( layout4_2, 2, 0 );
00100 
00101     layout6->addWidget( groupBox2, 2, 0 );
00102 
00103     groupBox1 = new QGroupBox( this, "groupBox1" );
00104     groupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, groupBox1->sizePolicy().hasHeightForWidth() ) );
00105     groupBox1->setColumnLayout(0, Qt::Vertical );
00106     groupBox1->layout()->setSpacing( 6 );
00107     groupBox1->layout()->setMargin( 11 );
00108     groupBox1Layout = new QHBoxLayout( groupBox1->layout() );
00109     groupBox1Layout->setAlignment( Qt::AlignTop );
00110 
00111     textLabel1 = new QLabel( groupBox1, "textLabel1" );
00112     groupBox1Layout->addWidget( textLabel1 );
00113 
00114     m_SelectCommentStyle = new QComboBox( FALSE, groupBox1, "m_SelectCommentStyle" );
00115     groupBox1Layout->addWidget( m_SelectCommentStyle );
00116 
00117     layout6->addWidget( groupBox1, 1, 0 );
00118 
00119     textLabel1_2 = new QLabel( this, "textLabel1_2" );
00120     textLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
00121 
00122     layout6->addWidget( textLabel1_2, 0, 0 );
00123 
00124     Form1Layout->addLayout( layout6, 0, 0 );
00125     languageChange();
00126     resize( QSize(462, 376).expandedTo(minimumSizeHint()) );
00127     clearWState( WState_Polished );
00128 }
00129 
00130 /*
00131  *  Destroys the object and frees any allocated resources
00132  */
00133 JavaCodeGenerationFormBase::~JavaCodeGenerationFormBase()
00134 {
00135     // no need to delete child widgets, Qt does it all for us
00136 }
00137 
00138 /*
00139  *  Sets the strings of the subwidgets using the current
00140  *  language.
00141  */
00142 void JavaCodeGenerationFormBase::languageChange()
00143 {
00144     groupBox3->setTitle( tr2i18n( "Project Generation" ) );
00145     m_makeANTDocumentCheckBox->setText( tr2i18n( "Create ANT build document" ) );
00146     groupBox2->setTitle( tr2i18n( "Auto-Generate Methods" ) );
00147     m_generateConstructors->setText( tr2i18n( "Empty constructor methods" ) );
00148     m_generateAssocAccessors->setText( tr2i18n( "Association accessor methods" ) );
00149     m_generateAttribAccessors->setText( tr2i18n( "Attribute accessor methods" ) );
00150     m_accessorScopeCB->clear();
00151     m_accessorScopeCB->insertItem( tr2i18n( "Public" ) );
00152     m_accessorScopeCB->insertItem( tr2i18n( "Private" ) );
00153     m_accessorScopeCB->insertItem( tr2i18n( "Protected" ) );
00154     m_accessorScopeCB->insertItem( tr2i18n( "From Parent Object" ) );
00155     m_accessorScopeCB->setCurrentItem( 3 );
00156     textLabel1_3->setText( tr2i18n( "Default attribute accessor scope:" ) );
00157     textLabel1_3_2->setText( tr2i18n( "Default association field scope:" ) );
00158     m_assocFieldScopeCB->clear();
00159     m_assocFieldScopeCB->insertItem( tr2i18n( "Public" ) );
00160     m_assocFieldScopeCB->insertItem( tr2i18n( "Private" ) );
00161     m_assocFieldScopeCB->insertItem( tr2i18n( "Protected" ) );
00162     m_assocFieldScopeCB->insertItem( tr2i18n( "From Parent Role" ) );
00163     m_assocFieldScopeCB->setCurrentItem( 3 );
00164     groupBox1->setTitle( tr2i18n( "Documentation" ) );
00165     textLabel1->setText( tr2i18n( "Style:" ) );
00166     m_SelectCommentStyle->clear();
00167     m_SelectCommentStyle->insertItem( tr2i18n( "Slash-Slash (//)" ) );
00168     m_SelectCommentStyle->insertItem( tr2i18n( "Slash-Star (/**  */)" ) );
00169     textLabel1_2->setText( tr2i18n( "<p align=\"center\">Java Code Generation</p>" ) );
00170 }
00171 
00172 #include "javacodegenerationformbase.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:07:57 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003