本文整理汇总了C++中saveFETDialogGeometry函数的典型用法代码示例。如果您正苦于以下问题:C++ saveFETDialogGeometry函数的具体用法?C++ saveFETDialogGeometry怎么用?C++ saveFETDialogGeometry使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了saveFETDialogGeometry函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例2: saveFETDialogGeometry
SubjectsForm::~SubjectsForm()
{
saveFETDialogGeometry(this);
//save splitter state
QSettings settings(COMPANY, PROGRAM);
settings.setValue(this->metaObject()->className()+QString("/splitter-state"), splitter->saveState());
}
示例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);
}
示例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(>.rules);
subjectChanged(ind);
}
}
示例5: saveFETDialogGeometry
ConstraintSubactivitiesPreferredStartingTimesForm::~ConstraintSubactivitiesPreferredStartingTimesForm()
{
saveFETDialogGeometry(this);
}
示例6: saveFETDialogGeometry
ConstraintStudentsMaxHoursContinuouslyForm::~ConstraintStudentsMaxHoursContinuouslyForm()
{
saveFETDialogGeometry(this);
}
示例7: saveFETDialogGeometry
ConstraintStudentsSetIntervalMaxDaysPerWeekForm::~ConstraintStudentsSetIntervalMaxDaysPerWeekForm()
{
saveFETDialogGeometry(this);
}
示例8: saveFETDialogGeometry
ModifyStudentsGroupForm::~ModifyStudentsGroupForm()
{
saveFETDialogGeometry(this);
}
示例9: saveFETDialogGeometry
ConstraintStudentsActivityTagMaxHoursDailyForm::~ConstraintStudentsActivityTagMaxHoursDailyForm()
{
saveFETDialogGeometry(this);
}
示例10: saveFETDialogGeometry
AddConstraintStudentsSetMaxGapsPerWeekForm::~AddConstraintStudentsSetMaxGapsPerWeekForm()
{
saveFETDialogGeometry(this);
}
示例11: saveFETDialogGeometry
ConstraintTeacherMaxHoursDailyForm::~ConstraintTeacherMaxHoursDailyForm()
{
saveFETDialogGeometry(this);
}
示例12: saveFETDialogGeometry
AddConstraintStudentsSetHomeRoomsForm::~AddConstraintStudentsSetHomeRoomsForm()
{
saveFETDialogGeometry(this);
}
示例13: saveFETDialogGeometry
ModifyConstraintTeachersMaxSpanPerDayForm::~ModifyConstraintTeachersMaxSpanPerDayForm()
{
saveFETDialogGeometry(this);
}
示例14: saveFETDialogGeometry
AddConstraintStudentsSetEarlyMaxBeginningsAtSecondHourForm::~AddConstraintStudentsSetEarlyMaxBeginningsAtSecondHourForm()
{
saveFETDialogGeometry(this);
}
示例15: saveFETDialogGeometry
AddConstraintStudentsSetMaxSpanPerDayForm::~AddConstraintStudentsSetMaxSpanPerDayForm()
{
saveFETDialogGeometry(this);
}