📄 gaussianpulseconfigform.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'gaussianpulseconfigform.ui'**** Created: Sun Aug 29 22:06:54 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 "gaussianpulseconfigform.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 "gaussianpulseconfigform.ui.h"/* * Constructs a GaussianPulseConfigForm 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. */GaussianPulseConfigForm::GaussianPulseConfigForm( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ){ if ( !name ) setName( "GaussianPulseConfigForm" ); GaussianPulseConfigFormLayout = new QGridLayout( this, 1, 1, 11, 6, "GaussianPulseConfigFormLayout"); layout83 = new QVBoxLayout( 0, 0, 6, "layout83"); layout81 = new QHBoxLayout( 0, 0, 6, "layout81"); layout79 = new QVBoxLayout( 0, 0, 6, "layout79"); textLabel7 = new QLabel( this, "textLabel7" ); layout79->addWidget( textLabel7 ); textLabel7_2 = new QLabel( this, "textLabel7_2" ); layout79->addWidget( textLabel7_2 ); textLabel7_2_2 = new QLabel( this, "textLabel7_2_2" ); layout79->addWidget( textLabel7_2_2 ); layout81->addLayout( layout79 ); layout78 = new QVBoxLayout( 0, 0, 6, "layout78"); gaussianPulseAmpLineEdit = new QLineEdit( this, "gaussianPulseAmpLineEdit" ); layout78->addWidget( gaussianPulseAmpLineEdit ); gaussianPulsePeakDelayLineEdit = new QLineEdit( this, "gaussianPulsePeakDelayLineEdit" ); layout78->addWidget( gaussianPulsePeakDelayLineEdit ); gaussianPulseWidthLineEdit = new QLineEdit( this, "gaussianPulseWidthLineEdit" ); layout78->addWidget( gaussianPulseWidthLineEdit ); layout81->addLayout( layout78 ); layout83->addLayout( layout81 ); QSpacerItem* spacer = new QSpacerItem( 20, 41, QSizePolicy::Minimum, QSizePolicy::Expanding ); layout83->addItem( spacer ); layout30 = new QHBoxLayout( 0, 0, 6, "layout30"); gaussianPulseModeCfgOK = new QPushButton( this, "gaussianPulseModeCfgOK" ); layout30->addWidget( gaussianPulseModeCfgOK ); QSpacerItem* spacer_2 = new QSpacerItem( 71, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); layout30->addItem( spacer_2 ); gaussianPulseModeCfgCancel = new QPushButton( this, "gaussianPulseModeCfgCancel" ); layout30->addWidget( gaussianPulseModeCfgCancel ); layout83->addLayout( layout30 ); GaussianPulseConfigFormLayout->addLayout( layout83, 0, 0 ); languageChange(); resize( QSize(306, 253).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( gaussianPulseModeCfgOK, SIGNAL( clicked() ), this, SLOT( OKSlot() ) ); connect( gaussianPulseModeCfgCancel, SIGNAL( clicked() ), this, SLOT( CancelSlot() ) );}/* * Destroys the object and frees any allocated resources */GaussianPulseConfigForm::~GaussianPulseConfigForm(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void GaussianPulseConfigForm::languageChange(){ setCaption( tr( "Gaussian Pulse Config" ) ); textLabel7->setText( tr( "Amplitude" ) ); textLabel7_2->setText( tr( "Peak Delay [sec]" ) ); textLabel7_2_2->setText( tr( "Pulse width [sec]" ) ); gaussianPulseModeCfgOK->setText( tr( "OK" ) ); gaussianPulseModeCfgCancel->setText( tr( "Cancel" ) );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -