示例#1
0
//////////////////////////////////////////////////////////////////////////
// Event handler for save button
void StuAppFormUI::on_saveButton(const Glib::ustring& data) {
  if (validEntries()) {
    manager->overwriteInfo( app,
                            nameEntry.get_text(),
                            surnameEntry.get_text(),
                            emailEntry.get_text() + emailCombo.get_active_text(),
                            majorCombo.get_active_text(),
                            Tools::stringToInt(yearEntry.get_text()),
                            Tools::stringToFloat(cgpaEntry.get_text()),
                            Tools::stringToFloat(mgpaEntry.get_text()) );

    SelectEditUI* selectEditWin = new SelectEditUI(manager, 0, app->getAppNum());
    selectEditWin->show();
    delete this;
  }
}
示例#2
0
//////////////////////////////////////////////////////////////////////////
// Event handler for the next button
void SelectAppUI::on_nextButton(const Glib::ustring& data){
  // Do not do anything if there are no pending applications
  if (list.get_text(list.get_selected()[0],0) == "There are no pending applications")
    return;
  if (list.get_text(list.get_selected()[0],0) == "There are no applications that meet the criteria")
    return;
if (list.get_text(list.get_selected()[0],0) == "There are no applications")
    return;
if (list.get_text(list.get_selected()[0],0) == "")
    return;

  SelectEditUI* selectEditWin
    = new SelectEditUI(manager, stuType, Tools::stringToInt(list.get_text(list.get_selected()[0],0)), beingViewed);
  selectEditWin->show();
  delete this;
}
示例#3
0
//////////////////////////////////////////////////////////////////////////
// Event handler for cancel button
void StuAppFormUI::on_cancelButton(const Glib::ustring& data) {
  SelectEditUI* selectEditWin = new SelectEditUI(manager, 0, app->getAppNum());
  selectEditWin->show();
  delete this;
}