• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ saveFETDialogGeometry函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中saveFETDialogGeometry函数的典型用法代码示例。如果您正苦于以下问题:C++ saveFETDialogGeometry函数的具体用法?C++ saveFETDialogGeometry怎么用?C++ saveFETDialogGeometry使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了saveFETDialogGeometry函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: dialog

void TimetableGenerateForm::seeInitialOrder()
{
	QString s=initialOrderOfActivities;

	//show the message in a dialog
	QDialog dialog(this);
	
	dialog.setWindowTitle(tr("FET - information about initial order of evaluation of activities"));

	QVBoxLayout* vl=new QVBoxLayout(&dialog);
	QPlainTextEdit* te=new QPlainTextEdit();
	te->setPlainText(s);
	te->setReadOnly(true);
	QPushButton* pb=new QPushButton(tr("OK"));

	QHBoxLayout* hl=new QHBoxLayout(0);
	hl->addStretch(1);
	hl->addWidget(pb);

	vl->addWidget(te);
	vl->addLayout(hl);
	connect(pb, SIGNAL(clicked()), &dialog, SLOT(close()));

	dialog.resize(700,500);
	centerWidgetOnScreen(&dialog);
	restoreFETDialogGeometry(&dialog, settingsName);

	setParentAndOtherThings(&dialog, this);
	dialog.exec();
	saveFETDialogGeometry(&dialog, settingsName);
}
开发者ID:vanyog,项目名称:FET,代码行数:31,代码来源:timetablegenerateform.cpp


示例2: saveFETDialogGeometry

SubjectsForm::~SubjectsForm()
{
	saveFETDialogGeometry(this);
	//save splitter state
	QSettings settings(COMPANY, PROGRAM);
	settings.setValue(this->metaObject()->className()+QString("/splitter-state"), splitter->saveState());
}
开发者ID:karandit,项目名称:fet,代码行数:7,代码来源:subjectsform.cpp


示例3: last

void TimetableGenerateForm::seeImpossible()
{
	QString s;

	myMutex.lock();

	s+=TimetableGenerateForm::tr("Information relating difficult to schedule activities:");
	s+="\n\n";
	s+=TimetableGenerateForm::tr("Please check the constraints related to the last "
	 "activities in the list below, which might be difficult to schedule:");
	s+="\n\n";
	s+=TimetableGenerateForm::tr("Here are the placed activities which lead to a difficulty, "
	 "in order from the first one to the last (the last one FET failed to schedule "
	 "and the last ones are difficult):");
	s+="\n\n";
	for(int i=0; i<gen.nDifficultActivities; i++){
		int ai=gen.difficultActivities[i];

		s+=TimetableGenerateForm::tr("No: %1").arg(i+1);

		s+=", ";

		s+=TimetableGenerateForm::tr("Id: %1 (%2)", "%1 is id of activity, %2 is detailed description of activity")
			.arg(gt.rules.internalActivitiesList[ai].id)
			.arg(getActivityDetailedDescription(gt.rules, gt.rules.internalActivitiesList[ai].id));

		s+="\n";
	}

	myMutex.unlock();
	
	//show the message in a dialog
	QDialog dialog(this);
	
	dialog.setWindowTitle(tr("FET - information about difficult activities"));

	QVBoxLayout* vl=new QVBoxLayout(&dialog);
	QPlainTextEdit* te=new QPlainTextEdit();
	te->setPlainText(s);
	te->setReadOnly(true);
	QPushButton* pb=new QPushButton(tr("OK"));

	QHBoxLayout* hl=new QHBoxLayout(0);
	hl->addStretch(1);
	hl->addWidget(pb);

	vl->addWidget(te);
	vl->addLayout(hl);
	connect(pb, SIGNAL(clicked()), &dialog, SLOT(close()));

	dialog.resize(700,500);
	centerWidgetOnScreen(&dialog);
	restoreFETDialogGeometry(&dialog, settingsName);

	setParentAndOtherThings(&dialog, this);
	dialog.exec();
	saveFETDialogGeometry(&dialog, settingsName);
}
开发者ID:vanyog,项目名称:FET,代码行数:58,代码来源:timetablegenerateform.cpp


示例4: tr

void SubjectsForm::comments()
{
	int ind=subjectsListWidget->currentRow();
	if(ind<0){
		QMessageBox::information(this, tr("FET information"), tr("Invalid selected subject"));
		return;
	}
	
	Subject* sbj=gt.rules.subjectsList[ind];
	assert(sbj!=NULL);

	QDialog getCommentsDialog(this);
	
	getCommentsDialog.setWindowTitle(tr("Subject comments"));
	
	QPushButton* okPB=new QPushButton(tr("OK"));
	okPB->setDefault(true);
	QPushButton* cancelPB=new QPushButton(tr("Cancel"));
	
	connect(okPB, SIGNAL(clicked()), &getCommentsDialog, SLOT(accept()));
	connect(cancelPB, SIGNAL(clicked()), &getCommentsDialog, SLOT(reject()));

	QHBoxLayout* hl=new QHBoxLayout();
	hl->addStretch();
	hl->addWidget(okPB);
	hl->addWidget(cancelPB);
	
	QVBoxLayout* vl=new QVBoxLayout();
	
	QPlainTextEdit* commentsPT=new QPlainTextEdit();
	commentsPT->setPlainText(sbj->comments);
	commentsPT->selectAll();
	commentsPT->setFocus();
	
	vl->addWidget(commentsPT);
	vl->addLayout(hl);
	
	getCommentsDialog.setLayout(vl);
	
	const QString settingsName=QString("SubjectCommentsDialog");
	
	getCommentsDialog.resize(500, 320);
	centerWidgetOnScreen(&getCommentsDialog);
	restoreFETDialogGeometry(&getCommentsDialog, settingsName);
	
	int t=getCommentsDialog.exec();
	saveFETDialogGeometry(&getCommentsDialog, settingsName);
	
	if(t==QDialog::Accepted){
		sbj->comments=commentsPT->toPlainText();
	
		gt.rules.internalStructureComputed=false;
		setRulesModifiedAndOtherThings(&gt.rules);

		subjectChanged(ind);
	}
}
开发者ID:karandit,项目名称:fet,代码行数:57,代码来源:subjectsform.cpp


