KDevelop API Documentation

languages/cpp/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: Wed Oct 6 17:29:28 2004 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 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 spacer13 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00160 inheritance_groupLayout->addItem( spacer13, 6, 0 ); 00161 00162 basename_edit = new KLineEdit( inheritance_group, "basename_edit" ); 00163 basename_edit->setEnabled( FALSE ); 00164 basename_edit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, basename_edit->sizePolicy().hasHeightForWidth() ) ); 00165 basename_edit->setMinimumSize( QSize( 0, 20 ) ); 00166 basename_edit->setFocusPolicy( KLineEdit::StrongFocus ); 00167 00168 inheritance_groupLayout->addWidget( basename_edit, 0, 1 ); 00169 00170 baseinclude_edit = new KLineEdit( inheritance_group, "baseinclude_edit" ); 00171 baseinclude_edit->setEnabled( FALSE ); 00172 baseinclude_edit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, baseinclude_edit->sizePolicy().hasHeightForWidth() ) ); 00173 baseinclude_edit->setMinimumSize( QSize( 0, 20 ) ); 00174 baseinclude_edit->setFocusPolicy( KLineEdit::StrongFocus ); 00175 00176 inheritance_groupLayout->addWidget( baseinclude_edit, 0, 2 ); 00177 00178 layout5 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout5"); 00179 00180 scope_box = new QComboBox( FALSE, inheritance_group, "scope_box" ); 00181 scope_box->setEnabled( FALSE ); 00182 scope_box->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, scope_box->sizePolicy().hasHeightForWidth() ) ); 00183 layout5->addWidget( scope_box ); 00184 00185 virtual_box = new QCheckBox( inheritance_group, "virtual_box" ); 00186 virtual_box->setEnabled( FALSE ); 00187 layout5->addWidget( virtual_box ); 00188 00189 public_button = new QRadioButton( inheritance_group, "public_button" ); 00190 public_button->setEnabled( FALSE ); 00191 public_button->setChecked( TRUE ); 00192 layout5->addWidget( public_button ); 00193 00194 protected_button = new QRadioButton( inheritance_group, "protected_button" ); 00195 protected_button->setEnabled( FALSE ); 00196 layout5->addWidget( protected_button ); 00197 00198 private_button = new QRadioButton( inheritance_group, "private_button" ); 00199 private_button->setEnabled( FALSE ); 00200 layout5->addWidget( private_button ); 00201 00202 inheritance_groupLayout->addMultiCellLayout( layout5, 1, 1, 0, 2 ); 00203 00204 tab1Layout->addMultiCellWidget( inheritance_group, 1, 1, 0, 1 ); 00205 00206 optionsBox = new QGroupBox( tab1, "optionsBox" ); 00207 optionsBox->setColumnLayout(0, Qt::Vertical ); 00208 optionsBox->layout()->setSpacing( KDialog::spacingHint() ); 00209 optionsBox->layout()->setMargin( KDialog::marginHint() ); 00210 optionsBoxLayout = new QVBoxLayout( optionsBox->layout() ); 00211 optionsBoxLayout->setAlignment( Qt::AlignTop ); 00212 00213 filetemplate_box = new QCheckBox( optionsBox, "filetemplate_box" ); 00214 filetemplate_box->setChecked( TRUE ); 00215 optionsBoxLayout->addWidget( filetemplate_box ); 00216 00217 qobject_box = new QCheckBox( optionsBox, "qobject_box" ); 00218 optionsBoxLayout->addWidget( qobject_box ); 00219 00220 childclass_box = new QCheckBox( optionsBox, "childclass_box" ); 00221 optionsBoxLayout->addWidget( childclass_box ); 00222 00223 gtk_box = new QCheckBox( optionsBox, "gtk_box" ); 00224 optionsBoxLayout->addWidget( gtk_box ); 00225 00226 objc_box = new QCheckBox( optionsBox, "objc_box" ); 00227 optionsBoxLayout->addWidget( objc_box ); 00228 00229 tab1Layout->addWidget( optionsBox, 2, 1 ); 00230 class_tabs->insertTab( tab1, QString("") ); 00231 00232 tab2 = new QWidget( class_tabs, "tab2" ); 00233 tab2Layout = new QVBoxLayout( tab2, KDialog::marginHint(), KDialog::spacingHint(), "tab2Layout"); 00234 00235 tabWidget4 = new QTabWidget( tab2, "tabWidget4" ); 00236 00237 tab = new QWidget( tabWidget4, "tab" ); 00238 tabLayout = new QVBoxLayout( tab, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout"); 00239 00240 constructors_view = new QListView( tab, "constructors_view" ); 00241 constructors_view->addColumn( tr2i18n( "Base Class Constructors" ) ); 00242 constructors_view->setResizePolicy( QListView::AutoOneFit ); 00243 constructors_view->setRootIsDecorated( TRUE ); 00244 constructors_view->setResizeMode( QListView::AllColumns ); 00245 tabLayout->addWidget( constructors_view ); 00246 00247 layout4 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "layout4"); 00248 00249 to_constructors_list = new QPushButton( tab, "to_constructors_list" ); 00250 to_constructors_list->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, to_constructors_list->sizePolicy().hasHeightForWidth() ) ); 00251 to_constructors_list->setMinimumSize( QSize( 125, 0 ) ); 00252 layout4->addWidget( to_constructors_list ); 00253 00254 clear_selection_button = new QPushButton( tab, "clear_selection_button" ); 00255 clear_selection_button->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, clear_selection_button->sizePolicy().hasHeightForWidth() ) ); 00256 clear_selection_button->setMinimumSize( QSize( 125, 0 ) ); 00257 layout4->addWidget( clear_selection_button ); 00258 spacer9_2_2 = new QSpacerItem( 150, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00259 layout4->addItem( spacer9_2_2 ); 00260 tabLayout->addLayout( layout4 ); 00261 00262 tabWidget3 = new QTabWidget( tab, "tabWidget3" ); 00263 00264 tab_header = new QWidget( tabWidget3, "tab_header" ); 00265 tab_headerLayout = new QGridLayout( tab_header, 1, 1, 2, KDialog::spacingHint(), "tab_headerLayout"); 00266 00267 constructors_h_edit = new QTextEdit( tab_header, "constructors_h_edit" ); 00268 constructors_h_edit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, constructors_h_edit->sizePolicy().hasHeightForWidth() ) ); 00269 constructors_h_edit->setTextFormat( QTextEdit::PlainText ); 00270 constructors_h_edit->setWordWrap( QTextEdit::NoWrap ); 00271 00272 tab_headerLayout->addWidget( constructors_h_edit, 0, 0 ); 00273 tabWidget3->insertTab( tab_header, QString("") ); 00274 00275 tab_source = new QWidget( tabWidget3, "tab_source" ); 00276 tab_sourceLayout = new QGridLayout( tab_source, 1, 1, 2, KDialog::spacingHint(), "tab_sourceLayout"); 00277 00278 constructors_cpp_edit = new QTextEdit( tab_source, "constructors_cpp_edit" ); 00279 constructors_cpp_edit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, constructors_cpp_edit->sizePolicy().hasHeightForWidth() ) ); 00280 constructors_cpp_edit->setTextFormat( QTextEdit::PlainText ); 00281 constructors_cpp_edit->setWordWrap( QTextEdit::NoWrap ); 00282 00283 tab_sourceLayout->addWidget( constructors_cpp_edit, 0, 0 ); 00284 tabWidget3->insertTab( tab_source, QString("") ); 00285 tabLayout->addWidget( tabWidget3 ); 00286 tabWidget4->insertTab( tab, QString("") ); 00287 00288 tab_2 = new QWidget( tabWidget4, "tab_2" ); 00289 tabLayout_2 = new QVBoxLayout( tab_2, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_2"); 00290 00291 methods_view = new QListView( tab_2, "methods_view" ); 00292 methods_view->addColumn( tr2i18n( "Methods" ) ); 00293 methods_view->addColumn( tr2i18n( "Extend Functionality" ) ); 00294 methods_view->setEnabled( TRUE ); 00295 methods_view->setResizePolicy( QListView::AutoOneFit ); 00296 methods_view->setAllColumnsShowFocus( TRUE ); 00297 methods_view->setRootIsDecorated( TRUE ); 00298 methods_view->setResizeMode( QListView::AllColumns ); 00299 tabLayout_2->addWidget( methods_view ); 00300 tabWidget4->insertTab( tab_2, QString("") ); 00301 00302 tab_3 = new QWidget( tabWidget4, "tab_3" ); 00303 tabLayout_3 = new QVBoxLayout( tab_3, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_3"); 00304 00305 access_view = new QListView( tab_3, "access_view" ); 00306 access_view->addColumn( tr2i18n( "Methods & Attributes" ) ); 00307 access_view->addColumn( tr2i18n( "Implied Modifier" ) ); 00308 access_view->addColumn( tr2i18n( "New Modifier" ) ); 00309 access_view->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, access_view->sizePolicy().hasHeightForWidth() ) ); 00310 access_view->setResizePolicy( QListView::AutoOneFit ); 00311 access_view->setAllColumnsShowFocus( TRUE ); 00312 access_view->setRootIsDecorated( TRUE ); 00313 access_view->setResizeMode( QListView::AllColumns ); 00314 tabLayout_3->addWidget( access_view ); 00315 tabWidget4->insertTab( tab_3, QString("") ); 00316 tab2Layout->addWidget( tabWidget4 ); 00317 class_tabs->insertTab( tab2, QString("") ); 00318 00319 tab_4 = new QWidget( class_tabs, "tab_4" ); 00320 tabLayout_4 = new QGridLayout( tab_4, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_4"); 00321 00322 gen_config = new ClassGeneratorConfig( tab_4, "gen_config" ); 00323 gen_config->setFocusPolicy( ClassGeneratorConfig::StrongFocus ); 00324 00325 tabLayout_4->addWidget( gen_config, 0, 0 ); 00326 class_tabs->insertTab( tab_4, QString("") ); 00327 CppNewClassDlgBaseLayout->addWidget( class_tabs ); 00328 00329 Layout3 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout3"); 00330 Spacer7_2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00331 Layout3->addItem( Spacer7_2 ); 00332 00333 ok_button = new QPushButton( this, "ok_button" ); 00334 ok_button->setDefault( TRUE ); 00335 Layout3->addWidget( ok_button ); 00336 00337 cancel_button = new QPushButton( this, "cancel_button" ); 00338 Layout3->addWidget( cancel_button ); 00339 CppNewClassDlgBaseLayout->addLayout( Layout3 ); 00340 languageChange(); 00341 resize( QSize(510, 610).expandedTo(minimumSizeHint()) ); 00342 clearWState( WState_Polished ); 00343 00344 // signals and slots connections 00345 connect( ok_button, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00346 connect( cancel_button, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00347 connect( classname_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( classNameChanged(const QString&) ) ); 00348 connect( header_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( headerChanged() ) ); 00349 connect( implementation_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( implementationChanged() ) ); 00350 connect( childclass_box, SIGNAL( stateChanged(int) ), this, SLOT( checkQWidgetInheritance(int) ) ); 00351 connect( objc_box, SIGNAL( stateChanged(int) ), this, SLOT( checkObjCInheritance(int) ) ); 00352 connect( virtual_box, SIGNAL( stateChanged(int) ), this, SLOT( currBaseVirtualChanged(int) ) ); 00353 connect( public_button, SIGNAL( clicked() ), this, SLOT( currBasePublicSet() ) ); 00354 connect( protected_button, SIGNAL( clicked() ), this, SLOT( currBaseProtectedSet() ) ); 00355 connect( private_button, SIGNAL( clicked() ), this, SLOT( currBasePrivateSet() ) ); 00356 connect( addbaseclass_button, SIGNAL( clicked() ), this, SLOT( addBaseClass() ) ); 00357 connect( rembaseclass_button, SIGNAL( clicked() ), this, SLOT( remBaseClass() ) ); 00358 connect( baseclasses_view, SIGNAL( currentChanged(QListViewItem*) ), this, SLOT( currBaseSelected(QListViewItem*) ) ); 00359 connect( upbaseclass_button, SIGNAL( clicked() ), this, SLOT( upbaseclass_button_clicked() ) ); 00360 connect( downbaseclass_button, SIGNAL( clicked() ), this, SLOT( downbaseclass_button_clicked() ) ); 00361 connect( baseclasses_view, SIGNAL( selectionChanged() ), this, SLOT( baseclasses_view_selectionChanged() ) ); 00362 connect( gtk_box, SIGNAL( stateChanged(int) ), this, SLOT( gtk_box_stateChanged(int) ) ); 00363 connect( basename_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( currBaseNameChanged(const QString&) ) ); 00364 connect( qobject_box, SIGNAL( stateChanged(int) ), this, SLOT( qobject_box_stateChanged(int) ) ); 00365 connect( access_view, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ), this, SLOT( access_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ) ); 00366 connect( methods_view, SIGNAL( mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ), this, SLOT( methods_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int) ) ); 00367 connect( clear_selection_button, SIGNAL( clicked() ), this, SLOT( clear_selection_button_clicked() ) ); 00368 connect( to_constructors_list, SIGNAL( clicked() ), this, SLOT( to_constructors_list_clicked() ) ); 00369 connect( class_tabs, SIGNAL( selected(const QString&) ), this, SLOT( newTabSelected(const QString&) ) ); 00370 connect( class_tabs, SIGNAL( currentChanged(QWidget*) ), this, SLOT( newTabSelected(QWidget*) ) ); 00371 connect( basename_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( baseclassname_changed(const QString&) ) ); 00372 connect( baseinclude_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( baseIncludeChanged(const QString&) ) ); 00373 connect( scope_box, SIGNAL( activated(int) ), this, SLOT( scopeboxActivated(int) ) ); 00374 connect( namespace_edit, SIGNAL( textChanged(const QString&) ), this, SLOT( classNamespaceChanged(const QString&) ) ); 00375 00376 // tab order 00377 setTabOrder( classname_edit, namespace_edit ); 00378 setTabOrder( namespace_edit, addbaseclass_button ); 00379 setTabOrder( addbaseclass_button, basename_edit ); 00380 setTabOrder( basename_edit, baseinclude_edit ); 00381 setTabOrder( baseinclude_edit, scope_box ); 00382 setTabOrder( scope_box, virtual_box ); 00383 setTabOrder( virtual_box, public_button ); 00384 setTabOrder( public_button, protected_button ); 00385 setTabOrder( protected_button, private_button ); 00386 setTabOrder( private_button, baseclasses_view ); 00387 setTabOrder( baseclasses_view, rembaseclass_button ); 00388 setTabOrder( rembaseclass_button, upbaseclass_button ); 00389 setTabOrder( upbaseclass_button, downbaseclass_button ); 00390 setTabOrder( downbaseclass_button, header_edit ); 00391 setTabOrder( header_edit, implementation_edit ); 00392 setTabOrder( implementation_edit, filetemplate_box ); 00393 setTabOrder( filetemplate_box, qobject_box ); 00394 setTabOrder( qobject_box, childclass_box ); 00395 setTabOrder( childclass_box, gtk_box ); 00396 setTabOrder( gtk_box, objc_box ); 00397 setTabOrder( objc_box, documentation_edit ); 00398 setTabOrder( documentation_edit, class_tabs ); 00399 setTabOrder( class_tabs, ok_button ); 00400 setTabOrder( ok_button, cancel_button ); 00401 setTabOrder( cancel_button, tabWidget4 ); 00402 setTabOrder( tabWidget4, constructors_view ); 00403 setTabOrder( constructors_view, to_constructors_list ); 00404 setTabOrder( to_constructors_list, clear_selection_button ); 00405 setTabOrder( clear_selection_button, tabWidget3 ); 00406 setTabOrder( tabWidget3, constructors_h_edit ); 00407 setTabOrder( constructors_h_edit, methods_view ); 00408 setTabOrder( methods_view, access_view ); 00409 setTabOrder( access_view, gen_config ); 00410 setTabOrder( gen_config, constructors_cpp_edit ); 00411 00412 // buddies 00413 documentation_label_->setBuddy( documentation_edit ); 00414 header_label->setBuddy( header_edit ); 00415 implementation_label->setBuddy( implementation_edit ); 00416 classname_label->setBuddy( classname_edit ); 00417 namespace_label->setBuddy( namespace_edit ); 00418 basename_label->setBuddy( basename_edit ); 00419 } 00420 00421 /* 00422 * Destroys the object and frees any allocated resources 00423 */ 00424 CppNewClassDialogBase::~CppNewClassDialogBase() 00425 { 00426 // no need to delete child widgets, Qt does it all for us 00427 } 00428 00429 /* 00430 * Sets the strings of the subwidgets using the current 00431 * language. 00432 */ 00433 void CppNewClassDialogBase::languageChange() 00434 { 00435 setCaption( tr2i18n( "New Class" ) ); 00436 QToolTip::add( this, QString::null ); 00437 documentation_label_->setText( tr2i18n( "Docu&mentation:" ) ); 00438 QWhatsThis::add( documentation_edit, tr2i18n( "Insert a short description for your new class\n" 00439 "here for documentation purposes. This can be used\n" 00440 "to create API documentation in HTML format with\n" 00441 "doxygen or similar tools." ) ); 00442 filenames_group->setTitle( tr2i18n( "File Names" ) ); 00443 header_label->setText( tr2i18n( "&Header:" ) ); 00444 QWhatsThis::add( header_edit, tr2i18n( "Insert your header file name here.\n" 00445 "It is automatically inserted while\n" 00446 "you select the classname, but you can\n" 00447 "still edit it afterwards." ) ); 00448 implementation_label->setText( tr2i18n( "Im&plementation:" ) ); 00449 QWhatsThis::add( implementation_edit, tr2i18n( "Insert your implementation filename here.\n" 00450 "It is automatically inserted while\n" 00451 "you select the classname, but you can\n" 00452 "still edit it afterwards." ) ); 00453 groupBox7->setTitle( tr2i18n( "Class" ) ); 00454 classname_label->setText( tr2i18n( "&Name:" ) ); 00455 QWhatsThis::add( classname_edit, tr2i18n( "Insert your new classname here.\n" 00456 "You can also define template classes by specifying\n" 00457 "template <params> classname" ) ); 00458 namespace_label->setText( tr2i18n( "Name&space:" ) ); 00459 QWhatsThis::add( namespace_edit, tr2i18n( "Insert a name of the namespace here.\n" 00460 "You can define nested namespaces by specifying\n" 00461 "Namespace1::Namespace2::...::NamespaceN" ) ); 00462 inheritance_group->setTitle( tr2i18n( "Inheritance" ) ); 00463 addbaseclass_button->setText( tr2i18n( "&Add" ) ); 00464 rembaseclass_button->setText( tr2i18n( "&Remove" ) ); 00465 upbaseclass_button->setText( tr2i18n( "Move &Up" ) ); 00466 downbaseclass_button->setText( tr2i18n( "Move &Down" ) ); 00467 basename_label->setText( tr2i18n( "&Base class:" ) ); 00468 baseclasses_view->header()->setLabel( 0, tr2i18n( "Baseclass Name" ) ); 00469 baseclasses_view->header()->setLabel( 1, tr2i18n( "Inheritance Type" ) ); 00470 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>)" ) ); 00471 QWhatsThis::add( baseinclude_edit, QString::null ); 00472 scope_box->clear(); 00473 scope_box->insertItem( tr2i18n( "Global" ) ); 00474 scope_box->insertItem( tr2i18n( "Local" ) ); 00475 virtual_box->setText( tr2i18n( "Virtual" ) ); 00476 public_button->setText( tr2i18n( "Public" ) ); 00477 protected_button->setText( tr2i18n( "Protected" ) ); 00478 private_button->setText( tr2i18n( "Private" ) ); 00479 optionsBox->setTitle( tr2i18n( "Options" ) ); 00480 filetemplate_box->setText( tr2i18n( "Use file t&emplates" ) ); 00481 qobject_box->setText( tr2i18n( "Generate QOb&ject child class" ) ); 00482 childclass_box->setText( tr2i18n( "Generate Q&Widget child class" ) ); 00483 gtk_box->setText( tr2i18n( "Generate G&TK+ class" ) ); 00484 objc_box->setText( tr2i18n( "Use Objective-C" ) ); 00485 class_tabs->changeTab( tab1, tr2i18n( "Class &Information" ) ); 00486 constructors_view->header()->setLabel( 0, tr2i18n( "Base Class Constructors" ) ); 00487 to_constructors_list->setText( tr2i18n( "C&reate Constructor >>" ) ); 00488 clear_selection_button->setText( tr2i18n( "C&lear Selection" ) ); 00489 tabWidget3->changeTab( tab_header, tr2i18n( "&Header" ) ); 00490 tabWidget3->changeTab( tab_source, tr2i18n( "&Source" ) ); 00491 tabWidget4->changeTab( tab, tr2i18n( "Constr&uctors" ) ); 00492 methods_view->header()->setLabel( 0, tr2i18n( "Methods" ) ); 00493 methods_view->header()->setLabel( 1, tr2i18n( "Extend Functionality" ) ); 00494 tabWidget4->changeTab( tab_2, tr2i18n( "Methods Ov&erriding" ) ); 00495 access_view->header()->setLabel( 0, tr2i18n( "Methods & Attributes" ) ); 00496 access_view->header()->setLabel( 1, tr2i18n( "Implied Modifier" ) ); 00497 access_view->header()->setLabel( 2, tr2i18n( "New Modifier" ) ); 00498 tabWidget4->changeTab( tab_3, tr2i18n( "&Access Control" ) ); 00499 class_tabs->changeTab( tab2, tr2i18n( "Ad&vanced Information" ) ); 00500 class_tabs->changeTab( tab_4, tr2i18n( "&Generation Options" ) ); 00501 ok_button->setText( tr2i18n( "&OK" ) ); 00502 cancel_button->setText( tr2i18n( "&Cancel" ) ); 00503 } 00504 00505 void CppNewClassDialogBase::updateClassStore() 00506 { 00507 qWarning( "CppNewClassDialogBase::updateClassStore(): Not implemented yet" ); 00508 } 00509 00510 void CppNewClassDialogBase::access_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int) 00511 { 00512 qWarning( "CppNewClassDialogBase::access_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int): Not implemented yet" ); 00513 } 00514 00515 void CppNewClassDialogBase::classNameChanged(const QString&) 00516 { 00517 qWarning( "CppNewClassDialogBase::classNameChanged(const QString&): Not implemented yet" ); 00518 } 00519 00520 void CppNewClassDialogBase::headerChanged() 00521 { 00522 qWarning( "CppNewClassDialogBase::headerChanged(): Not implemented yet" ); 00523 } 00524 00525 void CppNewClassDialogBase::implementationChanged() 00526 { 00527 qWarning( "CppNewClassDialogBase::implementationChanged(): Not implemented yet" ); 00528 } 00529 00530 void CppNewClassDialogBase::nameHandlerChanged(const QString&) 00531 { 00532 qWarning( "CppNewClassDialogBase::nameHandlerChanged(const QString&): Not implemented yet" ); 00533 } 00534 00535 void CppNewClassDialogBase::addBaseClass() 00536 { 00537 qWarning( "CppNewClassDialogBase::addBaseClass(): Not implemented yet" ); 00538 } 00539 00540 void CppNewClassDialogBase::remBaseClass() 00541 { 00542 qWarning( "CppNewClassDialogBase::remBaseClass(): Not implemented yet" ); 00543 } 00544 00545 void CppNewClassDialogBase::currBaseNameChanged(const QString&) 00546 { 00547 qWarning( "CppNewClassDialogBase::currBaseNameChanged(const QString&): Not implemented yet" ); 00548 } 00549 00550 void CppNewClassDialogBase::currBasePrivateSet() 00551 { 00552 qWarning( "CppNewClassDialogBase::currBasePrivateSet(): Not implemented yet" ); 00553 } 00554 00555 void CppNewClassDialogBase::currBaseProtectedSet() 00556 { 00557 qWarning( "CppNewClassDialogBase::currBaseProtectedSet(): Not implemented yet" ); 00558 } 00559 00560 void CppNewClassDialogBase::currBasePublicSet() 00561 { 00562 qWarning( "CppNewClassDialogBase::currBasePublicSet(): Not implemented yet" ); 00563 } 00564 00565 void CppNewClassDialogBase::currBaseVirtualChanged(int) 00566 { 00567 qWarning( "CppNewClassDialogBase::currBaseVirtualChanged(int): Not implemented yet" ); 00568 } 00569 00570 void CppNewClassDialogBase::currBaseSelected(QListViewItem*) 00571 { 00572 qWarning( "CppNewClassDialogBase::currBaseSelected(QListViewItem*): Not implemented yet" ); 00573 } 00574 00575 void CppNewClassDialogBase::checkObjCInheritance(int) 00576 { 00577 qWarning( "CppNewClassDialogBase::checkObjCInheritance(int): Not implemented yet" ); 00578 } 00579 00580 void CppNewClassDialogBase::checkQWidgetInheritance(int) 00581 { 00582 qWarning( "CppNewClassDialogBase::checkQWidgetInheritance(int): Not implemented yet" ); 00583 } 00584 00585 void CppNewClassDialogBase::newTabSelected(const QString&) 00586 { 00587 qWarning( "CppNewClassDialogBase::newTabSelected(const QString&): Not implemented yet" ); 00588 } 00589 00590 void CppNewClassDialogBase::changeToPrivate() 00591 { 00592 qWarning( "CppNewClassDialogBase::changeToPrivate(): Not implemented yet" ); 00593 } 00594 00595 void CppNewClassDialogBase::changeToProtected() 00596 { 00597 qWarning( "CppNewClassDialogBase::changeToProtected(): Not implemented yet" ); 00598 } 00599 00600 void CppNewClassDialogBase::changeToPublic() 00601 { 00602 qWarning( "CppNewClassDialogBase::changeToPublic(): Not implemented yet" ); 00603 } 00604 00605 void CppNewClassDialogBase::changeToInherited() 00606 { 00607 qWarning( "CppNewClassDialogBase::changeToInherited(): Not implemented yet" ); 00608 } 00609 00610 void CppNewClassDialogBase::methods_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int) 00611 { 00612 qWarning( "CppNewClassDialogBase::methods_view_mouseButtonPressed(int,QListViewItem*,const QPoint&,int): Not implemented yet" ); 00613 } 00614 00615 void CppNewClassDialogBase::newTabSelected(QWidget*) 00616 { 00617 qWarning( "CppNewClassDialogBase::newTabSelected(QWidget*): Not implemented yet" ); 00618 } 00619 00620 void CppNewClassDialogBase::extendFunctionality() 00621 { 00622 qWarning( "CppNewClassDialogBase::extendFunctionality(): Not implemented yet" ); 00623 } 00624 00625 void CppNewClassDialogBase::replaceFunctionality() 00626 { 00627 qWarning( "CppNewClassDialogBase::replaceFunctionality(): Not implemented yet" ); 00628 } 00629 00630 void CppNewClassDialogBase::to_constructors_list_clicked() 00631 { 00632 qWarning( "CppNewClassDialogBase::to_constructors_list_clicked(): Not implemented yet" ); 00633 } 00634 00635 void CppNewClassDialogBase::from_constructors_list_clicked() 00636 { 00637 qWarning( "CppNewClassDialogBase::from_constructors_list_clicked(): Not implemented yet" ); 00638 } 00639 00640 void CppNewClassDialogBase::add_constructor_button_clicked() 00641 { 00642 qWarning( "CppNewClassDialogBase::add_constructor_button_clicked(): Not implemented yet" ); 00643 } 00644 00645 void CppNewClassDialogBase::rem_constructor_button_clicked() 00646 { 00647 qWarning( "CppNewClassDialogBase::rem_constructor_button_clicked(): Not implemented yet" ); 00648 } 00649 00650 void CppNewClassDialogBase::clear_selection_button_clicked() 00651 { 00652 qWarning( "CppNewClassDialogBase::clear_selection_button_clicked(): Not implemented yet" ); 00653 } 00654 00655 void CppNewClassDialogBase::upbaseclass_button_clicked() 00656 { 00657 qWarning( "CppNewClassDialogBase::upbaseclass_button_clicked(): Not implemented yet" ); 00658 } 00659 00660 void CppNewClassDialogBase::downbaseclass_button_clicked() 00661 { 00662 qWarning( "CppNewClassDialogBase::downbaseclass_button_clicked(): Not implemented yet" ); 00663 } 00664 00665 void CppNewClassDialogBase::baseclasses_view_selectionChanged() 00666 { 00667 qWarning( "CppNewClassDialogBase::baseclasses_view_selectionChanged(): Not implemented yet" ); 00668 } 00669 00670 void CppNewClassDialogBase::gtk_box_stateChanged(int) 00671 { 00672 qWarning( "CppNewClassDialogBase::gtk_box_stateChanged(int): Not implemented yet" ); 00673 } 00674 00675 void CppNewClassDialogBase::qobject_box_stateChanged(int) 00676 { 00677 qWarning( "CppNewClassDialogBase::qobject_box_stateChanged(int): Not implemented yet" ); 00678 } 00679 00680 void CppNewClassDialogBase::selectall_button_clicked() 00681 { 00682 qWarning( "CppNewClassDialogBase::selectall_button_clicked(): Not implemented yet" ); 00683 } 00684 00685 void CppNewClassDialogBase::baseclassname_changed(const QString&) 00686 { 00687 qWarning( "CppNewClassDialogBase::baseclassname_changed(const QString&): Not implemented yet" ); 00688 } 00689 00690 void CppNewClassDialogBase::baseIncludeChanged(const QString&) 00691 { 00692 qWarning( "CppNewClassDialogBase::baseIncludeChanged(const QString&): Not implemented yet" ); 00693 } 00694 00695 void CppNewClassDialogBase::scopeboxActivated(int) 00696 { 00697 qWarning( "CppNewClassDialogBase::scopeboxActivated(int): Not implemented yet" ); 00698 } 00699 00700 void CppNewClassDialogBase::classNamespaceChanged(const QString&) 00701 { 00702 qWarning( "CppNewClassDialogBase::classNamespaceChanged(const QString&): Not implemented yet" ); 00703 } 00704 00705 #include "cppnewclassdlgbase.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:00 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003