mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Header inclusion cleanup
This commit is contained in:
parent
7c35ad5005
commit
a8fc560749
|
@ -1,20 +1,20 @@
|
|||
#include "SystemData.h"
|
||||
#include "Gamelist.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/xpressive/xpressive.hpp>
|
||||
#include "Util.h"
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
#include <stdlib.h>
|
||||
#include <SDL_joystick.h>
|
||||
#include "Renderer.h"
|
||||
#include "Log.h"
|
||||
#include "InputManager.h"
|
||||
#include <iostream>
|
||||
#include "Settings.h"
|
||||
#include "pugixml/src/pugixml.hpp"
|
||||
#include "CollectionSystemManager.h"
|
||||
|
||||
#include "guis/GuiInfoPopup.h"
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "FileData.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "Log.h"
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
#include "ThemeData.h"
|
||||
#include "Util.h"
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/xpressive/xpressive.hpp>
|
||||
#include <fstream>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
std::string myCollectionsName = "collections";
|
||||
|
|
|
@ -2,16 +2,14 @@
|
|||
#ifndef ES_APP_COLLECTION_SYSTEM_MANAGER_H
|
||||
#define ES_APP_COLLECTION_SYSTEM_MANAGER_H
|
||||
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include "FileData.h"
|
||||
#include "Window.h"
|
||||
#include "MetaData.h"
|
||||
#include "PlatformId.h"
|
||||
#include "ThemeData.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "SystemData.h"
|
||||
#include "views/ViewController.h"
|
||||
#include <vector>
|
||||
|
||||
class FileData;
|
||||
class SystemData;
|
||||
class Window;
|
||||
struct SystemEnvironmentData;
|
||||
|
||||
enum CollectionSystemType
|
||||
{
|
||||
|
|
|
@ -1,11 +1,18 @@
|
|||
#include "FileData.h"
|
||||
#include "FileSorts.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "SystemData.h"
|
||||
#include "Log.h"
|
||||
|
||||
#include "AudioManager.h"
|
||||
#include "VolumeControl.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "FileSorts.h"
|
||||
#include "Log.h"
|
||||
#include "platform.h"
|
||||
#include "SystemData.h"
|
||||
#include "Util.h"
|
||||
#include "VolumeControl.h"
|
||||
#include "Window.h"
|
||||
#include <boost/algorithm/string/trim.hpp>
|
||||
#include <boost/date_time/posix_time/posix_time_types.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
|
|
|
@ -2,13 +2,12 @@
|
|||
#ifndef ES_APP_FILE_DATA_H
|
||||
#define ES_APP_FILE_DATA_H
|
||||
|
||||
#include <unordered_map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include "MetaData.h"
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <unordered_map>
|
||||
|
||||
class SystemData;
|
||||
class Window;
|
||||
struct SystemEnvironmentData;
|
||||
|
||||
enum FileType
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#include "FileFilterIndex.h"
|
||||
|
||||
#include "FileData.h"
|
||||
#include "Log.h"
|
||||
#include "Util.h"
|
||||
#include <boost/algorithm/string/trim.hpp>
|
||||
|
||||
#define UNKNOWN_LABEL "UNKNOWN"
|
||||
#define INCLUDE_UNKNOWN false;
|
||||
|
||||
|
@ -123,7 +128,7 @@ std::string FileFilterIndex::getIndexableKey(FileData* game, FilterIndexType typ
|
|||
std::string ratingString = game->metadata.get("rating");
|
||||
if (!ratingString.empty()) {
|
||||
try {
|
||||
ratingNumber = boost::math::iround(std::stod(ratingString)*5);
|
||||
ratingNumber = (int)((std::stod(ratingString)*5)+0.5);
|
||||
if (ratingNumber < 0)
|
||||
ratingNumber = 0;
|
||||
|
||||
|
|
|
@ -3,13 +3,9 @@
|
|||
#define ES_APP_FILE_FILTER_INDEX_H
|
||||
|
||||
#include <map>
|
||||
#include "FileData.h"
|
||||
#include "Log.h"
|
||||
#include <boost/math/special_functions/round.hpp>
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include "Util.h"
|
||||
#include <vector>
|
||||
|
||||
class FileData;
|
||||
|
||||
enum FilterIndexType
|
||||
{
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
#ifndef ES_APP_FILE_SORTS_H
|
||||
#define ES_APP_FILE_SORTS_H
|
||||
|
||||
#include <vector>
|
||||
#include "FileData.h"
|
||||
#include "SystemData.h"
|
||||
#include <vector>
|
||||
|
||||
namespace FileSorts
|
||||
{
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
#include "Gamelist.h"
|
||||
#include "SystemData.h"
|
||||
#include "pugixml/src/pugixml.hpp"
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include "FileData.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "Log.h"
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
#include "Util.h"
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#include "MetaData.h"
|
||||
#include "components/TextComponent.h"
|
||||
|
||||
#include "Log.h"
|
||||
#include "Util.h"
|
||||
#include <boost/date_time/posix_time/time_formatters.hpp>
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
|
|
|
@ -2,12 +2,9 @@
|
|||
#ifndef ES_APP_META_DATA_H
|
||||
#define ES_APP_META_DATA_H
|
||||
|
||||
#include "pugixml/src/pugixml.hpp"
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include "GuiComponent.h"
|
||||
#include <boost/date_time.hpp>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/date_time/posix_time/ptime.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
#include <pugixml/src/pugixml.hpp>
|
||||
|
||||
enum MetaDataType
|
||||
{
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include "PlatformId.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
extern const char* mameNameToRealName[];
|
||||
|
|
|
@ -2,8 +2,6 @@
|
|||
#ifndef ES_APP_PLATFORM_ID_H
|
||||
#define ES_APP_PLATFORM_ID_H
|
||||
|
||||
#include <map>
|
||||
|
||||
namespace PlatformIds
|
||||
{
|
||||
enum PlatformId : unsigned int
|
||||
|
|
|
@ -1,10 +1,15 @@
|
|||
#include "ScraperCmdLine.h"
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include "SystemData.h"
|
||||
#include "Settings.h"
|
||||
#include <signal.h>
|
||||
|
||||
#include "Log.h"
|
||||
#include "platform.h"
|
||||
#include "SystemData.h"
|
||||
#include <iostream>
|
||||
#include <signal.h>
|
||||
#if defined(__linux__)
|
||||
#include <unistd.h>
|
||||
#elif defined(WIN32)
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
std::ostream& out = std::cout;
|
||||
|
||||
|
|
|
@ -1,15 +1,18 @@
|
|||
#include "SystemData.h"
|
||||
#include "Gamelist.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <fstream>
|
||||
#include <stdlib.h>
|
||||
#include <SDL_joystick.h>
|
||||
#include "Renderer.h"
|
||||
#include "Log.h"
|
||||
#include "InputManager.h"
|
||||
#include <iostream>
|
||||
#include "Settings.h"
|
||||
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "FileSorts.h"
|
||||
#include "Gamelist.h"
|
||||
#include "Log.h"
|
||||
#include "platform.h"
|
||||
#include "Settings.h"
|
||||
#include "ThemeData.h"
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <fstream>
|
||||
#ifdef WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
std::vector<SystemData*> SystemData::sSystemVector;
|
||||
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
#ifndef ES_APP_SYSTEM_DATA_H
|
||||
#define ES_APP_SYSTEM_DATA_H
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "FileData.h"
|
||||
#include "Window.h"
|
||||
#include "MetaData.h"
|
||||
#include "PlatformId.h"
|
||||
#include "ThemeData.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class FileData;
|
||||
class FileFilterIndex;
|
||||
class ThemeData;
|
||||
|
||||
struct SystemEnvironmentData
|
||||
{
|
||||
|
|
|
@ -1,21 +1,21 @@
|
|||
#include "SystemScreenSaver.h"
|
||||
|
||||
#ifdef _RPI_
|
||||
#include "components/VideoPlayerComponent.h"
|
||||
#endif
|
||||
#include "components/VideoVlcComponent.h"
|
||||
#include "components/ImageComponent.h"
|
||||
#include "platform.h"
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "FileData.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "Log.h"
|
||||
#include "PowerSaver.h"
|
||||
#include "Renderer.h"
|
||||
#include "Settings.h"
|
||||
#include "Sound.h"
|
||||
#include "SystemData.h"
|
||||
#include "Util.h"
|
||||
#include "Log.h"
|
||||
#include "AudioManager.h"
|
||||
#include "Sound.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
#include <stdio.h>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <unordered_map>
|
||||
|
||||
#define FADE_TIME 300
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
#include "Window.h"
|
||||
|
||||
class VideoComponent;
|
||||
class ImageComponent;
|
||||
class Sound;
|
||||
class VideoComponent;
|
||||
|
||||
// Screensaver implementation for main window
|
||||
class SystemScreenSaver : public Window::ScreenSaver
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#include "VolumeControl.h"
|
||||
#include "Settings.h"
|
||||
|
||||
#include "Log.h"
|
||||
|
||||
#include "Settings.h"
|
||||
#ifdef WIN32
|
||||
#include <mmdeviceapi.h>
|
||||
#endif
|
||||
|
||||
#if defined(__linux__)
|
||||
#ifdef _RPI_
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#define ES_APP_VOLUME_CONTROL_H
|
||||
|
||||
#include <memory>
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined (__APPLE__)
|
||||
#error TODO: Not implemented for MacOS yet!!!
|
||||
|
@ -13,9 +12,8 @@
|
|||
#include <alsa/asoundlib.h>
|
||||
#elif defined(WIN32) || defined(_WIN32)
|
||||
#include <Windows.h>
|
||||
#include <MMSystem.h>
|
||||
#include <mmdeviceapi.h>
|
||||
#include <endpointvolume.h>
|
||||
#include <mmeapi.h>
|
||||
#endif
|
||||
|
||||
/*!
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
#define ES_APP_ANIMATIONS_LAUNCH_ANIMATION_H
|
||||
|
||||
#include "animations/Animation.h"
|
||||
#include "Log.h"
|
||||
|
||||
// let's look at the game launch effect:
|
||||
// -move camera to center on point P (interpolation method: linear)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#include "components/AsyncReqComponent.h"
|
||||
|
||||
#include "HttpReq.h"
|
||||
#include "Renderer.h"
|
||||
|
||||
AsyncReqComponent::AsyncReqComponent(Window* window, std::shared_ptr<HttpReq> req, std::function<void(std::shared_ptr<HttpReq>)> onSuccess, std::function<void()> onCancel)
|
||||
|
|
|
@ -3,9 +3,8 @@
|
|||
#define ES_APP_COMPONENTS_ASYNC_REQ_COMPONENT_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "HttpReq.h"
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
class HttpReq;
|
||||
|
||||
/*
|
||||
Used to asynchronously run an HTTP request.
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#include "components/RatingComponent.h"
|
||||
|
||||
#include "resources/TextureResource.h"
|
||||
#include "Renderer.h"
|
||||
#include "Window.h"
|
||||
#include "Util.h"
|
||||
#include "ThemeData.h"
|
||||
|
||||
RatingComponent::RatingComponent(Window* window) : GuiComponent(window), mColorShift(0xFFFFFFFF)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
#define ES_APP_COMPONENTS_RATING_COMPONENT_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "resources/TextureResource.h"
|
||||
#include "platform.h"
|
||||
#include GLHEADER
|
||||
|
||||
class TextureResource;
|
||||
|
||||
#define NUM_RATING_STARS 5
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
#include "components/ScraperSearchComponent.h"
|
||||
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/ScrollableContainer.h"
|
||||
#include "components/ComponentList.h"
|
||||
#include "components/DateTimeComponent.h"
|
||||
#include "components/ImageComponent.h"
|
||||
#include "components/RatingComponent.h"
|
||||
#include "components/DateTimeComponent.h"
|
||||
#include "components/AnimatedImageComponent.h"
|
||||
#include "components/ComponentList.h"
|
||||
#include "HttpReq.h"
|
||||
#include "Settings.h"
|
||||
#include "components/ScrollableContainer.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "guis/GuiTextEditPopup.h"
|
||||
#include "resources/Font.h"
|
||||
#include "FileData.h"
|
||||
#include "Log.h"
|
||||
#include "Util.h"
|
||||
#include "guis/GuiTextEditPopup.h"
|
||||
#include "Window.h"
|
||||
|
||||
ScraperSearchComponent::ScraperSearchComponent(Window* window, SearchType type) : GuiComponent(window),
|
||||
mGrid(window, Vector2i(4, 3)), mBusyAnim(window),
|
||||
|
|
|
@ -2,20 +2,17 @@
|
|||
#ifndef ES_APP_COMPONENTS_SCRAPER_SEARCH_COMPONENT_H
|
||||
#define ES_APP_COMPONENTS_SCRAPER_SEARCH_COMPONENT_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "scrapers/Scraper.h"
|
||||
#include "components/ComponentGrid.h"
|
||||
#include "components/BusyComponent.h"
|
||||
#include <functional>
|
||||
#include "components/ComponentGrid.h"
|
||||
#include "scrapers/Scraper.h"
|
||||
#include "GuiComponent.h"
|
||||
|
||||
class ComponentList;
|
||||
class DateTimeComponent;
|
||||
class ImageComponent;
|
||||
class RatingComponent;
|
||||
class TextComponent;
|
||||
class DateTimeComponent;
|
||||
class ScrollableContainer;
|
||||
class HttpReq;
|
||||
class AnimatedImageComponent;
|
||||
class TextComponent;
|
||||
|
||||
class ScraperSearchComponent : public GuiComponent
|
||||
{
|
||||
|
|
|
@ -3,17 +3,12 @@
|
|||
#define ES_APP_COMPONENTS_TEXT_LIST_COMPONENT_H
|
||||
|
||||
#include "components/IList.h"
|
||||
#include "Renderer.h"
|
||||
#include "resources/Font.h"
|
||||
#include "InputManager.h"
|
||||
#include "Sound.h"
|
||||
#include "Log.h"
|
||||
#include "ThemeData.h"
|
||||
#include "Sound.h"
|
||||
#include "Util.h"
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
class TextCache;
|
||||
|
||||
struct TextListData
|
||||
{
|
||||
|
|
|
@ -1,13 +1,12 @@
|
|||
#include "guis/GuiCollectionSystemsOptions.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "guis/GuiTextEditPopup.h"
|
||||
#include "Settings.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "guis/GuiSettings.h"
|
||||
#include "Util.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/OptionListComponent.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "guis/GuiSettings.h"
|
||||
#include "guis/GuiTextEditPopup.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "Window.h"
|
||||
|
||||
GuiCollectionSystemsOptions::GuiCollectionSystemsOptions(Window* window) : GuiComponent(window), mMenu(window, "GAME COLLECTION SETTINGS")
|
||||
{
|
||||
|
|
|
@ -2,17 +2,12 @@
|
|||
#ifndef ES_APP_GUIS_GUI_COLLECTION_SYSTEM_OPTIONS_H
|
||||
#define ES_APP_GUIS_GUI_COLLECTION_SYSTEM_OPTIONS_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "SystemData.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "Log.h"
|
||||
|
||||
|
||||
template<typename T>
|
||||
class OptionListComponent;
|
||||
|
||||
class SwitchComponent;
|
||||
class SystemData;
|
||||
|
||||
class GuiCollectionSystemsOptions : public GuiComponent
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include "guis/GuiFastSelect.h"
|
||||
#include "ThemeData.h"
|
||||
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
#include "FileSorts.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
#ifndef ES_APP_GUIS_GUI_FAST_SELECT_H
|
||||
#define ES_APP_GUIS_GUI_FAST_SELECT_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
|
||||
#include "components/NinePatchComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "GuiComponent.h"
|
||||
|
||||
class IGameListView;
|
||||
|
||||
class GuiFastSelect : public GuiComponent
|
||||
{
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
#include "guis/GuiGameScraper.h"
|
||||
#include "guis/GuiTextEditPopup.h"
|
||||
#include "components/TextComponent.h"
|
||||
|
||||
#include "components/ButtonComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "scrapers/Scraper.h"
|
||||
#include "Renderer.h"
|
||||
#include "Log.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "FileData.h"
|
||||
#include "PowerSaver.h"
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
GuiGameScraper::GuiGameScraper(Window* window, ScraperSearchParams params, std::function<void(const ScraperSearchResult&)> doneFunc) : GuiComponent(window),
|
||||
mGrid(window, Vector2i(1, 7)),
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
#ifndef ES_APP_GUIS_GUI_GAME_SCRAPER_H
|
||||
#define ES_APP_GUIS_GUI_GAME_SCRAPER_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/ScraperSearchComponent.h"
|
||||
#include "components/NinePatchComponent.h"
|
||||
#include "components/ScraperSearchComponent.h"
|
||||
#include "GuiComponent.h"
|
||||
|
||||
class GuiGameScraper : public GuiComponent
|
||||
{
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#include "guis/GuiGamelistFilter.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/OptionListComponent.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
GuiGamelistFilter::GuiGamelistFilter(Window* window, SystemData* system) : GuiComponent(window), mMenu(window, "FILTER GAMELIST BY"), mSystem(system)
|
||||
{
|
||||
|
|
|
@ -2,16 +2,13 @@
|
|||
#ifndef ES_APP_GUIS_GUI_GAME_LIST_FILTER_H
|
||||
#define ES_APP_GUIS_GUI_GAME_LIST_FILTER_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "SystemData.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "Log.h"
|
||||
|
||||
#include "GuiComponent.h"
|
||||
|
||||
template<typename T>
|
||||
class OptionListComponent;
|
||||
|
||||
class SystemData;
|
||||
|
||||
class GuiGamelistFilter : public GuiComponent
|
||||
{
|
||||
|
|
|
@ -1,10 +1,14 @@
|
|||
#include "GuiGamelistOptions.h"
|
||||
#include "GuiMetaDataEd.h"
|
||||
#include "Util.h"
|
||||
#include "Settings.h"
|
||||
|
||||
#include "guis/GuiGamelistFilter.h"
|
||||
#include "scrapers/Scraper.h"
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "FileSorts.h"
|
||||
#include "GuiMetaDataEd.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
GuiGamelistOptions::GuiGamelistOptions(Window* window, SystemData* system) : GuiComponent(window),
|
||||
mSystem(system), mMenu(window, "OPTIONS"), fromPlaceholder(false), mFiltersChanged(false)
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
#ifndef ES_APP_GUIS_GUI_GAME_LIST_OPTIONS_H
|
||||
#define ES_APP_GUIS_GUI_GAME_LIST_OPTIONS_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "components/OptionListComponent.h"
|
||||
#include "GuiGamelistFilter.h"
|
||||
#include "FileSorts.h"
|
||||
#include "FileData.h"
|
||||
#include "GuiComponent.h"
|
||||
|
||||
class IGameListView;
|
||||
class SystemData;
|
||||
|
||||
class GuiGamelistOptions : public GuiComponent
|
||||
{
|
||||
|
|
|
@ -1,19 +1,11 @@
|
|||
#include "guis/GuiGeneralScreensaverOptions.h"
|
||||
#include "Window.h"
|
||||
#include "Settings.h"
|
||||
#include "PowerSaver.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "components/ButtonComponent.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "components/SliderComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
//#include "components/TextEditComponent.h"
|
||||
#include "components/OptionListComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "components/SliderComponent.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "guis/GuiVideoScreensaverOptions.h"
|
||||
#include "guis/GuiSlideshowScreensaverOptions.h"
|
||||
#include "guis/GuiVideoScreensaverOptions.h"
|
||||
#include "Settings.h"
|
||||
|
||||
GuiGeneralScreensaverOptions::GuiGeneralScreensaverOptions(Window* window, const char* title) : GuiScreensaverOptions(window, title)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#ifndef ES_APP_GUIS_GUI_GENERAL_SCREENSAVER_OPTIONS_H
|
||||
#define ES_APP_GUIS_GUI_GENERAL_SCREENSAVER_OPTIONS_H
|
||||
|
||||
#include "components/MenuComponent.h"
|
||||
#include "GuiScreensaverOptions.h"
|
||||
|
||||
class GuiGeneralScreensaverOptions : public GuiScreensaverOptions
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
#include "guis/GuiInfoPopup.h"
|
||||
#include "Renderer.h"
|
||||
|
||||
#include "components/ComponentGrid.h"
|
||||
#include "components/NinePatchComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "Log.h"
|
||||
#include "Renderer.h"
|
||||
#include <SDL_timer.h>
|
||||
|
||||
GuiInfoPopup::GuiInfoPopup(Window* window, std::string message, int duration) :
|
||||
GuiComponent(window), mMessage(message), mDuration(duration), running(true)
|
||||
|
|
|
@ -3,12 +3,10 @@
|
|||
#define ES_APP_GUIS_GUI_INFO_POPUP_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/NinePatchComponent.h"
|
||||
#include "components/ComponentGrid.h"
|
||||
#include "Window.h"
|
||||
#include "Log.h"
|
||||
|
||||
|
||||
class ComponentGrid;
|
||||
class NinePatchComponent;
|
||||
|
||||
class GuiInfoPopup : public GuiComponent, public Window::InfoPopup
|
||||
{
|
||||
|
|
|
@ -1,26 +1,20 @@
|
|||
#include "EmulationStation.h"
|
||||
#include "guis/GuiMenu.h"
|
||||
#include "Window.h"
|
||||
#include "Sound.h"
|
||||
#include "Log.h"
|
||||
#include "SystemData.h"
|
||||
#include "Settings.h"
|
||||
#include "PowerSaver.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "guis/GuiSettings.h"
|
||||
#include "guis/GuiGeneralScreensaverOptions.h"
|
||||
#include "guis/GuiCollectionSystemsOptions.h"
|
||||
#include "guis/GuiScraperStart.h"
|
||||
#include "guis/GuiDetectDevice.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "components/ButtonComponent.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "components/SliderComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/OptionListComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "components/SliderComponent.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "guis/GuiCollectionSystemsOptions.h"
|
||||
#include "guis/GuiDetectDevice.h"
|
||||
#include "guis/GuiGeneralScreensaverOptions.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "guis/GuiScraperStart.h"
|
||||
#include "guis/GuiSettings.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "EmulationStation.h"
|
||||
#include "SystemData.h"
|
||||
#include "VolumeControl.h"
|
||||
#include <SDL_events.h>
|
||||
|
||||
GuiMenu::GuiMenu(Window* window) : GuiComponent(window), mMenu(window, "MAIN MENU"), mVersion(window)
|
||||
{
|
||||
|
|
|
@ -2,9 +2,8 @@
|
|||
#ifndef ES_APP_GUIS_GUI_MENU_H
|
||||
#define ES_APP_GUIS_GUI_MENU_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include <functional>
|
||||
#include "GuiComponent.h"
|
||||
|
||||
class GuiMenu : public GuiComponent
|
||||
{
|
||||
|
|
|
@ -1,18 +1,23 @@
|
|||
#include "guis/GuiMetaDataEd.h"
|
||||
#include "Renderer.h"
|
||||
#include "Log.h"
|
||||
#include "components/AsyncReqComponent.h"
|
||||
#include "Settings.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "guis/GuiGameScraper.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include "components/TextEditComponent.h"
|
||||
#include "components/ButtonComponent.h"
|
||||
#include "components/ComponentList.h"
|
||||
#include "components/DateTimeComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "components/RatingComponent.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "guis/GuiGameScraper.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "guis/GuiTextEditPopup.h"
|
||||
#include "resources/Font.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "FileData.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "SystemData.h"
|
||||
#include "Util.h"
|
||||
#include "Window.h"
|
||||
|
||||
GuiMetaDataEd::GuiMetaDataEd(Window* window, MetaDataList* md, const std::vector<MetaDataDecl>& mdd, ScraperSearchParams scraperParams,
|
||||
const std::string& header, std::function<void()> saveCallback, std::function<void()> deleteFunc) : GuiComponent(window),
|
||||
|
|
|
@ -2,12 +2,14 @@
|
|||
#ifndef ES_APP_GUIS_GUI_META_DATA_ED_H
|
||||
#define ES_APP_GUIS_GUI_META_DATA_ED_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "MetaData.h"
|
||||
#include "components/ComponentGrid.h"
|
||||
#include "components/NinePatchComponent.h"
|
||||
#include "scrapers/Scraper.h"
|
||||
#include "GuiComponent.h"
|
||||
#include "MetaData.h"
|
||||
|
||||
#include <functional>
|
||||
class ComponentList;
|
||||
class TextComponent;
|
||||
|
||||
class GuiMetaDataEd : public GuiComponent
|
||||
{
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
#include "guis/GuiScraperMulti.h"
|
||||
#include "Renderer.h"
|
||||
#include "Log.h"
|
||||
|
||||
#include "components/ButtonComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "components/ScraperSearchComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "Gamelist.h"
|
||||
#include "PowerSaver.h"
|
||||
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/ButtonComponent.h"
|
||||
#include "components/ScraperSearchComponent.h"
|
||||
#include "components/MenuComponent.h" // for makeButtonGrid
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "SystemData.h"
|
||||
#include "Window.h"
|
||||
|
||||
GuiScraperMulti::GuiScraperMulti(Window* window, const std::queue<ScraperSearchParams>& searches, bool approveResults) :
|
||||
GuiComponent(window), mBackground(window, ":/frame.png"), mGrid(window, Vector2i(1, 5)),
|
||||
|
|
|
@ -2,12 +2,10 @@
|
|||
#ifndef ES_APP_GUIS_GUI_SCRAPER_MULTI_H
|
||||
#define ES_APP_GUIS_GUI_SCRAPER_MULTI_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/NinePatchComponent.h"
|
||||
#include "components/ComponentGrid.h"
|
||||
#include "components/NinePatchComponent.h"
|
||||
#include "scrapers/Scraper.h"
|
||||
|
||||
#include <queue>
|
||||
#include "GuiComponent.h"
|
||||
|
||||
class ScraperSearchComponent;
|
||||
class TextComponent;
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
#include "guis/GuiScraperStart.h"
|
||||
#include "guis/GuiScraperMulti.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/OptionListComponent.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "guis/GuiScraperMulti.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "FileData.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
GuiScraperStart::GuiScraperStart(Window* window) : GuiComponent(window),
|
||||
mMenu(window, "SCRAPE NOW")
|
||||
|
|
|
@ -2,18 +2,16 @@
|
|||
#ifndef ES_APP_GUIS_GUI_SCRAPER_START_H
|
||||
#define ES_APP_GUIS_GUI_SCRAPER_START_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "SystemData.h"
|
||||
#include "scrapers/Scraper.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include <queue>
|
||||
|
||||
typedef std::function<bool(SystemData*, FileData*)> GameFilterFunc;
|
||||
#include "scrapers/Scraper.h"
|
||||
|
||||
class FileData;
|
||||
template<typename T>
|
||||
class OptionListComponent;
|
||||
|
||||
class SwitchComponent;
|
||||
class SystemData;
|
||||
|
||||
typedef std::function<bool(SystemData*, FileData*)> GameFilterFunc;
|
||||
|
||||
//The starting point for a multi-game scrape.
|
||||
//Allows the user to set various parameters (to set filters, to set which systems to scrape, to enable manual mode).
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#include "guis/GuiScreensaverOptions.h"
|
||||
#include "Window.h"
|
||||
#include "Settings.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "components/ButtonComponent.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
#include "Window.h"
|
||||
|
||||
GuiScreensaverOptions::GuiScreensaverOptions(Window* window, const char* title) : GuiComponent(window), mMenu(window, title)
|
||||
{
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
#ifndef ES_APP_GUIS_GUI_SCREENSAVER_OPTIONS_H
|
||||
#define ES_APP_GUIS_GUI_SCREENSAVER_OPTIONS_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
// This is just a really simple template for a GUI that calls some save functions when closed.
|
||||
class GuiScreensaverOptions : public GuiComponent
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#include "guis/GuiSettings.h"
|
||||
#include "Window.h"
|
||||
#include "Settings.h"
|
||||
|
||||
#include "views/ViewController.h"
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
#include "Window.h"
|
||||
|
||||
GuiSettings::GuiSettings(Window* window, const char* title) : GuiComponent(window), mMenu(window, title)
|
||||
{
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
#ifndef ES_APP_GUIS_GUI_SETTINGS_H
|
||||
#define ES_APP_GUIS_GUI_SETTINGS_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
// This is just a really simple template for a GUI that calls some save functions when closed.
|
||||
class GuiSettings : public GuiComponent
|
||||
|
|
|
@ -1,16 +1,10 @@
|
|||
#include "guis/GuiSlideshowScreensaverOptions.h"
|
||||
#include "Window.h"
|
||||
#include "Settings.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "components/SliderComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/OptionListComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "guis/GuiTextEditPopup.h"
|
||||
#include "PowerSaver.h"
|
||||
#include "Settings.h"
|
||||
#include "Window.h"
|
||||
|
||||
GuiSlideshowScreensaverOptions::GuiSlideshowScreensaverOptions(Window* window, const char* title) : GuiScreensaverOptions(window, title)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#ifndef ES_APP_GUIS_GUI_SLIDESHOW_SCREENSAVER_OPTIONS_H
|
||||
#define ES_APP_GUIS_GUI_SLIDESHOW_SCREENSAVER_OPTIONS_H
|
||||
|
||||
#include "components/MenuComponent.h"
|
||||
#include "GuiScreensaverOptions.h"
|
||||
|
||||
class GuiSlideshowScreensaverOptions : public GuiScreensaverOptions
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
#include "guis/GuiVideoScreensaverOptions.h"
|
||||
#include "Window.h"
|
||||
#include "Settings.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "components/SliderComponent.h"
|
||||
#include "components/OptionListComponent.h"
|
||||
#include "components/MenuComponent.h"
|
||||
#include "components/SliderComponent.h"
|
||||
#include "components/SwitchComponent.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "PowerSaver.h"
|
||||
#include "Settings.h"
|
||||
|
||||
GuiVideoScreensaverOptions::GuiVideoScreensaverOptions(Window* window, const char* title) : GuiScreensaverOptions(window, title)
|
||||
{
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#ifndef ES_APP_GUIS_GUI_VIDEO_SCREENSAVER_OPTIONS_H
|
||||
#define ES_APP_GUIS_GUI_VIDEO_SCREENSAVER_OPTIONS_H
|
||||
|
||||
#include "components/MenuComponent.h"
|
||||
#include "GuiScreensaverOptions.h"
|
||||
|
||||
class GuiVideoScreensaverOptions : public GuiScreensaverOptions
|
||||
|
|
|
@ -1,31 +1,30 @@
|
|||
//EmulationStation, a graphical front-end for ROM browsing. Created by Alec "Aloshi" Lofquist.
|
||||
//http://www.aloshi.com
|
||||
|
||||
#include <SDL.h>
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include "Renderer.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "SystemData.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include "guis/GuiDetectDevice.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "AudioManager.h"
|
||||
#include "platform.h"
|
||||
#include "Log.h"
|
||||
#include "Window.h"
|
||||
#include "SystemScreenSaver.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "EmulationStation.h"
|
||||
#include "InputManager.h"
|
||||
#include "Log.h"
|
||||
#include "platform.h"
|
||||
#include "PowerSaver.h"
|
||||
#include "Settings.h"
|
||||
#include "ScraperCmdLine.h"
|
||||
#include <sstream>
|
||||
#include <FreeImage.h>
|
||||
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
#include "SystemScreenSaver.h"
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <SDL_events.h>
|
||||
#include <SDL_main.h>
|
||||
#include <SDL_timer.h>
|
||||
#include <iostream>
|
||||
#ifdef WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
#include <FreeImage.h>
|
||||
|
||||
namespace fs = boost::filesystem;
|
||||
|
||||
bool scrape_cmdline = false;
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
#include "scrapers/GamesDBScraper.h"
|
||||
|
||||
#include "FileData.h"
|
||||
#include "Log.h"
|
||||
#include "pugixml/src/pugixml.hpp"
|
||||
#include "MetaData.h"
|
||||
#include "PlatformId.h"
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
#include "Util.h"
|
||||
#include <boost/assign.hpp>
|
||||
#include <boost/assign/list_of.hpp>
|
||||
|
||||
using namespace PlatformIds;
|
||||
const std::map<PlatformId, const char*> gamesdb_platformid_map = boost::assign::map_list_of
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
#include "scrapers/Scraper.h"
|
||||
#include "Log.h"
|
||||
#include "Settings.h"
|
||||
#include <FreeImage.h>
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/assign.hpp>
|
||||
|
||||
#include "FileData.h"
|
||||
#include "GamesDBScraper.h"
|
||||
#include "Log.h"
|
||||
#include "platform.h"
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
#include <boost/assign/list_of.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <FreeImage.h>
|
||||
#include <fstream>
|
||||
|
||||
const std::map<std::string, generate_scraper_requests_func> scraper_request_funcs = boost::assign::map_list_of
|
||||
("TheGamesDB", &thegamesdb_generate_scraper_requests);
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
#ifndef ES_APP_SCRAPERS_SCRAPER_H
|
||||
#define ES_APP_SCRAPERS_SCRAPER_H
|
||||
|
||||
#include "MetaData.h"
|
||||
#include "SystemData.h"
|
||||
#include "HttpReq.h"
|
||||
#include "AsyncHandle.h"
|
||||
#include <vector>
|
||||
#include <functional>
|
||||
#include "HttpReq.h"
|
||||
#include "MetaData.h"
|
||||
#include <queue>
|
||||
|
||||
#define MAX_SCRAPER_RESULTS 7
|
||||
|
||||
class FileData;
|
||||
class SystemData;
|
||||
|
||||
struct ScraperSearchParams
|
||||
{
|
||||
SystemData* system;
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
#include "views/SystemView.h"
|
||||
#include "SystemData.h"
|
||||
#include "Renderer.h"
|
||||
#include "Log.h"
|
||||
#include "Window.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
#include "animations/LambdaAnimation.h"
|
||||
#include "PowerSaver.h"
|
||||
#include "SystemData.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "Log.h"
|
||||
#include "Renderer.h"
|
||||
#include "Settings.h"
|
||||
#include "Util.h"
|
||||
#include "SystemData.h"
|
||||
#include "Window.h"
|
||||
|
||||
// buffer values for scrolling velocity (left, stopped, right)
|
||||
const int logoBuffersLeft[] = { -5, -2, -1 };
|
||||
|
|
|
@ -2,15 +2,14 @@
|
|||
#ifndef ES_APP_VIEWS_SYSTEM_VIEW_H
|
||||
#define ES_APP_VIEWS_SYSTEM_VIEW_H
|
||||
|
||||
#include "GuiComponent.h"
|
||||
#include "components/ImageComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/ScrollableContainer.h"
|
||||
#include "components/IList.h"
|
||||
#include "resources/TextureResource.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "resources/Font.h"
|
||||
#include "GuiComponent.h"
|
||||
#include <memory>
|
||||
|
||||
class SystemData;
|
||||
class AnimatedImageComponent;
|
||||
class SystemData;
|
||||
|
||||
enum CarouselType : unsigned int
|
||||
{
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
#include "views/ViewController.h"
|
||||
#include "Log.h"
|
||||
#include "SystemData.h"
|
||||
#include "Settings.h"
|
||||
#include "PowerSaver.h"
|
||||
|
||||
#include "views/gamelist/BasicGameListView.h"
|
||||
#include "views/gamelist/DetailedGameListView.h"
|
||||
#include "views/gamelist/VideoGameListView.h"
|
||||
#include "views/gamelist/GridGameListView.h"
|
||||
#include "guis/GuiMenu.h"
|
||||
#include "guis/GuiMsgBox.h"
|
||||
#include "animations/Animation.h"
|
||||
#include "animations/LambdaAnimation.h"
|
||||
#include "animations/LaunchAnimation.h"
|
||||
#include "animations/MoveCameraAnimation.h"
|
||||
#include "animations/LambdaAnimation.h"
|
||||
#include <SDL.h>
|
||||
#include "guis/GuiMenu.h"
|
||||
#include "views/gamelist/DetailedGameListView.h"
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
#include "views/gamelist/VideoGameListView.h"
|
||||
#include "views/SystemView.h"
|
||||
#include "Log.h"
|
||||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
#include "Window.h"
|
||||
|
||||
ViewController* ViewController::sInstance = NULL;
|
||||
|
||||
|
|
|
@ -2,10 +2,14 @@
|
|||
#ifndef ES_APP_VIEWS_VIEW_CONTROLLER_H
|
||||
#define ES_APP_VIEWS_VIEW_CONTROLLER_H
|
||||
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
#include "views/SystemView.h"
|
||||
#include "FileData.h"
|
||||
#include "GuiComponent.h"
|
||||
#include "Renderer.h"
|
||||
#include <vector>
|
||||
|
||||
class IGameListView;
|
||||
class SystemData;
|
||||
class SystemView;
|
||||
|
||||
const std::vector<std::string> UIModes = { "Full", "Kiosk" };
|
||||
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#include "views/gamelist/BasicGameListView.h"
|
||||
|
||||
#include "views/ViewController.h"
|
||||
#include "Renderer.h"
|
||||
#include "Window.h"
|
||||
#include "ThemeData.h"
|
||||
#include "SystemData.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "Settings.h"
|
||||
#include "FileFilterIndex.h"
|
||||
#include "SystemData.h"
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
|
||||
BasicGameListView::BasicGameListView(Window* window, FileData* root)
|
||||
: ISimpleGameListView(window, root), mList(window)
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
#ifndef ES_APP_VIEWS_GAME_LIST_BASIC_GAME_LIST_VIEW_H
|
||||
#define ES_APP_VIEWS_GAME_LIST_BASIC_GAME_LIST_VIEW_H
|
||||
|
||||
#include "views/gamelist/ISimpleGameListView.h"
|
||||
#include "components/TextListComponent.h"
|
||||
#include "views/gamelist/ISimpleGameListView.h"
|
||||
|
||||
class BasicGameListView : public ISimpleGameListView
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "views/gamelist/DetailedGameListView.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "Window.h"
|
||||
|
||||
#include "animations/LambdaAnimation.h"
|
||||
#include "views/ViewController.h"
|
||||
|
||||
DetailedGameListView::DetailedGameListView(Window* window, FileData* root) :
|
||||
BasicGameListView(window, root),
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
#ifndef ES_APP_VIEWS_GAME_LIST_DETAILED_GAME_LIST_VIEW_H
|
||||
#define ES_APP_VIEWS_GAME_LIST_DETAILED_GAME_LIST_VIEW_H
|
||||
|
||||
#include "views/gamelist/BasicGameListView.h"
|
||||
#include "components/ScrollableContainer.h"
|
||||
#include "components/RatingComponent.h"
|
||||
#include "components/DateTimeComponent.h"
|
||||
#include "components/RatingComponent.h"
|
||||
#include "components/ScrollableContainer.h"
|
||||
#include "views/gamelist/BasicGameListView.h"
|
||||
|
||||
class DetailedGameListView : public BasicGameListView
|
||||
{
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include "views/gamelist/GridGameListView.h"
|
||||
#include "ThemeData.h"
|
||||
#include "Window.h"
|
||||
|
||||
#include "views/ViewController.h"
|
||||
|
||||
GridGameListView::GridGameListView(Window* window, FileData* root) : ISimpleGameListView(window, root),
|
||||
|
|
|
@ -2,10 +2,8 @@
|
|||
#ifndef ES_APP_VIEWS_GAME_LIST_GRID_GAME_LIST_VIEW_H
|
||||
#define ES_APP_VIEWS_GAME_LIST_GRID_GAME_LIST_VIEW_H
|
||||
|
||||
#include "views/gamelist/ISimpleGameListView.h"
|
||||
#include "components/ImageGridComponent.h"
|
||||
#include "components/ImageComponent.h"
|
||||
#include <stack>
|
||||
#include "views/gamelist/ISimpleGameListView.h"
|
||||
|
||||
class GridGameListView : public ISimpleGameListView
|
||||
{
|
||||
|
|
|
@ -1,12 +1,9 @@
|
|||
#include "views/gamelist/IGameListView.h"
|
||||
#include "Window.h"
|
||||
#include "guis/GuiMetaDataEd.h"
|
||||
#include "guis/GuiMenu.h"
|
||||
|
||||
#include "guis/GuiGamelistOptions.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "Settings.h"
|
||||
#include "Log.h"
|
||||
#include "Sound.h"
|
||||
#include "Window.h"
|
||||
|
||||
bool IGameListView::input(InputConfig* config, Input input)
|
||||
{
|
||||
|
|
|
@ -3,12 +3,11 @@
|
|||
#define ES_APP_VIEWS_GAME_LIST_IGAME_LIST_VIEW_H
|
||||
|
||||
#include "FileData.h"
|
||||
#include "GuiComponent.h"
|
||||
#include "Renderer.h"
|
||||
|
||||
class Window;
|
||||
class GuiComponent;
|
||||
class FileData;
|
||||
class ThemeData;
|
||||
class Window;
|
||||
|
||||
// This is an interface that defines the minimum for a GameListView.
|
||||
class IGameListView : public GuiComponent
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
#include "views/gamelist/ISimpleGameListView.h"
|
||||
#include "ThemeData.h"
|
||||
#include "Window.h"
|
||||
|
||||
#include "views/ViewController.h"
|
||||
#include "Sound.h"
|
||||
#include "Log.h"
|
||||
#include "Settings.h"
|
||||
#include "CollectionSystemManager.h"
|
||||
#include "Settings.h"
|
||||
#include "Sound.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
ISimpleGameListView::ISimpleGameListView(Window* window, FileData* root) : IGameListView(window, root),
|
||||
mHeaderText(window), mHeaderImage(window), mBackground(window)
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
#ifndef ES_APP_VIEWS_GAME_LIST_ISIMPLE_GAME_LIST_VIEW_H
|
||||
#define ES_APP_VIEWS_GAME_LIST_ISIMPLE_GAME_LIST_VIEW_H
|
||||
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
|
||||
#include "components/TextComponent.h"
|
||||
#include "components/ImageComponent.h"
|
||||
#include "components/TextComponent.h"
|
||||
#include "views/gamelist/IGameListView.h"
|
||||
#include <stack>
|
||||
|
||||
class ISimpleGameListView : public IGameListView
|
||||
{
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
#include "views/gamelist/VideoGameListView.h"
|
||||
#include "views/ViewController.h"
|
||||
#include "Window.h"
|
||||
|
||||
#include "animations/LambdaAnimation.h"
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#ifdef _RPI_
|
||||
#include "components/VideoPlayerComponent.h"
|
||||
#include "Settings.h"
|
||||
#endif
|
||||
#include "components/VideoVlcComponent.h"
|
||||
#include "views/ViewController.h"
|
||||
#ifdef _RPI_
|
||||
#include "Settings.h"
|
||||
#endif
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
|
||||
VideoGameListView::VideoGameListView(Window* window, FileData* root) :
|
||||
BasicGameListView(window, root),
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
#ifndef ES_APP_VIEWS_GAME_LIST_VIDEO_GAME_LIST_VIEW_H
|
||||
#define ES_APP_VIEWS_GAME_LIST_VIDEO_GAME_LIST_VIEW_H
|
||||
|
||||
#include "views/gamelist/BasicGameListView.h"
|
||||
#include "components/ScrollableContainer.h"
|
||||
#include "components/RatingComponent.h"
|
||||
#include "components/DateTimeComponent.h"
|
||||
#include "components/VideoComponent.h"
|
||||
#include "components/RatingComponent.h"
|
||||
#include "components/ScrollableContainer.h"
|
||||
#include "views/gamelist/BasicGameListView.h"
|
||||
|
||||
class VideoComponent;
|
||||
|
||||
class VideoGameListView : public BasicGameListView
|
||||
{
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
#ifndef ES_CORE_ASYNC_HANDLE_H
|
||||
#define ES_CORE_ASYNC_HANDLE_H
|
||||
|
||||
#include <string>
|
||||
|
||||
enum AsyncHandleStatus
|
||||
{
|
||||
ASYNC_IN_PROGRESS,
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#include "AudioManager.h"
|
||||
#include "Settings.h"
|
||||
|
||||
#include <SDL.h>
|
||||
#include "Log.h"
|
||||
#include "Settings.h"
|
||||
#include "Sound.h"
|
||||
#include <SDL.h>
|
||||
|
||||
std::vector<std::shared_ptr<Sound>> AudioManager::sSoundVector;
|
||||
SDL_AudioSpec AudioManager::sAudioFormat;
|
||||
|
|
|
@ -2,13 +2,11 @@
|
|||
#ifndef ES_CORE_AUDIO_MANAGER_H
|
||||
#define ES_CORE_AUDIO_MANAGER_H
|
||||
|
||||
#include <vector>
|
||||
#include <SDL_audio.h>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "SDL_audio.h"
|
||||
|
||||
#include "Sound.h"
|
||||
|
||||
class Sound;
|
||||
|
||||
class AudioManager
|
||||
{
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
#include "GuiComponent.h"
|
||||
#include "Window.h"
|
||||
|
||||
#include "animations/Animation.h"
|
||||
#include "animations/AnimationController.h"
|
||||
#include "Log.h"
|
||||
#include "Renderer.h"
|
||||
#include "animations/AnimationController.h"
|
||||
#include "ThemeData.h"
|
||||
#include "Window.h"
|
||||
|
||||
GuiComponent::GuiComponent(Window* window) : mWindow(window), mParent(NULL), mOpacity(255),
|
||||
mPosition(Vector3f::Zero()), mOrigin(Vector2f::Zero()), mRotationOrigin(0.5, 0.5),
|
||||
|
|
|
@ -2,20 +2,19 @@
|
|||
#ifndef ES_CORE_GUI_COMPONENT_H
|
||||
#define ES_CORE_GUI_COMPONENT_H
|
||||
|
||||
#include "InputConfig.h"
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <functional>
|
||||
#include "HelpStyle.h"
|
||||
#include "math/Transform4x4f.h"
|
||||
#include "HelpPrompt.h"
|
||||
#include "HelpStyle.h"
|
||||
#include "InputConfig.h"
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
class Window;
|
||||
class Animation;
|
||||
class AnimationController;
|
||||
class ThemeData;
|
||||
class Font;
|
||||
|
||||
typedef std::pair<std::string, std::string> HelpPrompt;
|
||||
class InputConfig;
|
||||
class ThemeData;
|
||||
class Window;
|
||||
|
||||
class GuiComponent
|
||||
{
|
||||
|
|
9
es-core/src/HelpPrompt.h
Normal file
9
es-core/src/HelpPrompt.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#pragma once
|
||||
#ifndef ES_CORE_HELP_PROMPT_H
|
||||
#define ES_CORE_HELP_PROMPT_H
|
||||
|
||||
#include <string>
|
||||
|
||||
typedef std::pair<std::string, std::string> HelpPrompt;
|
||||
|
||||
#endif // ES_CORE_HELP_PROMPT_H
|
|
@ -1,7 +1,7 @@
|
|||
#include "HelpStyle.h"
|
||||
#include "ThemeData.h"
|
||||
#include "Renderer.h"
|
||||
|
||||
#include "resources/Font.h"
|
||||
#include "Renderer.h"
|
||||
|
||||
HelpStyle::HelpStyle()
|
||||
{
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
class ThemeData;
|
||||
class Font;
|
||||
class ThemeData;
|
||||
|
||||
struct HelpStyle
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <iostream>
|
||||
#include "HttpReq.h"
|
||||
|
||||
#include "Log.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
|
||||
CURLM* HttpReq::s_multi_handle = curl_multi_init();
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
#define ES_CORE_HTTP_REQ_H
|
||||
|
||||
#include <curl/curl.h>
|
||||
#include <sstream>
|
||||
#include <map>
|
||||
#include <sstream>
|
||||
|
||||
/* Usage:
|
||||
* HttpReq myRequest("www.google.com", "/index.html");
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
#include "ImageIO.h"
|
||||
|
||||
#include <memory.h>
|
||||
|
||||
#include "Log.h"
|
||||
|
||||
#include <FreeImage.h>
|
||||
#include <string.h>
|
||||
|
||||
std::vector<unsigned char> ImageIO::loadFromMemoryRGBA32(const unsigned char * data, const size_t size, size_t & width, size_t & height)
|
||||
{
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
#ifndef ES_CORE_IMAGE_IO
|
||||
#define ES_CORE_IMAGE_IO
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <vector>
|
||||
#include <FreeImage.h>
|
||||
|
||||
class ImageIO
|
||||
{
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
#include "InputConfig.h"
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
#include <SDL.h>
|
||||
#include <iostream>
|
||||
|
||||
#include "Log.h"
|
||||
#include "InputManager.h"
|
||||
|
||||
//some util functions
|
||||
std::string inputTypeToString(InputType type)
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
#ifndef ES_CORE_INPUT_CONFIG_H
|
||||
#define ES_CORE_INPUT_CONFIG_H
|
||||
|
||||
#include <pugixml/src/pugixml.hpp>
|
||||
#include <SDL_joystick.h>
|
||||
#include <SDL_keyboard.h>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <SDL.h>
|
||||
#include <sstream>
|
||||
#include "pugixml/src/pugixml.hpp"
|
||||
#include <vector>
|
||||
|
||||
#define DEVICE_KEYBOARD -1
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#include "InputManager.h"
|
||||
#include "InputConfig.h"
|
||||
#include "Settings.h"
|
||||
#include "Window.h"
|
||||
|
||||
#include "Log.h"
|
||||
#include "pugixml/src/pugixml.hpp"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include "platform.h"
|
||||
#include "Window.h"
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <SDL.h>
|
||||
#include <iostream>
|
||||
|
||||
#define KEYBOARD_GUID_STRING "-1"
|
||||
|
||||
|
|
|
@ -2,13 +2,12 @@
|
|||
#ifndef ES_CORE_INPUT_MANAGER_H
|
||||
#define ES_CORE_INPUT_MANAGER_H
|
||||
|
||||
#include <SDL.h>
|
||||
#include <vector>
|
||||
#include <SDL_joystick.h>
|
||||
#include <map>
|
||||
#include <string>
|
||||
|
||||
class InputConfig;
|
||||
class Window;
|
||||
union SDL_Event;
|
||||
|
||||
//you should only ever instantiate one of these, by the way
|
||||
class InputManager
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#include "Log.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <iostream>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "platform.h"
|
||||
#include <iostream>
|
||||
|
||||
LogLevel Log::reportingLevel = LogInfo;
|
||||
FILE* Log::file = NULL; //fopen(getLogPath().c_str(), "w");
|
||||
|
|
|
@ -2,14 +2,12 @@
|
|||
#ifndef ES_CORE_LOG_H
|
||||
#define ES_CORE_LOG_H
|
||||
|
||||
#include <sstream>
|
||||
|
||||
#define LOG(level) \
|
||||
if(level > Log::getReportingLevel()) ; \
|
||||
else Log().get(level)
|
||||
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
|
||||
enum LogLevel { LogError, LogWarning, LogInfo, LogDebug };
|
||||
|
||||
class Log
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "PowerSaver.h"
|
||||
|
||||
#include "AudioManager.h"
|
||||
#include "Settings.h"
|
||||
#include <string.h>
|
||||
|
||||
bool PowerSaver::mState = false;
|
||||
bool PowerSaver::mRunningScreenSaver = false;
|
||||
|
|
|
@ -2,15 +2,13 @@
|
|||
#ifndef ES_CORE_RENDERER_H
|
||||
#define ES_CORE_RENDERER_H
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include "math/Vector2i.h"
|
||||
#include "platform.h"
|
||||
#include GLHEADER
|
||||
#include "math/Transform4x4f.h"
|
||||
#include "math/Vector2i.h"
|
||||
|
||||
class GuiComponent;
|
||||
class Font;
|
||||
class GuiComponent;
|
||||
class Transform4x4f;
|
||||
|
||||
//The Renderer provides several higher-level functions for drawing (rectangles, text, etc.).
|
||||
//Renderer_draw_gl.cpp has most of the higher-level functions and wrappers.
|
||||
|
|
|
@ -1,12 +1,8 @@
|
|||
#include "platform.h"
|
||||
#include "Renderer.h"
|
||||
#include GLHEADER
|
||||
#include <iostream>
|
||||
#include "resources/Font.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
|
||||
#include "Log.h"
|
||||
#include <math.h>
|
||||
#include <stack>
|
||||
#include "Util.h"
|
||||
|
||||
namespace Renderer {
|
||||
struct ClipRect {
|
||||
|
|
|
@ -1,13 +1,10 @@
|
|||
#include "Renderer.h"
|
||||
#include <iostream>
|
||||
#include "platform.h"
|
||||
#include GLHEADER
|
||||
#include "resources/Font.h"
|
||||
#include <SDL.h>
|
||||
#include "Log.h"
|
||||
#include "ImageIO.h"
|
||||
|
||||
#include "../data/Resources.h"
|
||||
#include "ImageIO.h"
|
||||
#include "Log.h"
|
||||
#include "Settings.h"
|
||||
#include <SDL.h>
|
||||
|
||||
#ifdef USE_OPENGL_ES
|
||||
#define glOrtho glOrthof
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#include "Settings.h"
|
||||
|
||||
#include "Log.h"
|
||||
#include "pugixml/src/pugixml.hpp"
|
||||
#include "platform.h"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/assign.hpp>
|
||||
#include <boost/assign/list_of.hpp>
|
||||
#include <boost/filesystem/operations.hpp>
|
||||
#include <pugixml/src/pugixml.hpp>
|
||||
|
||||
Settings* Settings::sInstance = NULL;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue