void displayAdminItem(LinkedList<Item> *listOfItems, LinkedList<Club> *listOfClubs, LinkedList<User> *listOfUsers) { int choice = 0; string junk; clearScreen(); displayLogo(); cout << setw(36) << right << "Administrator Item Menu:\n\n\n"; cout << setw(12) << right << "1.) " << left << "Show In Items\n"; cout << setw(12) << right << "2.) " << left << "Show Out Items\n"; cout << setw(12) << right << "3.) " << left << "Show All Items\n"; cout << setw(12) << right << "4.) " << left << "Add Item\n"; cout << setw(12) << right << "5.) " << left << "Remove Item\n"; cout << setw(12) << right << "6.) " << left << "Modify Item\n"; cout << setw(12) << right << "7.) " << left << "Return to Administrator Menu\n"; cout << setw(28) << right << "Please enter a choice: "; cin >> choice; getline(cin, junk); while ((choice < 1) || (choice > 7)) { cout << setw(28) << right << "Invalid... Enter choice: "; cin >> choice; getline(cin, junk); } switch (choice) { case 1: showInItems(listOfItems); break; case 2: showOutItems(listOfItems); break; case 3: showAllItems(listOfItems); break; case 4: addItem(listOfItems); break; case 5: removeItem(listOfItems); break; case 6: modifyItem(listOfItems); break; case 7: displayAdminMenu(listOfItems, listOfClubs, listOfUsers); return; } pause(); }
void PSP_FileManager :: refresh ( void ) { /*unsigned char _title[255]; memset( _title, 0 , 255 ); PSP_ChineseUtil::jis2cjk ( this->currentPathString.getChar_p_readonly() , _title ); setTitle ( _title ); */ restoreBackGround(); PSP_Window::showWindow(); showAllItems ( this->showfromFileIndex ); //drawTitle(); PSP_GRAPHICS::flipScreenBuffer(); sceDisplayWaitVblankStart(); }