KDevelop API Documentation

languages/fortran/ftnchekconfigwidgetbase.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 './ftnchekconfigwidgetbase.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:54:57 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 "ftnchekconfigwidgetbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qpushbutton.h> 00017 #include <qtabwidget.h> 00018 #include <qcheckbox.h> 00019 #include <qlabel.h> 00020 #include <qradiobutton.h> 00021 #include <qheader.h> 00022 #include <qlistview.h> 00023 #include <qlayout.h> 00024 #include <qtooltip.h> 00025 #include <qwhatsthis.h> 00026 00027 /* 00028 * Constructs a FtnchekConfigWidgetBase as a child of 'parent', with the 00029 * name 'name' and widget flags set to 'f'. 00030 */ 00031 FtnchekConfigWidgetBase::FtnchekConfigWidgetBase( QWidget* parent, const char* name, WFlags fl ) 00032 : QWidget( parent, name, fl ) 00033 { 00034 if ( !name ) 00035 setName( "ftcheck_config_widget" ); 00036 ftcheck_config_widgetLayout = new QVBoxLayout( this, 0, 0, "ftcheck_config_widgetLayout"); 00037 00038 TabWidget4 = new QTabWidget( this, "TabWidget4" ); 00039 00040 tab = new QWidget( TabWidget4, "tab" ); 00041 tabLayout = new QGridLayout( tab, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout"); 00042 00043 extern_box = new QCheckBox( tab, "extern_box" ); 00044 00045 tabLayout->addWidget( extern_box, 0, 2 ); 00046 00047 division_box = new QCheckBox( tab, "division_box" ); 00048 00049 tabLayout->addWidget( division_box, 1, 2 ); 00050 00051 declare_box = new QCheckBox( tab, "declare_box" ); 00052 00053 tabLayout->addWidget( declare_box, 0, 0 ); 00054 00055 pure_box = new QCheckBox( tab, "pure_box" ); 00056 00057 tabLayout->addWidget( pure_box, 1, 0 ); 00058 Spacer2_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Preferred ); 00059 tabLayout->addItem( Spacer2_3, 2, 0 ); 00060 00061 TextLabel1 = new QLabel( tab, "TextLabel1" ); 00062 00063 tabLayout->addWidget( TextLabel1, 3, 0 ); 00064 00065 argumentsall_button = new QRadioButton( tab, "argumentsall_button" ); 00066 argumentsall_button->setChecked( FALSE ); 00067 00068 tabLayout->addWidget( argumentsall_button, 4, 0 ); 00069 00070 argumentsonly_button = new QRadioButton( tab, "argumentsonly_button" ); 00071 argumentsonly_button->setChecked( TRUE ); 00072 00073 tabLayout->addWidget( argumentsonly_button, 5, 0 ); 00074 Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Preferred, QSizePolicy::Minimum ); 00075 tabLayout->addItem( Spacer4, 6, 1 ); 00076 Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Preferred ); 00077 tabLayout->addItem( Spacer3, 2, 2 ); 00078 00079 commonall_button = new QRadioButton( tab, "commonall_button" ); 00080 00081 tabLayout->addWidget( commonall_button, 4, 2 ); 00082 00083 commononly_button = new QRadioButton( tab, "commononly_button" ); 00084 commononly_button->setChecked( TRUE ); 00085 00086 tabLayout->addWidget( commononly_button, 5, 2 ); 00087 00088 arguments_listview = new QListView( tab, "arguments_listview" ); 00089 arguments_listview->addColumn( QString::null ); 00090 arguments_listview->addColumn( QString::null ); 00091 arguments_listview->setResizeMode( QListView::NoColumn ); 00092 00093 tabLayout->addWidget( arguments_listview, 6, 0 ); 00094 00095 common_listview = new QListView( tab, "common_listview" ); 00096 common_listview->addColumn( QString::null ); 00097 common_listview->addColumn( QString::null ); 00098 common_listview->setResizeMode( QListView::NoColumn ); 00099 00100 tabLayout->addWidget( common_listview, 6, 2 ); 00101 00102 TextLabel2 = new QLabel( tab, "TextLabel2" ); 00103 00104 tabLayout->addWidget( TextLabel2, 3, 2 ); 00105 TabWidget4->insertTab( tab, QString("") ); 00106 00107 tab_2 = new QWidget( TabWidget4, "tab_2" ); 00108 tabLayout_2 = new QGridLayout( tab_2, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_2"); 00109 00110 truncationonly_button = new QRadioButton( tab_2, "truncationonly_button" ); 00111 truncationonly_button->setChecked( TRUE ); 00112 00113 tabLayout_2->addWidget( truncationonly_button, 2, 0 ); 00114 00115 TextLabel4 = new QLabel( tab_2, "TextLabel4" ); 00116 00117 tabLayout_2->addWidget( TextLabel4, 0, 0 ); 00118 00119 truncationall_button = new QRadioButton( tab_2, "truncationall_button" ); 00120 00121 tabLayout_2->addWidget( truncationall_button, 1, 0 ); 00122 00123 TextLabel3 = new QLabel( tab_2, "TextLabel3" ); 00124 00125 tabLayout_2->addWidget( TextLabel3, 0, 2 ); 00126 00127 usageall_button = new QRadioButton( tab_2, "usageall_button" ); 00128 00129 tabLayout_2->addWidget( usageall_button, 1, 2 ); 00130 00131 truncation_listview = new QListView( tab_2, "truncation_listview" ); 00132 truncation_listview->addColumn( QString::null ); 00133 truncation_listview->addColumn( QString::null ); 00134 truncation_listview->setResizeMode( QListView::NoColumn ); 00135 00136 tabLayout_2->addWidget( truncation_listview, 3, 0 ); 00137 00138 usageonly_button = new QRadioButton( tab_2, "usageonly_button" ); 00139 usageonly_button->setChecked( TRUE ); 00140 00141 tabLayout_2->addWidget( usageonly_button, 2, 2 ); 00142 Spacer1_2 = new QSpacerItem( 20, 20, QSizePolicy::Preferred, QSizePolicy::Minimum ); 00143 tabLayout_2->addItem( Spacer1_2, 3, 1 ); 00144 00145 usage_listview = new QListView( tab_2, "usage_listview" ); 00146 usage_listview->addColumn( QString::null ); 00147 usage_listview->addColumn( QString::null ); 00148 usage_listview->setResizeMode( QListView::NoColumn ); 00149 00150 tabLayout_2->addWidget( usage_listview, 3, 2 ); 00151 TabWidget4->insertTab( tab_2, QString("") ); 00152 00153 tab_3 = new QWidget( TabWidget4, "tab_3" ); 00154 tabLayout_3 = new QGridLayout( tab_3, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "tabLayout_3"); 00155 00156 f77all_button = new QRadioButton( tab_3, "f77all_button" ); 00157 00158 tabLayout_3->addMultiCellWidget( f77all_button, 1, 1, 0, 1 ); 00159 00160 f77only_button = new QRadioButton( tab_3, "f77only_button" ); 00161 f77only_button->setChecked( TRUE ); 00162 00163 tabLayout_3->addMultiCellWidget( f77only_button, 2, 2, 0, 1 ); 00164 00165 f77_listview = new QListView( tab_3, "f77_listview" ); 00166 f77_listview->addColumn( QString::null ); 00167 f77_listview->addColumn( QString::null ); 00168 f77_listview->setResizeMode( QListView::NoColumn ); 00169 00170 tabLayout_3->addWidget( f77_listview, 3, 0 ); 00171 00172 portability_listview = new QListView( tab_3, "portability_listview" ); 00173 portability_listview->addColumn( QString::null ); 00174 portability_listview->addColumn( QString::null ); 00175 portability_listview->setResizeMode( QListView::NoColumn ); 00176 00177 tabLayout_3->addWidget( portability_listview, 3, 2 ); 00178 Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Preferred, QSizePolicy::Minimum ); 00179 tabLayout_3->addItem( Spacer2, 3, 1 ); 00180 00181 TextLabel4_2 = new QLabel( tab_3, "TextLabel4_2" ); 00182 00183 tabLayout_3->addWidget( TextLabel4_2, 0, 0 ); 00184 00185 TextLabel3_2 = new QLabel( tab_3, "TextLabel3_2" ); 00186 00187 tabLayout_3->addWidget( TextLabel3_2, 0, 2 ); 00188 00189 portabilityall_button = new QRadioButton( tab_3, "portabilityall_button" ); 00190 00191 tabLayout_3->addWidget( portabilityall_button, 1, 2 ); 00192 00193 portabilityonly_button = new QRadioButton( tab_3, "portabilityonly_button" ); 00194 portabilityonly_button->setChecked( TRUE ); 00195 00196 tabLayout_3->addWidget( portabilityonly_button, 2, 2 ); 00197 TabWidget4->insertTab( tab_3, QString("") ); 00198 ftcheck_config_widgetLayout->addWidget( TabWidget4 ); 00199 languageChange(); 00200 resize( QSize(798, 507).expandedTo(minimumSizeHint()) ); 00201 clearWState( WState_Polished ); 00202 00203 // tab order 00204 setTabOrder( declare_box, pure_box ); 00205 setTabOrder( pure_box, extern_box ); 00206 setTabOrder( extern_box, division_box ); 00207 setTabOrder( division_box, argumentsall_button ); 00208 setTabOrder( argumentsall_button, argumentsonly_button ); 00209 setTabOrder( argumentsonly_button, arguments_listview ); 00210 setTabOrder( arguments_listview, commonall_button ); 00211 setTabOrder( commonall_button, commononly_button ); 00212 setTabOrder( commononly_button, common_listview ); 00213 setTabOrder( common_listview, TabWidget4 ); 00214 setTabOrder( TabWidget4, truncationall_button ); 00215 setTabOrder( truncationall_button, truncationonly_button ); 00216 setTabOrder( truncationonly_button, truncation_listview ); 00217 setTabOrder( truncation_listview, usageall_button ); 00218 setTabOrder( usageall_button, usageonly_button ); 00219 setTabOrder( usageonly_button, usage_listview ); 00220 setTabOrder( usage_listview, f77all_button ); 00221 setTabOrder( f77all_button, f77only_button ); 00222 setTabOrder( f77only_button, f77_listview ); 00223 setTabOrder( f77_listview, portabilityall_button ); 00224 setTabOrder( portabilityall_button, portabilityonly_button ); 00225 setTabOrder( portabilityonly_button, portability_listview ); 00226 00227 // buddies 00228 TextLabel1->setBuddy( argumentsall_button ); 00229 TextLabel2->setBuddy( commonall_button ); 00230 TextLabel4->setBuddy( truncationall_button ); 00231 TextLabel3->setBuddy( usageall_button ); 00232 TextLabel4_2->setBuddy( f77all_button ); 00233 TextLabel3_2->setBuddy( portabilityall_button ); 00234 } 00235 00236 /* 00237 * Destroys the object and frees any allocated resources 00238 */ 00239 FtnchekConfigWidgetBase::~FtnchekConfigWidgetBase() 00240 { 00241 // no need to delete child widgets, Qt does it all for us 00242 } 00243 00244 /* 00245 * Sets the strings of the subwidgets using the current 00246 * language. 00247 */ 00248 void FtnchekConfigWidgetBase::languageChange() 00249 { 00250 setCaption( tr2i18n( "Ftnchek Options" ) ); 00251 extern_box->setText( tr2i18n( "&External subprograms without definition" ) ); 00252 division_box->setText( tr2i18n( "&Divisions" ) ); 00253 declare_box->setText( tr2i18n( "&Identifiers without explicit type" ) ); 00254 pure_box->setText( tr2i18n( "&Assume functions have no side effects" ) ); 00255 TextLabel1->setText( tr2i18n( "Ar&guments:" ) ); 00256 argumentsall_button->setText( tr2i18n( "All" ) ); 00257 argumentsonly_button->setText( tr2i18n( "Only the following:" ) ); 00258 commonall_button->setText( tr2i18n( "All" ) ); 00259 commononly_button->setText( tr2i18n( "Only the following:" ) ); 00260 arguments_listview->header()->setLabel( 0, QString::null ); 00261 arguments_listview->header()->setLabel( 1, QString::null ); 00262 common_listview->header()->setLabel( 0, QString::null ); 00263 common_listview->header()->setLabel( 1, QString::null ); 00264 TextLabel2->setText( tr2i18n( "Common &blocks:" ) ); 00265 TabWidget4->changeTab( tab, tr2i18n( "&1" ) ); 00266 truncationonly_button->setText( tr2i18n( "Only the following:" ) ); 00267 TextLabel4->setText( tr2i18n( "&Truncation and roundoff errors:" ) ); 00268 truncationall_button->setText( tr2i18n( "All" ) ); 00269 TextLabel3->setText( tr2i18n( "&Use of variables:" ) ); 00270 usageall_button->setText( tr2i18n( "All" ) ); 00271 truncation_listview->header()->setLabel( 0, QString::null ); 00272 truncation_listview->header()->setLabel( 1, QString::null ); 00273 usageonly_button->setText( tr2i18n( "Only the following:" ) ); 00274 usage_listview->header()->setLabel( 0, QString::null ); 00275 usage_listview->header()->setLabel( 1, QString::null ); 00276 TabWidget4->changeTab( tab_2, tr2i18n( "&2" ) ); 00277 f77all_button->setText( tr2i18n( "All" ) ); 00278 f77only_button->setText( tr2i18n( "Only the following:" ) ); 00279 f77_listview->header()->setLabel( 0, QString::null ); 00280 f77_listview->header()->setLabel( 1, QString::null ); 00281 portability_listview->header()->setLabel( 0, QString::null ); 00282 portability_listview->header()->setLabel( 1, QString::null ); 00283 TextLabel4_2->setText( tr2i18n( "Fortran 77 language &extensions:" ) ); 00284 TextLabel3_2->setText( tr2i18n( "Other &portability warnings:" ) ); 00285 portabilityall_button->setText( tr2i18n( "All" ) ); 00286 portabilityonly_button->setText( tr2i18n( "Only the following:" ) ); 00287 TabWidget4->changeTab( tab_3, tr2i18n( "&3" ) ); 00288 } 00289 00290 #include "ftnchekconfigwidgetbase.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 Tue Oct 19 08:01:43 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003