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

📄 config.cpp

📁 LinPacker是一个优化矩形布局的工具
💻 CPP
字号:
/****************************************************************************** Form implementation generated from reading ui file 'config.ui'**** Created: ven fév 28 13:07:50 2003**      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.1   edited Nov 21 17:40 $)**** WARNING! All changes made in this file will be lost!****************************************************************************/#include "config.h"#include <qvariant.h>#include <qlabel.h>#include <qpushbutton.h>#include <qslider.h>#include <qspinbox.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include <qimage.h>#include <qpixmap.h>/*  *  Constructs a confDialog 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. */confDialog::confDialog( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "confDialog" );    setFocusPolicy( QDialog::StrongFocus );    setSizeGripEnabled( TRUE );    confDialogLayout = new QGridLayout( this, 1, 1, 11, 6, "confDialogLayout");     layout36 = new QGridLayout( 0, 1, 1, 0, 6, "layout36");     layout8 = new QHBoxLayout( 0, 0, 6, "layout8");     buttonHelp = new QPushButton( this, "buttonHelp" );    buttonHelp->setAutoDefault( TRUE );    layout8->addWidget( buttonHelp );    QSpacerItem* spacer = new QSpacerItem( 151, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout8->addItem( spacer );    buttonOk = new QPushButton( this, "buttonOk" );    buttonOk->setAutoDefault( TRUE );    buttonOk->setDefault( TRUE );    layout8->addWidget( buttonOk );    buttonCancel = new QPushButton( this, "buttonCancel" );    buttonCancel->setAutoDefault( TRUE );    layout8->addWidget( buttonCancel );    layout36->addLayout( layout8, 2, 0 );    layout35 = new QGridLayout( 0, 1, 1, 0, 6, "layout35");     textLabel4 = new QLabel( this, "textLabel4" );    layout35->addWidget( textLabel4, 4, 0 );    sliderC = new QSlider( this, "sliderC" );    sliderC->setMaxValue( 80 );    sliderC->setValue( 70 );    sliderC->setOrientation( QSlider::Horizontal );    sliderC->setTickmarks( QSlider::Right );    layout35->addWidget( sliderC, 3, 1 );    textLabel3 = new QLabel( this, "textLabel3" );    layout35->addWidget( textLabel3, 3, 0 );    layout10 = new QHBoxLayout( 0, 0, 6, "layout10");     rstButton = new QPushButton( this, "rstButton" );    layout10->addWidget( rstButton );    QSpacerItem* spacer_2 = new QSpacerItem( 31, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout10->addItem( spacer_2 );    layout35->addLayout( layout10, 5, 1 );    layout28 = new QHBoxLayout( 0, 0, 6, "layout28");     spinLargeur = new QSpinBox( this, "spinLargeur" );    spinLargeur->setMinimumSize( QSize( 30, 0 ) );    spinLargeur->setMaxValue( 99000 );    spinLargeur->setMinValue( 100 );    spinLargeur->setValue( 6000 );    layout28->addWidget( spinLargeur );    QSpacerItem* spacer_3 = new QSpacerItem( 80, 23, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout28->addItem( spacer_3 );    layout35->addLayout( layout28, 0, 1 );    textLabel2 = new QLabel( this, "textLabel2" );    layout35->addWidget( textLabel2, 1, 0 );    layout30 = new QHBoxLayout( 0, 0, 6, "layout30");     spinBox5 = new QSpinBox( this, "spinBox5" );    spinBox5->setMinimumSize( QSize( 30, 0 ) );    spinBox5->setMaxValue( 19998 );    spinBox5->setMinValue( 1 );    spinBox5->setValue( 10 );    layout30->addWidget( spinBox5 );    QSpacerItem* spacer_4 = new QSpacerItem( 80, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout30->addItem( spacer_4 );    layout35->addLayout( layout30, 2, 1 );    QSpacerItem* spacer_5 = new QSpacerItem( 145, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout35->addItem( spacer_5, 5, 0 );    sliderM = new QSlider( this, "sliderM" );    sliderM->setMaxValue( 80 );    sliderM->setValue( 5 );    sliderM->setOrientation( QSlider::Horizontal );    sliderM->setTickmarks( QSlider::Right );    layout35->addWidget( sliderM, 4, 1 );    textLabel5 = new QLabel( this, "textLabel5" );    layout35->addWidget( textLabel5, 2, 0 );    layout33 = new QHBoxLayout( 0, 0, 6, "layout33");     spinNumber = new QSpinBox( this, "spinNumber" );    spinNumber->setMinimumSize( QSize( 30, 0 ) );    spinNumber->setMaxValue( 10000 );    spinNumber->setValue( 25 );    layout33->addWidget( spinNumber );    QSpacerItem* spacer_6 = new QSpacerItem( 66, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );    layout33->addItem( spacer_6 );    layout35->addLayout( layout33, 1, 1 );    textLabel1 = new QLabel( this, "textLabel1" );    layout35->addWidget( textLabel1, 0, 0 );    layout36->addLayout( layout35, 0, 0 );    QSpacerItem* spacer_7 = new QSpacerItem( 16, 30, QSizePolicy::Minimum, QSizePolicy::Expanding );    layout36->addItem( spacer_7, 1, 0 );    confDialogLayout->addLayout( layout36, 0, 0 );    languageChange();    resize( QSize(335, 262).expandedTo(minimumSizeHint()) );    // signals and slots connections    connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );    connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );}/* *  Destroys the object and frees any allocated resources */confDialog::~confDialog(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void confDialog::languageChange(){    setCaption( tr( "Options" ) );    QToolTip::add( this, tr( "this dialog does not work yet" ) );    buttonHelp->setText( tr( "&Help" ) );    buttonHelp->setAccel( QKeySequence( tr( "F1" ) ) );    buttonOk->setText( tr( "&OK" ) );    buttonOk->setAccel( QKeySequence( QString::null ) );    buttonCancel->setText( tr( "&Cancel" ) );    buttonCancel->setAccel( QKeySequence( QString::null ) );    textLabel4->setText( tr( "Mutation Rate" ) );    textLabel3->setText( tr( "Crossover Rate" ) );    rstButton->setText( tr( "reset to default" ) );    textLabel2->setText( tr( "Number of Iterations" ) );    textLabel5->setText( tr( "Population" ) );    textLabel1->setText( tr( "Band Width" ) );}

⌨️ 快捷键说明

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