final ports and first fixes
This commit is contained in:
1 parent
77690cbd96
commit
6f3556009a
23 files changed
+2302
-41
No files matched your search
+8
-10
@@ -35,18 +35,17 @@
|
||||
|
||||
namespace Cevo {
|
||||
|
||||
class StartDlg;
|
||||
|
||||
// Equivalent of Direct.pas's TDirectDlg: the small "busy/progress" splash
|
||||
// dialog shown while the game engine starts up, loads a save/map file, or
|
||||
// hands control over between clients - and the application's actual entry
|
||||
// point (OnGo parses the command line and kicks everything off). Like
|
||||
// Back.pas, the .lfm has no child controls, so no .ui file is used here.
|
||||
//
|
||||
// Start.pas/LocalPlayer.pas/NoTerm.pas/NetworkServer.pas/NetworkClient.pas
|
||||
// are not ported - every place the original reaches into StartDlg or
|
||||
// assigns a special brain's in-process Client function pointer is a
|
||||
// disclosed, clearly-marked gap (see the .cpp). setStartDlg()/
|
||||
// setBackground() let the eventual Start.pas port plug itself in, the same
|
||||
// decoupling already used by Back.pas's setAnchor().
|
||||
// NetworkServer.pas/NetworkClient.pas are not ported (their client entry
|
||||
// points are a marked gap in the .cpp). The start screen plugs in through
|
||||
// setStartDlg(), the same decoupling used by Back.pas's setAnchor().
|
||||
class DirectDlg : public DrawDlg {
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -56,9 +55,8 @@ public:
|
||||
// DlgNotify) - pass this to GameServer::init().
|
||||
void dlgNotify(GameServer::NotifyId id, int index = 0);
|
||||
|
||||
// Not-yet-ported Start.pas decoupling (see class comment).
|
||||
void setStartDlg(QWidget *dlg) { m_startDlg = dlg; }
|
||||
void setBackground(QWidget *background) { m_background = background; }
|
||||
// Start.pas decoupling: the start screen and, through it, the background window.
|
||||
void setStartDlg(StartDlg *dlg);
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent *event) override;
|
||||
@@ -70,7 +68,7 @@ private:
|
||||
void setInfo(const QString &text);
|
||||
void setState(int value);
|
||||
|
||||
QWidget *m_startDlg = nullptr;
|
||||
StartDlg *m_startDlg = nullptr;
|
||||
QWidget *m_background = nullptr;
|
||||
|
||||
QString m_info;
|
||||
|
||||
Reference in new issue
Block a user