KDevelop API Documentation

cppnewclassdlgbase.cpp

Go to the documentation of this file.
00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './cppnewclassdlgbase.ui'
00005 **
00006 ** Created: Tue Feb 22 09:06:08 2005
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 "cppnewclassdlgbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qpushbutton.h>
00017 #include <qtabwidget.h>
00018 #include <qwidget.h>
00019 #include <qlabel.h>
00020 #include <qtextedit.h>
00021 #include <qgroupbox.h>
00022 #include <qlineedit.h>
00023 #include <klineedit.h>
00024 #include <qbuttongroup.h>
00025 #include <qheader.h>
00026 #include <qlistview.h>
00027 #include <qcombobox.h>
00028 #include <qcheckbox.h>
00029 #include <qradiobutton.h>
00030 #include <qlayout.h>
00031 #include <qtooltip.h>
00032 #include <qwhatsthis.h>
00033 #include "classgeneratorconfig.h"
00034 
00035 /*
00036  *  Constructs a CppNewClassDialogBase as a child of 'parent', with the
00037  *  name 'name' and widget flags set to 'f'.
00038  *
00039  *  The dialog will by default be modeless, unless you set 'modal' to
00040  *  TRUE to construct a modal dialog.
00041  */
00042 CppNewClassDialogBase::CppNewClassDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00043     : QDialog( parent, name, modal, fl )
00044 {
00045     if ( !name )
00046     setName( "CppNewClassDlgBase" );
00047     CppNewClassDlgBaseLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "CppNewClassDlgBaseLayout"); 
00048 
00049     class_tabs = new QTabWidget( this, "class_tabs" );
00050 
00051     tab1 = new QWidget( class_tabs, "tab1" );
00052     tab1Layout = new QGridLayout( tab1, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tab1Layout"); 
00053     Spacer6 = new QSpacerItem( 10, 20, QSizePolicy::Preferred, QSizePolicy::Minimum );
00054     tab1Layout->addItem( Spacer6, 0, 0 );
00055 
00056     Layout10 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "Layout10"); 
00057 
00058     documentation_label_ = new QLabel( tab1, "documentation_label_" );
00059     Layout10->addWidget( documentation_label_ );
00060 
00061     documentation_edit = new QTextEdit( tab1, "documentation_edit" );
00062     Layout10->addWidget( documentation_edit );
00063 
00064     tab1Layout->addMultiCellLayout( Layout10, 3, 3, 0, 1 );
00065 
00066     filenames_group = new QGroupBox( tab1, "filenames_group" );
00067     filenames_group->setColumnLayout(0, Qt::Vertical );
00068     filenames_group->layout()->setSpacing( KDialog::spacingHint() );
00069     filenames_group->layout()->setMargin( KDialog::marginHint() );
00070     filenames_groupLayout = new QVBoxLayout( filenames_group->layout() );
00071     filenames_groupLayout->setAlignment( Qt::AlignTop );
00072 
00073     header_label = new QLabel( filenames_group, "header_label" );
00074     filenames_groupLayout->addWidget( header_label );
00075 
00076     header_edit = new QLineEdit( filenames_group, "header_edit" );
00077     filenames_groupLayout->addWidget( header_edit );
00078 
00079     implementation_label = new QLabel( filenames_group, "implementation_label" );
00080     filenames_groupLayout->addWidget( implementation_label );
00081 
00082     implementation_edit = new QLineEdit( filenames_group, "implementation_edit" );
00083     filenames_groupLayout->addWidget( implementation_edit );
00084 
00085     tab1Layout->addWidget( filenames_group, 2, 0 );
00086 
00087     groupBox7 = new QGroupBox( tab1, "groupBox7" );
00088     groupBox7->setColumnLayout(0, Qt::Vertical );
00089     groupBox7->layout()->setSpacing( KDialog::spacingHint() );
00090     groupBox7->layout()->setMargin( KDialog::marginHint() );
00091     groupBox7Layout = new QHBoxLayout( groupBox7->layout() );
00092     groupBox7Layout->setAlignment( Qt::AlignTop );
00093 
00094     classname_label = new QLabel( groupBox7, "classname_label" );
00095     classname_label->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, classname_label->sizePolicy().hasHeightForWidth() ) );
00096     groupBox7Layout->addWidget( classname_label );
00097 
00098     classname_edit = new QLineEdit( groupBox7, "classname_edit" );
00099     groupBox7Layout->addWidget( classname_edit );
00100 
00101     namespace_label = new QLabel( groupBox7, "namespace_label" );
00102     namespace_label->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, namespace_label->sizePolicy().hasHeightForWidth() ) );
00103     groupBox7Layout->addWidget( namespace_label );
00104 
00105     namespace_edit = new KLineEdit( groupBox7, "namespace_edit" );
00106     groupBox7Layout->addWidget( namespace_edit );
00107 
00108     tab1Layout->addMultiCellWidget( groupBox7, 0, 0, 0, 1 );
00109 
00110     inheritance_group = new QButtonGroup( tab1, "inheritance_group" );
00111     inheritance_group->setColumnLayout(0, Qt::Vertical );
00112     inheritance_group->layout()->setSpacing( KDialog::spacingHint() );
00113     inheritance_group->layout()->setMargin( KDialog::marginHint() );
00114     inheritance_groupLayout = new QGridLayout( inheritance_group->layout() );
00115     inheritance_groupLayout->setAlignment( Qt::AlignTop );
00116 
00117     addbaseclass_button = new QPushButton( inheritance_group, "addbaseclass_button" );
00118     addbaseclass_button->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, addbaseclass_button->sizePolicy().hasHeightForWidth() ) );
00119     addbaseclass_button->setAutoDefault( TRUE );
00120 
00121     inheritance_groupLayout->addWidget( addbaseclass_button, 2, 0 );
00122 
00123     rembaseclass_button = new QPushButton( inheritance_group, "rembaseclass_button" );
00124     rembaseclass_button->setEnabled( FALSE );
00125     rembaseclass_button->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, rembaseclass_button->sizePolicy().hasHeightForWidth() ) );
00126     rembaseclass_button->setMinimumSize( QSize( 0, 0 ) );
00127     rembaseclass_button->setAutoDefault( TRUE );
00128 
00129     inheritance_groupLayout->addWidget( rembaseclass_button, 3, 0 );
00130 
00131     upbaseclass_button = new QPushButton( inheritance_group, "upbaseclass_button" );
00132     upbaseclass_button->setEnabled( FALSE );
00133     upbaseclass_button->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, upbaseclass_button->sizePolicy().hasHeightForWidth() ) );
00134     upbaseclass_button->setAutoDefault( TRUE );
00135 
00136     inheritance_groupLayout->addWidget( upbaseclass_button, 4, 0 );
00137 
00138     downbaseclass_button = new QPushButton( inheritance_group, "downbaseclass_button" );
00139     downbaseclass_button->setEnabled( FALSE );
00140     downbaseclass_button->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, downbaseclass_button->sizePolicy().hasHeightForWidth() ) );
00141     downbaseclass_button->setMinimumSize( QSize( 0, 0 ) );
00142     downbaseclass_button->setAutoDefault( TRUE );
00143 
00144     inheritance_groupLayout->addWidget( downbaseclass_button, 5, 0 );
00145 
00146     basename_label = new QLabel( inheritance_group, "basename_label" );
00147     basename_label->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)5, 0, 0, basename_label->sizePolicy().hasHeightForWidth() ) );
00148 
00149     inheritance_groupLayout->addWidget( basename_label, 0, 0 );
00150 
00151     baseclasses_view = new QListView( inheritance_group, "baseclasses_view" );
00152     baseclasses_view->addColumn( tr2i18n( "Baseclass Name" ) );
00153     baseclasses_view->addColumn( tr2i18n( "Inheritance Type" ) );
00154     baseclasses_view->setEnabled( FALSE );
00155     baseclasses_view->setResizePolicy( QListView::AutoOneFit );
00156     baseclasses_view->setResizeMode( QListView::AllColumns );
00157 
00158     inheritance_groupLayout->addMultiCellWidget( baseclasses_view, 2, 5, 1, 2 );
00159 
00160     basename_edit = new KLineEdit( inheritance_group, "basename_edit" );
00161     basename_edit->setEnabled( FALSE );
00162     basename_edit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, basename_edit->sizePolicy().hasHeightForWidth() ) );
00163     basename_edit->setMinimumSize( QSize( 0, 20 ) );
00164     basename_edit->setFocusPolicy( KLineEdit::StrongFocus );
00165 
00166     inheritance_groupLayout->addWidget( basename_edit, 0, 1 );
00167 
00168     baseinclude_edit = new KLineEdit( inheritance_group, "baseinclude_edit" );
00169     baseinclude_edit->setEnabled( FALSE );
00170     baseinclude_edit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, baseinclude_edit->sizePolicy().hasHeightForWidth() ) );
00171     baseinclude_edit->setMinimumSize( QSize( 0, 20 ) );
00172     baseinclude_edit->setFocusPolicy( KLineEdit::StrongFocus );
00173 
00174     inheritance_groupLayout->addWidget( baseinclude_edit, 0, 2 );
00175 
00176     layout5 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout5"); 
00177 
00178     scope_box = new QComboBox( FALSE, inheritance_group, "scope_box" );
00179     scope_box->setEnabled( FALSE );
00180     scope_box->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, scope_box->sizePolicy().hasHeightForWidth() ) );
00181     layout5->addWidget( scope_box );
00182 
00183     virtual_box = new QCheckBox( inheritance_group, "virtual_box" );
00184     virtual_box->setEnabled( FALSE );
00185     layout5->addWidget( virtual_box );
00186 
00187     public_button = new QRadioButton( inheritance_group, "public_button" );
00188     public_button->setEnabled( FALSE );
00189     public_button->setChecked( TRUE );
00190     layout5->addWidget( public_button );
00191 
00192     protected_button = new QRadioButton( inheritance_group, "protected_button" );
00193     protected_button->setEnabled( FALSE );
00194     layout5->addWidget( protected_button );
00195 
00196     private_button = new QRadioButton( inheritance_group, "private_button" );
00197     private_button->setEnabled( FALSE );
00198     layout5->addWidget( private_button );
00199 
00200     inheritance_groupLayout->addMultiCellLayout( layout5, 1, 1, 0, 2 );
00201 
00202     tab1Layout->addMultiCellWidget( inheritance_group, 1, 1, 0, 1 );
00203 
00204     optionsBox = new QGroupBox( tab1, "optionsBox" );
00205     optionsBox->setColumnLayout(0, Qt::Vertical );
00206     optionsBox->layout()->setSpacing( KDialog::spacingHint() );
00207     optionsBox->layout()->setMargin( KDialog::marginHint() );
00208     optionsBoxLayout = new QVBoxLayout( optionsBox->layout() );
00209     optionsBoxLayout->setAlignment( Qt::AlignTop );
00210 
00211     filetemplate_box = new QCheckBox( optionsBox, "filetemplate_box" );
00212     filetemplate_box->setChecked( TRUE );
00213     optionsBoxLayout->addWidget( filetemplate_box );
00214 
00215     qobject_box = new QCheckBox( optionsBox, "qobject_box" );
00216     optionsBoxLayout->addWidget( qobject_box );
00217 
00218     childclass_box = new QCheckBox( optionsBox, "childclass_box" );
00219     optionsBoxLayout->addWidget( childclass_box );
00220 
00221     gtk_box = new QCheckBox( optionsBox, "gtk_box" );
00222     optionsBoxLayout->addWidget( gtk_box );
00223 
00224     objc_box = new QCheckBox( optionsBox, "objc_box" );
00225     optionsBoxLayout->addWidget( objc_box );
00226 
00227     tab1Layout->addWidget( optionsBox, 2, 1 );
00228     class_tabs->insertTab( tab1, QString::fromLatin1("") );
00229 
00230     tab2 = new QWidget( class_tabs, "tab2" );
00231     tab2Layout = new QVBoxLayout( tab2, KDialog::marginHint(), KDialog::spacingHint(), "tab2Layout"); 
00232 
00233     tabWidget4 = new QTabWidget( tab2, "tabWidget4" );
00234 
00235     tab = new QWidget( tabWidget4, "tab" );
00236     tabLayout = new QVBoxLayout( tab, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout"); 
00237 
00238     constructors_view = new QListView( tab, "constructors_view" );
00239     constructors_view->addColumn( tr2i18n( "Base Class Constructors" ) );
00240     constructors_view->setResizePolicy( QListView::AutoOneFit );
00241     constructors_view->setRootIsDecorated( TRUE );
00242     constructors_view->setResizeMode( QListView::AllColumns );
00243     tabLayout->addWidget( constructors_view );
00244 
00245     layout4 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout4"); 
00246 
00247     to_constructors_list = new QPushButton( tab, "to_constructors_list" );
00248     to_constructors_list->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, to_constructors_list->sizePolicy().hasHeightForWidth() ) );
00249     to_constructors_list->setMinimumSize( QSize( 125, 0 ) );
00250     layout4->addWidget( to_constructors_list );
00251 
00252     clear_selection_button = new QPushButton( tab, "clear_selection_button" );
00253     clear_selection_button->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, clear_selection_button->sizePolicy().hasHeightForWidth() ) );
00254     clear_selection_button->setMinimumSize( QSize( 125, 0 ) );
00255     layout4->addWidget( clear_selection_button );
00256     spacer9_2_2 = new QSpacerItem( 150, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00257     layout4->addItem( spacer9_2_2 );
00258     tabLayout->addLayout( layout4 );
00259 
00260     tabWidget3 = new QTabWidget( tab, "tabWidget3" );
00261 
00262     tab_header = new QWidget( tabWidget3, "tab_header" );
00263     tab_headerLayout = new QGridLayout( tab_header, 1, 1, 2, KDialog::spacingHint(), "tab_headerLayout"); 
00264 
00265     constructors_h_edit = new QTextEdit( tab_header, "constructors_h_edit" );
00266     constructors_h_edit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, constructors_h_edit->sizePolicy().hasHeightForWidth() ) );
00267     constructors_h_edit->setTextFormat( QTextEdit::PlainText );
00268     constructors_h_edit->setWordWrap( QTextEdit::NoWrap );
00269 
00270     tab_headerLayout->addWidget( constructors_h_edit, 0, 0 );
00271     tabWidget3->insertTab( tab_header, QString::fromLatin1("") );
00272 
00273     tab_source = new QWidget( tabWidget3, "tab_source" );
00274     tab_sourceLayout = new QGridLayout( tab_source, 1, 1, 2, KDialog::spacingHint(), "tab_sourceLayout"); 
00275 
00276     constructors_cpp_edit = new QTextEdit( tab_source, "constructors_cpp_edit" );
00277     constructors_cpp_edit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, constructors_cpp_edit->sizePolicy().hasHeightForWidth() ) );
00278     constructors_cpp_edit->setTextFormat( QTextEdit::PlainText );
00279     constructors_cpp_edit->setWordWrap( QTextEdit::NoWrap );
00280 
00281     tab_sourceLayout->addWidget( constructors_cpp_edit, 0, 0 );
00282     tabWidget3->insertTab( tab_source, QString::fromLatin1("") );
00283     tabLayout->addWidget( tabWidget3 );
00284     tabWidget4->insertTab( tab, QString::fromLatin1("") );
00285 
00286     tab_2 = new QWidget( tabWidget4, "tab_2" );
00287     tabLayout_2 = new QVBoxLayout( tab_2, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_2"); 
00288 
00289     methods_view = new QListView( tab_2, "methods_view" );
00290     methods_view->addColumn( tr2i18n( "Methods" ) );
00291     methods_view->addColumn( tr2i18n( "Extend Functionality" ) );
00292     methods_view->setEnabled( TRUE );
00293     methods_view->setResizePolicy( QListView::AutoOneFit );
00294     methods_view->setAllColumnsShowFocus( TRUE );
00295     methods_view->setRootIsDecorated( TRUE );
00296     methods_view->setResizeMode( QListView::AllColumns );
00297     tabLayout_2->addWidget( methods_view );
00298     tabWidget4->insertTab( tab_2, QString::fromLatin1("") );
00299 
00300     tab_3 = new QWidget( tabWidget4, "tab_3" );
00301     tabLayout_3 = new QVBoxLayout( tab_3, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_3"); 
00302 
00303     access_view = new QListView( tab_3, "access_view" );
00304     access_view->addColumn( tr2i18n( "Methods & Attributes" ) );
00305     access_view->addColumn( tr2i18n( "Implied Modifier" ) );
00306     access_view->addColumn( tr2i18n( "New Modifier" ) );
00307     access_view->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, access_view->sizePolicy().hasHeightForWidth() ) );
00308     access_view->setResizePolicy( QListView::AutoOneFit );
00309     access_view->setAllColumnsShowFocus( TRUE );
00310     access_view->setRootIsDecorated( TRUE );
00311     access_view->setResizeMode( QListView::AllColumns );
00312     tabLayout_3->addWidget( access_view );
00313     tabWidget4->insertTab( tab_3, QString::fromLatin1("") );
00314     tab2Layout->addWidget( tabWidget4 );
00315     class_tabs->insertTab( tab2, QString::fromLatin1("") );
00316 
00317     tab_4 = new QWidget( class_tabs, "tab_4" );
00318     tabLayout_4 = new QGridLayout( tab_4, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_4"); 
00319 
00320     gen_config = new ClassGeneratorConfig( tab_4, "gen_config" );
00321     gen_config->setFocusPolicy( ClassGeneratorConfig::StrongFocus );
00322 
00323     tabLayout_4->addWidget( gen_config, 0, 0 );
00324     class_tabs->insertTab( tab_4, QString::fromLatin1("") );
00325     CppNewClassDlgBaseLayout->addWidget( class_tabs );
00326 
00327     Layout3 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout3"); 
00328     Spacer7_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00329     Layout3->addItem( Spacer7_2 );
00330 
00331     ok_button = new QPushButton( this, "ok_button" );
00332     ok_button->setDefault( TRUE );
00333     Layout3->addWidget( ok_button );
00334 
00335     cancel_button = new QPushButton( this, "cancel_button" );
00336     Layout3->addWidget( cancel_button );
00337     CppNewClassDlgBaseLayout->addLayout( Layout3 );
00338     languageChange();
00339     resize( QSize(510, 611).expandedTo(minimumSizeHint()) );
00340     clearWState( WState_Polished );
00341 
00342     // signals and slots connections
00343     connect( ok_button, SIGNAL( clicked() ), this, SLOT( accept() ) );
00344     connect( cancel_button, SIGNAL( clicked() ), this, SLOT( reject() ) );
00345     connect( classname_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( classNameChanged(const QString&) ) );
00346     connect( header_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( headerChanged() ) );
00347     connect( implementation_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( implementationChanged() ) );
00348     connect( childclass_box, SIGNAL( stateChanged(int) ), this, SLOT( checkQWidgetInheritance(int) ) );
00349     connect( objc_box, SIGNAL( stateChanged(int) ), this, SLOT( checkObjCInheritance(int) ) );
00350     connect( virtual_box, SIGNAL( stateChanged(int) ), this, SLOT( currBaseVirtualChanged(int) ) );
00351     connect( public_button, SIGNAL( clicked() ), this, SLOT( currBasePublicSet() ) );
00352     connect( protected_button, SIGNAL( clicked() ), this, SLOT( currBaseProtectedSet() ) );
00353     connect( private_button, SIGNAL( clicked() ), this, SLOT( currBasePrivateSet() ) );
00354     connect( addbaseclass_button, SIGNAL( clicked() ), this, SLOT( addBaseClass() ) );
00355     connect( rembaseclass_button, SIGNAL( clicked() ), this, SLOT( remBaseClass() ) );
00356     connect( baseclasses_view, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( currBaseSelected(QListViewItem*) ) );
00357     connect( upbaseclass_button, SIGNAL( clicked() ), this, SLOT( upbaseclass_button_clicked() ) );
00358     connect( downbaseclass_button, SIGNAL( clicked() ), this, SLOT( downbaseclass_button_clicked() ) );
00359     connect( baseclasses_view, SIGNAL( selectionChanged() ), this, SLOT( baseclasses_view_selectionChanged() ) );
00360     connect( gtk_box, SIGNAL( stateChanged(int) ), this, SLOT( gtk_box_stateChanged(int) ) );
00361     connect( basename_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( currBaseNameChanged(const QString&) ) );
00362     connect( qobject_box, SIGNAL( stateChanged(int) ), this, SLOT( qobject_box_stateChanged(int) ) );
00363     connect( access_view, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ), this, SLOT( access_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ) );
00364     connect( methods_view, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ), this, SLOT( methods_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ) );
00365     connect( clear_selection_button, SIGNAL( clicked() ), this, SLOT( clear_selection_button_clicked() ) );
00366     connect( to_constructors_list, SIGNAL( clicked() ), this, SLOT( to_constructors_list_clicked() ) );
00367     connect( class_tabs, SIGNAL( selected(const QString&) ), this, SLOT( newTabSelected(const QString&) ) );
00368     connect( class_tabs, SIGNAL( currentChanged(QWidget*) ), this, SLOT( newTabSelected(QWidget*) ) );
00369     connect( basename_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( baseclassname_changed(const QString&) ) );
00370     connect( baseinclude_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( baseIncludeChanged(const QString&) ) );
00371     connect( scope_box, SIGNAL( activated(int) ), this, SLOT( scopeboxActivated(int) ) );
00372     connect( namespace_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( classNamespaceChanged(const QString&) ) );
00373 
00374     // tab order
00375     setTabOrder( classname_edit, namespace_edit );
00376     setTabOrder( namespace_edit, addbaseclass_button );
00377     setTabOrder( addbaseclass_button, basename_edit );
00378     setTabOrder( basename_edit, baseinclude_edit );
00379     setTabOrder( baseinclude_edit, scope_box );
00380     setTabOrder( scope_box, virtual_box );
00381     setTabOrder( virtual_box, public_button );
00382     setTabOrder( public_button, protected_button );
00383     setTabOrder( protected_button, private_button );
00384     setTabOrder( private_button, baseclasses_view );
00385     setTabOrder( baseclasses_view, rembaseclass_button );
00386     setTabOrder( rembaseclass_button, upbaseclass_button );
00387     setTabOrder( upbaseclass_button, downbaseclass_button );
00388     setTabOrder( downbaseclass_button, header_edit );
00389     setTabOrder( header_edit, implementation_edit );
00390     setTabOrder( implementation_edit, filetemplate_box );
00391     setTabOrder( filetemplate_box, qobject_box );
00392     setTabOrder( qobject_box, childclass_box );
00393     setTabOrder( childclass_box, gtk_box );
00394     setTabOrder( gtk_box, objc_box );
00395     setTabOrder( objc_box, documentation_edit );
00396     setTabOrder( documentation_edit, class_tabs );
00397     setTabOrder( class_tabs, ok_button );
00398     setTabOrder( ok_button, cancel_button );
00399     setTabOrder( cancel_button, tabWidget4 );
00400     setTabOrder( tabWidget4, constructors_view );
00401     setTabOrder( constructors_view, to_constructors_list );
00402     setTabOrder( to_constructors_list, clear_selection_button );
00403     setTabOrder( clear_selection_button, tabWidget3 );
00404     setTabOrder( tabWidget3, constructors_h_edit );
00405     setTabOrder( constructors_h_edit, methods_view );
00406     setTabOrder( methods_view, access_view );
00407     setTabOrder( access_view, gen_config );
00408     setTabOrder( gen_config, constructors_cpp_edit );
00409 
00410     // buddies
00411     documentation_label_->setBuddy( documentation_edit );
00412     header_label->setBuddy( header_edit );
00413     implementation_label->setBuddy( implementation_edit );
00414     classname_label->setBuddy( classname_edit );
00415     namespace_label->setBuddy( namespace_edit );
00416     basename_label->setBuddy( basename_edit );
00417 }
00418 
00419 /*
00420  *  Destroys the object and frees any allocated resources
00421  */
00422 CppNewClassDialogBase::~CppNewClassDialogBase()
00423 {
00424     // no need to delete child widgets, Qt does it all for us
00425 }
00426 
00427 /*
00428  *  Sets the strings of the subwidgets using the current
00429  *  language.
00430  */
00431 void CppNewClassDialogBase::languageChange()
00432 {
00433     setCaption( tr2i18n( "New Class" ) );
00434     QToolTip::add( this, QString::null );
00435     documentation_label_->setText( tr2i18n( "Docu&mentation:" ) );
00436     QWhatsThis::add( documentation_edit, tr2i18n( "Insert a short description for your new class\n"
00437 "here for documentation purposes. This can be used\n"
00438 "to create API documentation in HTML format with\n"
00439 "doxygen or similar tools." ) );
00440     filenames_group->setTitle( tr2i18n( "File Names" ) );
00441     header_label->setText( tr2i18n( "&Header:" ) );
00442     QWhatsThis::add( header_edit, tr2i18n( "Insert your header file name here.\n"
00443 "It is automatically inserted while\n"
00444 "you select the classname, but you can\n"
00445 "still edit it afterwards." ) );
00446     implementation_label->setText( tr2i18n( "Im&plementation:" ) );
00447     QWhatsThis::add( implementation_edit, tr2i18n( "Insert your implementation filename here.\n"
00448 "It is automatically inserted while\n"
00449 "you select the classname, but you can\n"
00450 "still edit it afterwards." ) );
00451     groupBox7->setTitle( tr2i18n( "Class" ) );
00452     classname_label->setText( tr2i18n( "&Name:" ) );
00453     QWhatsThis::add( classname_edit, tr2i18n( "Insert your new classname here.\n"
00454 "You can also define template classes by specifying\n"
00455 "template <params> classname" ) );
00456     namespace_label->setText( tr2i18n( "Name&space:" ) );
00457     QWhatsThis::add( namespace_edit, tr2i18n( "Insert a name of the namespace here.\n"
00458 "You can define nested namespaces by specifying\n"
00459 "Namespace1::Namespace2::...::NamespaceN" ) );
00460     inheritance_group->setTitle( tr2i18n( "Inheritance" ) );
00461     addbaseclass_button->setText( tr2i18n( "&Add" ) );
00462     rembaseclass_button->setText( tr2i18n( "&Remove" ) );
00463     upbaseclass_button->setText( tr2i18n( "Move &Up" ) );
00464     downbaseclass_button->setText( tr2i18n( "Move &Down" ) );
00465     basename_label->setText( tr2i18n( "&Base class:" ) );
00466     baseclasses_view->header()->setLabel( 0, tr2i18n( "Baseclass Name" ) );
00467     baseclasses_view->header()->setLabel( 1, tr2i18n( "Inheritance Type" ) );
00468     QWhatsThis::add( basename_edit, tr2i18n( "Insert the base class which your new class will be derived from. If you have checked 'Generate QWidget child class' the new class will be derived from QWidget. If no base class is named, the new class will not have a parent class. You can also use template classes here (like BaseClass<int, int>)" ) );
00469     QWhatsThis::add( baseinclude_edit, QString::null );
00470     scope_box->clear();
00471     scope_box->insertItem( tr2i18n( "Global" ) );
00472     scope_box->insertItem( tr2i18n( "Local" ) );
00473     virtual_box->setText( tr2i18n( "Virtual" ) );
00474     public_button->setText( tr2i18n( "Public" ) );
00475     protected_button->setText( tr2i18n( "Protected" ) );
00476     private_button->setText( tr2i18n( "Private" ) );
00477     optionsBox->setTitle( tr2i18n( "Options" ) );
00478     filetemplate_box->setText( tr2i18n( "Use file t&emplates" ) );
00479     qobject_box->setText( tr2i18n( "Generate QOb&ject child class" ) );
00480     childclass_box->setText( tr2i18n( "Generate Q&Widget child class" ) );
00481     gtk_box->setText( tr2i18n( "Generate G&TK+ class" ) );
00482     objc_box->setText( tr2i18n( "Use Objective-C" ) );
00483     class_tabs->changeTab( tab1, tr2i18n( "Class &Information" ) );
00484     constructors_view->header()->setLabel( 0, tr2i18n( "Base Class Constructors" ) );
00485     to_constructors_list->setText( tr2i18n( "C&reate Constructor >>" ) );
00486     clear_selection_button->setText( tr2i18n( "C&lear Selection" ) );
00487     tabWidget3->changeTab( tab_header, tr2i18n( "&Header" ) );
00488     tabWidget3->changeTab( tab_source, tr2i18n( "&Source" ) );
00489     tabWidget4->changeTab( tab, tr2i18n( "Constr&uctors" ) );
00490     methods_view->header()->setLabel( 0, tr2i18n( "Methods" ) );
00491     methods_view->header()->setLabel( 1, tr2i18n( "Extend Functionality" ) );
00492     tabWidget4->changeTab( tab_2, tr2i18n( "Methods Ov&erriding" ) );
00493     access_view->header()->setLabel( 0, tr2i18n( "Methods & Attributes" ) );
00494     access_view->header()->setLabel( 1, tr2i18n( "Implied Modifier" ) );
00495     access_view->header()->setLabel( 2, tr2i18n( "New Modifier" ) );
00496     tabWidget4->changeTab( tab_3, tr2i18n( "&Access Control" ) );
00497     class_tabs->changeTab( tab2, tr2i18n( "Ad&vanced Information" ) );
00498     class_tabs->changeTab( tab_4, tr2i18n( "&Generation Options" ) );
00499     ok_button->setText( tr2i18n( "&OK" ) );
00500     cancel_button->setText( tr2i18n( "&Cancel" ) );
00501 }
00502 
00503 void CppNewClassDialogBase::updateClassStore()
00504 {
00505     qWarning( "CppNewClassDialogBase::updateClassStore(): Not implemented yet" );
00506 }
00507 
00508 void CppNewClassDialogBase::access_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int)
00509 {
00510     qWarning( "CppNewClassDialogBase::access_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int): Not implemented yet" );
00511 }
00512 
00513 void CppNewClassDialogBase::classNameChanged(const QString&)
00514 {
00515     qWarning( "CppNewClassDialogBase::classNameChanged(const QString&): Not implemented yet" );
00516 }
00517 
00518 void CppNewClassDialogBase::headerChanged()
00519 {
00520     qWarning( "CppNewClassDialogBase::headerChanged(): Not implemented yet" );
00521 }
00522 
00523 void CppNewClassDialogBase::implementationChanged()
00524 {
00525     qWarning( "CppNewClassDialogBase::implementationChanged(): Not implemented yet" );
00526 }
00527 
00528 void CppNewClassDialogBase::nameHandlerChanged(const QString&)
00529 {
00530     qWarning( "CppNewClassDialogBase::nameHandlerChanged(const QString&): Not implemented yet" );
00531 }
00532 
00533 void CppNewClassDialogBase::addBaseClass()
00534 {
00535     qWarning( "CppNewClassDialogBase::addBaseClass(): Not implemented yet" );
00536 }
00537 
00538 void CppNewClassDialogBase::remBaseClass()
00539 {
00540     qWarning( "CppNewClassDialogBase::remBaseClass(): Not implemented yet" );
00541 }
00542 
00543 void CppNewClassDialogBase::currBaseNameChanged(const QString&)
00544 {
00545     qWarning( "CppNewClassDialogBase::currBaseNameChanged(const QString&): Not implemented yet" );
00546 }
00547 
00548 void CppNewClassDialogBase::currBasePrivateSet()
00549 {
00550     qWarning( "CppNewClassDialogBase::currBasePrivateSet(): Not implemented yet" );
00551 }
00552 
00553 void CppNewClassDialogBase::currBaseProtectedSet()
00554 {
00555     qWarning( "CppNewClassDialogBase::currBaseProtectedSet(): Not implemented yet" );
00556 }
00557 
00558 void CppNewClassDialogBase::currBasePublicSet()
00559 {
00560     qWarning( "CppNewClassDialogBase::currBasePublicSet(): Not implemented yet" );
00561 }
00562 
00563 void CppNewClassDialogBase::currBaseVirtualChanged(int)
00564 {
00565     qWarning( "CppNewClassDialogBase::currBaseVirtualChanged(int): Not implemented yet" );
00566 }
00567 
00568 void CppNewClassDialogBase::currBaseSelected(QListViewItem*)
00569 {
00570     qWarning( "CppNewClassDialogBase::currBaseSelected(QListViewItem*): Not implemented yet" );
00571 }
00572 
00573 void CppNewClassDialogBase::checkObjCInheritance(int)
00574 {
00575     qWarning( "CppNewClassDialogBase::checkObjCInheritance(int): Not implemented yet" );
00576 }
00577 
00578 void CppNewClassDialogBase::checkQWidgetInheritance(int)
00579 {
00580     qWarning( "CppNewClassDialogBase::checkQWidgetInheritance(int): Not implemented yet" );
00581 }
00582 
00583 void CppNewClassDialogBase::newTabSelected(const QString&)
00584 {
00585     qWarning( "CppNewClassDialogBase::newTabSelected(const QString&): Not implemented yet" );
00586 }
00587 
00588 void CppNewClassDialogBase::changeToPrivate()
00589 {
00590     qWarning( "CppNewClassDialogBase::changeToPrivate(): Not implemented yet" );
00591 }
00592 
00593 void CppNewClassDialogBase::changeToProtected()
00594 {
00595     qWarning( "CppNewClassDialogBase::changeToProtected(): Not implemented yet" );
00596 }
00597 
00598 void CppNewClassDialogBase::changeToPublic()
00599 {
00600     qWarning( "CppNewClassDialogBase::changeToPublic(): Not implemented yet" );
00601 }
00602 
00603 void CppNewClassDialogBase::changeToInherited()
00604 {
00605     qWarning( "CppNewClassDialogBase::changeToInherited(): Not implemented yet" );
00606 }
00607 
00608 void CppNewClassDialogBase::methods_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int)
00609 {
00610     qWarning( "CppNewClassDialogBase::methods_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int): Not implemented yet" );
00611 }
00612 
00613 void CppNewClassDialogBase::newTabSelected(QWidget*)
00614 {
00615     qWarning( "CppNewClassDialogBase::newTabSelected(QWidget*): Not implemented yet" );
00616 }
00617 
00618 void CppNewClassDialogBase::extendFunctionality()
00619 {
00620     qWarning( "CppNewClassDialogBase::extendFunctionality(): Not implemented yet" );
00621 }
00622 
00623 void CppNewClassDialogBase::replaceFunctionality()
00624 {
00625     qWarning( "CppNewClassDialogBase::replaceFunctionality(): Not implemented yet" );
00626 }
00627 
00628 void CppNewClassDialogBase::to_constructors_list_clicked()
00629 {
00630     qWarning( "CppNewClassDialogBase::to_constructors_list_clicked(): Not implemented yet" );
00631 }
00632 
00633 void CppNewClassDialogBase::from_constructors_list_clicked()
00634 {
00635     qWarning( "CppNewClassDialogBase::from_constructors_list_clicked(): Not implemented yet" );
00636 }
00637 
00638 void CppNewClassDialogBase::add_constructor_button_clicked()
00639 {
00640     qWarning( "CppNewClassDialogBase::add_constructor_button_clicked(): Not implemented yet" );
00641 }
00642 
00643 void CppNewClassDialogBase::rem_constructor_button_clicked()
00644 {
00645     qWarning( "CppNewClassDialogBase::rem_constructor_button_clicked(): Not implemented yet" );
00646 }
00647 
00648 void CppNewClassDialogBase::clear_selection_button_clicked()
00649 {
00650     qWarning( "CppNewClassDialogBase::clear_selection_button_clicked(): Not implemented yet" );
00651 }
00652 
00653 void CppNewClassDialogBase::upbaseclass_button_clicked()
00654 {
00655     qWarning( "CppNewClassDialogBase::upbaseclass_button_clicked(): Not implemented yet" );
00656 }
00657 
00658 void CppNewClassDialogBase::downbaseclass_button_clicked()
00659 {
00660     qWarning( "CppNewClassDialogBase::downbaseclass_button_clicked(): Not implemented yet" );
00661 }
00662 
00663 void CppNewClassDialogBase::baseclasses_view_selectionChanged()
00664 {
00665     qWarning( "CppNewClassDialogBase::baseclasses_view_selectionChanged(): Not implemented yet" );
00666 }
00667 
00668 void CppNewClassDialogBase::gtk_box_stateChanged(int)
00669 {
00670     qWarning( "CppNewClassDialogBase::gtk_box_stateChanged(int): Not implemented yet" );
00671 }
00672 
00673 void CppNewClassDialogBase::qobject_box_stateChanged(int)
00674 {
00675     qWarning( "CppNewClassDialogBase::qobject_box_stateChanged(int): Not implemented yet" );
00676 }
00677 
00678 void CppNewClassDialogBase::selectall_button_clicked()
00679 {
00680     qWarning( "CppNewClassDialogBase::selectall_button_clicked(): Not implemented yet" );
00681 }
00682 
00683 void CppNewClassDialogBase::baseclassname_changed(const QString&)
00684 {
00685     qWarning( "CppNewClassDialogBase::baseclassname_changed(const QString&): Not implemented yet" );
00686 }
00687 
00688 void CppNewClassDialogBase::baseIncludeChanged(const QString&)
00689 {
00690     qWarning( "CppNewClassDialogBase::baseIncludeChanged(const QString&): Not implemented yet" );
00691 }
00692 
00693 void CppNewClassDialogBase::scopeboxActivated(int)
00694 {
00695     qWarning( "CppNewClassDialogBase::scopeboxActivated(int): Not implemented yet" );
00696 }
00697 
00698 void CppNewClassDialogBase::classNamespaceChanged(const QString&)
00699 {
00700     qWarning( "CppNewClassDialogBase::classNamespaceChanged(const QString&): Not implemented yet" );
00701 }
00702 
00703 #include "cppnewclassdlgbase.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:28 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003