⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addsphere.cpp

📁 The purpose of this program is to enable building a config file to the radarFDTD package using a mo
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'addsphere.ui'**** Created: Sun Aug 29 22:06:44 2004**      by: The User Interface Compiler ($Id: qt/main.cpp   3.2.3   edited May 19 14:22 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "addsphere.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlabel.h>#include <qlineedit.h>#include <qcombobox.h>#include <qgroupbox.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "addsphere.ui.h"/* *  Constructs a AddSphereForm as a child of 'parent', with the *  name 'name' and widget flags set to 'f'. * *  The dialog will by default be modeless, unless you set 'modal' to *  TRUE to construct a modal dialog. */AddSphereForm::AddSphereForm( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "AddSphereForm" );    AddSphereFormLayout = new QVBoxLayout( this, 11, 6, "AddSphereFormLayout");     layout66 = new QVBoxLayout( 0, 0, 6, "layout66");     layout48 = new QHBoxLayout( 0, 0, 6, "layout48");     textLabel4_2 = new QLabel( this, "textLabel4_2" );    layout48->addWidget( textLabel4_2 );    nameLineEdit = new QLineEdit( this, "nameLineEdit" );    layout48->addWidget( nameLineEdit );    QSpacerItem* spacer = new QSpacerItem( 211, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout48->addItem( spacer );    layout66->addLayout( layout48 );    layout57 = new QHBoxLayout( 0, 0, 6, "layout57");     textLabel4 = new QLabel( this, "textLabel4" );    layout57->addWidget( textLabel4 );    addSphereMaterialcomboBox = new QComboBox( FALSE, this, "addSphereMaterialcomboBox" );    layout57->addWidget( addSphereMaterialcomboBox );    QSpacerItem* spacer_2 = new QSpacerItem( 300, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout57->addItem( spacer_2 );    layout66->addLayout( layout57 );    layout54 = new QHBoxLayout( 0, 0, 6, "layout54");     layout53 = new QVBoxLayout( 0, 0, 6, "layout53");     groupBox6 = new QGroupBox( this, "groupBox6" );    groupBox6->setColumnLayout(0, Qt::Vertical );    groupBox6->layout()->setSpacing( 6 );    groupBox6->layout()->setMargin( 11 );    groupBox6Layout = new QGridLayout( groupBox6->layout() );    groupBox6Layout->setAlignment( Qt::AlignTop );    layout37 = new QHBoxLayout( 0, 0, 6, "layout37");     layout36 = new QVBoxLayout( 0, 0, 6, "layout36");     textLabel3 = new QLabel( groupBox6, "textLabel3" );    layout36->addWidget( textLabel3 );    textLabel3_2 = new QLabel( groupBox6, "textLabel3_2" );    layout36->addWidget( textLabel3_2 );    textLabel3_2_2 = new QLabel( groupBox6, "textLabel3_2_2" );    layout36->addWidget( textLabel3_2_2 );    layout37->addLayout( layout36 );    layout35 = new QVBoxLayout( 0, 0, 6, "layout35");     sphereCenterXLineEdit = new QLineEdit( groupBox6, "sphereCenterXLineEdit" );    layout35->addWidget( sphereCenterXLineEdit );    sphereCenterYLineEdit = new QLineEdit( groupBox6, "sphereCenterYLineEdit" );    layout35->addWidget( sphereCenterYLineEdit );    sphereCenterZLineEdit = new QLineEdit( groupBox6, "sphereCenterZLineEdit" );    layout35->addWidget( sphereCenterZLineEdit );    layout37->addLayout( layout35 );    groupBox6Layout->addLayout( layout37, 0, 0 );    layout53->addWidget( groupBox6 );    groupBox9 = new QGroupBox( this, "groupBox9" );    groupBox9->setColumnLayout(0, Qt::Vertical );    groupBox9->layout()->setSpacing( 6 );    groupBox9->layout()->setMargin( 11 );    groupBox9Layout = new QGridLayout( groupBox9->layout() );    groupBox9Layout->setAlignment( Qt::AlignTop );    layout51 = new QHBoxLayout( 0, 0, 6, "layout51");     textLabel5 = new QLabel( groupBox9, "textLabel5" );    layout51->addWidget( textLabel5 );    sphereRadiusLineEdit = new QLineEdit( groupBox9, "sphereRadiusLineEdit" );    layout51->addWidget( sphereRadiusLineEdit );    groupBox9Layout->addLayout( layout51, 0, 0 );    layout53->addWidget( groupBox9 );    layout54->addLayout( layout53 );    QSpacerItem* spacer_3 = new QSpacerItem( 261, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout54->addItem( spacer_3 );    layout66->addLayout( layout54 );    layout55 = new QHBoxLayout( 0, 0, 6, "layout55");     addSphereOKpushButton = new QPushButton( this, "addSphereOKpushButton" );    layout55->addWidget( addSphereOKpushButton );    QSpacerItem* spacer_4 = new QSpacerItem( 256, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout55->addItem( spacer_4 );    addSphereCancelpushButton = new QPushButton( this, "addSphereCancelpushButton" );    layout55->addWidget( addSphereCancelpushButton );    layout66->addLayout( layout55 );    AddSphereFormLayout->addLayout( layout66 );    languageChange();    resize( QSize(470, 325).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( addSphereOKpushButton, SIGNAL( clicked() ), this, SLOT( OKSlot() ) );    connect( addSphereCancelpushButton, SIGNAL( clicked() ), this, SLOT( CancelSlot() ) );}/* *  Destroys the object and frees any allocated resources */AddSphereForm::~AddSphereForm(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void AddSphereForm::languageChange(){    setCaption( tr( "Add Sphere" ) );    textLabel4_2->setText( tr( "Name" ) );    textLabel4->setText( tr( "Material" ) );    addSphereMaterialcomboBox->clear();    addSphereMaterialcomboBox->insertItem( tr( "0" ) );    addSphereMaterialcomboBox->insertItem( tr( "1" ) );    groupBox6->setTitle( tr( "Center [Cells]" ) );    textLabel3->setText( tr( "X" ) );    textLabel3_2->setText( tr( "Y" ) );    textLabel3_2_2->setText( tr( "Z" ) );    groupBox9->setTitle( tr( "Radius [m]" ) );    textLabel5->setText( tr( "R" ) );    addSphereOKpushButton->setText( tr( "OK" ) );    addSphereCancelpushButton->setText( tr( "Cancel" ) );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -