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

📄 sinesquaremodeconfigform.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 'sinesquaremodeconfigform.ui'**** Created: Sun Aug 29 22:06:50 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 "sinesquaremodeconfigform.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlabel.h>#include <qlineedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>#include "sinesquaremodeconfigform.ui.h"/* *  Constructs a SineSquareModeConfigForm 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. */SineSquareModeConfigForm::SineSquareModeConfigForm( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "SineSquareModeConfigForm" );    SineSquareModeConfigFormLayout = new QGridLayout( this, 1, 1, 11, 6, "SineSquareModeConfigFormLayout");     layout71 = new QVBoxLayout( 0, 0, 6, "layout71");     layout67 = new QHBoxLayout( 0, 0, 6, "layout67");     layout66 = new QVBoxLayout( 0, 0, 6, "layout66");     textLabel1 = new QLabel( this, "textLabel1" );    layout66->addWidget( textLabel1 );    textLabel1_2 = new QLabel( this, "textLabel1_2" );    layout66->addWidget( textLabel1_2 );    textLabel1_2_2 = new QLabel( this, "textLabel1_2_2" );    layout66->addWidget( textLabel1_2_2 );    textLabel1_2_2_2 = new QLabel( this, "textLabel1_2_2_2" );    layout66->addWidget( textLabel1_2_2_2 );    layout67->addLayout( layout66 );    layout65 = new QVBoxLayout( 0, 0, 6, "layout65");     delayLineEdit = new QLineEdit( this, "delayLineEdit" );    layout65->addWidget( delayLineEdit );    freqLineEdit = new QLineEdit( this, "freqLineEdit" );    layout65->addWidget( freqLineEdit );    ampLineEdit = new QLineEdit( this, "ampLineEdit" );    layout65->addWidget( ampLineEdit );    nofHalfCyclesLineEdit = new QLineEdit( this, "nofHalfCyclesLineEdit" );    layout65->addWidget( nofHalfCyclesLineEdit );    layout67->addLayout( layout65 );    layout71->addLayout( layout67 );    QSpacerItem* spacer = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding );    layout71->addItem( spacer );    layout30 = new QHBoxLayout( 0, 0, 6, "layout30");     sineSquareModeCfgOK = new QPushButton( this, "sineSquareModeCfgOK" );    layout30->addWidget( sineSquareModeCfgOK );    QSpacerItem* spacer_2 = new QSpacerItem( 71, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout30->addItem( spacer_2 );    sineSquareModeCfgCancel = new QPushButton( this, "sineSquareModeCfgCancel" );    layout30->addWidget( sineSquareModeCfgCancel );    layout71->addLayout( layout30 );    SineSquareModeConfigFormLayout->addLayout( layout71, 0, 0 );    languageChange();    resize( QSize(320, 210).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( sineSquareModeCfgOK, SIGNAL( clicked() ), this, SLOT( OKSlot() ) );    connect( sineSquareModeCfgOK, SIGNAL( clicked() ), this, SLOT( CancelSlot() ) );}/* *  Destroys the object and frees any allocated resources */SineSquareModeConfigForm::~SineSquareModeConfigForm(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void SineSquareModeConfigForm::languageChange(){    setCaption( tr( "Sine Square Config" ) );    textLabel1->setText( tr( "Delay [sec]" ) );    textLabel1_2->setText( tr( "Frequency [Hz]" ) );    textLabel1_2_2->setText( tr( "Amplitude" ) );    textLabel1_2_2_2->setText( tr( "# of half cycles" ) );    sineSquareModeCfgOK->setText( tr( "OK" ) );    sineSquareModeCfgCancel->setText( tr( "Cancel" ) );}

⌨️ 快捷键说明

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