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

📄 addmaterialform.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 'addmaterialform.ui'**** Created: Sun Aug 29 22:06:22 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 "addmaterialform.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlabel.h>#include <qlineedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include "addmaterialform.ui.h"/* *  Constructs a AddMaterialForm 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. */AddMaterialForm::AddMaterialForm( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "AddMaterialForm" );    AddMaterialFormLayout = new QGridLayout( this, 1, 1, 11, 6, "AddMaterialFormLayout");     layout77 = new QVBoxLayout( 0, 0, 6, "layout77");     layout74 = new QHBoxLayout( 0, 0, 6, "layout74");     layout73 = new QVBoxLayout( 0, 0, 6, "layout73");     textLabel6 = new QLabel( this, "textLabel6" );    layout73->addWidget( textLabel6 );    textLabel6_2 = new QLabel( this, "textLabel6_2" );    layout73->addWidget( textLabel6_2 );    textLabel6_2_2 = new QLabel( this, "textLabel6_2_2" );    layout73->addWidget( textLabel6_2_2 );    layout74->addLayout( layout73 );    layout72 = new QVBoxLayout( 0, 0, 6, "layout72");     epsilonLineEdit = new QLineEdit( this, "epsilonLineEdit" );    layout72->addWidget( epsilonLineEdit );    sigmaLineEdit = new QLineEdit( this, "sigmaLineEdit" );    layout72->addWidget( sigmaLineEdit );    materialNameLineEdit = new QLineEdit( this, "materialNameLineEdit" );    layout72->addWidget( materialNameLineEdit );    layout74->addLayout( layout72 );    layout77->addLayout( layout74 );    QSpacerItem* spacer = new QSpacerItem( 20, 61, QSizePolicy::Minimum, QSizePolicy::Expanding );    layout77->addItem( spacer );    layout75 = new QHBoxLayout( 0, 0, 6, "layout75");     addMeterialOKPushButton = new QPushButton( this, "addMeterialOKPushButton" );    layout75->addWidget( addMeterialOKPushButton );    QSpacerItem* spacer_2 = new QSpacerItem( 81, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout75->addItem( spacer_2 );    addMaterialCancelPushButton = new QPushButton( this, "addMaterialCancelPushButton" );    layout75->addWidget( addMaterialCancelPushButton );    layout77->addLayout( layout75 );    AddMaterialFormLayout->addLayout( layout77, 0, 0 );    languageChange();    resize( QSize(296, 260).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( addMeterialOKPushButton, SIGNAL( clicked() ), this, SLOT( OKSlot() ) );    connect( addMaterialCancelPushButton, SIGNAL( clicked() ), this, SLOT( CancelSlot() ) );}/* *  Destroys the object and frees any allocated resources */AddMaterialForm::~AddMaterialForm(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void AddMaterialForm::languageChange(){    setCaption( tr( "Add Material" ) );    textLabel6->setText( tr( "Epsilon" ) );    textLabel6_2->setText( tr( "Conductivity [S/m]" ) );    textLabel6_2_2->setText( tr( "Name" ) );    addMeterialOKPushButton->setText( tr( "OK" ) );    addMaterialCancelPushButton->setText( tr( "Cancel" ) );}

⌨️ 快捷键说明

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