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

📄 addxmtform.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 'addxmtform.ui'**** Created: Sun Aug 29 22:07:09 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 "addxmtform.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlabel.h>#include <qlineedit.h>#include <qgroupbox.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "addxmtform.ui.h"/* *  Constructs a AddXmtForm 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. */AddXmtForm::AddXmtForm( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "AddXmtForm" );    AddXmtFormLayout = new QVBoxLayout( this, 11, 6, "AddXmtFormLayout");     layout54 = new QHBoxLayout( 0, 0, 6, "layout54");     textLabel4_2 = new QLabel( this, "textLabel4_2" );    layout54->addWidget( textLabel4_2 );    nameLineEdit = new QLineEdit( this, "nameLineEdit" );    layout54->addWidget( nameLineEdit );    QSpacerItem* spacer = new QSpacerItem( 220, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout54->addItem( spacer );    AddXmtFormLayout->addLayout( layout54 );    layout55 = new QHBoxLayout( 0, 0, 6, "layout55");     groupBox13 = new QGroupBox( this, "groupBox13" );    groupBox13->setColumnLayout(0, Qt::Vertical );    groupBox13->layout()->setSpacing( 6 );    groupBox13->layout()->setMargin( 11 );    groupBox13Layout = new QGridLayout( groupBox13->layout() );    groupBox13Layout->setAlignment( Qt::AlignTop );    layout50 = new QHBoxLayout( 0, 0, 6, "layout50");     layout49 = new QVBoxLayout( 0, 0, 6, "layout49");     textLabel3 = new QLabel( groupBox13, "textLabel3" );    layout49->addWidget( textLabel3 );    textLabel3_2 = new QLabel( groupBox13, "textLabel3_2" );    layout49->addWidget( textLabel3_2 );    textLabel3_2_2 = new QLabel( groupBox13, "textLabel3_2_2" );    layout49->addWidget( textLabel3_2_2 );    layout50->addLayout( layout49 );    layout48 = new QVBoxLayout( 0, 0, 6, "layout48");     X0LineEdit = new QLineEdit( groupBox13, "X0LineEdit" );    layout48->addWidget( X0LineEdit );    Y0LineEdit = new QLineEdit( groupBox13, "Y0LineEdit" );    layout48->addWidget( Y0LineEdit );    Z0LineEdit = new QLineEdit( groupBox13, "Z0LineEdit" );    layout48->addWidget( Z0LineEdit );    layout50->addLayout( layout48 );    groupBox13Layout->addLayout( layout50, 0, 0 );    layout55->addWidget( groupBox13 );    groupBox14 = new QGroupBox( this, "groupBox14" );    groupBox14->setColumnLayout(0, Qt::Vertical );    groupBox14->layout()->setSpacing( 6 );    groupBox14->layout()->setMargin( 11 );    groupBox14Layout = new QGridLayout( groupBox14->layout() );    groupBox14Layout->setAlignment( Qt::AlignTop );    layout50_2 = new QHBoxLayout( 0, 0, 6, "layout50_2");     layout49_2 = new QVBoxLayout( 0, 0, 6, "layout49_2");     textLabel3_3 = new QLabel( groupBox14, "textLabel3_3" );    layout49_2->addWidget( textLabel3_3 );    textLabel3_2_3 = new QLabel( groupBox14, "textLabel3_2_3" );    layout49_2->addWidget( textLabel3_2_3 );    textLabel3_2_2_2 = new QLabel( groupBox14, "textLabel3_2_2_2" );    layout49_2->addWidget( textLabel3_2_2_2 );    layout50_2->addLayout( layout49_2 );    layout48_2 = new QVBoxLayout( 0, 0, 6, "layout48_2");     X1LineEdit = new QLineEdit( groupBox14, "X1LineEdit" );    layout48_2->addWidget( X1LineEdit );    Y1LineEdit = new QLineEdit( groupBox14, "Y1LineEdit" );    layout48_2->addWidget( Y1LineEdit );    Z1LineEdit = new QLineEdit( groupBox14, "Z1LineEdit" );    layout48_2->addWidget( Z1LineEdit );    layout50_2->addLayout( layout48_2 );    groupBox14Layout->addLayout( layout50_2, 0, 0 );    layout55->addWidget( groupBox14 );    AddXmtFormLayout->addLayout( layout55 );    layout56 = new QHBoxLayout( 0, 0, 6, "layout56");     textLabel4_2_2 = new QLabel( this, "textLabel4_2_2" );    layout56->addWidget( textLabel4_2_2 );    skipLineEdit = new QLineEdit( this, "skipLineEdit" );    layout56->addWidget( skipLineEdit );    QSpacerItem* spacer_2 = new QSpacerItem( 220, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout56->addItem( spacer_2 );    AddXmtFormLayout->addLayout( layout56 );    layout57 = new QHBoxLayout( 0, 0, 6, "layout57");     addPushButton = new QPushButton( this, "addPushButton" );    layout57->addWidget( addPushButton );    QSpacerItem* spacer_3 = new QSpacerItem( 71, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout57->addItem( spacer_3 );    DonePushButton = new QPushButton( this, "DonePushButton" );    layout57->addWidget( DonePushButton );    QSpacerItem* spacer_4 = new QSpacerItem( 71, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout57->addItem( spacer_4 );    cancelPushButton = new QPushButton( this, "cancelPushButton" );    layout57->addWidget( cancelPushButton );    AddXmtFormLayout->addLayout( layout57 );    languageChange();    resize( QSize(444, 296).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( DonePushButton, SIGNAL( clicked() ), this, SLOT( DoneSlot() ) );    connect( addPushButton, SIGNAL( clicked() ), this, SLOT( addSlot() ) );    connect( cancelPushButton, SIGNAL( clicked() ), this, SLOT( CancelSlot() ) );}/* *  Destroys the object and frees any allocated resources */AddXmtForm::~AddXmtForm(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void AddXmtForm::languageChange(){    setCaption( tr( "Add Transmitter" ) );    textLabel4_2->setText( tr( "Name" ) );    groupBox13->setTitle( tr( "Start Corner [Cells]" ) );    textLabel3->setText( tr( "X" ) );    textLabel3_2->setText( tr( "Y" ) );    textLabel3_2_2->setText( tr( "Z" ) );    groupBox14->setTitle( tr( "End Corner [Cells]" ) );    textLabel3_3->setText( tr( "X" ) );    textLabel3_2_3->setText( tr( "Y" ) );    textLabel3_2_2_2->setText( tr( "Z" ) );    textLabel4_2_2->setText( tr( "Skip [Cells]" ) );    QToolTip::add( skipLineEdit, tr( "The space skip factor in case when an array of transmitters is defined (start corner not equale end corner)." ) );    addPushButton->setText( tr( "Add" ) );    DonePushButton->setText( tr( "Done" ) );    cancelPushButton->setText( tr( "Cancel" ) );}

⌨️ 快捷键说明

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