📄 sinemodeconfigform.cpp
字号:
/****************************************************************************** Form implementation generated from reading ui file 'sinemodeconfigform.ui'**** Created: Sun Aug 29 22:06:34 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 "sinemodeconfigform.h"#include <qvariant.h>#include <qpushbutton.h>#include <qlabel.h>#include <qlineedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include "sinemodeconfigform.ui.h"/* * Constructs a sineModeConfigForm 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. */sineModeConfigForm::sineModeConfigForm( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ){ if ( !name ) setName( "sineModeConfigForm" ); sineModeConfigFormLayout = new QGridLayout( this, 1, 1, 11, 6, "sineModeConfigFormLayout"); layout70 = new QVBoxLayout( 0, 0, 6, "layout70"); layout29 = new QHBoxLayout( 0, 0, 6, "layout29"); layout28 = new QVBoxLayout( 0, 0, 6, "layout28"); textLabel1 = new QLabel( this, "textLabel1" ); layout28->addWidget( textLabel1 ); textLabel1_2 = new QLabel( this, "textLabel1_2" ); layout28->addWidget( textLabel1_2 ); textLabel1_2_2 = new QLabel( this, "textLabel1_2_2" ); layout28->addWidget( textLabel1_2_2 ); layout29->addLayout( layout28 ); layout27 = new QVBoxLayout( 0, 0, 6, "layout27"); delayLineEdit = new QLineEdit( this, "delayLineEdit" ); layout27->addWidget( delayLineEdit ); freqLineEdit = new QLineEdit( this, "freqLineEdit" ); layout27->addWidget( freqLineEdit ); ampLineEdit = new QLineEdit( this, "ampLineEdit" ); layout27->addWidget( ampLineEdit ); layout29->addLayout( layout27 ); layout70->addLayout( layout29 ); QSpacerItem* spacer = new QSpacerItem( 20, 31, QSizePolicy::Minimum, QSizePolicy::Expanding ); layout70->addItem( spacer ); layout30 = new QHBoxLayout( 0, 0, 6, "layout30"); sineModeCfgOK = new QPushButton( this, "sineModeCfgOK" ); layout30->addWidget( sineModeCfgOK ); QSpacerItem* spacer_2 = new QSpacerItem( 71, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); layout30->addItem( spacer_2 ); sineModeCfgCancel = new QPushButton( this, "sineModeCfgCancel" ); layout30->addWidget( sineModeCfgCancel ); layout70->addLayout( layout30 ); sineModeConfigFormLayout->addLayout( layout70, 0, 0 ); languageChange(); resize( QSize(309, 175).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( sineModeCfgOK, SIGNAL( clicked() ), this, SLOT( sineModeCfgOKSlot() ) ); connect( sineModeCfgCancel, SIGNAL( clicked() ), this, SLOT( sineModeCfgCancelSlot() ) );}/* * Destroys the object and frees any allocated resources */sineModeConfigForm::~sineModeConfigForm(){ // no need to delete child widgets, Qt does it all for us}/* * Sets the strings of the subwidgets using the current * language. */void sineModeConfigForm::languageChange(){ setCaption( tr( "Sine Mode Config" ) ); textLabel1->setText( tr( "Delay" ) ); textLabel1_2->setText( tr( "Frequency" ) ); textLabel1_2_2->setText( tr( "Amplitude" ) ); sineModeCfgOK->setText( tr( "OK" ) ); sineModeCfgCancel->setText( tr( "Cancel" ) );}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -