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

📄 populationnumberform.cpp

📁 基于遗传算法的排课软件源码 根据需要安排合理的课程时间等
💻 CPP
字号:
////// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -