Preprocessor purge round 2: #pragma once

This commit is contained in:
Tamás Bálint Misius 2023-01-04 10:25:21 +01:00
parent 3a591b8539
commit e4c2ec5a00
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2
137 changed files with 143 additions and 679 deletions

View File

@ -1,6 +1,4 @@
#ifndef CONFIG_H
#define CONFIG_H
#pragma once
#mesondefine CURL_STATICLIB
#mesondefine ZLIB_WINAPI
@ -154,5 +152,3 @@
#define SDEUT
#define R_TEMP 22
#endif /* CONFIG_H */

View File

@ -1,6 +1,4 @@
#ifndef CONTROLLER_H_
#define CONTROLLER_H_
#pragma once
class Controller
{
private:
@ -9,5 +7,3 @@ private:
virtual void Hide();
virtual ~Controller() = default;
};
#endif /* CONTROLLER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef UTILS_H
#define UTILS_H
#pragma once
#include "Config.h"
#include <cmath>
#include <cstdio>
@ -110,5 +109,3 @@ bool byteStringEqualsLiteral(const ByteString &str, const char (&lit)[N])
{
return byteStringEqualsString(str, lit, N - 1U);
}
#endif

View File

@ -13,8 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef tptmath_h
#define tptmath_h
#pragma once
#include "Config.h"
// This file is used for EMP, to simulate many EMP going off at once at the end of the frame
@ -41,5 +40,3 @@ namespace Probability
unsigned int calc(float randFloat);
};
}
#endif

View File

@ -1,10 +1,7 @@
#ifndef UPDATE_H_
#define UPDATE_H_
#pragma once
#include "Config.h"
//char *exe_name(void);
int update_start(char *data, unsigned int len);
int update_finish();
void update_cleanup();
#endif /* UPDATE_H_ */

View File

@ -18,8 +18,7 @@
* limitations under the License.
*/
#ifndef _BSON_H_
#define _BSON_H_
#pragma once
#include "Config.h"
#include <ctime>
@ -1210,5 +1209,3 @@ static TPT_INLINE void bson_swap_endian32( void *outp, const void *inp ) {
out[2] = in[1];
out[3] = in[0];
}
#endif

View File

@ -1,5 +1,4 @@
#ifndef CLIENT_H
#define CLIENT_H
#pragma once
#include "Config.h"
#include <vector>
@ -177,5 +176,3 @@ public:
void SetPref(ByteString property, std::vector<Json::Value> value);
void SetPrefUnicode(ByteString prop, String value);
};
#endif // CLIENT_H

View File

@ -1,6 +1,4 @@
#ifndef CLIENTLISTENER_H_
#define CLIENTLISTENER_H_
#pragma once
#include "common/String.h"
class Client;
@ -16,5 +14,3 @@ public:
virtual void NotifyNewNotification(Client * sender, std::pair<String, ByteString> notification) {}
};
#endif /* CLIENTLISTENER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef MD5_H
#define MD5_H
#pragma once
#include "Config.h"
struct md5_context
@ -15,5 +14,3 @@ void md5_final(unsigned char digest[16], struct md5_context *context);
void md5_transform(unsigned buf[4], const unsigned char in[64]);
void md5_ascii(char *result, unsigned char const *buf, unsigned len);
#endif

View File

@ -1,6 +1,4 @@
#ifndef SAVEFILE_H_
#define SAVEFILE_H_
#pragma once
#include "common/String.h"
class GameSave;
@ -29,5 +27,3 @@ private:
String loadingError;
bool lazyLoad;
};
#endif /* SAVEFILE_H_ */

View File

@ -1,5 +1,4 @@
#ifndef SAVE_H
#define SAVE_H
#pragma once
#include "Config.h"
#include <list>
@ -75,5 +74,3 @@ public:
GameSave * GetGameSave();
void SetGameSave(GameSave * gameSave);
};
#endif // SAVE_H

View File

@ -1,6 +1,4 @@
#ifndef THUMBNAILRENDERER_H
#define THUMBNAILRENDERER_H
#pragma once
#include "tasks/AbandonableTask.h"
#include <memory>
@ -27,6 +25,3 @@ public:
static int QueueSize();
};
#endif // THUMBNAILRENDERER_H

View File

