////////////////////////////////////////////////////// // METHODS OF CLASS 'EMPLOYER' // ////////////////////////////////////////////////////// void Employer::Menu() { char choice; SplashScreen(1,FName); delay(2000); do { clrscr(); gotoxy(29,5); textcolor(12); cprintf("Please enter your option : "); textcolor(7); cout<<"\n\n\t\t\t[1] View employer profile\n\n\t\t\t[2] Edit profile\n\n\t\t\t[3] View applicant list \n\n\t\t\t[4] Applicant search\n\n\t\t\t[5] Logout\n\n\t\t\t[6] Exit"; DrawBorder(23,3,55,19,0); gotoxy(29,21); cin>>choice; cin.ignore(); switch (choice) { case '1' : clrscr(); ViewProfile(); break; case '2' : cout<<"Taking you to profile...."; delay(500); clrscr(); ViewProfile(); break; case '3' : clrscr(); ListApplicants(); break; case '4' : clrscr(); SearchApplicants(); break; case '5' : break; case '6' : SplashScreen(2,NULL); default : error(1); break; } } while (choice!='5'); }
////////////////////////////////////////////////////// // METHODS OF CLASS 'APPLICANT' // ////////////////////////////////////////////////////// void Applicant::Menu() { char choice; SplashScreen(1,FName); delay(4000); do { clrscr(); gotoxy(29,4); textcolor(12); cprintf("Please enter your option : "); textcolor(7); cout<<"\n\n\t[1] View Profile \n\n\t[2] Edit Profile \n\n\t[3] View Employers \n\n\t[4] Logout\n\n\t[5] Exit\n"; DrawBorder(6,2,73,18,0); gotoxy(29,17); cin>>choice; cin.ignore(); switch (choice) { case '1': clrscr(); ViewProfile(); break; case '2': cout<<"Taking you to profle ........"; delay(500); clrscr(); ViewProfile(); case '3': clrscr(); ListEmployers(); break; case '4': break; case '5': SplashScreen(2,NULL); default : error(1); } } while(choice!='4'); }
//--------------------------------- //------------METODI---------------- //---------------------------------- void LinQedInClientView::initView() { //allocamento dei campi dati nello heap tabWidget = new QTabWidget(this); thisLayout = new QVBoxLayout(); //config tabWidget tabWidget->addTab(BaseInfTab,"Informazioni"); tabWidget->addTab(NetworkTab,"Amici"); tabWidget->addTab(SearchTab,"Cerca"); //config thisLayout thisLayout->addWidget(tabWidget); //config this this->setWindowTitle(tr("LinQedInClient")); this->setLayout(thisLayout); this->setMinimumSize(850,650); //CONNECT //config TAB BaseInformation connect(BaseInfTab,SIGNAL(SaveBtnClicked(UserBaseInformations*)),this,SIGNAL(BaseInfChanged(UserBaseInformations*))); connect(BaseInfTab,SIGNAL(BaseInfAsked()),this,SIGNAL(BaseInfAsked())); //config TAB Network connect(NetworkTab,SIGNAL(RemoveFriendClicked(QString)),this,SIGNAL(FriendRemoved(QString))); connect(NetworkTab,SIGNAL(FriendsNetworkAsked()),this,SIGNAL(FriendsNetworkAsked())); //config SearchTab connect(SearchTab,SIGNAL(UserFormAsked()),this,SIGNAL(UserFormAsked())); connect(SearchTab,SIGNAL(Search(UserBaseInformations*)),this,SIGNAL(Search(UserBaseInformations*))); connect(SearchTab,SIGNAL(AddFriend(QString)),this,SIGNAL(FriendAdded(QString))); connect(NetworkTab,SIGNAL(ViewProfile(QString)),this,SIGNAL(ViewProfile(QString))); connect(SearchTab,SIGNAL(ViewProfile(QString)),this,SIGNAL(ViewProfile(QString))); }