void LoadSourceDialog::connect_listeners() { connect(local_button, SIGNAL(clicked()), this, SLOT(load_from_local())); connect(remote_button, SIGNAL(clicked()), this, SLOT(load_from_internet())); }
void player_data_menu(){ /*A Secondary Loop That is instantiated by selecting option 1 from the main menu This Gives Further Options for the users which relate to the Player Data Aspects of the Program such as loading and saving players. */ int input; do{ cout << "===== This is The Player Data Menu ===== " << endl; cout << "1.) Create New Player " << endl; cout << "2.) Save Current Player to Local" << endl; cout << "3.) Load Player From Local " << endl; cout << "4.) Save All to File " << endl; cout << "5.) Load All From File" << endl; cout << "6.) Delete From Local " << endl; cout << "7.) Display Current Player " << endl; cout << "8.) Display All Local Saves " << endl; cout << "9.) Edit Current Player Data " << endl; cout << "10.) Return To Main Menu " << endl; cout << endl; cout << "Menu Input: "; cin >> input; cout << endl; //The Redirection Options for each selection to their relevant functions if(input == 1){ create_new_player(); } else if(input == 2){ save_to_local(); } else if(input == 3){ load_from_local(); } else if(input == 4){ save_to_file(); } else if(input == 5){ load_from_file(); } else if(input == 6){ delete_local_player(); } else if(input == 7){ display_current_player(); } else if(input == 8){ display_all_local(); } else if(input == 9){ edit_current_data(); } }while(input != 10); cout << "Returning to Main Menu " << endl << endl; };