@ -1,6 +1,4 @@
#ifndef USER_H_
#define USER_H_
#pragma once
#include "common/String.h"
@ -27,5 +25,3 @@ public:
}
};
#endif /* USER_H_ */

View File

@ -1,6 +1,4 @@
#ifndef USERINFO_H_
#define USERINFO_H_
#pragma once
#include "common/String.h"
class UserInfo
@ -37,6 +35,3 @@ public:
{ }
UserInfo() {}
};
#endif /* USER_H_ */

View File

@ -1,6 +1,4 @@
#ifndef APIREQUEST2_H
#define APIREQUEST2_H
#pragma once
#include "Request.h"
#include "common/String.h"
#include <json/json.h>
@ -25,6 +23,3 @@ namespace http
Result Finish();
};
}
#endif // APIREQUEST2_H

View File

@ -1,6 +1,4 @@
#ifndef GETUSERINFOREQUEST2_H
#define GETUSERINFOREQUEST2_H
#pragma once
#include "APIRequest.h"
class UserInfo;
@ -16,6 +14,3 @@ namespace http
std::unique_ptr<UserInfo> Finish();
};
}
#endif // GETUSERINFOREQUEST2_H

View File

@ -1,6 +1,4 @@
#ifndef IMAGEREQUEST2_H
#define IMAGEREQUEST2_H
#pragma once
#include "Request.h"
#include "common/String.h"
@ -21,6 +19,3 @@ namespace http
std::unique_ptr<VideoBuffer> Finish();
};
}
#endif // IMAGEREQUEST2_H

View File

@ -1,5 +1,4 @@
#ifndef REQUEST_H
#define REQUEST_H
#pragma once
#include "Config.h"
#ifndef NOHTTP
@ -87,5 +86,3 @@ namespace http
String StatusText(int code);
}
#endif // REQUEST_H

View File

@ -1,8 +1,6 @@
#pragma once
#include "Config.h"
#ifndef NOHTTP
#ifndef REQUESTMANAGER_H
#define REQUESTMANAGER_H
#include "Config.h"
#include "common/tpt-minmax.h" // for MSVC, ensures windows.h doesn't cause compile errors by defining min/max
#include <thread>
@ -56,6 +54,4 @@ namespace http
extern ByteString capath;
extern ByteString user_agent;
}
#endif // REQUESTMANAGER_H
#endif

View File

@ -1,6 +1,4 @@
#ifndef REQUESTMONITOR_H
#define REQUESTMONITOR_H
#pragma once
#include <type_traits>
#include <cassert>
@ -50,7 +48,3 @@ namespace http
virtual void OnResponse(typename std::invoke_result<decltype(&R::Finish), R>::type v) = 0;
};
}
#endif // REQUESTMONITOR_H

View File

@ -1,6 +1,4 @@
#ifndef SAVEUSERINFOREQUEST2_H
#define SAVEUSERINFOREQUEST2_H
#pragma once
#include "APIRequest.h"
class UserInfo;
@ -16,6 +14,3 @@ namespace http
bool Finish();
};
}
#endif // SAVEUSERINFOREQUEST2_H

View File

@ -1,6 +1,4 @@
#ifndef THUMBNAILREQUEST2_H
#define THUMBNAILREQUEST2_H
#pragma once
#include "ImageRequest.h"
namespace http
@ -12,6 +10,3 @@ namespace http
virtual ~ThumbnailRequest();
};
}
#endif // THUMBNAILREQUEST2_H

View File

@ -1,5 +1,4 @@
#ifndef PLATFORM_H
#define PLATFORM_H
#pragma once
#include "Config.h"
#include "common/String.h"
@ -51,5 +50,3 @@ namespace Platform
extern std::string originalCwd;
extern std::string sharedCwd;
}
#endif

View File

@ -1,8 +1,6 @@
#ifndef SINGLETON_H
#define SINGLETON_H
#pragma once
template<typename T>
class Singleton
{
public:
@ -12,5 +10,3 @@ public:
return instance;
}
};
#endif // SINGLETON_H

View File

@ -13,10 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TPT_COMPAT_H
#define TPT_COMPAT_H
#pragma once
#include <cstddef>
#include <memory>
#include <type_traits>
@ -36,5 +33,3 @@ typedef unsigned short Uint16;
#ifndef NULL
# define NULL 0
#endif
#endif

View File

@ -13,13 +13,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TPT_INLINE_H
#define TPT_INLINE_H
#pragma once
#if defined(_MSC_VER)
#define TPT_INLINE _inline
# define TPT_INLINE _inline
#else
#define TPT_INLINE inline
#endif
# define TPT_INLINE inline
#endif

View File

@ -13,9 +13,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TPT_MINMAX_H
#define TPT_MINMAX_H
#pragma once
#include <algorithm>
#ifdef _MSC_VER
@ -27,5 +25,3 @@
# undef max
# endif
#endif
#endif

View File

@ -1,5 +1,4 @@
#ifndef TPT_RAND_
#define TPT_RAND_
#pragma once
#include "Config.h"
#include <stdint.h>
@ -22,5 +21,3 @@ public:
};
extern RNG random_gen;
#endif /* TPT_RAND_ */

View File

@ -1,6 +1,4 @@
#ifndef PARTICLE_DEBUG_H
#define PARTICLE_DEBUG_H
#pragma once
#include "DebugInfo.h"
class Simulation;
@ -15,5 +13,3 @@ public:
bool KeyPress(int key, int scan, bool shift, bool ctrl, bool alt, ui::Point currentMouse) override;
virtual ~ParticleDebug();
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef GRAPHICS_H
#define GRAPHICS_H
#pragma once
#include "Config.h"
#include "common/String.h"
@ -138,5 +137,3 @@ public:
};
bool PngDataToPixels(std::vector<pixel> &imageData, int &imgw, int &imgh, const char *pngData, size_t pngDataSize, bool addBackground);
#endif

View File

@ -1,6 +1,4 @@
#ifndef ICONS_H
#define ICONS_H
#pragma once
//Icon names, see Graphics::draw_icon
enum Icon
{
@ -42,5 +40,3 @@ enum Icon
IconLife,
IconGradient
};
#endif // ICONS_H

View File

@ -1,6 +1,4 @@
#ifndef PIXEL_H
#define PIXEL_H
#pragma once
#define PIXELCHANNELS 3
#ifdef PIX16
# define PIXELSIZE 2
@ -39,5 +37,3 @@ typedef unsigned short pixel;
#else
typedef unsigned int pixel;
#endif
#endif // PIXEL_H

View File

@ -1,5 +1,4 @@
#ifndef RENDERER_H
#define RENDERER_H
#pragma once
#include "Config.h"
#include <vector>
@ -171,5 +170,3 @@ public:
private:
int gridSize;
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef STYLE_H_
#define STYLE_H_
#pragma once
#include "Config.h"
#include "gui/interface/Colour.h"
@ -26,5 +25,3 @@ namespace style
{
};
}
#endif

View File

@ -1,6 +1,4 @@
#ifndef CONSOLECOMMAND_H_
#define CONSOLECOMMAND_H_
#pragma once
#include "common/String.h"
class ConsoleCommand
@ -21,5 +19,3 @@ public:
}
};
#endif /* CONSOLECOMMAND_H_ */

View File

@ -1,5 +1,4 @@
#ifndef CONSOLECONTROLLER_H_
#define CONSOLECONTROLLER_H_
#pragma once
#include "Config.h"
#include "common/String.h"
@ -27,5 +26,3 @@ public:
ConsoleView * GetView();
virtual ~ConsoleController();
};
#endif /* CONSOLECONTROLLER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef CONSOLEMODEL_H_
#define CONSOLEMODEL_H_
#pragma once
#include "Config.h"
#include <vector>
@ -24,5 +23,3 @@ public:
void AddObserver(ConsoleView * observer);
void AddLastCommand(ConsoleCommand command);
};
#endif /* CONSOLEMODEL_H_ */

View File

@ -1,6 +1,4 @@
#ifndef CONSOLEVIEW_H_
#define CONSOLEVIEW_H_
#pragma once
#include <vector>
#include "gui/interface/Window.h"
@ -31,5 +29,3 @@ public:
void NotifyCurrentCommandChanged(ConsoleModel * sender);
virtual ~ConsoleView();
};
#endif /* CONSOLEVIEW_H_ */

View File

