QTfrontend/hwform.h
changeset 28 59f7db859b8a
parent 26 e32fa14529f8
child 31 99888245a4e8
equal deleted inserted replaced
27:c374fe590272 28:59f7db859b8a
    39 #include <QDir>
    39 #include <QDir>
    40 #include "ui_hwform.h"
    40 #include "ui_hwform.h"
    41 #include "binds.h"
    41 #include "binds.h"
    42 #include "game.h"
    42 #include "game.h"
    43 #include "team.h"
    43 #include "team.h"
       
    44 #include "netclient.h"
    44 
    45 
    45 class HWForm : public QMainWindow
    46 class HWForm : public QMainWindow
    46 {
    47 {
    47 	Q_OBJECT
    48 	Q_OBJECT
    48 
    49 
    57 	void GoToMain();
    58 	void GoToMain();
    58 	void GoToSinglePlayer();
    59 	void GoToSinglePlayer();
    59 	void GoToSetup();
    60 	void GoToSetup();
    60 	void GoToMultiplayer();
    61 	void GoToMultiplayer();
    61 	void GoToDemos();
    62 	void GoToDemos();
       
    63 	void GoToNet();
       
    64 	void GoToNetChat();
    62 	void NewTeam();
    65 	void NewTeam();
    63 	void EditTeam();
    66 	void EditTeam();
    64 	void TeamSave();
    67 	void TeamSave();
    65 	void TeamDiscard();
    68 	void TeamDiscard();
    66 	void SimpleGame();
    69 	void SimpleGame();
    67 	void SaveOptions();
    70 	void SaveOptions();
    68 	void PlayDemo();
    71 	void PlayDemo();
       
    72 	void NetConnect();
       
    73 	void NetDisconnect();
       
    74 	void AddGame(const QString & chan);
    69 
    75 
    70 public slots:
    76 public slots:
    71 	void CBGrave_activated(const QString & gravename);
    77 	void CBGrave_activated(const QString & gravename);
    72 	void CBFort_activated(const QString & gravename);
    78 	void CBFort_activated(const QString & gravename);
    73 
    79 
    74 private:
    80 private:
    75 	QLabel * LBind[BINDS_NUMBER];
    81 	QLabel * LBind[BINDS_NUMBER];
    76 	HWGame * game;
    82 	HWGame * game;
    77 	QDir cfgdir;
    83 	QDir cfgdir;
    78 	HWTeam * tmpTeam;
    84 	HWTeam * tmpTeam;
       
    85 	HWNet * hwnet;
    79 };
    86 };
    80 
    87 
    81 #define ID_PAGE_SINGLEPLAYER 0
    88 #define ID_PAGE_SINGLEPLAYER 0
    82 #define ID_PAGE_SETUP_TEAM 1
    89 #define ID_PAGE_SETUP_TEAM 1
    83 #define ID_PAGE_SETUP 2
    90 #define ID_PAGE_SETUP 2
    84 #define ID_PAGE_MULTIPLAYER 3
    91 #define ID_PAGE_MULTIPLAYER 3
    85 #define ID_PAGE_DEMOS 4
    92 #define ID_PAGE_DEMOS 4
    86 #define ID_PAGE_MAIN 5
    93 #define ID_PAGE_NET 5
       
    94 #define ID_PAGE_NETCHAT 6
       
    95 #define ID_PAGE_MAIN 7
    87 
    96 
    88 #endif
    97 #endif