populationnumberform.cpp

来自「ASP.NET 在线项目注册系统」· C++ 代码 · 共 64 行

CPP
64
字号
////// C++ Implementation: $MODULE$//// Description: ////// Author: Lalescu Liviu <liviu@lalescu.ro>, (C) 2003//// Copyright: See COPYING file that comes with this distribution////#include "genetictimetable_defs.h"#include "genetictimetable.h"#include "fet.h"#include "populationnumberform.h"#include <qslider.h>#include <qlabel.h>PopulationNumberForm::PopulationNumberForm() : PopulationNumberForm_template(){	this->p_n=population_number;	populationNumberSlider->setMaxValue(MAX_POPULATION_SIZE);	populationNumberSlider->setValue(population_number);	populationNumberSlider->setMinValue(1);	QString s=QObject::tr("Population number (power of search)");	s+="\n";	s+=QString::number(population_number);	populationNumberTextLabel->setText(s);}PopulationNumberForm::~PopulationNumberForm(){}void PopulationNumberForm::populationNumberChanged(){	this->p_n=populationNumberSlider->value();	QString s=QObject::tr("Population number (power of search)");	s+="\n";	s+=QString::number(this->p_n);	populationNumberTextLabel->setText(s);}void PopulationNumberForm::cancel(){	this->close();}void PopulationNumberForm::ok(){	population_number=this->p_n;	this->close();}

⌨️ 快捷键说明

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