@ -1,6 +1,4 @@
#ifndef CONFIRMPROMPT_H_
#define CONFIRMPROMPT_H_
#pragma once
#include "gui/interface/Window.h"
#include <functional>
@ -21,5 +19,3 @@ public:
static bool Blocking(String title, String message, String buttonText = String("Confirm"));
void OnDraw() override;
};
#endif /* CONFIRMPROMPT_H_ */

View File

@ -1,6 +1,4 @@
#ifndef ERRORMESSAGE_H_
#define ERRORMESSAGE_H_
#pragma once
#include "gui/interface/Window.h"
#include <functional>
@ -21,5 +19,3 @@ public:
static void Blocking(String title, String message);
void OnDraw() override;
};
#endif /* ERRORMESSAGE_H_ */

View File

@ -1,6 +1,4 @@
#ifndef INFORMATIONMESSAGE_H_
#define INFORMATIONMESSAGE_H_
#pragma once
#include "gui/interface/Window.h"
class InformationMessage : public ui::Window
@ -11,5 +9,3 @@ public:
void OnDraw() override;
};
#endif /* INFORMATIONMESSAGE_H_ */

View File

@ -1,6 +1,4 @@
#ifndef SAVEIDMESSAGE_H
#define SAVEIDMESSAGE_H
#pragma once
#include "gui/interface/Window.h"
class SaveIDMessage : public ui::Window
@ -12,5 +10,3 @@ public:
void OnDraw() override;
void OnTryExit(ExitMethod method) override;
};
#endif /* SAVEIDMESSAGE_H */

View File

@ -1,6 +1,4 @@
#ifndef TEXTPROMPT_H_
#define TEXTPROMPT_H_
#pragma once
#include "gui/interface/Window.h"
#include <functional>
@ -30,5 +28,3 @@ public:
static String Blocking(String title, String message, String text, String placeholder, bool multiline);
void OnDraw() override;
};
#endif /* TEXTPROMPT_H_ */

View File

@ -1,6 +1,4 @@
#ifndef ELEMENTSEARCHACTIVITY_H_
#define ELEMENTSEARCHACTIVITY_H_
#pragma once
#include <vector>
#include "Activity.h"
#include "common/String.h"
@ -42,5 +40,3 @@ public:
void OnDraw() override;
void ToolTip(ui::Point senderPosition, String ToolTip) override;
};
#endif /* ELEMENTSEARCHACTIVITY_H_ */

View File

@ -1,6 +1,4 @@
#ifndef FONTEDITOR_H
#define FONTEDITOR_H
#pragma once
#include <vector>
#include <array>
#include <map>
@ -77,5 +75,3 @@ public:
void OnMouseDown(int x, int y, unsigned button) override;
void OnKeyPress(int key, int scan, bool repeat, bool shift, bool ctrl, bool alt) override;
};
#endif

View File

@ -5,9 +5,7 @@
* Author: Simon Robertshaw
*/
#ifndef BTIMAPBRUSH_H_
#define BTIMAPBRUSH_H_
#pragma once
#include <vector>
#include "Brush.h"
@ -21,5 +19,3 @@ public:
void GenerateBitmap() override;
virtual ~BitmapBrush();
};
#endif /* BTIMAPBRUSH_H_ */

View File

@ -1,5 +1,4 @@
#ifndef BRUSH_H_
#define BRUSH_H_
#pragma once
#include "Config.h"
#include "gui/interface/Point.h"
@ -40,5 +39,3 @@ public:
unsigned char * GetOutline();
};
#endif /* BRUSH_H_ */

View File

@ -1,6 +1,4 @@
#ifndef DECORATIONTOOL_H_
#define DECORATIONTOOL_H_
#pragma once
#include "Tool.h"
#include "graphics/Graphics.h"
@ -23,5 +21,3 @@ public:
void DrawRect(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2) override;
void DrawFill(Simulation * sim, Brush * brush, ui::Point position) override;
};
#endif

View File

@ -1,6 +1,4 @@
#ifndef ELIPSEBRUSH_H_
#define ELIPSEBRUSH_H_
#pragma once
#include <cmath>
#include "Brush.h"
@ -65,5 +63,3 @@ public:
}
}
};
#endif /* ELIPSEBRUSH_H_ */

View File

