KDevelop API Documentation

buildtools/autotools/addtargetdlgbase.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 './addtargetdlgbase.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:57:58 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 "addtargetdlgbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qpushbutton.h> 00017 #include <qgroupbox.h> 00018 #include <qlabel.h> 00019 #include <qcombobox.h> 00020 #include <qlineedit.h> 00021 #include <ksqueezedtextlabel.h> 00022 #include <qcheckbox.h> 00023 #include <qlayout.h> 00024 #include <qtooltip.h> 00025 #include <qwhatsthis.h> 00026 #include <qimage.h> 00027 #include <qpixmap.h> 00028 00029 static const char* const img0_addtargetdlgbase[] = { 00030 "16 16 2 1", 00031 ". c None", 00032 "# c #000000", 00033 "................", 00034 "................", 00035 ".....#..........", 00036 ".....##.........", 00037 ".....###........", 00038 ".....####.......", 00039 ".....#####......", 00040 ".....######.....", 00041 ".....######.....", 00042 ".....#####......", 00043 ".....####.......", 00044 ".....###........", 00045 ".....##.........", 00046 ".....#..........", 00047 "................", 00048 "................"}; 00049 00050 00051 /* 00052 * Constructs a AddTargetDialogBase as a child of 'parent', with the 00053 * name 'name' and widget flags set to 'f'. 00054 * 00055 * The dialog will by default be modeless, unless you set 'modal' to 00056 * TRUE to construct a modal dialog. 00057 */ 00058 AddTargetDialogBase::AddTargetDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl ) 00059 : QDialog( parent, name, modal, fl ), 00060 image0( (const char **) img0_addtargetdlgbase ) 00061 { 00062 if ( !name ) 00063 setName( "add_target_dialog" ); 00064 setSizeGripEnabled( FALSE ); 00065 add_target_dialogLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "add_target_dialogLayout"); 00066 00067 groupBox2 = new QGroupBox( this, "groupBox2" ); 00068 groupBox2->setColumnLayout(0, Qt::Vertical ); 00069 groupBox2->layout()->setSpacing( KDialog::spacingHint() ); 00070 groupBox2->layout()->setMargin( KDialog::marginHint() ); 00071 groupBox2Layout = new QGridLayout( groupBox2->layout() ); 00072 groupBox2Layout->setAlignment( Qt::AlignTop ); 00073 00074 primary_label = new QLabel( groupBox2, "primary_label" ); 00075 QFont primary_label_font( primary_label->font() ); 00076 primary_label->setFont( primary_label_font ); 00077 primary_label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); 00078 00079 groupBox2Layout->addWidget( primary_label, 0, 0 ); 00080 00081 primary_combo = new QComboBox( FALSE, groupBox2, "primary_combo" ); 00082 00083 groupBox2Layout->addWidget( primary_combo, 0, 1 ); 00084 00085 prefix_label = new QLabel( groupBox2, "prefix_label" ); 00086 QFont prefix_label_font( prefix_label->font() ); 00087 prefix_label->setFont( prefix_label_font ); 00088 prefix_label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); 00089 00090 groupBox2Layout->addWidget( prefix_label, 1, 0 ); 00091 00092 prefix_combo = new QComboBox( FALSE, groupBox2, "prefix_combo" ); 00093 00094 groupBox2Layout->addWidget( prefix_combo, 1, 1 ); 00095 00096 filename_label = new QLabel( groupBox2, "filename_label" ); 00097 QFont filename_label_font( filename_label->font() ); 00098 filename_label->setFont( filename_label_font ); 00099 filename_label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); 00100 00101 groupBox2Layout->addWidget( filename_label, 2, 0 ); 00102 00103 filename_edit = new QLineEdit( groupBox2, "filename_edit" ); 00104 00105 groupBox2Layout->addWidget( filename_edit, 2, 1 ); 00106 Spacer21 = new QSpacerItem( 246, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00107 groupBox2Layout->addMultiCell( Spacer21, 1, 1, 2, 3 ); 00108 00109 canonicalLabel = new KSqueezedTextLabel( groupBox2, "canonicalLabel" ); 00110 00111 groupBox2Layout->addWidget( canonicalLabel, 2, 3 ); 00112 00113 textLabel1 = new QLabel( groupBox2, "textLabel1" ); 00114 QFont textLabel1_font( textLabel1->font() ); 00115 textLabel1_font.setBold( TRUE ); 00116 textLabel1->setFont( textLabel1_font ); 00117 textLabel1->setPixmap( image0 ); 00118 00119 groupBox2Layout->addWidget( textLabel1, 2, 2 ); 00120 add_target_dialogLayout->addWidget( groupBox2 ); 00121 Spacer22 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed ); 00122 add_target_dialogLayout->addItem( Spacer22 ); 00123 00124 ldflags_group = new QGroupBox( this, "ldflags_group" ); 00125 ldflags_group->setColumnLayout(0, Qt::Vertical ); 00126 ldflags_group->layout()->setSpacing( KDialog::spacingHint() ); 00127 ldflags_group->layout()->setMargin( KDialog::marginHint() ); 00128 ldflags_groupLayout = new QVBoxLayout( ldflags_group->layout() ); 00129 ldflags_groupLayout->setAlignment( Qt::AlignTop ); 00130 00131 allstatic_box = new QCheckBox( ldflags_group, "allstatic_box" ); 00132 ldflags_groupLayout->addWidget( allstatic_box ); 00133 00134 avoidversion_box = new QCheckBox( ldflags_group, "avoidversion_box" ); 00135 ldflags_groupLayout->addWidget( avoidversion_box ); 00136 00137 module_box = new QCheckBox( ldflags_group, "module_box" ); 00138 ldflags_groupLayout->addWidget( module_box ); 00139 00140 noundefined_box = new QCheckBox( ldflags_group, "noundefined_box" ); 00141 ldflags_groupLayout->addWidget( noundefined_box ); 00142 00143 Layout11_2 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout11_2"); 00144 00145 ldflagsother_label = new QLabel( ldflags_group, "ldflagsother_label" ); 00146 QFont ldflagsother_label_font( ldflagsother_label->font() ); 00147 ldflagsother_label->setFont( ldflagsother_label_font ); 00148 Layout11_2->addWidget( ldflagsother_label ); 00149 00150 ldflagsother_edit = new QLineEdit( ldflags_group, "ldflagsother_edit" ); 00151 Layout11_2->addWidget( ldflagsother_edit ); 00152 ldflags_groupLayout->addLayout( Layout11_2 ); 00153 add_target_dialogLayout->addWidget( ldflags_group ); 00154 00155 Layout1 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout1"); 00156 Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00157 Layout1->addItem( Horizontal_Spacing2 ); 00158 00159 okbutton = new QPushButton( this, "okbutton" ); 00160 okbutton->setAutoDefault( TRUE ); 00161 okbutton->setDefault( TRUE ); 00162 Layout1->addWidget( okbutton ); 00163 00164 cancelbutton = new QPushButton( this, "cancelbutton" ); 00165 cancelbutton->setAutoDefault( TRUE ); 00166 Layout1->addWidget( cancelbutton ); 00167 add_target_dialogLayout->addLayout( Layout1 ); 00168 languageChange(); 00169 resize( QSize(585, 356).expandedTo(minimumSizeHint()) ); 00170 clearWState( WState_Polished ); 00171 00172 // signals and slots connections 00173 connect( okbutton, SIGNAL( clicked() ), this, SLOT( accept() ) ); 00174 connect( cancelbutton, SIGNAL( clicked() ), this, SLOT( reject() ) ); 00175 connect( primary_combo, SIGNAL( activated(int) ), this, SLOT( primaryChanged() ) ); 00176 00177 // tab order 00178 setTabOrder( primary_combo, prefix_combo ); 00179 setTabOrder( prefix_combo, filename_edit ); 00180 setTabOrder( filename_edit, allstatic_box ); 00181 setTabOrder( allstatic_box, avoidversion_box ); 00182 setTabOrder( avoidversion_box, module_box ); 00183 setTabOrder( module_box, noundefined_box ); 00184 setTabOrder( noundefined_box, ldflagsother_edit ); 00185 setTabOrder( ldflagsother_edit, okbutton ); 00186 setTabOrder( okbutton, cancelbutton ); 00187 00188 // buddies 00189 primary_label->setBuddy( primary_combo ); 00190 prefix_label->setBuddy( prefix_combo ); 00191 filename_label->setBuddy( filename_edit ); 00192 ldflagsother_label->setBuddy( ldflagsother_edit ); 00193 } 00194 00195 /* 00196 * Destroys the object and frees any allocated resources 00197 */ 00198 AddTargetDialogBase::~AddTargetDialogBase() 00199 { 00200 // no need to delete child widgets, Qt does it all for us 00201 } 00202 00203 /* 00204 * Sets the strings of the subwidgets using the current 00205 * language. 00206 */ 00207 void AddTargetDialogBase::languageChange() 00208 { 00209 setCaption( tr2i18n( "Add New Target" ) ); 00210 groupBox2->setTitle( tr2i18n( "&Target" ) ); 00211 primary_label->setText( tr2i18n( "&Primary:" ) ); 00212 prefix_label->setText( tr2i18n( "Pre&fix:" ) ); 00213 filename_label->setText( tr2i18n( "File &name:" ) ); 00214 canonicalLabel->setText( tr2i18n( "[CANONICALIZED NAME]" ) ); 00215 textLabel1->setText( QString::null ); 00216 ldflags_group->setTitle( tr2i18n( "Linker Flags (&LDFLAGS)" ) ); 00217 allstatic_box->setText( tr2i18n( "Do not link against shared libraries (-all-static)" ) ); 00218 avoidversion_box->setText( tr2i18n( "Do not assign version numbers to libraries (-avoid-version)" ) ); 00219 module_box->setText( tr2i18n( "Create a library that can be dynamically loaded (-module)" ) ); 00220 noundefined_box->setText( tr2i18n( "Library does not depend on external symbols (-no-undefined)" ) ); 00221 ldflagsother_label->setText( tr2i18n( "Ot&her:" ) ); 00222 okbutton->setText( tr2i18n( "&OK" ) ); 00223 cancelbutton->setText( tr2i18n( "&Cancel" ) ); 00224 } 00225 00226 void AddTargetDialogBase::primaryChanged() 00227 { 00228 qWarning( "AddTargetDialogBase::primaryChanged(): Not implemented yet" ); 00229 } 00230 00231 #include "addtargetdlgbase.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:36 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003