ign="justify"> {(load!=0)
{ gt; difinMode (mode, pName [0], pName [1], load); gt; show (); gt; newGameWidget (); gt; close (); gt; close ( ); :: disconnect (PN, SIGNAL (PNSignal ()), MW, SLOT (newGameWidget ()));
} (! PN- gt; edit- gt; text (). isEmpty ())
{ gt; difinMode (mode, pName [0], pName [1], load); gt; show ();
gt; close (); gt; close (); gt; newGameWidget ();
}
}
StartWidget :: checkFile ()
{str=QApplication :: applicationDirPath () + /users/ raquo ;; :: disconnect (PN, SIGNAL (PNSignal ()), this, SLOT (checkFile ())); fileName =QFileDialog :: getOpenFileName (this, tr ( Відкрийте файл ), str, tr ( Save Files (* .xml) )); file; .setFileName (fileName); (file.exists ())
{ gt; close (); gt; show (); gt; path=fileName; gt; readFile (fileName); gt; close ();
}
} StartWidget :: Exit ()
{res=QMessageBox :: warning (this, Увага! raquo ;, tr ( Ви впевнені, що хочете вийти? ), QMessageBox :: Yes, QMessageBox :: No) ;
(res == QMessageBox :: Yes)
{(0);
}
} :: ~ StartWidget ()
{
}