#include "C4Include.h"
#include "editor/C4Console.h"
#include "platform/C4AppWin32Impl.h"
#include "editor/C4ConsoleGUI.h"
#include "graphics/C4DrawGL.h"
#include "landscape/C4Landscape.h"
#include "object/C4Object.h"
#include "player/C4PlayerList.h"
#include "landscape/C4Texture.h"
#include "C4Version.h"
#include "game/C4Viewport.h"
#include "platform/StdRegistry.h"
#include "lib/StdColors.h"
#include "landscape/C4Sky.h"
#include "platform/C4windowswrapper.h"
#include <mmsystem.h>
#include <commdlg.h>
#include "res/resource.h"
#include <commctrl.h>
#include "editor/C4ConsoleGUICommon.h"
Go to the source code of this file.
Classes | |
class | C4ConsoleGUI::State |
class | C4ToolsDlg::State |
class | C4ConsoleGUIPreviewWindow |
Macros | |
#define | GetWideLPARAM(c) reinterpret_cast<LPARAM>(static_cast<wchar_t*>(GetWideChar(c))) |
Functions | |
StdStrBuf::wchar_t_holder | LoadResStrW (const char *id) |
bool | SetMenuItemText (HMENU hMenu, WORD id, const char *szText) |
bool | AddMenuItem (C4ConsoleGUI *console, HMENU hMenu, DWORD dwID, const char *szString, bool fEnabled) |
INT_PTR CALLBACK | ConsoleDlgProc (HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam) |
INT_PTR CALLBACK | ToolsDlgProc (HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam) |
INT_PTR CALLBACK | PropertyDlgProc (HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam) |
#define GetWideLPARAM | ( | c | ) | reinterpret_cast<LPARAM>(static_cast<wchar_t*>(GetWideChar(c))) |
Definition at line 40 of file C4ConsoleWin32.cpp.
bool AddMenuItem | ( | C4ConsoleGUI * | console, |
HMENU | hMenu, | ||
DWORD | dwID, | ||
const char * | szString, | ||
bool | fEnabled | ||
) |
Definition at line 46 of file C4ConsoleWin32.cpp.
References C4Window::Active, GetWideCharBuf(), and ZeroMem().
INT_PTR CALLBACK ConsoleDlgProc | ( | HWND | hDlg, |
UINT | Msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Definition at line 345 of file C4ConsoleWin32.cpp.
References C4AbstractApp::Active, C4Window::Active, C4Control::Add(), Application, C4CNS_ModeDraw, C4CNS_ModeEdit, C4CNS_ModePlay, CID_PlrAction, C4Game::Clients, C4Console::Close(), Config, Console, Control, C4ViewportList::CreateViewport(), C4ClientList::CtrlRemove(), C4Console::DoHalt(), C4Console::DoPlay(), C4Console::EditCursor, C4ControlPlayerAction::Eliminate(), C4Console::FileClose(), C4Console::FileOpen(), C4Console::FileOpenWPlrs(), C4Console::FileQuit(), C4Console::FileRecord(), C4Console::FileSave(), C4Console::FileSaveAs(), Game, C4PlayerList::Get(), C4ClientList::getClientByID(), StdStrBuf::getData(), C4Config::GetSubkeyPath(), C4Console::HelpAbout(), IDC_BUTTONHALT, IDC_BUTTONMODEDRAW, IDC_BUTTONMODEEDIT, IDC_BUTTONMODEPLAY, IDC_BUTTONPLAY, IDC_COMBOINPUT, IDM_FILE_CLOSE, IDM_FILE_OPEN, IDM_FILE_OPENWPLRS, IDM_FILE_QUIT, IDM_FILE_RECORD, IDM_FILE_SAVE, IDM_FILE_SAVEAS, IDM_FILE_SAVEGAMEAS, IDM_HELP_ABOUT, IDM_NET_CLIENT1, IDM_NET_CLIENT2, IDM_PLAYER_JOIN, IDM_PLAYER_QUIT1, IDM_PLAYER_QUIT2, IDM_VIEWPORT_NEW, IDM_VIEWPORT_NEW1, IDM_VIEWPORT_NEW2, C4Console::In(), C4GameControl::Input, Inside(), C4GameControl::isCtrlHost(), LoadResStr(), Log(), C4Console::MRU_Scenario, C4Application::MusicSystem, C4MusicSystem::NotifySuccess(), C4Application::OnKeyboardLayoutChanged(), C4Console::PlayerJoin(), Players, C4Application::Quit(), C4Console::RegisterRecentInput(), C4Game::ReloadFile(), SEqual2(), C4EditCursor::SetMode(), C4Console::UpdateInputCtrl(), C4Console::ViewportNew(), Viewports, WM_USER_LOG, and WM_USER_RELOADFILE.
|
inline |
Definition at line 42 of file C4ConsoleWin32.cpp.
References GetWideChar(), and LoadResStr().
Referenced by C4ConsoleGUI::State::UpdateMenuText().
INT_PTR CALLBACK PropertyDlgProc | ( | HWND | hDlg, |
UINT | Msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Definition at line 698 of file C4ConsoleWin32.cpp.
References Config, Console, C4Console::EditCursor, Game, C4EditCursorSelection::GetObject(), C4EditCursor::GetSelection(), C4Config::GetSubkeyPath(), C4Object::id, IDC_BUTTONRELOADDEF, IDC_COMBOINPUT, C4EditCursor::In(), C4ConsoleGUI::PropertyDlgClose(), and C4Game::ReloadDef().
bool SetMenuItemText | ( | HMENU | hMenu, |
WORD | id, | ||
const char * | szText | ||
) |
Referenced by C4EditCursor::DoContextMenu(), and C4ConsoleGUI::State::UpdateMenuText().
INT_PTR CALLBACK ToolsDlgProc | ( | HWND | hDlg, |
UINT | Msg, | ||
WPARAM | wParam, | ||
LPARAM | lParam | ||
) |
Definition at line 585 of file C4ConsoleWin32.cpp.