/* * Setup the Certificate Dimensions Text */ void Config::decideCert1( ) { QString previous=cert1; cert1=sender()->objectName(); cert1.chop(3); if(!(previous==cert1)) { if(cert1.startsWith("b")) { type1=BONAFIDE; paperLabel->setText("A5 Sheet(Land Scape) DIMENSIONS: 210 MM X 148 MM"); } else if(cert1.startsWith("c")) { type1=CONDUCT; paperLabel->setText("A5 Sheet(Land Scape) DIMENSIONS: 210 MM X 148 MM"); } else { type1=TC; paperLabel->setText("A4 Sheet(Portrait) DIMENSIONS: 210 MM X 297 MM"); } insertFields(); } }
void Builder::resize(size_t fieldsCount) { if(fields_.size() > fieldsCount) { removeFields(fieldsCount); } else if(fields_.size() < fieldsCount) { insertFields(fieldsCount); } }
/* * Set up Print Settings */ void Config::preparePrintSettings() { //this fuction is only called once flag[0]=true; //Initializing type1 and cert1 type1=BONAFIDE; cert1="bonafide"; fields[0]<<"Serial No"<<"Date"<<"Student's Name"<<"Relation (S/o, D/o)"<<"Father's Name"<<"Roll Number" <<"Course Details"<<"From Year"<<"To Year"<<"Purpose Text"<<"Purpose"; fields[1]<<"Serial No"<<"Date"<<"Student's Name"<<"Relation (S/o, D/o)"<<"Father's Name"<<"Roll Number" <<"Course Details"<<"Academic Year"; fields[2]<<"Serial No"<<"Certificate Type(Original or Duplicate)"<<"Roll Number"<<"Admission Number"<<"Date" <<"Student's Name"<<"Father's Name"<<"Date Of Birth"<<"Date Of Admission"<<"Course"<<"Branch" <<"Date Of Leaving"<<"Qualified"<<"Dues"<<"Disciplinary Measures" <<"Conduct"<<"Community"<<"Remarks"; paperLabel->setText("A5 Sheet(Land Scape) DIMENSIONS: 210 MM X 148 MM"); insertFields(); }