From f58c3f2e81e5cef689cf4b60a2616d062ee8edf6 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 23 Sep 2012 17:19:34 +0000 Subject: [PATCH] Source files cleanup: UI files renamed git-svn-id: http://mc-server.googlecode.com/svn/trunk@878 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- VC2008/MCServer.vcproj | 24 ++++++++++----------- source/Protocol125.cpp | 2 +- source/Protocol132.cpp | 2 +- source/UI/SlotArea.cpp | 2 +- source/UI/{cWindow.cpp => Window.cpp} | 7 ++---- source/UI/{cWindow.h => Window.h} | 2 +- source/UI/{cWindowOwner.h => WindowOwner.h} | 2 +- source/blocks/BlockWorkbench.h | 2 +- source/cChestEntity.cpp | 2 +- source/cChestEntity.h | 2 +- source/cClientHandle.cpp | 4 ++-- source/cFurnaceEntity.cpp | 2 +- source/cFurnaceEntity.h | 2 +- source/cInventory.cpp | 2 +- source/cPlayer.cpp | 4 ++-- 15 files changed, 29 insertions(+), 32 deletions(-) rename source/UI/{cWindow.cpp => Window.cpp} (97%) rename source/UI/{cWindow.h => Window.h} (99%) rename source/UI/{cWindowOwner.h => WindowOwner.h} (98%) diff --git a/VC2008/MCServer.vcproj b/VC2008/MCServer.vcproj index 6e0495b31..95ae8b2ea 100644 --- a/VC2008/MCServer.vcproj +++ b/VC2008/MCServer.vcproj @@ -1047,18 +1047,6 @@ - - - - - - @@ -1067,6 +1055,18 @@ RelativePath="..\source\UI\SlotArea.h" > + + + + + + GetNumSlots()) { - LOGD("SlotArea #%d (%d slots) handling the click", idx, (*itr)->GetNumSlots()); (*itr)->Clicked(a_Player, LocalSlotNum, a_IsRightClick, a_IsShiftPressed, a_ClickedItem); return; } diff --git a/source/UI/cWindow.h b/source/UI/Window.h similarity index 99% rename from source/UI/cWindow.h rename to source/UI/Window.h index 0fc368c9c..b3df1bc86 100644 --- a/source/UI/cWindow.h +++ b/source/UI/Window.h @@ -1,5 +1,5 @@ -// cWindow.h +// Window.h // Interfaces to the cWindow class representing a UI window for a specific block diff --git a/source/UI/cWindowOwner.h b/source/UI/WindowOwner.h similarity index 98% rename from source/UI/cWindowOwner.h rename to source/UI/WindowOwner.h index 1ce03ed30..e0cc8da8a 100644 --- a/source/UI/cWindowOwner.h +++ b/source/UI/WindowOwner.h @@ -3,7 +3,7 @@ #include "../cBlockEntity.h" #include "../cEntity.h" -#include "cWindow.h" +#include "Window.h" /* Being a descendant of cWindowOwner means that the class can own one window. That window can be diff --git a/source/blocks/BlockWorkbench.h b/source/blocks/BlockWorkbench.h index 998e07d9b..776628382 100644 --- a/source/blocks/BlockWorkbench.h +++ b/source/blocks/BlockWorkbench.h @@ -1,6 +1,6 @@ #pragma once #include "Block.h" -#include "../UI/cWindow.h" +#include "../UI/Window.h" #include "../cPlayer.h" diff --git a/source/cChestEntity.cpp b/source/cChestEntity.cpp index 8914f5f41..659bd7083 100644 --- a/source/cChestEntity.cpp +++ b/source/cChestEntity.cpp @@ -5,7 +5,7 @@ #include "cItem.h" #include "cClientHandle.h" #include "cPlayer.h" -#include "UI/cWindow.h" +#include "UI/Window.h" #include "cWorld.h" #include "cRoot.h" #include "cPickup.h" diff --git a/source/cChestEntity.h b/source/cChestEntity.h index 962e9f86d..2f6301479 100644 --- a/source/cChestEntity.h +++ b/source/cChestEntity.h @@ -2,7 +2,7 @@ #pragma once #include "cBlockEntity.h" -#include "UI/cWindowOwner.h" +#include "UI/WindowOwner.h" diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 5802fc1d1..5aa06eb36 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -10,7 +10,7 @@ #include "cInventory.h" #include "cChestEntity.h" #include "cSignEntity.h" -#include "UI/cWindow.h" +#include "UI/Window.h" #include "cItem.h" #include "cTorch.h" #include "cDoors.h" @@ -1067,7 +1067,7 @@ void cClientHandle::Tick(float a_Dt) void cClientHandle::SendDisconnect(const AString & a_Reason) { - LOGD("Sending a DC"); + LOGD("Sending a DC: \"%s\"", a_Reason.c_str()); m_Protocol->SendDisconnect(a_Reason); } diff --git a/source/cFurnaceEntity.cpp b/source/cFurnaceEntity.cpp index 7ad088586..07df83452 100644 --- a/source/cFurnaceEntity.cpp +++ b/source/cFurnaceEntity.cpp @@ -4,7 +4,7 @@ #include "cFurnaceEntity.h" #include "BlockID.h" #include "cItem.h" -#include "UI/cWindow.h" +#include "UI/Window.h" #include "cPlayer.h" #include "cWorld.h" #include "cClientHandle.h" diff --git a/source/cFurnaceEntity.h b/source/cFurnaceEntity.h index 43bf615a6..60aec47af 100644 --- a/source/cFurnaceEntity.h +++ b/source/cFurnaceEntity.h @@ -2,7 +2,7 @@ #pragma once #include "cBlockEntity.h" -#include "UI/cWindowOwner.h" +#include "UI/WindowOwner.h" #include "cItem.h" diff --git a/source/cInventory.cpp b/source/cInventory.cpp index 1e0b4f6ae..41d4c14fa 100644 --- a/source/cInventory.cpp +++ b/source/cInventory.cpp @@ -4,7 +4,7 @@ #include "cInventory.h" #include "cPlayer.h" #include "cClientHandle.h" -#include "UI/cWindow.h" +#include "UI/Window.h" #include "cItem.h" #include "cRoot.h" diff --git a/source/cPlayer.cpp b/source/cPlayer.cpp index e0d1eef6e..65132296f 100644 --- a/source/cPlayer.cpp +++ b/source/cPlayer.cpp @@ -4,8 +4,8 @@ #include "cPlayer.h" #include "cServer.h" #include "cClientHandle.h" -#include "UI/cWindow.h" -#include "UI/cWindowOwner.h" +#include "UI/Window.h" +#include "UI/WindowOwner.h" #include "cWorld.h" #include "cPickup.h" #include "cPluginManager.h"