本文整理汇总了C++中constraintChanged函数的典型用法代码示例。如果您正苦于以下问题:C++ constraintChanged函数的具体用法?C++ constraintChanged怎么用?C++ constraintChanged使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了constraintChanged函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: QDialog
ModifyConstraintTwoActivitiesConsecutiveForm::ModifyConstraintTwoActivitiesConsecutiveForm(QWidget* parent, ConstraintTwoActivitiesConsecutive* ctr): QDialog(parent)
{
setupUi(this);
okPushButton->setDefault(true);
connect(okPushButton, SIGNAL(clicked()), this, SLOT(ok()));
connect(cancelPushButton, SIGNAL(clicked()), this, SLOT(cancel()));
connect(swapPushButton, SIGNAL(clicked()), this, SLOT(swap()));
centerWidgetOnScreen(this);
restoreFETDialogGeometry(this);
QSize tmp5=firstActivitiesComboBox->minimumSizeHint();
Q_UNUSED(tmp5);
QSize tmp6=secondActivitiesComboBox->minimumSizeHint();
Q_UNUSED(tmp6);
firstActivitiesComboBox->setMaximumWidth(maxRecommendedWidth(this));
secondActivitiesComboBox->setMaximumWidth(maxRecommendedWidth(this));
this->_ctr=ctr;
weightLineEdit->setText(CustomFETString::number(ctr->weightPercentage));
updateActivitiesComboBox();
constraintChanged();
}
开发者ID:karandit,项目名称:fet,代码行数:30,代码来源:modifyconstrainttwoactivitiesconsecutiveform.cpp
示例2: QDialog
AddConstraintStudentsSetEarlyMaxBeginningsAtSecondHourForm::AddConstraintStudentsSetEarlyMaxBeginningsAtSecondHourForm(QWidget* parent): QDialog(parent)
{
setupUi(this);
addConstraintPushButton->setDefault(true);
connect(addConstraintPushButton, SIGNAL(clicked()), this, SLOT(addCurrentConstraint()));
connect(closePushButton, SIGNAL(clicked()), this, SLOT(close()));
centerWidgetOnScreen(this);
restoreFETDialogGeometry(this);
QSize tmp2=studentsComboBox->minimumSizeHint();
Q_UNUSED(tmp2);
studentsComboBox->clear();
for(int i=0; i<gt.rules.yearsList.size(); i++){
StudentsYear* sty=gt.rules.yearsList[i];
studentsComboBox->addItem(sty->name);
for(int j=0; j<sty->groupsList.size(); j++){
StudentsGroup* stg=sty->groupsList[j];
studentsComboBox->addItem(stg->name);
if(SHOW_SUBGROUPS_IN_COMBO_BOXES) for(int k=0; k<stg->subgroupsList.size(); k++){
StudentsSubgroup* sts=stg->subgroupsList[k];
studentsComboBox->addItem(sts->name);
}
}
}
maxBeginningsSpinBox->setMinimum(0);
maxBeginningsSpinBox->setMaximum(gt.rules.nDaysPerWeek);
maxBeginningsSpinBox->setValue(0);
constraintChanged();
}
开发者ID:vanyog,项目名称:FET,代码行数:35,代码来源:addconstraintstudentssetearlymaxbeginningsatsecondhourform.cpp
示例3: assert
void ModifyConstraintStudentsSetMaxGapsPerDayForm::updateStudentsComboBox(){
studentsComboBox->clear();
int i=0, j=-1;
for(int m=0; m<gt.rules.yearsList.size(); m++){
StudentsYear* sty=gt.rules.yearsList[m];
studentsComboBox->addItem(sty->name);
if(sty->name==this->_ctr->students)
j=i;
i++;
for(int n=0; n<sty->groupsList.size(); n++){
StudentsGroup* stg=sty->groupsList[n];
studentsComboBox->addItem(stg->name);
if(stg->name==this->_ctr->students)
j=i;
i++;
for(int p=0; p<stg->subgroupsList.size(); p++){
StudentsSubgroup* sts=stg->subgroupsList[p];
studentsComboBox->addItem(sts->name);
if(sts->name==this->_ctr->students)
j=i;
i++;
}
}
}
assert(j>=0);
studentsComboBox->setCurrentIndex(j);
constraintChanged();
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:29,代码来源:modifyconstraintstudentssetmaxgapsperdayform.cpp
示例4: constraintChanged
void AddConstraintTeacherIntervalMaxDaysPerWeekForm::updateTeachersComboBox(){
teachersComboBox->clear();
for(int i=0; i<gt.rules.teachersList.size(); i++){
Teacher* tch=gt.rules.teachersList[i];
teachersComboBox->addItem(tch->name);
}
constraintChanged();
}
开发者ID:karandit,项目名称:fet,代码行数:9,代码来源:addconstraintteacherintervalmaxdaysperweekform.cpp
示例5: constraintChanged
void ConstraintActivitiesSameStartingTimeForm::refreshConstraintsListWidget()
{
this->visibleConstraintsList.clear();
constraintsListWidget->clear();
for(int i=0; i<gt.rules.timeConstraintsList.size(); i++){
TimeConstraint* ctr=gt.rules.timeConstraintsList[i];
if(filterOk(ctr)){
QString s;
s=ctr->getDescription(gt.rules);
visibleConstraintsList.append(ctr);
constraintsListWidget->addItem(s);
}
}
if(constraintsListWidget->count()>0){
constraintsListWidget->setCurrentRow(0);
constraintChanged(constraintsListWidget->currentRow());
}
else
constraintChanged(-1);
}
开发者ID:vanyog,项目名称:FET,代码行数:21,代码来源:constraintactivitiessamestartingtimeform.cpp
示例6: assert
void ModifyConstraintStudentsSetActivityTagMaxHoursDailyForm::updateActivityTagsComboBox()
{
activityTagsComboBox->clear();
int j=-1;
for(int i=0; i<gt.rules.activityTagsList.count(); i++){
ActivityTag* at=gt.rules.activityTagsList.at(i);
activityTagsComboBox->addItem(at->name);
if(at->name==this->_ctr->activityTagName)
j=i;
}
assert(j>=0);
activityTagsComboBox->setCurrentIndex(j);
constraintChanged();
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:15,代码来源:modifyconstraintstudentssetactivitytagmaxhoursdailyform.cpp
示例7: constraintChanged
void AddConstraintStudentsSetIntervalMaxDaysPerWeekForm::updateStudentsComboBox()
{
studentsComboBox->clear();
for(int i=0; i<gt.rules.yearsList.size(); i++){
StudentsYear* sty=gt.rules.yearsList[i];
studentsComboBox->addItem(sty->name);
for(int j=0; j<sty->groupsList.size(); j++){
StudentsGroup* stg=sty->groupsList[j];
studentsComboBox->addItem(stg->name);
if(SHOW_SUBGROUPS_IN_COMBO_BOXES) for(int k=0; k<stg->subgroupsList.size(); k++){
StudentsSubgroup* sts=stg->subgroupsList[k];
studentsComboBox->addItem(sts->name);
}
}
}
constraintChanged();
}
开发者ID:vanyog,项目名称:FET,代码行数:18,代码来源:addconstraintstudentssetintervalmaxdaysperweekform.cpp
示例8: constraintChanged
void AddConstraintStudentsSetMaxGapsPerWeekForm::updateStudentsSetComboBox()
{
studentsComboBox->clear();
for(int i=0; i<gt.rules.yearsList.size(); i++){
StudentsYear* sty=gt.rules.yearsList[i];
studentsComboBox->addItem(sty->name);
for(int j=0; j<sty->groupsList.size(); j++){
StudentsGroup* stg=sty->groupsList[j];
studentsComboBox->addItem(stg->name);
for(int k=0; k<stg->subgroupsList.size(); k++){
StudentsSubgroup* sts=stg->subgroupsList[k];
studentsComboBox->addItem(sts->name);
}
}
}
constraintChanged();
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:18,代码来源:addconstraintstudentssetmaxgapsperweekform.cpp
示例9: QDialog
AddConstraintTeachersMinRestingHoursForm::AddConstraintTeachersMinRestingHoursForm(QWidget* parent): QDialog(parent)
{
setupUi(this);
addConstraintPushButton->setDefault(true);
connect(addConstraintPushButton, SIGNAL(clicked()), this, SLOT(addCurrentConstraint()));
connect(closePushButton, SIGNAL(clicked()), this, SLOT(close()));
centerWidgetOnScreen(this);
restoreFETDialogGeometry(this);
circularCheckBox->setChecked(true);
minRestingHoursSpinBox->setMinimum(1);
minRestingHoursSpinBox->setMaximum(gt.rules.nHoursPerDay);
minRestingHoursSpinBox->setValue(1);
constraintChanged();
}
开发者ID:karandit,项目名称:fet,代码行数:20,代码来源:addconstraintteachersminrestinghoursform.cpp
示例10: constraintChanged
void AddConstraintTwoActivitiesOrderedForm::updateActivitiesComboBox(){
firstActivitiesComboBox->clear();
firstActivitiesList.clear();
secondActivitiesComboBox->clear();
secondActivitiesList.clear();
for(int i=0; i<gt.rules.activitiesList.size(); i++){
Activity* act=gt.rules.activitiesList[i];
if(filterOk(act)){
firstActivitiesComboBox->addItem(act->getDescription(gt.rules));
this->firstActivitiesList.append(act->id);
secondActivitiesComboBox->addItem(act->getDescription(gt.rules));
this->secondActivitiesList.append(act->id);
}
}
constraintChanged();
}
开发者ID:RaminNietzsche,项目名称:POSFET,代码行数:21,代码来源:addconstrainttwoactivitiesorderedform.cpp
示例11: QDialog
AddConstraintStudentsSetMaxSpanPerDayForm::AddConstraintStudentsSetMaxSpanPerDayForm(QWidget* parent): QDialog(parent)
{
setupUi(this);
addConstraintPushButton->setDefault(true);
connect(addConstraintPushButton, SIGNAL(clicked()), this, SLOT(addCurrentConstraint()));
connect(closePushButton, SIGNAL(clicked()), this, SLOT(close()));
centerWidgetOnScreen(this);
restoreFETDialogGeometry(this);
QSize tmp2=studentsComboBox->minimumSizeHint();
Q_UNUSED(tmp2);
maxSpanSpinBox->setMinimum(1);
maxSpanSpinBox->setMaximum(gt.rules.nHoursPerDay);
maxSpanSpinBox->setValue(gt.rules.nHoursPerDay);
updateStudentsSetComboBox();
constraintChanged();
}
开发者ID:karandit,项目名称:fet,代码行数:23,代码来源:addconstraintstudentssetmaxspanperdayform.cpp
注:本文中的constraintChanged函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论