@ -1,5 +1,4 @@
#ifndef FAVORITE_H
#define FAVORITE_H
#pragma once
#include "Config.h"
#include "common/String.h"
@ -23,4 +22,3 @@ public:
void SaveFavoritesToPrefs();
void LoadFavoritesFromPrefs();
};
#endif //FAVORITE_H

View File

@ -1,5 +1,4 @@
#ifndef GAMECONTROLLER_H
#define GAMECONTROLLER_H
#pragma once
#include "Config.h"
#include <vector>
@ -195,5 +194,3 @@ public:
void RemoveCustomGOLType(const ByteString &identifier);
};
#endif // GAMECONTROLLER_H

View File

@ -1,5 +1,4 @@
#ifndef GAMEMODEL_H
#define GAMEMODEL_H
#pragma once
#include "Config.h"
#include <vector>
@ -249,5 +248,3 @@ public:
ByteString SelectNextIdentifier;
int SelectNextTool;
};
#endif // GAMEMODEL_H

View File

@ -1,6 +1,4 @@
#ifndef GAMEMODELEXCEPTION_H_
#define GAMEMODELEXCEPTION_H_
#pragma once
#include "common/String.h"
#include <exception>
@ -15,5 +13,3 @@ public:
}
~GameModelException() throw() {}
};
#endif /* GAMEMODELEXCEPTION_H_ */

View File

@ -1,6 +1,4 @@
#ifndef GAMEVIEW_H
#define GAMEVIEW_H
#pragma once
#include <ctime>
#include <vector>
#include <deque>
@ -221,5 +219,3 @@ public:
class OptionListener;
};
#endif // GAMEVIEW_H

View File

@ -1,5 +1,4 @@
#ifndef MENU_H_
#define MENU_H_
#pragma once
#include "Config.h"
#include "common/String.h"
@ -39,5 +38,3 @@ public:
void ClearTools();
};
#endif /* MENU_H_ */

View File

@ -1,6 +1,4 @@
#ifndef MENUBUTTON_H_
#define MENUBUTTON_H_
#pragma once
#include "gui/interface/Button.h"
class MenuButton : public ui::Button
@ -10,5 +8,3 @@ public:
int menuID;
bool needsClick;
};
#endif /* MENUBUTTON_H_ */

View File

@ -1,6 +1,4 @@
#ifndef NOTIFICATION_H_
#define NOTIFICATION_H_
#pragma once
#include "common/String.h"
class Notification
@ -12,5 +10,3 @@ public:
virtual void Action() { }
};
#endif /* NOTIFICATION_H_ */

View File

@ -1,5 +1,7 @@
#ifndef RENDER_PRESET_H
#define RENDER_PRESET_H
#pragma once
#include "common/String.h"
#include <vector>
class RenderPreset
{
public:
@ -16,4 +18,3 @@ public:
ColourMode(colourMode)
{}
};
#endif

View File

@ -1,5 +1,4 @@
#ifndef TOOL_H_
#define TOOL_H_
#pragma once
#include "Config.h"
#include "common/String.h"
@ -193,5 +192,3 @@ public:
void DrawRect(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2) override { }
void DrawFill(Simulation * sim, Brush * brush, ui::Point position) override { }
};
#endif /* TOOL_H_ */

View File

@ -1,6 +1,4 @@
#ifndef TOOLBUTTON_H_
#define TOOLBUTTON_H_
#pragma once
#include "gui/interface/Button.h"
class Tool;
@ -23,5 +21,3 @@ public:
int clipRectW = 0;
int clipRectH = 0;
};
#endif /* TOOLBUTTON_H_ */

View File

@ -5,9 +5,7 @@
* Author: Savely Skresanov
*/
#ifndef TRIANGLEBRUSH_H_
#define TRIANGLEBRUSH_H_
#pragma once
#include <cmath>
#include "Brush.h"
@ -41,5 +39,3 @@ public:
}
}
};
#endif /* TRIANGLEBRUSH_H_ */

View File

@ -1,5 +1,4 @@
#ifndef APPEARANCE_H_
#define APPEARANCE_H_
#pragma once
#include "Config.h"
#include "Border.h"
@ -56,5 +55,3 @@ namespace ui
~Appearance();
};
}
#endif

View File

@ -1,6 +1,4 @@
#ifndef AVATARBUTTON_H_
#define AVATARBUTTON_H_
#pragma once
#include "common/String.h"
#include "Component.h"
@ -52,5 +50,3 @@ protected:
bool isMouseInside, isButtonDown;
};
}
#endif /* AVATARBUTTON_H_ */