示例5: saveFETDialogGeometry

ConstraintSubactivitiesPreferredStartingTimesForm::~ConstraintSubactivitiesPreferredStartingTimesForm()
{
    saveFETDialogGeometry(this);
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:4,代码来源:constraintsubactivitiespreferredstartingtimesform.cpp


示例6: saveFETDialogGeometry

ConstraintStudentsMaxHoursContinuouslyForm::~ConstraintStudentsMaxHoursContinuouslyForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:4,代码来源:constraintstudentsmaxhourscontinuouslyform.cpp


示例7: saveFETDialogGeometry

ConstraintStudentsSetIntervalMaxDaysPerWeekForm::~ConstraintStudentsSetIntervalMaxDaysPerWeekForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:4,代码来源:constraintstudentssetintervalmaxdaysperweekform.cpp


示例8: saveFETDialogGeometry

ModifyStudentsGroupForm::~ModifyStudentsGroupForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:karandit,项目名称:fet,代码行数:4,代码来源:modifystudentsgroupform.cpp


示例9: saveFETDialogGeometry

ConstraintStudentsActivityTagMaxHoursDailyForm::~ConstraintStudentsActivityTagMaxHoursDailyForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:karandit,项目名称:fet,代码行数:4,代码来源:constraintstudentsactivitytagmaxhoursdailyform.cpp


示例10: saveFETDialogGeometry

AddConstraintStudentsSetMaxGapsPerWeekForm::~AddConstraintStudentsSetMaxGapsPerWeekForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:4,代码来源:addconstraintstudentssetmaxgapsperweekform.cpp


示例11: saveFETDialogGeometry

ConstraintTeacherMaxHoursDailyForm::~ConstraintTeacherMaxHoursDailyForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:karandit,项目名称:fet,代码行数:4,代码来源:constraintteachermaxhoursdailyform.cpp


示例12: saveFETDialogGeometry

AddConstraintStudentsSetHomeRoomsForm::~AddConstraintStudentsSetHomeRoomsForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:4,代码来源:addconstraintstudentssethomeroomsform.cpp


示例13: saveFETDialogGeometry

ModifyConstraintTeachersMaxSpanPerDayForm::~ModifyConstraintTeachersMaxSpanPerDayForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:karandit,项目名称:fet,代码行数:4,代码来源:modifyconstraintteachersmaxspanperdayform.cpp


示例14: saveFETDialogGeometry

AddConstraintStudentsSetEarlyMaxBeginningsAtSecondHourForm::~AddConstraintStudentsSetEarlyMaxBeginningsAtSecondHourForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:vanyog,项目名称:FET,代码行数:4,代码来源:addconstraintstudentssetearlymaxbeginningsatsecondhourform.cpp


示例15: saveFETDialogGeometry

AddConstraintStudentsSetMaxSpanPerDayForm::~AddConstraintStudentsSetMaxSpanPerDayForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:karandit,项目名称:fet,代码行数:4,代码来源:addconstraintstudentssetmaxspanperdayform.cpp


示例16: saveFETDialogGeometry

ChangeMinDaysSelectivelyForm::~ChangeMinDaysSelectivelyForm()
{
	saveFETDialogGeometry(this);

}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:5,代码来源:changemindaysselectivelyform.cpp


示例17: saveFETDialogGeometry

AdvancedFilterForm::~AdvancedFilterForm()
{
	saveFETDialogGeometry(this, atts);
}
开发者ID:karandit,项目名称:fet,代码行数:4,代码来源:advancedfilterform.cpp


示例18: saveFETDialogGeometry

AddConstraintTeacherIntervalMaxDaysPerWeekForm::~AddConstraintTeacherIntervalMaxDaysPerWeekForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:karandit,项目名称:fet,代码行数:4,代码来源:addconstraintteacherintervalmaxdaysperweekform.cpp


示例19: saveFETDialogGeometry

ModifyConstraintActivityPreferredRoomsForm::~ModifyConstraintActivityPreferredRoomsForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:4,代码来源:modifyconstraintactivitypreferredroomsform.cpp


示例20: saveFETDialogGeometry

AddConstraintSubjectActivityTagPreferredRoomsForm::~AddConstraintSubjectActivityTagPreferredRoomsForm()
{
	saveFETDialogGeometry(this);
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:4,代码来源:addconstraintsubjectactivitytagpreferredroomsform.cpp



注:本文中的saveFETDialogGeometry函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ saveFile函数代码示例发布时间:2022-05-30
下一篇:
C++ saveData函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap