Public Types |
| enum | PlaybackEnum { ReplayPlayback,
SavegamePlayback
} |
Public Member Functions |
| | Ui () |
| | ~Ui () |
| ChatPanel * | GetActiveChatPanel () |
| ChatPanel * | GetChannelChatPanel (const wxString &channel) |
| bool | ExecuteSayCommand (const wxString &cmd) |
| void | ConsoleHelp (const wxString &topic) |
| void | ShowMainWindow () |
| | Shows the main window on screen.
|
| void | ShowConnectWindow () |
| | Show the connect window on screen.
|
| void | Connect () |
| | Connects to default server or opens the ConnectWindow.
|
| void | Disconnect () |
| void | Reconnect () |
| void | DoConnect (const wxString &servername, const wxString &username, const wxString &password) |
| | Opens the accutial connection to a server.
|
| void | AddServerWindow (const wxString &servername) |
| void | ReopenServerTab () |
| void | ConnectionFailurePrompt () |
| wxString | GetNextServer () |
| bool | DoRegister (const wxString &servername, const wxString &username, const wxString &password, wxString &reason) |
| bool | IsConnecting () const |
| bool | IsConnected () const |
| void | JoinChannel (const wxString &name, const wxString &password) |
| bool | IsSpringCompatible () |
| bool | IsSpringRunning () const |
| void | Quit () |
| | Quits the entire application.
|
| void | DownloadMap (const wxString &hash, const wxString &name) |
| void | DownloadMod (const wxString &hash, const wxString &name) |
| bool | Ask (const wxString &heading, const wxString &question) const |
| | Display a dialog asking a question with OK and Canel buttons.
|
| bool | AskText (const wxString &heading, const wxString &question, wxString &answer, long style=wxOK|wxCANCEL|wxCENTRE) |
| bool | AskPassword (const wxString &heading, const wxString &message, wxString &password) |
| | cannot be const because parent window cannot be const
|
| void | ShowMessage (const wxString &heading, const wxString &message) const |
| MainWindow & | mw () |
| const MainWindow & | mw () const |
| bool | IsMainWindowCreated () const |
| void | OnUpdate (int mselapsed) |
| void | OnConnected (Server &server, const wxString &server_name, const wxString &server_ver, bool supported) |
| | Called when connected to a server.
|
| void | OnLoggedIn () |
| void | OnDisconnected (Server &server, bool wasonline) |
| void | OnJoinedChannelSuccessful (Channel &chan) |
| | Called when client has joined a channel.
|
| void | OnJoinedChannelSuccessful (Channel &chan, bool focusTab) |
| void | OnUserJoinedChannel (Channel &chan, User &user) |
| void | OnChannelJoin (Channel &chan, User &user) |
| void | OnUserLeftChannel (Channel &chan, User &user, const wxString &reason) |
| void | OnChannelTopic (Channel &channel, const wxString &user, const wxString &topic) |
| void | OnChannelSaid (Channel &channel, User &user, const wxString &message) |
| | Called when something is said in a channel.
|
| void | OnChannelDidAction (Channel &channel, User &user, const wxString &action) |
| void | OnChannelMessage (const wxString &channel, const wxString &msg) |
| void | OnLeaveChannel (wxString &name) |
| | this was used when channel was left via raw command in server tab, now it's not used by anything
|
| void | OnChannelList (const wxString &channel, const int &numusers) |
| void | OnUserOnline (User &user) |
| void | OnUserOffline (User &user) |
| void | OnUserStatusChanged (User &user) |
| void | OnUserSaid (User &user, const wxString &message, bool me=false) |
| void | OnUserSaidEx (User &user, const wxString &action, bool me=false) |
| void | OnUnknownCommand (Server &server, const wxString &command, const wxString ¶ms) |
| void | OnMotd (Server &server, const wxString &message) |
| void | OnServerBroadcast (Server &server, const wxString &message) |
| void | OnServerMessage (Server &server, const wxString &message) |
| void | OnBattleOpened (IBattle &battle) |
| void | OnBattleClosed (IBattle &battle) |
| void | OnUserJoinedBattle (IBattle &battle, User &user) |
| void | OnUserLeftBattle (IBattle &battle, User &user, bool isbot) |
| void | OnBattleInfoUpdated (BattleEvents::BattleEventData data) |
| void | OnBattleStarted (Battle &battle) |
| void | OnJoinedBattle (Battle &battle) |
| void | OnHostedBattle (Battle &battle) |
| void | OnUserBattleStatus (IBattle &battle, User &user) |
| void | OnRequestBattleStatus (IBattle &battle) |
| void | OnSaidBattle (IBattle &battle, const wxString &nick, const wxString &msg) |
| void | OnSpringStarting () |
| void | OnSpringTerminated (long exit_code) |
| void | OnAcceptAgreement (const wxString &agreement) |
| void | OnMainWindowDestruct () |
| void | OnRing (const wxString &from) |
| bool | OnPresetRequiringMap (const wxString &mapname) |
| | ask to download missing map, return true if download attempted
|
| bool | IsThisMe (User &other) const |
| bool | IsThisMe (User *other) const |
| bool | IsThisMe (const wxString &other) const |
| int | TestHostPort (unsigned int port) const |
| void | ReloadPresetList () |
| void | OpenFileInEditor (const wxString &filepath) |
| void | FirstRunWelcome () |
| | the welcome box, should be called in all code paths directly after MainWindow might be shown for the first time
|
| void | CheckForUpdates () |
Protected Member Functions |
| void | DownloadFileP2P (const wxString &name) |
| | does actual work, called from downloadmap/mod
|
| void | DownloadFileWebsite (const wxString &name) |
Protected Attributes |
| Server * | m_serv |
| MainWindow * | m_main_win |
| ConnectWindow * | m_con_win |
| wxTimer | m_reconnect_delay_timer |
| ReconnectDialog * | m_reconnect_dialog |
| wxString | m_last_used_backup_server |
| unsigned int | m_upd_counter_torrent |
| bool | m_first_update_trigger |
| bool | m_ingame |
| bool | m_recconecting_wait |
EventReceiverFunc< Ui,
BattleEvents::BattleEventData,&Ui::OnBattleInfoUpdated > | m_battle_info_updatedSink |
UI main class.