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

📄 fetmainform.cpp

📁 基于遗传算法的排课软件源码 根据需要安排合理的课程时间等
💻 CPP
📖 第 1 页 / 共 4 页
字号:
{	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintSubjectSubjectTagPreferredRoomForm* constraintSubjectSubjectTagPreferredRoomForm=new ConstraintSubjectSubjectTagPreferredRoomForm();	constraintSubjectSubjectTagPreferredRoomForm->exec();}void FetMainForm::dataSpaceConstraintsSubjectPreferredRooms(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintSubjectPreferredRoomsForm* constraintSubjectPreferredRoomsForm=new ConstraintSubjectPreferredRoomsForm();	constraintSubjectPreferredRoomsForm->exec();}void FetMainForm::dataSpaceConstraintsSubjectSubjectTagPreferredRooms(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintSubjectSubjectTagPreferredRoomsForm* constraintSubjectSubjectTagPreferredRoomsForm=new ConstraintSubjectSubjectTagPreferredRoomsForm();	constraintSubjectSubjectTagPreferredRoomsForm->exec();}void FetMainForm::dataSpaceConstraintsMaxBuildingChangesPerDayForTeachers(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintMaxBuildingChangesPerDayForTeachersForm* form=new ConstraintMaxBuildingChangesPerDayForTeachersForm();	form->exec();}void FetMainForm::dataSpaceConstraintsMaxBuildingChangesPerDayForStudents(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintMaxBuildingChangesPerDayForStudentsForm* form=new ConstraintMaxBuildingChangesPerDayForStudentsForm();	form->exec();}void FetMainForm::dataSpaceConstraintsMaxRoomChangesPerDayForTeachers(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintMaxRoomChangesPerDayForTeachersForm* form=new ConstraintMaxRoomChangesPerDayForTeachersForm();	form->exec();}void FetMainForm::dataSpaceConstraintsMaxRoomChangesPerDayForStudents(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintMaxRoomChangesPerDayForStudentsForm* form=new ConstraintMaxRoomChangesPerDayForStudentsForm();	form->exec();}void FetMainForm::dataTimeConstraintsStudentsSetNotAvailable(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintStudentsSetNotAvailableForm* constraintStudentsSetNotAvailableForm=new ConstraintStudentsSetNotAvailableForm();	constraintStudentsSetNotAvailableForm->exec();}void FetMainForm::dataTimeConstraintsBreak(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintBreakForm* constraintBreakForm=new ConstraintBreakForm();	constraintBreakForm->exec();}void FetMainForm::dataTimeConstraintsTeacherMaxDaysPerWeek(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintTeacherMaxDaysPerWeekForm* constraintTeacherMaxDaysPerWeekForm=new ConstraintTeacherMaxDaysPerWeekForm();	constraintTeacherMaxDaysPerWeekForm->exec();}void FetMainForm::dataTimeConstraintsTeachersMaxHoursContinuously(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintTeachersMaxHoursContinuouslyForm* constraintTeachersMaxHoursContinuouslyForm=new ConstraintTeachersMaxHoursContinuouslyForm();	constraintTeachersMaxHoursContinuouslyForm->exec();}void FetMainForm::dataTimeConstraintsTeachersMaxHoursDaily(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintTeachersMaxHoursDailyForm* constraintTeachersMaxHoursDailyForm=new ConstraintTeachersMaxHoursDailyForm();	constraintTeachersMaxHoursDailyForm->exec();}void FetMainForm::dataTimeConstraintsTeachersSubgroupsMaxHoursDaily(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintTeachersSubgroupsMaxHoursDailyForm* constraintTeachersSubgroupsMaxHoursDailyForm=new ConstraintTeachersSubgroupsMaxHoursDailyForm();	constraintTeachersSubgroupsMaxHoursDailyForm->exec();}void FetMainForm::dataTimeConstraintsActivityPreferredTime(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintActivityPreferredTimeForm* constraintActivityPreferredTimeForm=new ConstraintActivityPreferredTimeForm();	constraintActivityPreferredTimeForm->exec();}void FetMainForm::dataTimeConstraintsStudentsSetNoGaps(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintStudentsSetNoGapsForm* constraintStudentsSetNoGapsForm=new ConstraintStudentsSetNoGapsForm();	constraintStudentsSetNoGapsForm->exec();}void FetMainForm::dataTimeConstraintsStudentsNoGaps(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintStudentsNoGapsForm* constraintStudentsNoGapsForm=new ConstraintStudentsNoGapsForm();	constraintStudentsNoGapsForm->exec();}void FetMainForm::dataTimeConstraintsTeachersNoGaps(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintTeachersNoGapsForm* constraintTeachersNoGapsForm=new ConstraintTeachersNoGapsForm();	constraintTeachersNoGapsForm->exec();}void FetMainForm::dataTimeConstraintsStudentsEarly(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintStudentsEarlyForm* constraintStudentsEarlyForm=new ConstraintStudentsEarlyForm();	constraintStudentsEarlyForm->exec();}void FetMainForm::dataTimeConstraintsStudentsSetIntervalMaxDaysPerWeek(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintStudentsSetIntervalMaxDaysPerWeekForm* constraintStudentsSetIntervalMaxDaysPerWeekForm=new ConstraintStudentsSetIntervalMaxDaysPerWeekForm();	constraintStudentsSetIntervalMaxDaysPerWeekForm->exec();}void FetMainForm::dataTimeConstraintsStudentsSetNHoursDaily(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintStudentsSetNHoursDailyForm* constraintStudentsSetNHoursDailyForm=new ConstraintStudentsSetNHoursDailyForm();	constraintStudentsSetNHoursDailyForm->exec();}void FetMainForm::dataTimeConstraintsStudentsNHoursDaily(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintStudentsNHoursDailyForm* constraintStudentsNHoursDailyForm=new ConstraintStudentsNHoursDailyForm();	constraintStudentsNHoursDailyForm->exec();}void FetMainForm::dataTimeConstraintsActivityEndsDay(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintActivityEndsDayForm* constraintActivityEndsDayForm=new ConstraintActivityEndsDayForm();	constraintActivityEndsDayForm->exec();}void FetMainForm::dataTimeConstraintsActivitiesNotOverlapping(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintActivitiesNotOverlappingForm* constraintActivitiesNotOverlappingForm=new ConstraintActivitiesNotOverlappingForm();	constraintActivitiesNotOverlappingForm->exec();}void FetMainForm::dataTimeConstraintsMinNDaysBetweenActivities(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintMinNDaysBetweenActivitiesForm* constraintMinNDaysBetweenActivitiesForm=new ConstraintMinNDaysBetweenActivitiesForm();	constraintMinNDaysBetweenActivitiesForm->exec();}void FetMainForm::dataTimeConstraintsActivityPreferredTimes(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintActivityPreferredTimesForm* constraintActivityPreferredTimesForm=new ConstraintActivityPreferredTimesForm();	constraintActivityPreferredTimesForm->exec();}void FetMainForm::dataTimeConstraintsTeachersSubjectTagsMaxHoursContinuously(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintTeachersSubjectTagsMaxHoursContinuouslyForm* constraintTeachersSubjectTagsMaxHoursContinuouslyForm=new ConstraintTeachersSubjectTagsMaxHoursContinuouslyForm();	constraintTeachersSubjectTagsMaxHoursContinuouslyForm->exec();}void FetMainForm::dataTimeConstraintsTeachersSubjectTagMaxHoursContinuously(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	ConstraintTeachersSubjectTagMaxHoursContinuouslyForm* constraintTeachersSubjectTagMaxHoursContinuouslyForm=new ConstraintTeachersSubjectTagMaxHoursContinuouslyForm();	constraintTeachersSubjectTagMaxHoursContinuouslyForm->exec();}void FetMainForm::helpAbout(){	HelpAboutForm* helpAboutForm=new HelpAboutForm();	helpAboutForm->show();}void FetMainForm::helpFAQ(){	HelpFaqForm* helpFaqForm=new HelpFaqForm();	helpFaqForm->show();}void FetMainForm::helpTimeConstraints(){	HelpTimeConstraintsForm* helpTimeConstraintsForm=new HelpTimeConstraintsForm();	helpTimeConstraintsForm->show();}void FetMainForm::helpTimeConstraintsSubtags(){	HelpTimeConstraintsSubtagsForm* helpTimeConstraintsSubtagsForm=new HelpTimeConstraintsSubtagsForm();	helpTimeConstraintsSubtagsForm->show();}void FetMainForm::timetableAllocateHours(){	if(simulation_running){		QMessageBox::information(this, QObject::tr("FET information"),			QObject::tr("Allocation in course.\nPlease stop simulation before this."));		return;	}	int count=0;	for(Activity* act=gt.rules.activitiesList.first(); act; act=gt.rules.activitiesList.next())		if(act->active)			count++;	if(count<2){		QMessageBox::information(this, QObject::tr("FET information"), QObject::tr("Please input at least two active activities before allocating hours"));		return;	}	TimetableAllocateHoursForm *timetableAllocateHoursForm=new TimetableAllocateHoursForm();	timetableAllocateHoursForm->show();}void FetMainForm::timetableViewStudents(){	if(!(students_schedule_ready && teachers_schedule_ready)){		QMessageBox::information(this, QObject::tr("FET information"), QObject::tr("Please allocate the hours, firstly"));		return;

⌨️ 快捷键说明

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