View File

@ -1,6 +1,4 @@
#ifndef BUTTON_H_
#define BUTTON_H_
#pragma once
#include "common/String.h"
#include "Component.h"
@ -54,4 +52,3 @@ protected:
ButtonAction actionCallback;
};
}
#endif /* BUTTON_H_ */

View File

@ -1,6 +1,4 @@
#ifndef CHECKBOX_H_
#define CHECKBOX_H_
#pragma once
#include "common/String.h"
#include "Component.h"
@ -38,5 +36,3 @@ public:
void SetChecked(bool checked_) { checked = checked_; }
};
}
#endif /* CHECKBOX_H_ */

View File

@ -1,5 +1,4 @@
#ifndef COLOUR_H
#define COLOUR_H
#pragma once
namespace ui
{
@ -20,5 +19,3 @@ public:
}
};
}
#endif

View File

@ -1,6 +1,4 @@
#ifndef The_Powder_Toy_ContextMenu_h
#define The_Powder_Toy_ContextMenu_h
#pragma once
#include "Window.h"
#include "Appearance.h"
#include "Button.h"
@ -36,5 +34,3 @@ public:
void OnMouseDown(int x, int y, unsigned button) override;
};
}
#endif

View File

@ -1,6 +1,4 @@
#ifndef COPYTEXTBUTTON_H
#define COPYTEXTBUTTON_H
#pragma once
#include "Button.h"
namespace ui
@ -18,5 +16,3 @@ public:
void OnMouseLeave(int x, int y) override;
};
}
#endif /* COPYTEXTBUTTON_H */

View File

@ -1,6 +1,4 @@
#ifndef DIRECTIONSELECTOR_H_
#define DIRECTIONSELECTOR_H_
#pragma once
#include "Component.h"
#include "Colour.h"
#include "graphics/Graphics.h"
@ -93,4 +91,3 @@ public:
};
} /* namespace ui */
#endif /* DIRECTIONSELECTOR_H_ */

View File

@ -1,6 +1,4 @@
#ifndef DROPDOWN_H_
#define DROPDOWN_H_
#pragma once
#include <utility>
#include "Component.h"
@ -42,4 +40,3 @@ public:
};
} /* namespace ui */
#endif /* DROPDOWN_H_ */

View File

@ -1,6 +1,4 @@
#ifndef LABEL_H
#define LABEL_H
#pragma once
#include "common/String.h"
#include "Component.h"
@ -67,5 +65,3 @@ namespace ui
void Tick(float dt) override;
};
}
#endif // LABEL_H

View File

@ -1,6 +1,4 @@
#ifndef SAVEBUTTON_H_
#define SAVEBUTTON_H_
#pragma once
#include "common/String.h"
#include "Component.h"
@ -82,5 +80,3 @@ protected:
bool isButtonDown, state, isMouseInside, selected, selectable;
};
}
#endif /* BUTTON_H_ */

View File

@ -1,6 +1,4 @@
#ifndef SLIDER_H_
#define SLIDER_H_
#pragma once
#include "Component.h"
#include "Colour.h"
#include "graphics/Pixel.h"
@ -40,4 +38,3 @@ public:
};
} /* namespace ui */
#endif /* SLIDER_H_ */

View File

@ -1,6 +1,4 @@
#ifndef SPINNER_H_
#define SPINNER_H_
#pragma once
#include "Component.h"
namespace ui
@ -19,5 +17,3 @@ public:
}
#endif /* SPINNER_H_ */

View File

@ -1,6 +1,4 @@
#ifndef TEXTBOX_H
#define TEXTBOX_H
#pragma once
#include "Label.h"
#include <functional>
@ -101,5 +99,3 @@ protected:
}
#endif // TEXTBOX_H

View File

@ -1,6 +1,4 @@
#ifndef WINDOW_H
#define WINDOW_H
#pragma once
#include "common/String.h"
#include <vector>
#include "gui/interface/Point.h"
@ -126,4 +124,3 @@ namespace ui
};
}
#endif // WINDOW_H

View File

