tify"> # include "ui_managerwindow.h" :: ManagerWindow (QWidget * parent): (parent), (new Ui :: ManagerWindow)
{> setupUi (this); = 0; players ("C: Users Oleksiy Documents players.txt"); (players.open (QIODevice :: ReadOnly))
{= stream.readLine ();> playersTableWidget-> setItem (playerNum, 0, new QTableWidgetItem (playerName));
+ + playerNum;
}
}. close (); judges ("C: Users Oleksiy Documents judges.txt"); (judges.open (QIODevice :: ReadOnly) = 0; (! Stream.atEnd ())
{= stream.readLine ();> judgesTableWidget-> setItem (judgeNum, 0, new QTableWidgetItem (judgeName)); = stream.readLine ();> judgesTableWidget-> setItem ( judgeNum, 1, new QTableWidgetItem (judgeAge)); = stream.readLine ();> judgesTableWidget-> setItem (judgeNum, 2, new QTableWidgetItem (judgePhone));
+ + judgeNum;
}
}. close (); tours ("C: Users Oleksiy Documents tours.txt"); (tours.open (QIODevice :: ReadOnly)) {stream (& tours ); = stream.readLine ();> tourNameInfo-> setText (tourName); = stream.readLine ();> cityNameInfo-> setText (tourCity); = stream.readLine ();> clubNameInfo-> ; setText (tourClub); = stream.readLine ();> dateStart-> setText (tourDateStart); = stream.readLine ();> dateEnd-> setText (tourDateEnd); = stream.readLine ();> ; hotelNameInfo-> setText (tourHotel); = stream.readLine ();> fundAmountInfo-> setText (tourFund); = stream.readLine ();> drawType-> setText (tourType);
}. close ();
} :: ~ ManagerWindow () {ui;
jdgComboBox-> currentText ()));
+ + currMatchIndex;
tourNameInfo-> setText (ui-> tourNameEdit-> text ()); < tourNameEdit-> ; text () <<' n';> cityNameInfo-> setText (ui-> cityNameEdit-> text ()); < cityNameEdit-> text () < ; <' n';> clubNameInfo-> setText (ui-> clubComboBox-> currentText ()); < clubComboBox-> currentText () <<' n ';> dateStart-> setText (ui-> dateStartEdit-> text ()); < dateStartEdit-> text () <<' n ';> dateEnd-> setText (ui-> dateEndEdit-> text ()); < dateEndEdit-> text () <<' n';> hotelNameInfo-> setText (ui-> hotelComboBox-> currentText ()); < hotelComboBox-> currentText () <<' n';> fundAmountInfo-> setText (ui-> fundEdit-> text ()); < fundEdit-> text () <<' n';> drawType-> setText (ui-> drawTypeComboBox-> currentText ()); < drawTypeComboBox-> currentText () <<' n';
}. close ();
playersTableWidget-> item (0, 0) -> text () <<' n' ;> play...