diff --git a/SConscript b/SConscript index 69aa6fefd..847ce44f5 100644 --- a/SConscript +++ b/SConscript @@ -258,6 +258,7 @@ if(GetOption('macosx')): if(GetOption('win')): sources += env.RES('resources/powder-res.rc') sources+=Glob("src/*/*.cpp") +sources+=Glob("src/gui/*/*.cpp") sources+=Glob("src/simulation/elements/*.cpp") sources+=Glob("src/simulation/tools/*.cpp") sources+=Glob("src/client/requestbroker/*.cpp") diff --git a/src/Activity.h b/src/Activity.h index 02634673d..b91444d05 100644 --- a/src/Activity.h +++ b/src/Activity.h @@ -1,6 +1,6 @@ #pragma once -#include "interface/Window.h" +#include "gui/interface/Window.h" class Activity { diff --git a/src/PowderToyRenderer.cpp b/src/PowderToyRenderer.cpp index b5b7fa1a3..929a20503 100644 --- a/src/PowderToyRenderer.cpp +++ b/src/PowderToyRenderer.cpp @@ -9,7 +9,7 @@ #include "Config.h" #include "Format.h" -#include "interface/Engine.h" +#include "gui/interface/Engine.h" #include "graphics/Graphics.h" #include "graphics/Renderer.h" diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 48a77b2af..c57b3b914 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -25,13 +25,6 @@ #endif #include "Format.h" -#include "Style.h" -#include "interface/Engine.h" -#include "interface/Button.h" -#include "interface/Panel.h" -#include "interface/Point.h" -#include "interface/Label.h" -#include "interface/Keys.h" #include "client/GameSave.h" #include "client/SaveFile.h" @@ -39,10 +32,12 @@ #include "client/Client.h" #include "Misc.h" -#include "game/GameController.h" -#include "game/GameView.h" +#include "gui/game/GameController.h" +#include "gui/game/GameView.h" -#include "dialogues/ErrorMessage.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/interface/Keys.h" +#include "gui/Style.h" #include "client/HTTP.h" diff --git a/src/cat/CommandInterface.cpp b/src/cat/CommandInterface.cpp index 992ce7407..6b2248887 100644 --- a/src/cat/CommandInterface.cpp +++ b/src/cat/CommandInterface.cpp @@ -5,8 +5,8 @@ #include #endif #include "CommandInterface.h" -#include "game/GameModel.h" -#include "game/GameController.h" +#include "gui/game/GameModel.h" +#include "gui/game/GameController.h" CommandInterface::CommandInterface(GameController * c, GameModel * m) { this->m = m; diff --git a/src/cat/CommandInterface.h b/src/cat/CommandInterface.h index 192e1f917..2e1a1dfae 100644 --- a/src/cat/CommandInterface.h +++ b/src/cat/CommandInterface.h @@ -2,7 +2,7 @@ #define COMMANDINTERFACE_H_ #include -#include "interface/Engine.h" +#include "gui/interface/Engine.h" //#include "game/GameModel.h" class GameModel; diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index 5df660ccb..df019fa7d 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -9,12 +9,12 @@ #include "LuaScriptInterface.h" #include "LuaScriptHelper.h" -#include "dialogues/ErrorMessage.h" -#include "dialogues/InformationMessage.h" -#include "dialogues/TextPrompt.h" -#include "dialogues/ConfirmPrompt.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/dialogues/InformationMessage.h" +#include "gui/dialogues/TextPrompt.h" +#include "gui/dialogues/ConfirmPrompt.h" +#include "gui/game/GameModel.h" #include "simulation/Simulation.h" -#include "game/GameModel.h" #include diff --git a/src/cat/LuaButton.cpp b/src/cat/LuaButton.cpp index 01ca8756b..013adac19 100644 --- a/src/cat/LuaButton.cpp +++ b/src/cat/LuaButton.cpp @@ -8,7 +8,7 @@ extern "C" #include #include "LuaButton.h" #include "LuaScriptInterface.h" -#include "interface/Button.h" +#include "gui/interface/Button.h" const char LuaButton::className[] = "Button"; diff --git a/src/cat/LuaCheckbox.cpp b/src/cat/LuaCheckbox.cpp index 8256730b6..bac5c4edf 100644 --- a/src/cat/LuaCheckbox.cpp +++ b/src/cat/LuaCheckbox.cpp @@ -8,7 +8,7 @@ extern "C" #include #include "LuaCheckbox.h" #include "LuaScriptInterface.h" -#include "interface/Checkbox.h" +#include "gui/interface/Checkbox.h" const char LuaCheckbox::className[] = "Checkbox"; diff --git a/src/cat/LuaComponent.cpp b/src/cat/LuaComponent.cpp index 8c2d3a4be..75e7a213c 100644 --- a/src/cat/LuaComponent.cpp +++ b/src/cat/LuaComponent.cpp @@ -8,7 +8,7 @@ extern "C" #include #include "LuaComponent.h" #include "LuaScriptInterface.h" -#include "interface/Component.h" +#include "gui/interface/Component.h" LuaComponent::LuaComponent(lua_State * l) diff --git a/src/cat/LuaLabel.cpp b/src/cat/LuaLabel.cpp index 007e00973..b08e68766 100644 --- a/src/cat/LuaLabel.cpp +++ b/src/cat/LuaLabel.cpp @@ -8,7 +8,7 @@ extern "C" #include #include "LuaScriptInterface.h" #include "LuaLabel.h" -#include "interface/Label.h" +#include "gui/interface/Label.h" const char LuaLabel::className[] = "Label"; diff --git a/src/cat/LuaProgressBar.cpp b/src/cat/LuaProgressBar.cpp index 71b8f7b99..08c88caf2 100644 --- a/src/cat/LuaProgressBar.cpp +++ b/src/cat/LuaProgressBar.cpp @@ -8,7 +8,7 @@ extern "C" #include #include "LuaProgressBar.h" #include "LuaScriptInterface.h" -#include "interface/ProgressBar.h" +#include "gui/interface/ProgressBar.h" const char LuaProgressBar::className[] = "ProgressBar"; diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp index 6f8b30d8d..7719add79 100644 --- a/src/cat/LuaScriptInterface.cpp +++ b/src/cat/LuaScriptInterface.cpp @@ -9,13 +9,13 @@ #include "LuaLuna.h" #include "LuaScriptInterface.h" #include "TPTScriptInterface.h" -#include "dialogues/ErrorMessage.h" -#include "dialogues/InformationMessage.h" -#include "dialogues/TextPrompt.h" -#include "dialogues/ConfirmPrompt.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/dialogues/InformationMessage.h" +#include "gui/dialogues/TextPrompt.h" +#include "gui/dialogues/ConfirmPrompt.h" #include "simulation/Simulation.h" -#include "game/GameModel.h" -#include "game/Tool.h" +#include "gui/game/GameModel.h" +#include "gui/game/Tool.h" #include "LuaScriptHelper.h" #include "client/HTTP.h" #include "PowderToy.h" diff --git a/src/cat/LuaSlider.cpp b/src/cat/LuaSlider.cpp index 0fedbfb30..ce07ebb10 100644 --- a/src/cat/LuaSlider.cpp +++ b/src/cat/LuaSlider.cpp @@ -8,7 +8,7 @@ extern "C" #include #include "LuaSlider.h" #include "LuaScriptInterface.h" -#include "interface/Slider.h" +#include "gui/interface/Slider.h" const char LuaSlider::className[] = "Slider"; diff --git a/src/cat/LuaTextbox.cpp b/src/cat/LuaTextbox.cpp index 46285c8d9..5721525a2 100644 --- a/src/cat/LuaTextbox.cpp +++ b/src/cat/LuaTextbox.cpp @@ -8,7 +8,7 @@ extern "C" #include #include "LuaScriptInterface.h" #include "LuaTextbox.h" -#include "interface/Textbox.h" +#include "gui/interface/Textbox.h" const char LuaTextbox::className[] = "Textbox"; diff --git a/src/cat/LuaWindow.cpp b/src/cat/LuaWindow.cpp index 502c7f11b..d765d68df 100644 --- a/src/cat/LuaWindow.cpp +++ b/src/cat/LuaWindow.cpp @@ -14,9 +14,9 @@ extern "C" #include "LuaCheckbox.h" #include "LuaSlider.h" #include "LuaProgressBar.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/Window.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" +#include "gui/interface/Window.h" const char LuaWindow::className[] = "Window"; diff --git a/src/cat/LuaWindow.h b/src/cat/LuaWindow.h index d9d25e1ab..f48c5f9b6 100644 --- a/src/cat/LuaWindow.h +++ b/src/cat/LuaWindow.h @@ -8,7 +8,7 @@ extern "C" { #include "LuaLuna.h" -#include "interface/Platform.h" +#include "gui/interface/Platform.h" namespace ui { class Window; diff --git a/src/cat/TPTSTypes.h b/src/cat/TPTSTypes.h index 6a2cec478..b9fa92b61 100644 --- a/src/cat/TPTSTypes.h +++ b/src/cat/TPTSTypes.h @@ -3,7 +3,7 @@ #include #include -#include "interface/Point.h" +#include "gui/interface/Point.h" enum ValueType { TypeNumber, TypePoint, TypeString, TypeNull, TypeFunction }; diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index 84f55efb0..601c22870 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -5,7 +5,7 @@ #include #include #include "TPTScriptInterface.h" -#include "game/GameModel.h" +#include "gui/game/GameModel.h" #include "simulation/Air.h" TPTScriptInterface::TPTScriptInterface(GameController * c, GameModel * m): CommandInterface(c, m) diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 22490a1a7..1a2f296ff 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -36,13 +36,13 @@ #include "HTTP.h" #include "simulation/SaveRenderer.h" -#include "interface/Point.h" +#include "gui/interface/Point.h" #include "client/SaveInfo.h" #include "client/SaveFile.h" #include "client/GameSave.h" #include "client/UserInfo.h" -#include "search/Thumbnail.h" -#include "preview/Comment.h" +#include "gui/search/Thumbnail.h" +#include "gui/preview/Comment.h" #include "ClientListener.h" #include "requestbroker/RequestBroker.h" #include "requestbroker/APIRequest.h" diff --git a/src/client/SaveFile.cpp b/src/client/SaveFile.cpp index 5ca16aacf..9d08c308b 100644 --- a/src/client/SaveFile.cpp +++ b/src/client/SaveFile.cpp @@ -1,7 +1,7 @@ #include "SaveFile.h" #include "GameSave.h" #include "Client.h" -#include "search/Thumbnail.h" +#include "gui/search/Thumbnail.h" SaveFile::SaveFile(SaveFile & save): gameSave(NULL), diff --git a/src/client/requestbroker/ThumbRenderRequest.cpp b/src/client/requestbroker/ThumbRenderRequest.cpp index cf56814c1..36014010f 100644 --- a/src/client/requestbroker/ThumbRenderRequest.cpp +++ b/src/client/requestbroker/ThumbRenderRequest.cpp @@ -3,7 +3,6 @@ #include "ThumbRenderRequest.h" #include "client/GameSave.h" #include "graphics/Graphics.h" -#include "search/Thumbnail.h" #include "simulation/SaveRenderer.h" ThumbRenderRequest::ThumbRenderRequest(GameSave * save, bool decorations, bool fire, int width, int height, ListenerHandle listener): diff --git a/src/debug/DebugInfo.h b/src/debug/DebugInfo.h index 3ddd4b306..49e46a485 100644 --- a/src/debug/DebugInfo.h +++ b/src/debug/DebugInfo.h @@ -1,6 +1,6 @@ #pragma once -#include "interface/Point.h" +#include "gui/interface/Point.h" class DebugInfo { diff --git a/src/debug/ElementPopulation.cpp b/src/debug/ElementPopulation.cpp index 225cf026e..4caaf11f3 100644 --- a/src/debug/ElementPopulation.cpp +++ b/src/debug/ElementPopulation.cpp @@ -1,7 +1,7 @@ #pragma once #include "ElementPopulation.h" -#include "interface/Engine.h" +#include "gui/interface/Engine.h" #include "simulation/Simulation.h" #include "Format.h" diff --git a/src/graphics/Renderer.h b/src/graphics/Renderer.h index c5fe015b3..6328c1950 100644 --- a/src/graphics/Renderer.h +++ b/src/graphics/Renderer.h @@ -9,8 +9,8 @@ #include "Config.h" #include "client/Client.h" #include "Graphics.h" -#include "interface/Point.h" -#include "game/RenderPreset.h" +#include "gui/interface/Point.h" +#include "gui/game/RenderPreset.h" class Simulation; diff --git a/src/Style.cpp b/src/gui/Style.cpp similarity index 90% rename from src/Style.cpp rename to src/gui/Style.cpp index 1972ce85d..29e1d405f 100644 --- a/src/Style.cpp +++ b/src/gui/Style.cpp @@ -1,7 +1,7 @@ #include -#include "Style.h" -#include "interface/Colour.h" +#include "gui/Style.h" +#include "gui/interface/Colour.h" namespace style { ui::Colour Colour::InformationTitle = ui::Colour(140, 140, 255); diff --git a/src/Style.h b/src/gui/Style.h similarity index 100% rename from src/Style.h rename to src/gui/Style.h diff --git a/src/colourpicker/ColourPickerActivity.cpp b/src/gui/colourpicker/ColourPickerActivity.cpp similarity index 97% rename from src/colourpicker/ColourPickerActivity.cpp rename to src/gui/colourpicker/ColourPickerActivity.cpp index 04aa64403..a7ac2398e 100644 --- a/src/colourpicker/ColourPickerActivity.cpp +++ b/src/gui/colourpicker/ColourPickerActivity.cpp @@ -1,13 +1,13 @@ #include #include #include "ColourPickerActivity.h" -#include "interface/Textbox.h" -#include "interface/Label.h" -#include "interface/Keys.h" -#include "game/Tool.h" -#include "Style.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Label.h" +#include "gui/interface/Keys.h" +#include "gui/game/Tool.h" +#include "gui/Style.h" #include "Format.h" -#include "game/GameModel.h" +#include "gui/game/GameModel.h" ColourPickerActivity::ColourPickerActivity(ui::Colour initialColour, ColourPickedCallback * callback) : WindowActivity(ui::Point(-1, -1), ui::Point(266, 175)), diff --git a/src/colourpicker/ColourPickerActivity.h b/src/gui/colourpicker/ColourPickerActivity.h similarity index 93% rename from src/colourpicker/ColourPickerActivity.h rename to src/gui/colourpicker/ColourPickerActivity.h index 5cc3f049a..f1e62b774 100644 --- a/src/colourpicker/ColourPickerActivity.h +++ b/src/gui/colourpicker/ColourPickerActivity.h @@ -3,8 +3,8 @@ #include #include #include "Activity.h" -#include "interface/Window.h" -#include "interface/Textbox.h" +#include "gui/interface/Window.h" +#include "gui/interface/Textbox.h" class ColourPickedCallback { diff --git a/src/console/ConsoleCommand.h b/src/gui/console/ConsoleCommand.h similarity index 100% rename from src/console/ConsoleCommand.h rename to src/gui/console/ConsoleCommand.h diff --git a/src/console/ConsoleController.cpp b/src/gui/console/ConsoleController.cpp similarity index 100% rename from src/console/ConsoleController.cpp rename to src/gui/console/ConsoleController.cpp diff --git a/src/console/ConsoleController.h b/src/gui/console/ConsoleController.h similarity index 100% rename from src/console/ConsoleController.h rename to src/gui/console/ConsoleController.h diff --git a/src/console/ConsoleModel.cpp b/src/gui/console/ConsoleModel.cpp similarity index 100% rename from src/console/ConsoleModel.cpp rename to src/gui/console/ConsoleModel.cpp diff --git a/src/console/ConsoleModel.h b/src/gui/console/ConsoleModel.h similarity index 100% rename from src/console/ConsoleModel.h rename to src/gui/console/ConsoleModel.h diff --git a/src/console/ConsoleView.cpp b/src/gui/console/ConsoleView.cpp similarity index 98% rename from src/console/ConsoleView.cpp rename to src/gui/console/ConsoleView.cpp index 9a5136660..cf398ae97 100644 --- a/src/console/ConsoleView.cpp +++ b/src/gui/console/ConsoleView.cpp @@ -1,5 +1,5 @@ #include "ConsoleView.h" -#include "interface/Keys.h" +#include "gui/interface/Keys.h" ConsoleView::ConsoleView(): ui::Window(ui::Point(0, 0), ui::Point(XRES+BARSIZE, 150)), diff --git a/src/console/ConsoleView.h b/src/gui/console/ConsoleView.h similarity index 87% rename from src/console/ConsoleView.h rename to src/gui/console/ConsoleView.h index de1c48e6f..22f172c8a 100644 --- a/src/console/ConsoleView.h +++ b/src/gui/console/ConsoleView.h @@ -3,11 +3,11 @@ #include #include -#include "interface/Label.h" -#include "interface/Window.h" +#include "gui/interface/Label.h" +#include "gui/interface/Window.h" #include "ConsoleController.h" #include "ConsoleModel.h" -#include "interface/Textbox.h" +#include "gui/interface/Textbox.h" #include "ConsoleCommand.h" diff --git a/src/dialogues/ConfirmPrompt.cpp b/src/gui/dialogues/ConfirmPrompt.cpp similarity index 98% rename from src/dialogues/ConfirmPrompt.cpp rename to src/gui/dialogues/ConfirmPrompt.cpp index 0a89efad9..ba4060f34 100644 --- a/src/dialogues/ConfirmPrompt.cpp +++ b/src/gui/dialogues/ConfirmPrompt.cpp @@ -1,7 +1,7 @@ #include "ConfirmPrompt.h" -#include "Style.h" -#include "interface/Label.h" -#include "interface/Button.h" +#include "gui/Style.h" +#include "gui/interface/Label.h" +#include "gui/interface/Button.h" #include "PowderToy.h" ConfirmPrompt::ConfirmPrompt(std::string title, std::string message, ConfirmDialogueCallback * callback_): diff --git a/src/dialogues/ConfirmPrompt.h b/src/gui/dialogues/ConfirmPrompt.h similarity index 95% rename from src/dialogues/ConfirmPrompt.h rename to src/gui/dialogues/ConfirmPrompt.h index 9e38a4829..a2a3170f1 100644 --- a/src/dialogues/ConfirmPrompt.h +++ b/src/gui/dialogues/ConfirmPrompt.h @@ -1,7 +1,7 @@ #ifndef CONFIRMPROMPT_H_ #define CONFIRMPROMPT_H_ -#include "interface/Window.h" +#include "gui/interface/Window.h" class ConfirmDialogueCallback; class ConfirmPrompt: public ui::Window { diff --git a/src/dialogues/ErrorMessage.cpp b/src/gui/dialogues/ErrorMessage.cpp similarity index 96% rename from src/dialogues/ErrorMessage.cpp rename to src/gui/dialogues/ErrorMessage.cpp index 876bc100c..b793aeee1 100644 --- a/src/dialogues/ErrorMessage.cpp +++ b/src/gui/dialogues/ErrorMessage.cpp @@ -1,7 +1,7 @@ -#include "Style.h" +#include "gui/Style.h" #include "ErrorMessage.h" -#include "interface/Button.h" -#include "interface/Label.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" #include "PowderToy.h" ErrorMessage::ErrorMessage(std::string title, std::string message, ErrorMessageCallback * callback_): diff --git a/src/dialogues/ErrorMessage.h b/src/gui/dialogues/ErrorMessage.h similarity index 93% rename from src/dialogues/ErrorMessage.h rename to src/gui/dialogues/ErrorMessage.h index 34cdb0ca7..a7281b281 100644 --- a/src/dialogues/ErrorMessage.h +++ b/src/gui/dialogues/ErrorMessage.h @@ -1,7 +1,7 @@ #ifndef ERRORMESSAGE_H_ #define ERRORMESSAGE_H_ -#include "interface/Window.h" +#include "gui/interface/Window.h" class ErrorMessageCallback; class ErrorMessage: public ui::Window { diff --git a/src/dialogues/InformationMessage.cpp b/src/gui/dialogues/InformationMessage.cpp similarity index 95% rename from src/dialogues/InformationMessage.cpp rename to src/gui/dialogues/InformationMessage.cpp index 7d11a260d..23b92dc37 100644 --- a/src/dialogues/InformationMessage.cpp +++ b/src/gui/dialogues/InformationMessage.cpp @@ -1,8 +1,8 @@ -#include "Style.h" +#include "gui/Style.h" #include "InformationMessage.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/ScrollPanel.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" +#include "gui/interface/ScrollPanel.h" InformationMessage::InformationMessage(std::string title, std::string message, bool large): ui::Window(ui::Point(-1, -1), ui::Point(200, 75)) diff --git a/src/dialogues/InformationMessage.h b/src/gui/dialogues/InformationMessage.h similarity index 89% rename from src/dialogues/InformationMessage.h rename to src/gui/dialogues/InformationMessage.h index 1df479442..6a26b384a 100644 --- a/src/dialogues/InformationMessage.h +++ b/src/gui/dialogues/InformationMessage.h @@ -1,7 +1,7 @@ #ifndef INFORMATIONMESSAGE_H_ #define INFORMATIONMESSAGE_H_ -#include "interface/Window.h" +#include "gui/interface/Window.h" class InformationMessage: public ui::Window { public: diff --git a/src/dialogues/LegacyDialogues.h b/src/gui/dialogues/LegacyDialogues.h similarity index 100% rename from src/dialogues/LegacyDialogues.h rename to src/gui/dialogues/LegacyDialogues.h diff --git a/src/dialogues/TextPrompt.cpp b/src/gui/dialogues/TextPrompt.cpp similarity index 97% rename from src/dialogues/TextPrompt.cpp rename to src/gui/dialogues/TextPrompt.cpp index cd06a8c44..92539ca8d 100644 --- a/src/dialogues/TextPrompt.cpp +++ b/src/gui/dialogues/TextPrompt.cpp @@ -1,8 +1,8 @@ #include #include "TextPrompt.h" -#include "interface/Label.h" -#include "interface/Button.h" -#include "Style.h" +#include "gui/interface/Label.h" +#include "gui/interface/Button.h" +#include "gui/Style.h" #include "PowderToy.h" class CloseAction: public ui::ButtonAction diff --git a/src/dialogues/TextPrompt.h b/src/gui/dialogues/TextPrompt.h similarity index 91% rename from src/dialogues/TextPrompt.h rename to src/gui/dialogues/TextPrompt.h index 5478cb553..e88c977df 100644 --- a/src/dialogues/TextPrompt.h +++ b/src/gui/dialogues/TextPrompt.h @@ -1,8 +1,8 @@ #ifndef TEXTPROMPT_H_ #define TEXTPROMPT_H_ -#include "interface/Window.h" -#include "interface/Textbox.h" +#include "gui/interface/Window.h" +#include "gui/interface/Textbox.h" class TextDialogueCallback; class TextPrompt: public ui::Window { diff --git a/src/elementsearch/ElementSearchActivity.cpp b/src/gui/elementsearch/ElementSearchActivity.cpp similarity index 96% rename from src/elementsearch/ElementSearchActivity.cpp rename to src/gui/elementsearch/ElementSearchActivity.cpp index 7156cb1e7..624f0ff3c 100644 --- a/src/elementsearch/ElementSearchActivity.cpp +++ b/src/gui/elementsearch/ElementSearchActivity.cpp @@ -1,11 +1,11 @@ #include #include "ElementSearchActivity.h" -#include "interface/Textbox.h" -#include "interface/Label.h" -#include "interface/Keys.h" -#include "game/Tool.h" -#include "Style.h" -#include "game/GameModel.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Label.h" +#include "gui/interface/Keys.h" +#include "gui/game/Tool.h" +#include "gui/Style.h" +#include "gui/game/GameModel.h" class ElementSearchActivity::ToolAction: public ui::ButtonAction { diff --git a/src/elementsearch/ElementSearchActivity.h b/src/gui/elementsearch/ElementSearchActivity.h similarity index 88% rename from src/elementsearch/ElementSearchActivity.h rename to src/gui/elementsearch/ElementSearchActivity.h index 987d8fbe6..dec37e537 100644 --- a/src/elementsearch/ElementSearchActivity.h +++ b/src/gui/elementsearch/ElementSearchActivity.h @@ -4,9 +4,9 @@ #include #include #include "Activity.h" -#include "interface/Window.h" -#include "interface/Textbox.h" -#include "game/ToolButton.h" +#include "gui/interface/Window.h" +#include "gui/interface/Textbox.h" +#include "gui/game/ToolButton.h" class Tool; diff --git a/src/filebrowser/FileBrowserActivity.cpp b/src/gui/filebrowser/FileBrowserActivity.cpp similarity index 96% rename from src/filebrowser/FileBrowserActivity.cpp rename to src/gui/filebrowser/FileBrowserActivity.cpp index 0ea7104c4..7612ae228 100644 --- a/src/filebrowser/FileBrowserActivity.cpp +++ b/src/gui/filebrowser/FileBrowserActivity.cpp @@ -1,20 +1,20 @@ #include #include #include "FileBrowserActivity.h" -#include "interface/Label.h" -#include "interface/Textbox.h" -#include "interface/ScrollPanel.h" -#include "interface/SaveButton.h" -#include "interface/ProgressBar.h" +#include "gui/interface/Label.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/ScrollPanel.h" +#include "gui/interface/SaveButton.h" +#include "gui/interface/ProgressBar.h" #include "client/Client.h" #include "client/SaveFile.h" #include "client/GameSave.h" -#include "Style.h" +#include "gui/Style.h" #include "tasks/Task.h" #include "simulation/SaveRenderer.h" -#include "dialogues/TextPrompt.h" -#include "dialogues/ConfirmPrompt.h" -#include "dialogues/ErrorMessage.h" +#include "gui/dialogues/TextPrompt.h" +#include "gui/dialogues/ConfirmPrompt.h" +#include "gui/dialogues/ErrorMessage.h" class Thumbnail; diff --git a/src/filebrowser/FileBrowserActivity.h b/src/gui/filebrowser/FileBrowserActivity.h similarity index 97% rename from src/filebrowser/FileBrowserActivity.h rename to src/gui/filebrowser/FileBrowserActivity.h index fa8f32a0a..d607d49ec 100644 --- a/src/filebrowser/FileBrowserActivity.h +++ b/src/gui/filebrowser/FileBrowserActivity.h @@ -3,7 +3,7 @@ #include #include #include "Activity.h" -#include "interface/Window.h" +#include "gui/interface/Window.h" #include "tasks/TaskListener.h" diff --git a/src/game/BitmapBrush.h b/src/gui/game/BitmapBrush.h similarity index 100% rename from src/game/BitmapBrush.h rename to src/gui/game/BitmapBrush.h diff --git a/src/game/Brush.cpp b/src/gui/game/Brush.cpp similarity index 100% rename from src/game/Brush.cpp rename to src/gui/game/Brush.cpp diff --git a/src/game/Brush.h b/src/gui/game/Brush.h similarity index 98% rename from src/game/Brush.h rename to src/gui/game/Brush.h index 7671caf85..a85360911 100644 --- a/src/game/Brush.h +++ b/src/gui/game/Brush.h @@ -2,7 +2,7 @@ #define BRUSH_H_ #include -#include "interface/Point.h" +#include "gui/interface/Point.h" class Renderer; class Brush diff --git a/src/game/DecorationTool.h b/src/gui/game/DecorationTool.h similarity index 100% rename from src/game/DecorationTool.h rename to src/gui/game/DecorationTool.h diff --git a/src/game/EllipseBrush.h b/src/gui/game/EllipseBrush.h similarity index 100% rename from src/game/EllipseBrush.h rename to src/gui/game/EllipseBrush.h diff --git a/src/game/GameController.cpp b/src/gui/game/GameController.cpp similarity index 98% rename from src/game/GameController.cpp rename to src/gui/game/GameController.cpp index 1493b3953..8df50366e 100644 --- a/src/game/GameController.cpp +++ b/src/gui/game/GameController.cpp @@ -7,24 +7,24 @@ #include "GameModel.h" #include "client/SaveInfo.h" #include "client/GameSave.h" -#include "search/SearchController.h" -#include "render/RenderController.h" -#include "login/LoginController.h" -#include "interface/Point.h" -#include "dialogues/ErrorMessage.h" -#include "dialogues/InformationMessage.h" -#include "dialogues/ConfirmPrompt.h" +#include "gui/search/SearchController.h" +#include "gui/render/RenderController.h" +#include "gui/login/LoginController.h" +#include "gui/interface/Point.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/dialogues/InformationMessage.h" +#include "gui/dialogues/ConfirmPrompt.h" #include "GameModelException.h" #include "simulation/Air.h" -#include "elementsearch/ElementSearchActivity.h" -#include "profile/ProfileActivity.h" -#include "colourpicker/ColourPickerActivity.h" -#include "update/UpdateActivity.h" +#include "gui/elementsearch/ElementSearchActivity.h" +#include "gui/profile/ProfileActivity.h" +#include "gui/colourpicker/ColourPickerActivity.h" +#include "gui/update/UpdateActivity.h" #include "Notification.h" -#include "filebrowser/FileBrowserActivity.h" -#include "save/LocalSaveActivity.h" -#include "save/ServerSaveActivity.h" -#include "interface/Keys.h" +#include "gui/filebrowser/FileBrowserActivity.h" +#include "gui/save/LocalSaveActivity.h" +#include "gui/save/ServerSaveActivity.h" +#include "gui/interface/Keys.h" #include "simulation/Snapshot.h" #include "debug/DebugInfo.h" //#include "debug/ElementPopulation.h" diff --git a/src/game/GameController.h b/src/gui/game/GameController.h similarity index 92% rename from src/game/GameController.h rename to src/gui/game/GameController.h index 070d39d10..644d25c02 100644 --- a/src/game/GameController.h +++ b/src/gui/game/GameController.h @@ -4,18 +4,18 @@ #include #include "GameView.h" #include "GameModel.h" -#include "interface/Point.h" #include "simulation/Simulation.h" -#include "search/SearchController.h" -#include "render/RenderController.h" -#include "preview/PreviewController.h" -#include "login/LoginController.h" -#include "tags/TagsController.h" -#include "console/ConsoleController.h" -#include "localbrowser/LocalBrowserController.h" +#include "gui/interface/Point.h" +#include "gui/search/SearchController.h" +#include "gui/render/RenderController.h" +#include "gui/preview/PreviewController.h" +#include "gui/login/LoginController.h" +#include "gui/tags/TagsController.h" +#include "gui/console/ConsoleController.h" +#include "gui/localbrowser/LocalBrowserController.h" +#include "gui/options/OptionsController.h" //#include "cat/TPTScriptInterface.h" #include "cat/LuaScriptInterface.h" -#include "options/OptionsController.h" #include "client/ClientListener.h" #include "RenderPreset.h" #include "Menu.h" diff --git a/src/game/GameModel.cpp b/src/gui/game/GameModel.cpp similarity index 99% rename from src/game/GameModel.cpp rename to src/gui/game/GameModel.cpp index e68767497..37194a516 100644 --- a/src/game/GameModel.cpp +++ b/src/gui/game/GameModel.cpp @@ -1,18 +1,18 @@ -#include "interface/Engine.h" +#include "gui/interface/Engine.h" #include "GameModel.h" #include "GameView.h" #include "simulation/Simulation.h" #include "simulation/Air.h" #include "simulation/Tools.h" #include "graphics/Renderer.h" -#include "interface/Point.h" +#include "gui/interface/Point.h" #include "Brush.h" #include "EllipseBrush.h" #include "TriangleBrush.h" #include "BitmapBrush.h" #include "client/Client.h" #include "client/GameSave.h" -#include "game/DecorationTool.h" +#include "gui/game/DecorationTool.h" #include "GameModelException.h" #include "QuickOptions.h" #include "Format.h" diff --git a/src/game/GameModel.h b/src/gui/game/GameModel.h similarity index 99% rename from src/game/GameModel.h rename to src/gui/game/GameModel.h index c1d97d627..0ade16272 100644 --- a/src/game/GameModel.h +++ b/src/gui/game/GameModel.h @@ -5,7 +5,7 @@ #include #include "client/SaveInfo.h" #include "simulation/Simulation.h" -#include "interface/Colour.h" +#include "gui/interface/Colour.h" #include "graphics/Renderer.h" #include "GameView.h" #include "GameController.h" diff --git a/src/game/GameModelException.h b/src/gui/game/GameModelException.h similarity index 100% rename from src/game/GameModelException.h rename to src/gui/game/GameModelException.h diff --git a/src/game/GameView.cpp b/src/gui/game/GameView.cpp similarity index 99% rename from src/game/GameView.cpp rename to src/gui/game/GameView.cpp index 5a7ad33f0..c11a59d0a 100644 --- a/src/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -2,18 +2,18 @@ #include #include "Config.h" -#include "Style.h" +#include "gui/Style.h" #include "GameView.h" #include "graphics/Graphics.h" -#include "interface/Window.h" -#include "interface/Button.h" -#include "interface/Colour.h" -#include "interface/Keys.h" -#include "interface/Slider.h" -#include "search/Thumbnail.h" +#include "gui/interface/Window.h" +#include "gui/interface/Button.h" +#include "gui/interface/Colour.h" +#include "gui/interface/Keys.h" +#include "gui/interface/Slider.h" +#include "gui/search/Thumbnail.h" #include "simulation/SaveRenderer.h" #include "simulation/SimulationData.h" -#include "dialogues/ConfirmPrompt.h" +#include "gui/dialogues/ConfirmPrompt.h" #include "Format.h" #include "QuickOption.h" #include "IntroText.h" diff --git a/src/game/GameView.h b/src/gui/game/GameView.h similarity index 96% rename from src/game/GameView.h rename to src/gui/game/GameView.h index 00dec5d34..093d80b2a 100644 --- a/src/game/GameView.h +++ b/src/gui/game/GameView.h @@ -7,11 +7,11 @@ #include #include "GameController.h" #include "GameModel.h" -#include "interface/Window.h" -#include "interface/Point.h" -#include "interface/Button.h" -#include "interface/Slider.h" -#include "interface/Textbox.h" +#include "gui/interface/Window.h" +#include "gui/interface/Point.h" +#include "gui/interface/Button.h" +#include "gui/interface/Slider.h" +#include "gui/interface/Textbox.h" #include "ToolButton.h" #include "Brush.h" #include "simulation/Sample.h" diff --git a/src/game/Menu.h b/src/gui/game/Menu.h similarity index 100% rename from src/game/Menu.h rename to src/gui/game/Menu.h diff --git a/src/game/Notification.h b/src/gui/game/Notification.h similarity index 100% rename from src/game/Notification.h rename to src/gui/game/Notification.h diff --git a/src/game/PropertyTool.cpp b/src/gui/game/PropertyTool.cpp similarity index 96% rename from src/game/PropertyTool.cpp rename to src/gui/game/PropertyTool.cpp index ee9f9eb7b..05726d38d 100644 --- a/src/game/PropertyTool.cpp +++ b/src/gui/game/PropertyTool.cpp @@ -1,15 +1,15 @@ #include #include -#include "Style.h" +#include "gui/Style.h" #include "simulation/Simulation.h" #include "Tool.h" -#include "interface/Window.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/Textbox.h" -#include "interface/DropDown.h" -#include "interface/Keys.h" -#include "dialogues/ErrorMessage.h" +#include "gui/interface/Window.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/DropDown.h" +#include "gui/interface/Keys.h" +#include "gui/dialogues/ErrorMessage.h" class PropertyWindow: public ui::Window { diff --git a/src/game/QuickOption.h b/src/gui/game/QuickOption.h similarity index 100% rename from src/game/QuickOption.h rename to src/gui/game/QuickOption.h diff --git a/src/game/QuickOptions.h b/src/gui/game/QuickOptions.h similarity index 100% rename from src/game/QuickOptions.h rename to src/gui/game/QuickOptions.h diff --git a/src/game/RenderPreset.h b/src/gui/game/RenderPreset.h similarity index 100% rename from src/game/RenderPreset.h rename to src/gui/game/RenderPreset.h diff --git a/src/game/SampleTool.cpp b/src/gui/game/SampleTool.cpp similarity index 98% rename from src/game/SampleTool.cpp rename to src/gui/game/SampleTool.cpp index a42a21423..b914b1c7a 100644 --- a/src/game/SampleTool.cpp +++ b/src/gui/game/SampleTool.cpp @@ -2,7 +2,7 @@ #include "graphics/Graphics.h" #include "Tool.h" #include "GameModel.h" -#include "interface/Colour.h" +#include "gui/interface/Colour.h" VideoBuffer * SampleTool::GetIcon(int toolID, int width, int height) { diff --git a/src/game/SignTool.cpp b/src/gui/game/SignTool.cpp similarity index 97% rename from src/game/SignTool.cpp rename to src/gui/game/SignTool.cpp index d2bba887f..a4042b197 100644 --- a/src/game/SignTool.cpp +++ b/src/gui/game/SignTool.cpp @@ -1,12 +1,12 @@ #include -#include "Style.h" +#include "gui/Style.h" #include "simulation/Simulation.h" #include "Tool.h" -#include "interface/Window.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/Textbox.h" -#include "interface/DropDown.h" +#include "gui/interface/Window.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/DropDown.h" class SignWindow: public ui::Window { diff --git a/src/game/Tool.cpp b/src/gui/game/Tool.cpp similarity index 99% rename from src/game/Tool.cpp rename to src/gui/game/Tool.cpp index 42f9b59d2..def6e46f5 100644 --- a/src/game/Tool.cpp +++ b/src/gui/game/Tool.cpp @@ -1,6 +1,6 @@ #include #include "Tool.h" -#include "game/Brush.h" +#include "gui/game/Brush.h" #include "simulation/Simulation.h" diff --git a/src/game/Tool.h b/src/gui/game/Tool.h similarity index 99% rename from src/game/Tool.h rename to src/gui/game/Tool.h index 0c8ab65b0..ea38fbcf9 100644 --- a/src/game/Tool.h +++ b/src/gui/game/Tool.h @@ -5,7 +5,7 @@ using namespace std; -#include "interface/Point.h" +#include "gui/interface/Point.h" class Simulation; class Brush; diff --git a/src/game/ToolButton.cpp b/src/gui/game/ToolButton.cpp similarity index 98% rename from src/game/ToolButton.cpp rename to src/gui/game/ToolButton.cpp index 575167fa8..8539ac734 100644 --- a/src/game/ToolButton.cpp +++ b/src/gui/game/ToolButton.cpp @@ -1,5 +1,5 @@ #include "ToolButton.h" -#include "interface/Keys.h" +#include "gui/interface/Keys.h" ToolButton::ToolButton(ui::Point position, ui::Point size, std::string text_, std::string toolTip): ui::Button(position, size, text_, toolTip) diff --git a/src/game/ToolButton.h b/src/gui/game/ToolButton.h similarity index 93% rename from src/game/ToolButton.h rename to src/gui/game/ToolButton.h index 6fdd7332f..86c89701a 100644 --- a/src/game/ToolButton.h +++ b/src/gui/game/ToolButton.h @@ -1,7 +1,7 @@ #ifndef TOOLBUTTON_H_ #define TOOLBUTTON_H_ -#include "interface/Button.h" +#include "gui/interface/Button.h" class ToolButton: public ui::Button { int currentSelection; diff --git a/src/game/TriangleBrush.h b/src/gui/game/TriangleBrush.h similarity index 100% rename from src/game/TriangleBrush.h rename to src/gui/game/TriangleBrush.h diff --git a/src/interface/Appearance.cpp b/src/gui/interface/Appearance.cpp similarity index 100% rename from src/interface/Appearance.cpp rename to src/gui/interface/Appearance.cpp diff --git a/src/interface/Appearance.h b/src/gui/interface/Appearance.h similarity index 100% rename from src/interface/Appearance.h rename to src/gui/interface/Appearance.h diff --git a/src/interface/AvatarButton.cpp b/src/gui/interface/AvatarButton.cpp similarity index 100% rename from src/interface/AvatarButton.cpp rename to src/gui/interface/AvatarButton.cpp diff --git a/src/interface/AvatarButton.h b/src/gui/interface/AvatarButton.h similarity index 97% rename from src/interface/AvatarButton.h rename to src/gui/interface/AvatarButton.h index f7a7a6c86..26b434831 100644 --- a/src/interface/AvatarButton.h +++ b/src/gui/interface/AvatarButton.h @@ -5,7 +5,7 @@ #include "Component.h" #include "graphics/Graphics.h" -#include "interface/Colour.h" +#include "gui/interface/Colour.h" #include "client/requestbroker/RequestListener.h" namespace ui diff --git a/src/interface/Border.h b/src/gui/interface/Border.h similarity index 100% rename from src/interface/Border.h rename to src/gui/interface/Border.h diff --git a/src/interface/Button.cpp b/src/gui/interface/Button.cpp similarity index 99% rename from src/interface/Button.cpp rename to src/gui/interface/Button.cpp index a2ecf8f50..3f08153d6 100644 --- a/src/interface/Button.cpp +++ b/src/gui/interface/Button.cpp @@ -1,5 +1,5 @@ #include -#include "interface/Button.h" +#include "gui/interface/Button.h" #include "graphics/Graphics.h" #include "Engine.h" #include "Misc.h" diff --git a/src/interface/Button.h b/src/gui/interface/Button.h similarity index 100% rename from src/interface/Button.h rename to src/gui/interface/Button.h diff --git a/src/interface/Checkbox.cpp b/src/gui/interface/Checkbox.cpp similarity index 100% rename from src/interface/Checkbox.cpp rename to src/gui/interface/Checkbox.cpp diff --git a/src/interface/Checkbox.h b/src/gui/interface/Checkbox.h similarity index 100% rename from src/interface/Checkbox.h rename to src/gui/interface/Checkbox.h diff --git a/src/interface/Colour.h b/src/gui/interface/Colour.h similarity index 100% rename from src/interface/Colour.h rename to src/gui/interface/Colour.h diff --git a/src/interface/Component.cpp b/src/gui/interface/Component.cpp similarity index 95% rename from src/interface/Component.cpp rename to src/gui/interface/Component.cpp index d009c5bbf..6c4c54846 100644 --- a/src/interface/Component.cpp +++ b/src/gui/interface/Component.cpp @@ -1,11 +1,11 @@ //#include "Platform.h" #include -#include "interface/Component.h" -#include "interface/Engine.h" -#include "interface/Point.h" -#include "interface/Window.h" -#include "interface/Panel.h" -#include "interface/ContextMenu.h" +#include "gui/interface/Component.h" +#include "gui/interface/Engine.h" +#include "gui/interface/Point.h" +#include "gui/interface/Window.h" +#include "gui/interface/Panel.h" +#include "gui/interface/ContextMenu.h" using namespace ui; diff --git a/src/interface/Component.h b/src/gui/interface/Component.h similarity index 100% rename from src/interface/Component.h rename to src/gui/interface/Component.h diff --git a/src/interface/ContextMenu.cpp b/src/gui/interface/ContextMenu.cpp similarity index 100% rename from src/interface/ContextMenu.cpp rename to src/gui/interface/ContextMenu.cpp diff --git a/src/interface/ContextMenu.h b/src/gui/interface/ContextMenu.h similarity index 100% rename from src/interface/ContextMenu.h rename to src/gui/interface/ContextMenu.h diff --git a/src/interface/DropDown.cpp b/src/gui/interface/DropDown.cpp similarity index 99% rename from src/interface/DropDown.cpp rename to src/gui/interface/DropDown.cpp index 4c1d76111..f1dda7c33 100644 --- a/src/interface/DropDown.cpp +++ b/src/gui/interface/DropDown.cpp @@ -1,5 +1,5 @@ #include -#include "Style.h" +#include "gui/Style.h" #include "Button.h" #include "DropDown.h" diff --git a/src/interface/DropDown.h b/src/gui/interface/DropDown.h similarity index 100% rename from src/interface/DropDown.h rename to src/gui/interface/DropDown.h diff --git a/src/interface/Engine.cpp b/src/gui/interface/Engine.cpp similarity index 97% rename from src/interface/Engine.cpp rename to src/gui/interface/Engine.cpp index 731f26510..6911c2518 100644 --- a/src/interface/Engine.cpp +++ b/src/gui/interface/Engine.cpp @@ -4,9 +4,9 @@ #include #include "Config.h" -#include "interface/Window.h" -#include "interface/Platform.h" -#include "interface/Engine.h" +#include "gui/interface/Window.h" +#include "gui/interface/Platform.h" +#include "gui/interface/Engine.h" #include "graphics/Graphics.h" using namespace ui; diff --git a/src/interface/Engine.h b/src/gui/interface/Engine.h similarity index 100% rename from src/interface/Engine.h rename to src/gui/interface/Engine.h diff --git a/src/interface/Keys.h b/src/gui/interface/Keys.h similarity index 100% rename from src/interface/Keys.h rename to src/gui/interface/Keys.h diff --git a/src/interface/Label.cpp b/src/gui/interface/Label.cpp similarity index 100% rename from src/interface/Label.cpp rename to src/gui/interface/Label.cpp diff --git a/src/interface/Label.h b/src/gui/interface/Label.h similarity index 100% rename from src/interface/Label.h rename to src/gui/interface/Label.h diff --git a/src/interface/LuaProgressBar.h b/src/gui/interface/LuaProgressBar.h similarity index 100% rename from src/interface/LuaProgressBar.h rename to src/gui/interface/LuaProgressBar.h diff --git a/src/interface/Panel.cpp b/src/gui/interface/Panel.cpp similarity index 98% rename from src/interface/Panel.cpp rename to src/gui/interface/Panel.cpp index d3bf29bbb..3b1926456 100644 --- a/src/interface/Panel.cpp +++ b/src/gui/interface/Panel.cpp @@ -2,11 +2,11 @@ #include //#include "Platform.h" -#include "interface/Panel.h" +#include "gui/interface/Panel.h" -#include "interface/Point.h" -#include "interface/Window.h" -#include "interface/Component.h" +#include "gui/interface/Point.h" +#include "gui/interface/Window.h" +#include "gui/interface/Component.h" #include "graphics/Graphics.h" using namespace ui; diff --git a/src/interface/Panel.h b/src/gui/interface/Panel.h similarity index 97% rename from src/interface/Panel.h rename to src/gui/interface/Panel.h index cfeace324..119be5de8 100644 --- a/src/interface/Panel.h +++ b/src/gui/interface/Panel.h @@ -2,9 +2,9 @@ #include //#include "Platform.h" -#include "interface/Point.h" -#include "interface/Window.h" -#include "interface/Component.h" +#include "gui/interface/Point.h" +#include "gui/interface/Window.h" +#include "gui/interface/Component.h" #ifdef OGLI #include "graphics/OpenGLHeaders.h" diff --git a/src/interface/Platform.h b/src/gui/interface/Platform.h similarity index 100% rename from src/interface/Platform.h rename to src/gui/interface/Platform.h diff --git a/src/interface/Point.h b/src/gui/interface/Point.h similarity index 100% rename from src/interface/Point.h rename to src/gui/interface/Point.h diff --git a/src/interface/ProgressBar.cpp b/src/gui/interface/ProgressBar.cpp similarity index 98% rename from src/interface/ProgressBar.cpp rename to src/gui/interface/ProgressBar.cpp index eda88f696..95da72cec 100644 --- a/src/interface/ProgressBar.cpp +++ b/src/gui/interface/ProgressBar.cpp @@ -1,5 +1,5 @@ #include "ProgressBar.h" -#include "Style.h" +#include "gui/Style.h" using namespace ui; diff --git a/src/interface/ProgressBar.h b/src/gui/interface/ProgressBar.h similarity index 100% rename from src/interface/ProgressBar.h rename to src/gui/interface/ProgressBar.h diff --git a/src/interface/RichLabel.cpp b/src/gui/interface/RichLabel.cpp similarity index 98% rename from src/interface/RichLabel.cpp rename to src/gui/interface/RichLabel.cpp index 84dc50004..f6143d30e 100644 --- a/src/interface/RichLabel.cpp +++ b/src/gui/interface/RichLabel.cpp @@ -3,8 +3,8 @@ #include "RichLabel.h" #include "Misc.h" -#include "interface/Point.h" -#include "interface/Component.h" +#include "gui/interface/Point.h" +#include "gui/interface/Component.h" #include "graphics/Graphics.h" using namespace ui; diff --git a/src/interface/RichLabel.h b/src/gui/interface/RichLabel.h similarity index 100% rename from src/interface/RichLabel.h rename to src/gui/interface/RichLabel.h diff --git a/src/interface/SaveButton.cpp b/src/gui/interface/SaveButton.cpp similarity index 100% rename from src/interface/SaveButton.cpp rename to src/gui/interface/SaveButton.cpp diff --git a/src/interface/SaveButton.h b/src/gui/interface/SaveButton.h similarity index 98% rename from src/interface/SaveButton.h rename to src/gui/interface/SaveButton.h index 0583d7723..7bb77c452 100644 --- a/src/interface/SaveButton.h +++ b/src/gui/interface/SaveButton.h @@ -8,7 +8,7 @@ #include "client/SaveInfo.h" #include "client/requestbroker/RequestListener.h" #include "graphics/Graphics.h" -#include "interface/Colour.h" +#include "gui/interface/Colour.h" namespace ui { diff --git a/src/interface/ScrollPanel.cpp b/src/gui/interface/ScrollPanel.cpp similarity index 100% rename from src/interface/ScrollPanel.cpp rename to src/gui/interface/ScrollPanel.cpp diff --git a/src/interface/ScrollPanel.h b/src/gui/interface/ScrollPanel.h similarity index 100% rename from src/interface/ScrollPanel.h rename to src/gui/interface/ScrollPanel.h diff --git a/src/interface/Slider.cpp b/src/gui/interface/Slider.cpp similarity index 100% rename from src/interface/Slider.cpp rename to src/gui/interface/Slider.cpp diff --git a/src/interface/Slider.h b/src/gui/interface/Slider.h similarity index 100% rename from src/interface/Slider.h rename to src/gui/interface/Slider.h diff --git a/src/interface/Spinner.cpp b/src/gui/interface/Spinner.cpp similarity index 100% rename from src/interface/Spinner.cpp rename to src/gui/interface/Spinner.cpp diff --git a/src/interface/Spinner.h b/src/gui/interface/Spinner.h similarity index 100% rename from src/interface/Spinner.h rename to src/gui/interface/Spinner.h diff --git a/src/interface/Textbox.cpp b/src/gui/interface/Textbox.cpp similarity index 99% rename from src/interface/Textbox.cpp rename to src/gui/interface/Textbox.cpp index 603c894bf..c23bcb44f 100644 --- a/src/interface/Textbox.cpp +++ b/src/gui/interface/Textbox.cpp @@ -3,9 +3,9 @@ #include #include #include "Config.h" -#include "interface/Point.h" -#include "interface/Textbox.h" -#include "interface/Keys.h" +#include "gui/interface/Point.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Keys.h" #include "ContextMenu.h" using namespace ui; diff --git a/src/interface/Textbox.h b/src/gui/interface/Textbox.h similarity index 100% rename from src/interface/Textbox.h rename to src/gui/interface/Textbox.h diff --git a/src/interface/Window.cpp b/src/gui/interface/Window.cpp similarity index 99% rename from src/interface/Window.cpp rename to src/gui/interface/Window.cpp index 3cd22e65e..9ec68573b 100644 --- a/src/interface/Window.cpp +++ b/src/gui/interface/Window.cpp @@ -2,8 +2,8 @@ #include "Window.h" #include "Keys.h" #include "Component.h" -#include "interface/Point.h" -#include "interface/Button.h" +#include "gui/interface/Point.h" +#include "gui/interface/Button.h" using namespace ui; diff --git a/src/interface/Window.h b/src/gui/interface/Window.h similarity index 99% rename from src/interface/Window.h rename to src/gui/interface/Window.h index 7906393d4..dafb91043 100644 --- a/src/interface/Window.h +++ b/src/gui/interface/Window.h @@ -2,7 +2,7 @@ #define WINDOW_H #include -#include "interface/Point.h" +#include "gui/interface/Point.h" #include "Engine.h" namespace ui diff --git a/src/localbrowser/LocalBrowserController.cpp b/src/gui/localbrowser/LocalBrowserController.cpp similarity index 98% rename from src/localbrowser/LocalBrowserController.cpp rename to src/gui/localbrowser/LocalBrowserController.cpp index fba25e337..a1a01ed40 100644 --- a/src/localbrowser/LocalBrowserController.cpp +++ b/src/gui/localbrowser/LocalBrowserController.cpp @@ -2,8 +2,8 @@ #include "client/Client.h" #include "LocalBrowserController.h" -#include "interface/Engine.h" -#include "dialogues/ConfirmPrompt.h" +#include "gui/interface/Engine.h" +#include "gui/dialogues/ConfirmPrompt.h" #include "tasks/TaskWindow.h" #include "tasks/Task.h" diff --git a/src/localbrowser/LocalBrowserController.h b/src/gui/localbrowser/LocalBrowserController.h similarity index 100% rename from src/localbrowser/LocalBrowserController.h rename to src/gui/localbrowser/LocalBrowserController.h diff --git a/src/localbrowser/LocalBrowserModel.cpp b/src/gui/localbrowser/LocalBrowserModel.cpp similarity index 100% rename from src/localbrowser/LocalBrowserModel.cpp rename to src/gui/localbrowser/LocalBrowserModel.cpp diff --git a/src/localbrowser/LocalBrowserModel.h b/src/gui/localbrowser/LocalBrowserModel.h similarity index 100% rename from src/localbrowser/LocalBrowserModel.h rename to src/gui/localbrowser/LocalBrowserModel.h diff --git a/src/localbrowser/LocalBrowserModelException.h b/src/gui/localbrowser/LocalBrowserModelException.h similarity index 100% rename from src/localbrowser/LocalBrowserModelException.h rename to src/gui/localbrowser/LocalBrowserModelException.h diff --git a/src/localbrowser/LocalBrowserView.cpp b/src/gui/localbrowser/LocalBrowserView.cpp similarity index 95% rename from src/localbrowser/LocalBrowserView.cpp rename to src/gui/localbrowser/LocalBrowserView.cpp index 700d24eb7..a25c281f9 100644 --- a/src/localbrowser/LocalBrowserView.cpp +++ b/src/gui/localbrowser/LocalBrowserView.cpp @@ -2,14 +2,14 @@ #include "client/Client.h" #include "LocalBrowserView.h" -#include "interface/Button.h" -#include "interface/Textbox.h" -#include "interface/Label.h" -#include "interface/SaveButton.h" -#include "interface/Keys.h" +#include "gui/interface/Button.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Label.h" +#include "gui/interface/SaveButton.h" +#include "gui/interface/Keys.h" -#include "dialogues/ErrorMessage.h" -#include "dialogues/ConfirmPrompt.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/dialogues/ConfirmPrompt.h" #include "LocalBrowserController.h" #include "LocalBrowserModel.h" #include "LocalBrowserModelException.h" diff --git a/src/localbrowser/LocalBrowserView.h b/src/gui/localbrowser/LocalBrowserView.h similarity index 96% rename from src/localbrowser/LocalBrowserView.h rename to src/gui/localbrowser/LocalBrowserView.h index 17930d92e..02aca2833 100644 --- a/src/localbrowser/LocalBrowserView.h +++ b/src/gui/localbrowser/LocalBrowserView.h @@ -2,7 +2,7 @@ #define STAMPSVIEW_H_ #include -#include "interface/Window.h" +#include "gui/interface/Window.h" namespace ui { diff --git a/src/login/LoginController.cpp b/src/gui/login/LoginController.cpp similarity index 100% rename from src/login/LoginController.cpp rename to src/gui/login/LoginController.cpp diff --git a/src/login/LoginController.h b/src/gui/login/LoginController.h similarity index 100% rename from src/login/LoginController.h rename to src/gui/login/LoginController.h diff --git a/src/login/LoginModel.cpp b/src/gui/login/LoginModel.cpp similarity index 100% rename from src/login/LoginModel.cpp rename to src/gui/login/LoginModel.cpp diff --git a/src/login/LoginModel.h b/src/gui/login/LoginModel.h similarity index 100% rename from src/login/LoginModel.h rename to src/gui/login/LoginModel.h diff --git a/src/login/LoginView.cpp b/src/gui/login/LoginView.cpp similarity index 96% rename from src/login/LoginView.cpp rename to src/gui/login/LoginView.cpp index a66088711..8ebbeb5b9 100644 --- a/src/login/LoginView.cpp +++ b/src/gui/login/LoginView.cpp @@ -1,10 +1,10 @@ #include "LoginView.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/Textbox.h" -#include "interface/Keys.h" -#include "Style.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Keys.h" +#include "gui/Style.h" class LoginView::LoginAction : public ui::ButtonAction { diff --git a/src/login/LoginView.h b/src/gui/login/LoginView.h similarity index 96% rename from src/login/LoginView.h rename to src/gui/login/LoginView.h index a492b75d2..adbe4ec7b 100644 --- a/src/login/LoginView.h +++ b/src/gui/login/LoginView.h @@ -1,7 +1,7 @@ #ifndef LOGINVIEW_H_ #define LOGINVIEW_H_ -#include "interface/Window.h" +#include "gui/interface/Window.h" #include "LoginController.h" #include "LoginModel.h" diff --git a/src/options/OptionsController.cpp b/src/gui/options/OptionsController.cpp similarity index 98% rename from src/options/OptionsController.cpp rename to src/gui/options/OptionsController.cpp index 17c42f4fd..672f2fcb8 100644 --- a/src/options/OptionsController.cpp +++ b/src/gui/options/OptionsController.cpp @@ -1,5 +1,5 @@ #include "OptionsController.h" -#include "dialogues/ErrorMessage.h" +#include "gui/dialogues/ErrorMessage.h" OptionsController::OptionsController(GameModel * gModel_, ControllerCallback * callback_): callback(callback_), diff --git a/src/options/OptionsController.h b/src/gui/options/OptionsController.h similarity index 100% rename from src/options/OptionsController.h rename to src/gui/options/OptionsController.h diff --git a/src/options/OptionsModel.cpp b/src/gui/options/OptionsModel.cpp similarity index 98% rename from src/options/OptionsModel.cpp rename to src/gui/options/OptionsModel.cpp index 8ca2a3074..829bf0ccd 100644 --- a/src/options/OptionsModel.cpp +++ b/src/gui/options/OptionsModel.cpp @@ -1,5 +1,5 @@ #include "simulation/Air.h" -#include "game/GameModel.h" +#include "gui/game/GameModel.h" #include "OptionsModel.h" OptionsModel::OptionsModel(GameModel * gModel_) { diff --git a/src/options/OptionsModel.h b/src/gui/options/OptionsModel.h similarity index 100% rename from src/options/OptionsModel.h rename to src/gui/options/OptionsModel.h diff --git a/src/options/OptionsView.cpp b/src/gui/options/OptionsView.cpp similarity index 98% rename from src/options/OptionsView.cpp rename to src/gui/options/OptionsView.cpp index 70aeba576..71c86aa4c 100644 --- a/src/options/OptionsView.cpp +++ b/src/gui/options/OptionsView.cpp @@ -1,8 +1,8 @@ #include "OptionsView.h" -#include "Style.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/DropDown.h" +#include "gui/Style.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" +#include "gui/interface/DropDown.h" OptionsView::OptionsView(): ui::Window(ui::Point(-1, -1), ui::Point(300, 310)){ diff --git a/src/options/OptionsView.h b/src/gui/options/OptionsView.h similarity index 87% rename from src/options/OptionsView.h rename to src/gui/options/OptionsView.h index 4ee254faa..2bbc3f20d 100644 --- a/src/options/OptionsView.h +++ b/src/gui/options/OptionsView.h @@ -1,10 +1,10 @@ #ifndef OPTIONSVIEW_H_ #define OPTIONSVIEW_H_ -#include "interface/Window.h" +#include "gui/interface/Window.h" #include "OptionsController.h" -#include "interface/Checkbox.h" -#include "interface/DropDown.h" +#include "gui/interface/Checkbox.h" +#include "gui/interface/DropDown.h" #include "OptionsModel.h" class OptionsModel; diff --git a/src/preview/Comment.h b/src/gui/preview/Comment.h similarity index 100% rename from src/preview/Comment.h rename to src/gui/preview/Comment.h diff --git a/src/preview/PreviewController.cpp b/src/gui/preview/PreviewController.cpp similarity index 98% rename from src/preview/PreviewController.cpp rename to src/gui/preview/PreviewController.cpp index 1616c6399..30622c2a2 100644 --- a/src/preview/PreviewController.cpp +++ b/src/gui/preview/PreviewController.cpp @@ -4,8 +4,8 @@ #include "PreviewView.h" #include "PreviewModel.h" #include "PreviewModelException.h" -#include "dialogues/ErrorMessage.h" -#include "login/LoginController.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/login/LoginController.h" #include "Controller.h" PreviewController::PreviewController(int saveID, int saveDate, ControllerCallback * callback): diff --git a/src/preview/PreviewController.h b/src/gui/preview/PreviewController.h similarity index 93% rename from src/preview/PreviewController.h rename to src/gui/preview/PreviewController.h index ab63ae49a..e1e429d6e 100644 --- a/src/preview/PreviewController.h +++ b/src/gui/preview/PreviewController.h @@ -1,8 +1,8 @@ #ifndef PREVIEWCONTROLLER_H_ #define PREVIEWCONTROLLER_H_ -#include "preview/PreviewModel.h" -#include "preview/PreviewView.h" +#include "gui/preview/PreviewModel.h" +#include "gui/preview/PreviewView.h" #include "Controller.h" #include "client/SaveInfo.h" #include "client/ClientListener.h" diff --git a/src/preview/PreviewModel.cpp b/src/gui/preview/PreviewModel.cpp similarity index 100% rename from src/preview/PreviewModel.cpp rename to src/gui/preview/PreviewModel.cpp diff --git a/src/preview/PreviewModel.h b/src/gui/preview/PreviewModel.h similarity index 96% rename from src/preview/PreviewModel.h rename to src/gui/preview/PreviewModel.h index a8800e3ff..846614c74 100644 --- a/src/preview/PreviewModel.h +++ b/src/gui/preview/PreviewModel.h @@ -7,8 +7,8 @@ #undef GetUserName //God dammit microsoft! #include "PreviewView.h" #include "client/SaveInfo.h" -#include "preview/Comment.h" -#include "search/Thumbnail.h" +#include "gui/preview/Comment.h" +#include "gui/search/Thumbnail.h" using namespace std; diff --git a/src/preview/PreviewModelException.h b/src/gui/preview/PreviewModelException.h similarity index 100% rename from src/preview/PreviewModelException.h rename to src/gui/preview/PreviewModelException.h diff --git a/src/preview/PreviewView.cpp b/src/gui/preview/PreviewView.cpp similarity index 98% rename from src/preview/PreviewView.cpp rename to src/gui/preview/PreviewView.cpp index e04295a8f..42117322f 100644 --- a/src/preview/PreviewView.cpp +++ b/src/gui/preview/PreviewView.cpp @@ -2,18 +2,18 @@ #include #include #include "PreviewView.h" -#include "dialogues/TextPrompt.h" +#include "gui/dialogues/TextPrompt.h" #include "simulation/SaveRenderer.h" -#include "interface/Point.h" -#include "interface/Window.h" -#include "interface/Textbox.h" -#include "Style.h" +#include "gui/interface/Point.h" +#include "gui/interface/Window.h" +#include "gui/interface/Textbox.h" +#include "gui/Style.h" #include "Format.h" -#include "search/Thumbnail.h" +#include "gui/search/Thumbnail.h" #include "client/Client.h" -#include "interface/ScrollPanel.h" -#include "interface/AvatarButton.h" -#include "interface/Keys.h" +#include "gui/interface/ScrollPanel.h" +#include "gui/interface/AvatarButton.h" +#include "gui/interface/Keys.h" class PreviewView::LoginAction: public ui::ButtonAction { diff --git a/src/preview/PreviewView.h b/src/gui/preview/PreviewView.h similarity index 89% rename from src/preview/PreviewView.h rename to src/gui/preview/PreviewView.h index c9025fd74..2fef5acc4 100644 --- a/src/preview/PreviewView.h +++ b/src/gui/preview/PreviewView.h @@ -3,12 +3,12 @@ #include #include "Comment.h" -#include "interface/Window.h" -#include "preview/PreviewController.h" -#include "preview/PreviewModel.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/Textbox.h" +#include "gui/interface/Window.h" +#include "gui/preview/PreviewController.h" +#include "gui/preview/PreviewModel.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" +#include "gui/interface/Textbox.h" namespace ui { diff --git a/src/profile/ProfileActivity.cpp b/src/gui/profile/ProfileActivity.cpp similarity index 95% rename from src/profile/ProfileActivity.cpp rename to src/gui/profile/ProfileActivity.cpp index ed10df9c5..54da81e4b 100644 --- a/src/profile/ProfileActivity.cpp +++ b/src/gui/profile/ProfileActivity.cpp @@ -1,12 +1,12 @@ #include #include "ProfileActivity.h" -#include "interface/Button.h" -#include "interface/Textbox.h" -#include "interface/Label.h" -#include "interface/AvatarButton.h" -#include "interface/ScrollPanel.h" -#include "interface/Keys.h" -#include "Style.h" +#include "gui/interface/Button.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Label.h" +#include "gui/interface/AvatarButton.h" +#include "gui/interface/ScrollPanel.h" +#include "gui/interface/Keys.h" +#include "gui/Style.h" #include "client/Client.h" #include "client/UserInfo.h" #include "client/requestbroker/RequestListener.h" diff --git a/src/profile/ProfileActivity.h b/src/gui/profile/ProfileActivity.h similarity index 94% rename from src/profile/ProfileActivity.h rename to src/gui/profile/ProfileActivity.h index 9691dff9e..ed10e6511 100644 --- a/src/profile/ProfileActivity.h +++ b/src/gui/profile/ProfileActivity.h @@ -5,7 +5,7 @@ #include "Activity.h" #include "client/requestbroker/RequestListener.h" #include "client/UserInfo.h" -#include "interface/Window.h" +#include "gui/interface/Window.h" class ProfileActivity: public WindowActivity, public RequestListener { ui::Component * location; diff --git a/src/render/RenderController.cpp b/src/gui/render/RenderController.cpp similarity index 100% rename from src/render/RenderController.cpp rename to src/gui/render/RenderController.cpp diff --git a/src/render/RenderController.h b/src/gui/render/RenderController.h similarity index 100% rename from src/render/RenderController.h rename to src/gui/render/RenderController.h diff --git a/src/render/RenderModel.cpp b/src/gui/render/RenderModel.cpp similarity index 100% rename from src/render/RenderModel.cpp rename to src/gui/render/RenderModel.cpp diff --git a/src/render/RenderModel.h b/src/gui/render/RenderModel.h similarity index 100% rename from src/render/RenderModel.h rename to src/gui/render/RenderModel.h diff --git a/src/render/RenderView.cpp b/src/gui/render/RenderView.cpp similarity index 100% rename from src/render/RenderView.cpp rename to src/gui/render/RenderView.cpp diff --git a/src/render/RenderView.h b/src/gui/render/RenderView.h similarity index 92% rename from src/render/RenderView.h rename to src/gui/render/RenderView.h index 5da8c1d45..8a65eb151 100644 --- a/src/render/RenderView.h +++ b/src/gui/render/RenderView.h @@ -3,12 +3,12 @@ #include -#include "interface/Window.h" +#include "gui/interface/Window.h" #include "RenderController.h" #include "RenderModel.h" #include "graphics/Renderer.h" -#include "interface/Checkbox.h" -#include "interface/Button.h" +#include "gui/interface/Checkbox.h" +#include "gui/interface/Button.h" class RenderController; class RenderModel; diff --git a/src/save/LocalSaveActivity.cpp b/src/gui/save/LocalSaveActivity.cpp similarity index 94% rename from src/save/LocalSaveActivity.cpp rename to src/gui/save/LocalSaveActivity.cpp index 0e968aafe..f494f0992 100644 --- a/src/save/LocalSaveActivity.cpp +++ b/src/gui/save/LocalSaveActivity.cpp @@ -1,14 +1,14 @@ #include "LocalSaveActivity.h" -#include "interface/Label.h" -#include "interface/Textbox.h" -#include "interface/Button.h" -#include "search/Thumbnail.h" +#include "gui/interface/Label.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Button.h" +#include "gui/search/Thumbnail.h" #include "client/requestbroker/RequestBroker.h" -#include "dialogues/ErrorMessage.h" -#include "dialogues/ConfirmPrompt.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/dialogues/ConfirmPrompt.h" #include "client/Client.h" #include "client/GameSave.h" -#include "Style.h" +#include "gui/Style.h" class LocalSaveActivity::CancelAction: public ui::ButtonAction { diff --git a/src/save/LocalSaveActivity.h b/src/gui/save/LocalSaveActivity.h similarity index 100% rename from src/save/LocalSaveActivity.h rename to src/gui/save/LocalSaveActivity.h diff --git a/src/save/ServerSaveActivity.cpp b/src/gui/save/ServerSaveActivity.cpp similarity index 97% rename from src/save/ServerSaveActivity.cpp rename to src/gui/save/ServerSaveActivity.cpp index 020e3467e..e8dfc1d5e 100644 --- a/src/save/ServerSaveActivity.cpp +++ b/src/gui/save/ServerSaveActivity.cpp @@ -1,15 +1,15 @@ #include "ServerSaveActivity.h" -#include "interface/Label.h" -#include "interface/Textbox.h" -#include "interface/Button.h" -#include "interface/Checkbox.h" +#include "gui/interface/Label.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Button.h" +#include "gui/interface/Checkbox.h" #include "client/requestbroker/RequestBroker.h" -#include "dialogues/ErrorMessage.h" -#include "dialogues/ConfirmPrompt.h" -#include "dialogues/InformationMessage.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/dialogues/ConfirmPrompt.h" +#include "gui/dialogues/InformationMessage.h" #include "client/Client.h" #include "tasks/Task.h" -#include "Style.h" +#include "gui/Style.h" #include "client/GameSave.h" class ServerSaveActivity::CancelAction: public ui::ButtonAction diff --git a/src/save/ServerSaveActivity.h b/src/gui/save/ServerSaveActivity.h similarity index 100% rename from src/save/ServerSaveActivity.h rename to src/gui/save/ServerSaveActivity.h diff --git a/src/search/SearchController.cpp b/src/gui/search/SearchController.cpp similarity index 98% rename from src/search/SearchController.cpp rename to src/gui/search/SearchController.cpp index 4c9734287..b8819624f 100644 --- a/src/search/SearchController.cpp +++ b/src/gui/search/SearchController.cpp @@ -4,10 +4,10 @@ #include "SearchController.h" #include "SearchModel.h" #include "SearchView.h" -#include "interface/Panel.h" -#include "dialogues/ConfirmPrompt.h" -#include "dialogues/ErrorMessage.h" -#include "preview/PreviewController.h" +#include "gui/interface/Panel.h" +#include "gui/dialogues/ConfirmPrompt.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/preview/PreviewController.h" #include "client/Client.h" #include "tasks/Task.h" #include "tasks/TaskWindow.h" diff --git a/src/search/SearchController.h b/src/gui/search/SearchController.h similarity index 93% rename from src/search/SearchController.h rename to src/gui/search/SearchController.h index 03967b411..8d811ab98 100644 --- a/src/search/SearchController.h +++ b/src/gui/search/SearchController.h @@ -1,10 +1,10 @@ #ifndef SEARCHCONTROLLER_H #define SEARCHCONTROLLER_H -#include "interface/Panel.h" +#include "gui/interface/Panel.h" #include "SearchModel.h" #include "SearchView.h" -#include "preview/PreviewController.h" +#include "gui/preview/PreviewController.h" #include "Controller.h" #include "client/SaveInfo.h" diff --git a/src/search/SearchModel.cpp b/src/gui/search/SearchModel.cpp similarity index 100% rename from src/search/SearchModel.cpp rename to src/gui/search/SearchModel.cpp diff --git a/src/search/SearchModel.h b/src/gui/search/SearchModel.h similarity index 100% rename from src/search/SearchModel.h rename to src/gui/search/SearchModel.h diff --git a/src/search/SearchView.cpp b/src/gui/search/SearchView.cpp similarity index 99% rename from src/search/SearchView.cpp rename to src/gui/search/SearchView.cpp index 474c4e30c..902be770d 100644 --- a/src/search/SearchView.cpp +++ b/src/gui/search/SearchView.cpp @@ -2,11 +2,11 @@ #include "SearchView.h" #include "client/Client.h" -#include "interface/Keys.h" -#include "interface/SaveButton.h" -#include "interface/Label.h" -#include "interface/RichLabel.h" -#include "interface/Textbox.h" +#include "gui/interface/Keys.h" +#include "gui/interface/SaveButton.h" +#include "gui/interface/Label.h" +#include "gui/interface/RichLabel.h" +#include "gui/interface/Textbox.h" #include "Misc.h" SearchView::SearchView(): diff --git a/src/search/SearchView.h b/src/gui/search/SearchView.h similarity index 91% rename from src/search/SearchView.h rename to src/gui/search/SearchView.h index 05ecde2ef..5752a2ce3 100644 --- a/src/search/SearchView.h +++ b/src/gui/search/SearchView.h @@ -3,11 +3,11 @@ #include #include "SearchController.h" -#include "interface/SaveButton.h" -#include "interface/Button.h" -#include "interface/Label.h" -#include "interface/Spinner.h" -#include "interface/Textbox.h" +#include "gui/interface/SaveButton.h" +#include "gui/interface/Button.h" +#include "gui/interface/Label.h" +#include "gui/interface/Spinner.h" +#include "gui/interface/Textbox.h" #include "client/ClientListener.h" using namespace std; diff --git a/src/search/Thumbnail.cpp b/src/gui/search/Thumbnail.cpp similarity index 100% rename from src/search/Thumbnail.cpp rename to src/gui/search/Thumbnail.cpp diff --git a/src/search/Thumbnail.h b/src/gui/search/Thumbnail.h similarity index 92% rename from src/search/Thumbnail.h rename to src/gui/search/Thumbnail.h index 74ebbad4f..27ffa8711 100644 --- a/src/search/Thumbnail.h +++ b/src/gui/search/Thumbnail.h @@ -3,7 +3,7 @@ #include #include "graphics/Graphics.h" -#include "interface/Point.h" +#include "gui/interface/Point.h" class Thumbnail { diff --git a/src/tags/TagsController.cpp b/src/gui/tags/TagsController.cpp similarity index 96% rename from src/tags/TagsController.cpp rename to src/gui/tags/TagsController.cpp index c3ecb2eac..4165642e7 100644 --- a/src/tags/TagsController.cpp +++ b/src/gui/tags/TagsController.cpp @@ -1,5 +1,5 @@ #include "TagsController.h" -#include "interface/Engine.h" +#include "gui/interface/Engine.h" #include "TagsModel.h" #include "TagsView.h" diff --git a/src/tags/TagsController.h b/src/gui/tags/TagsController.h similarity index 100% rename from src/tags/TagsController.h rename to src/gui/tags/TagsController.h diff --git a/src/tags/TagsModel.cpp b/src/gui/tags/TagsModel.cpp similarity index 100% rename from src/tags/TagsModel.cpp rename to src/gui/tags/TagsModel.cpp diff --git a/src/tags/TagsModel.h b/src/gui/tags/TagsModel.h similarity index 100% rename from src/tags/TagsModel.h rename to src/gui/tags/TagsModel.h diff --git a/src/tags/TagsModelException.h b/src/gui/tags/TagsModelException.h similarity index 100% rename from src/tags/TagsModelException.h rename to src/gui/tags/TagsModelException.h diff --git a/src/tags/TagsView.cpp b/src/gui/tags/TagsView.cpp similarity index 96% rename from src/tags/TagsView.cpp rename to src/gui/tags/TagsView.cpp index 4e3c9484b..03b289366 100644 --- a/src/tags/TagsView.cpp +++ b/src/gui/tags/TagsView.cpp @@ -1,15 +1,15 @@ #include "client/Client.h" #include "TagsView.h" -#include "dialogues/ErrorMessage.h" +#include "gui/dialogues/ErrorMessage.h" #include "TagsController.h" #include "TagsModel.h" #include "TagsModelException.h" -#include "interface/Button.h" -#include "interface/Textbox.h" -#include "interface/Label.h" -#include "interface/Keys.h" +#include "gui/interface/Button.h" +#include "gui/interface/Textbox.h" +#include "gui/interface/Label.h" +#include "gui/interface/Keys.h" TagsView::TagsView(): ui::Window(ui::Point(-1, -1), ui::Point(195, 250)) diff --git a/src/tags/TagsView.h b/src/gui/tags/TagsView.h similarity index 95% rename from src/tags/TagsView.h rename to src/gui/tags/TagsView.h index 222fb1b1b..a842e1373 100644 --- a/src/tags/TagsView.h +++ b/src/gui/tags/TagsView.h @@ -2,7 +2,7 @@ #define TAGSVIEW_H_ #include -#include "interface/Window.h" +#include "gui/interface/Window.h" namespace ui { diff --git a/src/update/UpdateActivity.cpp b/src/gui/update/UpdateActivity.cpp similarity index 98% rename from src/update/UpdateActivity.cpp rename to src/gui/update/UpdateActivity.cpp index 8e4ee0565..7eadf7f7f 100644 --- a/src/update/UpdateActivity.cpp +++ b/src/gui/update/UpdateActivity.cpp @@ -1,7 +1,7 @@ #include #include -#include "dialogues/ConfirmPrompt.h" -#include "interface/Engine.h" +#include "gui/dialogues/ConfirmPrompt.h" +#include "gui/interface/Engine.h" #include "UpdateActivity.h" #include "tasks/Task.h" #include "client/HTTP.h" diff --git a/src/update/UpdateActivity.h b/src/gui/update/UpdateActivity.h similarity index 100% rename from src/update/UpdateActivity.h rename to src/gui/update/UpdateActivity.h diff --git a/src/simulation/SaveRenderer.cpp b/src/simulation/SaveRenderer.cpp index 05601d9e2..4fabd95f3 100644 --- a/src/simulation/SaveRenderer.cpp +++ b/src/simulation/SaveRenderer.cpp @@ -3,7 +3,7 @@ #include "graphics/Graphics.h" #include "Simulation.h" #include "graphics/Renderer.h" -#include "search/Thumbnail.h" +#include "gui/search/Thumbnail.h" SaveRenderer::SaveRenderer(){ diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index d59ac51c8..bec937ff0 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -18,7 +18,7 @@ //#include "graphics/Graphics.h" #include "Misc.h" #include "Tools.h" -#include "game/Brush.h" +#include "gui/game/Brush.h" #include "client/GameSave.h" #include "Sample.h" #include "Snapshot.h" diff --git a/src/tasks/TaskWindow.cpp b/src/tasks/TaskWindow.cpp index 69a7751b4..f780d32f1 100644 --- a/src/tasks/TaskWindow.cpp +++ b/src/tasks/TaskWindow.cpp @@ -1,8 +1,8 @@ #include -#include "interface/Label.h" +#include "gui/interface/Label.h" #include "TaskWindow.h" -#include "dialogues/ErrorMessage.h" -#include "Style.h" +#include "gui/dialogues/ErrorMessage.h" +#include "gui/Style.h" #include "Task.h" TaskWindow::TaskWindow(std::string title_, Task * task_, bool closeOnDone): diff --git a/src/tasks/TaskWindow.h b/src/tasks/TaskWindow.h index 4b5313fbf..44acd222e 100644 --- a/src/tasks/TaskWindow.h +++ b/src/tasks/TaskWindow.h @@ -2,8 +2,8 @@ #define TASKWINDOW_H_ #include -#include "interface/Label.h" -#include "interface/Window.h" +#include "gui/interface/Label.h" +#include "gui/interface/Window.h" #include "tasks/TaskListener.h" class Task;