@ -1,5 +1,4 @@
#ifndef STAMPSCONTROLLER_H_
#define STAMPSCONTROLLER_H_
#pragma once
#include "Config.h"
#include "common/String.h"
@ -34,5 +33,3 @@ public:
void Exit();
virtual ~LocalBrowserController();
};
#endif /* STAMPSCONTROLLER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef STAMPSMODEL_H_
#define STAMPSMODEL_H_
#pragma once
#include "Config.h"
#include <vector>
@ -37,5 +36,3 @@ public:
void DeselectSave(ByteString stampID);
virtual ~LocalBrowserModel();
};
#endif /* STAMPSMODEL_H_ */

View File

@ -1,6 +1,4 @@
#ifndef STAMPSMODELEXCEPTION_H_
#define STAMPSMODELEXCEPTION_H_
#pragma once
#include "common/String.h"
#include <exception>
@ -12,5 +10,3 @@ public:
const char * what() const throw() { return message.c_str(); };
~LocalBrowserModelException() throw() {};
};
#endif /* STAMPSMODELEXCEPTION_H_ */

View File

@ -1,6 +1,4 @@
#ifndef STAMPSVIEW_H_
#define STAMPSVIEW_H_
#pragma once
#include <vector>
#include "gui/interface/Window.h"
@ -42,5 +40,3 @@ public:
void OnKeyRelease(int key, int scan, bool repeat, bool shift, bool ctrl, bool alt) override;
virtual ~LocalBrowserView();
};
#endif /* STAMPSVIEW_H_ */

View File

@ -1,5 +1,4 @@
#ifndef LOGINCONTROLLER_H_
#define LOGINCONTROLLER_H_
#pragma once
#include "Config.h"
#include "common/String.h"
@ -23,5 +22,3 @@ public:
User GetUser();
virtual ~LoginController();
};
#endif /* LOGINCONTROLLER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef LOGINMODEL_H_
#define LOGINMODEL_H_
#pragma once
#include "Config.h"
#include <vector>
@ -23,5 +22,3 @@ public:
User GetUser();
virtual ~LoginModel();
};
#endif /* LOGINMODEL_H_ */

View File

@ -1,6 +1,4 @@
#ifndef LOGINVIEW_H_
#define LOGINVIEW_H_
#pragma once
#include "gui/interface/Window.h"
namespace ui
@ -32,5 +30,3 @@ public:
void OnTick(float dt) override;
virtual ~LoginView();
};
#endif /* LOGINVIEW_H_ */

View File

@ -1,5 +1,4 @@
#ifndef OPTIONSCONTROLLER_H_
#define OPTIONSCONTROLLER_H_
#pragma once
#include "Config.h"
#include <functional>
@ -44,5 +43,3 @@ public:
OptionsView * GetView();
virtual ~OptionsController();
};
#endif /* OPTIONSCONTROLLER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef OPTIONSMODEL_H_
#define OPTIONSMODEL_H_
#pragma once
#include "Config.h"
#include <vector>
@ -64,5 +63,3 @@ public:
void SetMomentumScroll(bool momentumScroll);
virtual ~OptionsModel();
};
#endif /* OPTIONSMODEL_H_ */

View File

@ -1,6 +1,4 @@
#ifndef OPTIONSVIEW_H_
#define OPTIONSVIEW_H_
#pragma once
#include "common/String.h"
#include "gui/interface/Window.h"
#include "gui/interface/ScrollPanel.h"
@ -53,5 +51,3 @@ public:
void OnTryExit(ExitMethod method) override;
virtual ~OptionsView();
};
#endif /* OPTIONSVIEW_H_ */

View File

@ -1,6 +1,4 @@
#ifndef COMMENT_H_
#define COMMENT_H_
#pragma once
#include "common/String.h"
class SaveComment
@ -24,5 +22,3 @@ public:
}
};
#endif /* COMMENT_H_ */

View File

@ -1,5 +1,4 @@
#ifndef PREVIEWCONTROLLER_H_
#define PREVIEWCONTROLLER_H_
#pragma once
#include "Config.h"
#include "client/ClientListener.h"
@ -39,5 +38,3 @@ public:
virtual ~PreviewController();
};
#endif /* PREVIEWCONTROLLER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef PREVIEWMODEL_H
#define PREVIEWMODEL_H
#pragma once
#include "Config.h"
#include <vector>
@ -64,5 +63,3 @@ public:
bool ParseComments(ByteString &commentsResponse);
virtual ~PreviewModel();
};
#endif /* PREVIEWMODEL_H */

