void FontOutputFrame::createfont_click () { if(ui->msb_radiobtn->isChecked()) { this->font_config->setLSB(false); }else { this->font_config->setLSB(true); } FontCreator creater(this,this->font_config); connect(&creater, &FontCreator::progress, this, & FontOutputFrame::progress); creater.start(); }
void main() { int choice; char ch; do { cout<<"\n\t~~~~~~~~~~~~~~~~~~~~WELCOME TO INDIAN RAILWAY ~~~~~~~~~"<<endl; cout<<"\n\t\tEnter 1: To create a record"; cout<<"\n\t\tEnter 2: To display a record"; cout<<"\n\t\tEnter 3: To add a record"; cout<<"\n\t\tEnter 4: To modify a record"; cout<<"\n\t\tEnter 5: To delete a record"; cout<<"\n\t\tEnter 6: To exit "<<endl<<endl; cout<<"\n ENTER YOUR CHOICE: "; cin>>choice; switch(choice) { //******************************************************* // CASE : 1 // DETAIL : TO CREATE A TRAIN'S RECORD // ****************************************************** case 1: creater(); getch(); break; //********************************************************* // CASE : 2 // DETAILS : TO DISPLAY A TRAIN'S RECORD //********************************************************* case 2: display(); getch(); break; //*************************************************** // CASE : 3 // DETAILS : TO ADD A TRAIN'S RECORD //*************************************************** case 3: add(); getch(); break; //********************************************************** // CASE : 4 // DETAILS : TO MODIFY A TRAIN'S RECORD //********************************************************** case 4: modify(); getch(); break; //******************************************************** // CASE : 5 // DETAILS : TO DELETE A TRAIN'S RECORD //********************************************************* case 5: deletet(); getch(); break; //*************************************************** // CASE : 6 // DETAILS : TO EXIT //*************************************************** case 6 : exit(0) ; getch(); break; } cout<<"\n\nDo you wish to continue(y/n)"; cin>>ch; }while((ch=='y')||(ch=='Y')); }