#include <C4ConsoleGUI.h>
Classes | |
class | InternalState |
class | State |
Public Types | |
enum | InfoTextType { CONSOLE_Cursor , CONSOLE_FrameCounter , CONSOLE_TimeFPS } |
enum | Stage { STAGE_Start , STAGE_Intermediate , STAGE_End } |
enum | Cursor { CURSOR_Normal , CURSOR_Wait } |
enum | ClientOperation { CO_None , CO_Deactivate , CO_Activate , CO_Kick } |
enum | WindowKind { W_GuiWindow , W_Console , W_Viewport , W_Fullscreen , W_Control } |
Public Member Functions | |
C4ConsoleGUI () | |
~C4ConsoleGUI () override | |
void | Execute () |
void | AddViewport (C4ViewportWindow *cvp) |
void | RemoveViewport (C4ViewportWindow *cvp) |
void | OnObjectSelectionChanged (class C4EditCursorSelection &selection) |
bool | CreateNewScenario (StdStrBuf *out_filename, bool *out_host_as_network) |
void | OnStartGame () |
void | EnsureDefinitionListInitialized () |
void | CloseConsoleWindow () |
void | ClearPointers (class C4Object *obj) |
void | EditGraphControl (const class C4ControlEditGraph *control) |
void | SetCursor (Cursor cursor) |
void | RecordingEnabled () |
void | ShowAboutWithCopyright (StdStrBuf ©right) |
bool | UpdateModeCtrls (int iMode) |
void | AddNetMenu () |
void | ClearNetMenu () |
void | AddNetMenuItemForPlayer (int32_t client_id, const char *text, C4ConsoleGUI::ClientOperation co) |
void | ClearPlayerMenu () |
void | SetInputFunctions (std::list< const char * > &functions) |
bool | CreateConsoleWindow (C4AbstractApp *application) |
void | DeleteConsoleWindow () |
void | Out (const char *message) |
bool | ClearLog () |
void | DisplayInfoText (InfoTextType type, StdStrBuf &text) |
void | SetCaptionToFileName (const char *file_name) |
bool | FileSelect (StdStrBuf *sFilename, const char *szFilter, DWORD dwFlags, bool fSave) |
void | AddMenuItemForPlayer (C4Player *player, StdStrBuf &player_text) |
void | AddKickPlayerMenuItem (C4Player *player, StdStrBuf &player_text, bool enabled) |
void | ClearViewportMenu () |
bool | Message (const char *message, bool query) |
void | EnableControls (bool fEnable) |
void | DoEnableControls (bool fEnable) |
bool | UpdateHaltCtrls (bool fHalt) |
bool | DoUpdateHaltCtrls (bool fHalt) |
bool | PropertyDlgOpen () |
void | PropertyDlgClose () |
void | PropertyDlgUpdate (class C4EditCursorSelection &rSelection, bool force_function_update) |
bool | ToolsDlgOpen (class C4ToolsDlg *dlg) |
void | ToolsDlgClose () |
void | ToolsDlgInitMaterialCtrls (class C4ToolsDlg *dlg) |
void | ToolsDlgSelectTexture (C4ToolsDlg *dlg, const char *texture) |
void | ToolsDlgSelectMaterial (C4ToolsDlg *dlg, const char *material) |
void | ToolsDlgSelectBackTexture (C4ToolsDlg *dlg, const char *texture) |
void | ToolsDlgSelectBackMaterial (C4ToolsDlg *dlg, const char *material) |
virtual void | Clear () |
virtual void | Close ()=0 |
virtual void | CharIn (const char *) |
virtual bool | ReInit (C4AbstractApp *pApp) |
virtual void | EnumerateMultiSamples (std::vector< int > &samples, int min_expected=0) const |
bool | StorePosition (const char *szWindowName, const char *szSubKey, bool fStoreSize=true) |
bool | RestorePosition (const char *szWindowName, const char *szSubKey, bool fHidden=false) |
bool | GetSize (C4Rect *pRect) |
void | SetSize (unsigned int cx, unsigned int cy) |
void | SetTitle (const char *Title) |
void | FlashWindow () |
void | GrabMouse (bool grab) |
virtual void | RequestUpdate () |
virtual void | PerformUpdate () |
Public Attributes | |
bool | Editing |
bool | fGameOpen |
C4Object * | PropertyDlgObject |
bool | Active {false} |
C4Surface * | pSurface {nullptr} |
WindowKind | eKind |
Protected Member Functions | |
virtual C4Window * | Init (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size) |
Definition at line 35 of file C4ConsoleGUI.h.
enum C4ConsoleGUI::Cursor |
Enumerator | |
---|---|
CONSOLE_Cursor | |
CONSOLE_FrameCounter | |
CONSOLE_TimeFPS |
Definition at line 50 of file C4ConsoleGUI.h.
enum C4ConsoleGUI::Stage |
|
inherited |
Enumerator | |
---|---|
W_GuiWindow | |
W_Console | |
W_Viewport | |
W_Fullscreen | |
W_Control |
Definition at line 263 of file C4Window.h.
C4ConsoleGUI::C4ConsoleGUI | ( | ) |
Definition at line 19 of file C4ConsoleGUICommon.h.
|
override |
Definition at line 24 of file C4ConsoleGUICommon.h.
void C4ConsoleGUI::AddKickPlayerMenuItem | ( | C4Player * | player, |
StdStrBuf & | player_text, | ||
bool | enabled | ||
) |
Definition at line 662 of file C4Console.cpp.
Referenced by C4Console::UpdatePlayerMenu().
Definition at line 663 of file C4Console.cpp.
Referenced by C4Console::UpdateViewportMenu().
void C4ConsoleGUI::AddNetMenu | ( | ) |
Definition at line 665 of file C4Console.cpp.
Referenced by C4Console::UpdateNetMenu().
void C4ConsoleGUI::AddNetMenuItemForPlayer | ( | int32_t | client_id, |
const char * | text, | ||
C4ConsoleGUI::ClientOperation | co | ||
) |
Definition at line 664 of file C4Console.cpp.
Referenced by C4Console::UpdateNetMenu().
|
inline |
Definition at line 110 of file C4ConsoleGUI.h.
|
inlinevirtualinherited |
|
virtualinherited |
Reimplemented in C4FullScreen, and C4Console.
Definition at line 102 of file C4AppT.cpp.
Referenced by C4Console::Clear(), C4FullScreen::Clear(), C4GUI::Dialog::DestroyConsoleWindow(), and C4Window::~C4Window().
bool C4ConsoleGUI::ClearLog | ( | ) |
Definition at line 667 of file C4Console.cpp.
Referenced by C4MessageInput::ProcessCommand().
void C4ConsoleGUI::ClearNetMenu | ( | ) |
Definition at line 668 of file C4Console.cpp.
Referenced by C4Console::ClearNetMenu().
void C4ConsoleGUI::ClearPlayerMenu | ( | ) |
Definition at line 669 of file C4Console.cpp.
Referenced by C4Console::Clear(), and C4Console::UpdatePlayerMenu().
|
inline |
Definition at line 117 of file C4ConsoleGUI.h.
Referenced by C4Console::ClearPointers().
void C4ConsoleGUI::ClearViewportMenu | ( | ) |
Definition at line 670 of file C4Console.cpp.
Referenced by C4Console::ClearViewportMenu().
|
pure virtualinherited |
Implemented in C4GUI::DialogWindow, C4FullScreen, C4ViewportWindow, C4ConsoleGUIPreviewWindow, and C4Console.
|
inline |
Definition at line 116 of file C4ConsoleGUI.h.
Referenced by C4Console::Close().
bool C4ConsoleGUI::CreateConsoleWindow | ( | C4AbstractApp * | application | ) |
Definition at line 671 of file C4Console.cpp.
References C4Window::Init(), LoadResStr(), and C4Window::W_Console.
Referenced by C4Console::Init().
|
inline |
Definition at line 113 of file C4ConsoleGUI.h.
Referenced by C4Console::FileNew().
void C4ConsoleGUI::DeleteConsoleWindow | ( | ) |
Definition at line 678 of file C4Console.cpp.
Referenced by C4Console::Clear().
void C4ConsoleGUI::DisplayInfoText | ( | C4ConsoleGUI::InfoTextType | type, |
StdStrBuf & | text | ||
) |
Definition at line 679 of file C4Console.cpp.
Referenced by C4EditCursor::UpdateStatusBar(), and C4Console::UpdateStatusBars().
void C4ConsoleGUI::DoEnableControls | ( | bool | fEnable | ) |
Definition at line 680 of file C4Console.cpp.
Referenced by EnableControls().
bool C4ConsoleGUI::DoUpdateHaltCtrls | ( | bool | fHalt | ) |
Definition at line 681 of file C4Console.cpp.
Referenced by UpdateHaltCtrls().
|
inline |
Definition at line 118 of file C4ConsoleGUI.h.
|
inline |
Definition at line 143 of file C4ConsoleGUI.h.
References C4Window::Active, Control, DoEnableControls(), Editing, and C4GameControl::NoInput().
Referenced by C4Console::CloseGame(), C4Console::InitGame(), and C4Console::UpdateMenus().
|
inline |
Definition at line 115 of file C4ConsoleGUI.h.
|
virtualinherited |
Definition at line 105 of file C4AppT.cpp.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg().
|
inline |
Definition at line 109 of file C4ConsoleGUI.h.
Referenced by C4Console::Execute().
bool C4ConsoleGUI::FileSelect | ( | StdStrBuf * | sFilename, |
const char * | szFilter, | ||
DWORD | dwFlags, | ||
bool | fSave | ||
) |
Definition at line 682 of file C4Console.cpp.
Referenced by C4Console::FileSelect().
|
inherited |
Definition at line 75 of file C4AppMac.mm.
Referenced by C4AbstractApp::NotifyUserIfInactive().
|
inherited |
Definition at line 108 of file C4AppT.cpp.
Referenced by C4Application::OnResolutionChanged(), C4GUI::DialogWindow::PerformUpdate(), and C4Game::PreInit().
|
inherited |
Definition at line 107 of file C4AppT.cpp.
Referenced by C4Application::GameTick().
|
protectedvirtualinherited |
Definition at line 109 of file C4AppT.cpp.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), CreateConsoleWindow(), C4GUI::DialogWindow::Init(), and C4ViewportWindow::Init().
bool C4ConsoleGUI::Message | ( | const char * | message, |
bool | query | ||
) |
Definition at line 683 of file C4Console.cpp.
Referenced by C4Console::Message().
|
inline |
Definition at line 112 of file C4ConsoleGUI.h.
|
inline |
Definition at line 114 of file C4ConsoleGUI.h.
Referenced by C4Application::GameTick().
void C4ConsoleGUI::Out | ( | const char * | message | ) |
Definition at line 684 of file C4Console.cpp.
Referenced by C4Game::DropDef(), C4Game::DropFile(), Log(), C4Application::ProcessCallback(), C4Console::SaveGame(), and C4Console::SaveScenario().
|
virtualinherited |
Reimplemented in C4GUI::DialogWindow, C4FullScreen, and C4ViewportWindow.
void C4ConsoleGUI::PropertyDlgClose | ( | ) |
Definition at line 686 of file C4Console.cpp.
Referenced by C4Console::Clear(), PropertyDlgProc(), and C4EditCursor::SetMode().
bool C4ConsoleGUI::PropertyDlgOpen | ( | ) |
Definition at line 685 of file C4Console.cpp.
Referenced by C4EditCursor::OpenPropTools().
void C4ConsoleGUI::PropertyDlgUpdate | ( | class C4EditCursorSelection & | rSelection, |
bool | force_function_update | ||
) |
Definition at line 687 of file C4Console.cpp.
Referenced by C4EditCursor::Clear(), C4EditCursor::Execute(), C4EditCursor::In(), C4EditCursor::OnSelectionChanged(), and C4EditCursor::OpenPropTools().
void C4ConsoleGUI::RecordingEnabled | ( | ) |
Definition at line 688 of file C4Console.cpp.
Referenced by C4Console::FileRecord().
|
virtualinherited |
Definition at line 110 of file C4AppT.cpp.
|
inline |
Definition at line 111 of file C4ConsoleGUI.h.
|
virtualinherited |
Definition at line 112 of file C4AppT.cpp.
Referenced by C4FullScreen::Execute().
|
inherited |
Definition at line 111 of file C4AppT.cpp.
Referenced by C4GUI::DialogWindow::Init(), and C4ViewportWindow::Init().
void C4ConsoleGUI::SetCaptionToFileName | ( | const char * | file_name | ) |
Definition at line 689 of file C4Console.cpp.
Referenced by C4Console::SetCaptionToFilename().
void C4ConsoleGUI::SetCursor | ( | C4ConsoleGUI::Cursor | cursor | ) |
Definition at line 690 of file C4Console.cpp.
Referenced by C4Console::SaveGame(), and C4Console::SaveScenario().
void C4ConsoleGUI::SetInputFunctions | ( | std::list< const char * > & | functions | ) |
Definition at line 691 of file C4Console.cpp.
Referenced by C4Console::UpdateInputCtrl().
|
inherited |
Definition at line 113 of file C4AppT.cpp.
Referenced by C4Application::DoInit(), C4GUI::DialogWindow::Init(), C4AbstractApp::SetVideoMode(), and C4GUI::Dialog::UpdateSize().
|
inherited |
Definition at line 114 of file C4AppT.cpp.
Referenced by C4Console::CloseGame(), C4Console::SetCaptionToFilename(), and C4GUI::Dialog::SetTitle().
void C4ConsoleGUI::ShowAboutWithCopyright | ( | StdStrBuf & | copyright | ) |
Definition at line 692 of file C4Console.cpp.
Referenced by C4Console::HelpAbout().
|
inherited |
Definition at line 153 of file C4WindowSDL.cpp.
void C4ConsoleGUI::ToolsDlgClose | ( | ) |
Definition at line 666 of file C4Console.cpp.
Referenced by C4ToolsDlg::Clear(), and C4EditCursor::SetMode().
void C4ConsoleGUI::ToolsDlgInitMaterialCtrls | ( | class C4ToolsDlg * | dlg | ) |
Definition at line 693 of file C4Console.cpp.
Referenced by C4ToolsDlg::InitMaterialCtrls().
bool C4ConsoleGUI::ToolsDlgOpen | ( | class C4ToolsDlg * | dlg | ) |
Definition at line 694 of file C4Console.cpp.
Referenced by C4ToolsDlg::Open().
void C4ConsoleGUI::ToolsDlgSelectBackMaterial | ( | C4ToolsDlg * | dlg, |
const char * | material | ||
) |
Definition at line 697 of file C4Console.cpp.
Referenced by C4ToolsDlg::SelectBackMaterial().
void C4ConsoleGUI::ToolsDlgSelectBackTexture | ( | C4ToolsDlg * | dlg, |
const char * | texture | ||
) |
Definition at line 698 of file C4Console.cpp.
Referenced by C4ToolsDlg::SelectBackTexture(), and C4ToolsDlg::SetBackTexture().
void C4ConsoleGUI::ToolsDlgSelectMaterial | ( | C4ToolsDlg * | dlg, |
const char * | material | ||
) |
Definition at line 695 of file C4Console.cpp.
Referenced by C4ToolsDlg::SelectMaterial().
void C4ConsoleGUI::ToolsDlgSelectTexture | ( | C4ToolsDlg * | dlg, |
const char * | texture | ||
) |
Definition at line 696 of file C4Console.cpp.
Referenced by C4ToolsDlg::SelectTexture(), and C4ToolsDlg::SetTexture().
|
inline |
Definition at line 152 of file C4ConsoleGUI.h.
References C4Window::Active, and DoUpdateHaltCtrls().
Referenced by C4Network2::CheckStatusReached(), C4Game::InitGameFinal(), C4Network2::OnStatusAck(), C4Network2::OnStatusReached(), C4Game::Pause(), and C4Game::Unpause().
bool C4ConsoleGUI::UpdateModeCtrls | ( | int | iMode | ) |
Definition at line 699 of file C4Console.cpp.
Referenced by C4EditCursor::Init(), and C4EditCursor::SetMode().
|
inherited |
Definition at line 274 of file C4Window.h.
Referenced by AddMenuItem(), C4Console::C4Console(), C4Console::ClearNetMenu(), C4Console::ClearViewportMenu(), C4Console::CloseGame(), ConsoleDlgProc(), C4Game::DoKeyboardInput(), C4Network2::DoLobby(), EnableControls(), C4Console::In(), C4Console::InitGame(), C4Game::InitPlayers(), C4Console::Message(), C4Game::OnResolutionChanged(), C4PlayerInfoList::RestoreSavegameInfos(), C4Network2::RetrieveRes(), C4Console::SaveScenario(), C4GraphicsSystem::ToggleShow8BitSurface(), C4GraphicsSystem::ToggleShowAction(), C4GraphicsSystem::ToggleShowVertices(), UpdateHaltCtrls(), C4Console::UpdateMenus(), C4ConsoleGUI::State::UpdateMenuText(), C4Console::UpdateNetMenu(), C4Console::UpdatePlayerMenu(), C4Console::UpdateStatusBars(), C4Console::UpdateViewportMenu(), and C4FullScreen::ViewportCheck().
bool C4ConsoleGUI::Editing |
Definition at line 83 of file C4ConsoleGUI.h.
Referenced by C4Console::C4Console(), C4EditCursor::DoContextMenu(), C4EditCursor::EditingOK(), EnableControls(), C4EditCursor::Execute(), and C4Console::UpdatePlayerMenu().
|
inherited |
Definition at line 276 of file C4Window.h.
bool C4ConsoleGUI::fGameOpen |
Definition at line 84 of file C4ConsoleGUI.h.
Referenced by C4Console::C4Console(), C4Console::CloseGame(), C4Console::FileClose(), C4Console::InitGame(), C4Console::UpdateMenus(), and C4Console::ViewportNew().
C4Object* C4ConsoleGUI::PropertyDlgObject |
Definition at line 164 of file C4ConsoleGUI.h.
Referenced by C4Console::Default().
|
inherited |
Definition at line 275 of file C4Window.h.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), C4Console::Clear(), C4FullScreen::Clear(), C4GUI::Dialog::CreateConsoleWindow(), C4GUI::Dialog::DestroyConsoleWindow(), C4GraphicsSystem::DoSaveScreenshot(), C4GUI::Dialog::Draw(), C4ViewportList::DrawFullscreenBackground(), C4Viewport::Execute(), C4GraphicsSystem::FinishDrawing(), C4Draw::Init(), C4ViewportWindow::Init(), C4Game::InitFullscreenComponents(), C4MessageBoard::LogNotify(), C4Application::OnResolutionChanged(), C4GUI::DialogWindow::PerformUpdate(), C4Application::PreInit(), C4ViewportList::RecalculateViewports(), C4GUI::Screen::Render(), CStdGL::RestoreDeviceObjects(), C4Game::SaveGameTitle(), C4ConsoleGUIPreviewWindow::~C4ConsoleGUIPreviewWindow(), and C4FullScreen::~C4FullScreen().