View File

@ -1,6 +1,4 @@
#ifndef PREVIEWMODELEXCEPTION_H_
#define PREVIEWMODELEXCEPTION_H_
#pragma once
#include "common/String.h"
#include <exception>
@ -15,5 +13,3 @@ public:
}
~PreviewModelException() throw() {}
};
#endif /* PREVIEWMODELEXCEPTION_H_ */

View File

@ -1,6 +1,4 @@
#ifndef PREVIEWVIEW_H_
#define PREVIEWVIEW_H_
#pragma once
#include <vector>
#include <set>
#include "common/String.h"
@ -82,5 +80,3 @@ public:
void OnKeyPress(int key, int scan, bool repeat, bool shift, bool ctrl, bool alt) override;
virtual ~PreviewView();
};
#endif /* PREVIEWVIEW_H_ */

View File

@ -1,6 +1,4 @@
#ifndef PROFILEACTIVITY_H_
#define PROFILEACTIVITY_H_
#pragma once
#include "common/String.h"
#include "Activity.h"
#include "client/UserInfo.h"
@ -38,5 +36,3 @@ public:
void ResizeArea();
};
#endif /* PROFILEACTIVITY_H_ */

View File

@ -1,5 +1,4 @@
#ifndef RENDERCONTROLLER_H_
#define RENDERCONTROLLER_H_
#pragma once
#include "Config.h"
#include <functional>
@ -25,5 +24,3 @@ public:
void SetColourMode(unsigned int renderMode);
void LoadRenderPreset(int presetNum);
};
#endif /* RENDERCONTROLLER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef RENDERMODEL_H_
#define RENDERMODEL_H_
#pragma once
#include "Config.h"
#include <vector>
@ -30,5 +29,3 @@ public:
void LoadRenderPreset(int presetNum);
virtual ~RenderModel();
};
#endif /* RENDERMODEL_H_ */

View File

@ -1,6 +1,4 @@
#ifndef RENDERVIEW_H_
#define RENDERVIEW_H_
#pragma once
#include <vector>
#include "gui/interface/Window.h"
@ -34,5 +32,3 @@ public:
void ToolTip(ui::Point senderPosition, String toolTip) override;
virtual ~RenderView();
};
#endif /* RENDERVIEW_H_ */

View File

@ -1,5 +1,4 @@
#ifndef SEARCHCONTROLLER_H
#define SEARCHCONTROLLER_H
#pragma once
#include "Config.h"
#include "common/String.h"
@ -55,5 +54,3 @@ public:
void ReleaseLoadedSave();
SaveInfo * GetLoadedSave();
};
#endif // SEARCHCONTROLLER_H

View File

@ -1,5 +1,4 @@
#ifndef SEARCHMODEL_H
#define SEARCHMODEL_H
#pragma once
#include "Config.h"
#include <vector>
@ -74,5 +73,3 @@ public:
void DeselectSave(int saveID);
void Update();
};
#endif // SEARCHMODEL_H

View File

@ -1,6 +1,4 @@
#ifndef SEARCHVIEW_H
#define SEARCHVIEW_H
#pragma once
#include <vector>
#include "client/ClientListener.h"
#include "gui/interface/Window.h"
@ -71,5 +69,3 @@ public:
void OnKeyRelease(int key, int scan, bool repeat, bool shift, bool ctrl, bool alt) override;
};
#endif // SEARCHVIEW_H

View File

@ -1,5 +1,4 @@
#ifndef TAGSCONTROLLER_H_
#define TAGSCONTROLLER_H_
#pragma once
#include "Config.h"
#include "common/String.h"
@ -24,5 +23,3 @@ public:
void Exit();
virtual ~TagsController();
};
#endif /* TAGSCONTROLLER_H_ */

View File

@ -1,5 +1,4 @@
#ifndef TAGSMODEL_H_
#define TAGSMODEL_H_
#pragma once
#include "Config.h"
#include <vector>
@ -21,5 +20,3 @@ public:
SaveInfo * GetSave();
virtual ~TagsModel();
};
#endif /* TAGSMODEL_H_ */

Some files were not shown because too many files have changed in this diff Show More