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

📄 addbox.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 'addbox.ui'**** Created: Sun Aug 29 22:06:38 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 "addbox.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 "addbox.ui.h"/* *  Constructs a AddBoxForm 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. */AddBoxForm::AddBoxForm( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "AddBoxForm" );    AddBoxFormLayout = new QGridLayout( this, 1, 1, 11, 6, "AddBoxFormLayout");     layout50 = new QVBoxLayout( 0, 0, 6, "layout50");     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 );    layout50->addLayout( layout48 );    layout46 = new QHBoxLayout( 0, 0, 6, "layout46");     textLabel4 = new QLabel( this, "textLabel4" );    layout46->addWidget( textLabel4 );    addBoxMaterialcomboBox = new QComboBox( FALSE, this, "addBoxMaterialcomboBox" );    layout46->addWidget( addBoxMaterialcomboBox );    QSpacerItem* spacer_2 = new QSpacerItem( 181, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout46->addItem( spacer_2 );    layout50->addLayout( layout46 );    layout49 = new QHBoxLayout( 0, 0, 6, "layout49");     groupBox6 = new QGroupBox( this, "groupBox6" );    groupBox6->setColumnLayout(0, Qt::Vertical );    groupBox6->layout()->setSpacing( 6 );    groupBox6->layout()->setMargin( 11 );    groupBox6Layout = new QVBoxLayout( 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");     boxX0lineEdit = new QLineEdit( groupBox6, "boxX0lineEdit" );    layout35->addWidget( boxX0lineEdit );    boxY0lineEdit = new QLineEdit( groupBox6, "boxY0lineEdit" );    layout35->addWidget( boxY0lineEdit );    boxZ0lineEdit = new QLineEdit( groupBox6, "boxZ0lineEdit" );    layout35->addWidget( boxZ0lineEdit );    layout37->addLayout( layout35 );    groupBox6Layout->addLayout( layout37 );    QSpacerItem* spacer_3 = new QSpacerItem( 20, 81, QSizePolicy::Minimum, QSizePolicy::Expanding );    groupBox6Layout->addItem( spacer_3 );    layout49->addWidget( groupBox6 );    groupBox6_2 = new QGroupBox( this, "groupBox6_2" );    groupBox6_2->setColumnLayout(0, Qt::Vertical );    groupBox6_2->layout()->setSpacing( 6 );    groupBox6_2->layout()->setMargin( 11 );    groupBox6_2Layout = new QVBoxLayout( groupBox6_2->layout() );    groupBox6_2Layout->setAlignment( Qt::AlignTop );    layout37_2 = new QHBoxLayout( 0, 0, 6, "layout37_2");     layout36_2 = new QVBoxLayout( 0, 0, 6, "layout36_2");     textLabel3_3 = new QLabel( groupBox6_2, "textLabel3_3" );    layout36_2->addWidget( textLabel3_3 );    textLabel3_2_3 = new QLabel( groupBox6_2, "textLabel3_2_3" );    layout36_2->addWidget( textLabel3_2_3 );    textLabel3_2_2_2 = new QLabel( groupBox6_2, "textLabel3_2_2_2" );    layout36_2->addWidget( textLabel3_2_2_2 );    layout37_2->addLayout( layout36_2 );    layout35_2 = new QVBoxLayout( 0, 0, 6, "layout35_2");     boxX1lineEdit = new QLineEdit( groupBox6_2, "boxX1lineEdit" );    layout35_2->addWidget( boxX1lineEdit );    boxY1lineEdit = new QLineEdit( groupBox6_2, "boxY1lineEdit" );    layout35_2->addWidget( boxY1lineEdit );    boxZ1lineEdit = new QLineEdit( groupBox6_2, "boxZ1lineEdit" );    layout35_2->addWidget( boxZ1lineEdit );    layout37_2->addLayout( layout35_2 );    groupBox6_2Layout->addLayout( layout37_2 );    QSpacerItem* spacer_4 = new QSpacerItem( 20, 81, QSizePolicy::Minimum, QSizePolicy::Expanding );    groupBox6_2Layout->addItem( spacer_4 );    layout49->addWidget( groupBox6_2 );    layout50->addLayout( layout49 );    layout41 = new QHBoxLayout( 0, 0, 6, "layout41");     addBoxOKpushButton = new QPushButton( this, "addBoxOKpushButton" );    layout41->addWidget( addBoxOKpushButton );    QSpacerItem* spacer_5 = new QSpacerItem( 201, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout41->addItem( spacer_5 );    addBoxCancelpushButton = new QPushButton( this, "addBoxCancelpushButton" );    layout41->addWidget( addBoxCancelpushButton );    layout50->addLayout( layout41 );    AddBoxFormLayout->addLayout( layout50, 0, 0 );    languageChange();    resize( QSize(456, 301).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( addBoxOKpushButton, SIGNAL( clicked() ), this, SLOT( OKSlot() ) );    connect( addBoxCancelpushButton, SIGNAL( clicked() ), this, SLOT( CancelSlot() ) );}/* *  Destroys the object and frees any allocated resources */AddBoxForm::~AddBoxForm(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void AddBoxForm::languageChange(){    setCaption( tr( "Add Box" ) );    textLabel4_2->setText( tr( "Name" ) );    textLabel4->setText( tr( "Material" ) );    addBoxMaterialcomboBox->clear();    addBoxMaterialcomboBox->insertItem( tr( "0" ) );    addBoxMaterialcomboBox->insertItem( tr( "1" ) );    groupBox6->setTitle( tr( "First Corner [Cells]" ) );    textLabel3->setText( tr( "X0" ) );    textLabel3_2->setText( tr( "Y0" ) );    textLabel3_2_2->setText( tr( "Z0" ) );    groupBox6_2->setTitle( tr( "Second Corner [Cells]" ) );    textLabel3_3->setText( tr( "X1" ) );    textLabel3_2_3->setText( tr( "Y1" ) );    textLabel3_2_2_2->setText( tr( "Z1" ) );    addBoxOKpushButton->setText( tr( "OK" ) );    addBoxCancelpushButton->setText( tr( "Cancel" ) );}

⌨️ 快捷键说明

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