Created
May 30, 2015 18:10
-
-
Save dacap/3bbdab0906bcd2065cce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Don't modify, generated file from /aseprite/data/pref.xml | |
#ifndef GENERATED_PREF_TYPES_H_INCLUDED | |
#define GENERATED_PREF_TYPES_H_INCLUDED | |
#pragma once | |
#include <string> | |
namespace app { | |
namespace gen { | |
enum class RightClickMode { | |
DEFAULT = 0, | |
PAINT_BGCOLOR = 0, | |
PICK_FGCOLOR = 1, | |
ERASE = 2, | |
}; | |
enum class OnionskinType { | |
MERGE = 0, | |
RED_BLUE_TINT = 1, | |
}; | |
enum class BrushType { | |
CIRCLE = 0, | |
SQUARE = 1, | |
LINE = 2, | |
}; | |
enum class BgType { | |
CHECKED_16x16 = 0, | |
CHECKED_8x8 = 1, | |
CHECKED_4x4 = 2, | |
CHECKED_2x2 = 3, | |
}; | |
enum class SpriteSheetType { | |
NONE = 0, | |
HORIZONTAL_STRIP = 1, | |
VERTICAL_STRIP = 2, | |
MATRIX = 3, | |
}; | |
class GlobalPref : public Section { | |
public: | |
GlobalPref(const std::string& name); | |
void load(); | |
void save(); | |
class General : public Section { | |
public: | |
General(const std::string& name); | |
void load(); | |
void save(); | |
Option<int> screenScale; | |
Option<bool> visibleTimeline; | |
Option<bool> autoshowTimeline; | |
Option<bool> expandMenubarOnMouseover; | |
Option<bool> dataRecovery; | |
Option<int> dataRecoveryPeriod; | |
}; | |
General general; | |
class Undo : public Section { | |
public: | |
Undo(const std::string& name); | |
void load(); | |
void save(); | |
Option<int> sizeLimit; | |
Option<bool> gotoModified; | |
Option<bool> allowNonlinearHistory; | |
}; | |
Undo undo; | |
class Editor : public Section { | |
public: | |
Editor(const std::string& name); | |
void load(); | |
void save(); | |
Option<bool> zoomWithWheel; | |
Option<bool> zoomFromCenterWithWheel; | |
Option<bool> zoomFromCenterWithKeys; | |
Option<bool> showScrollbars; | |
Option<RightClickMode> rightClickMode; | |
Option<bool> grabAlpha; | |
Option<bool> autoSelectLayer; | |
Option<app::Color> cursorColor; | |
}; | |
Editor editor; | |
class Experimental : public Section { | |
public: | |
Experimental(const std::string& name); | |
void load(); | |
void save(); | |
Option<int> uiScale; | |
Option<bool> useNativeCursor; | |
Option<bool> useNativeFileDialog; | |
Option<bool> flashLayer; | |
}; | |
Experimental experimental; | |
class News : public Section { | |
public: | |
News(const std::string& name); | |
void load(); | |
void save(); | |
Option<std::string> cacheFile; | |
}; | |
News news; | |
class ColorBar : public Section { | |
public: | |
ColorBar(const std::string& name); | |
void load(); | |
void save(); | |
Option<int> boxSize; | |
Option<app::Color> fgColor; | |
Option<app::Color> bgColor; | |
}; | |
ColorBar colorBar; | |
class ToolBox : public Section { | |
public: | |
ToolBox(const std::string& name); | |
void load(); | |
void save(); | |
Option<std::string> activeTool; | |
}; | |
ToolBox toolBox; | |
class Updater : public Section { | |
public: | |
Updater(const std::string& name); | |
void load(); | |
void save(); | |
Option<int> inits; | |
Option<int> exits; | |
Option<bool> isDeveloper; | |
Option<double> waitDays; | |
Option<int> lastCheck; | |
Option<std::string> uuid; | |
Option<std::string> newVersion; | |
Option<std::string> newUrl; | |
}; | |
Updater updater; | |
class Brush : public Section { | |
public: | |
Brush(const std::string& name); | |
void load(); | |
void save(); | |
Option<doc::BrushPattern> pattern; | |
}; | |
Brush brush; | |
class Selection : public Section { | |
public: | |
Selection(const std::string& name); | |
void load(); | |
void save(); | |
Option<app::tools::SelectionMode> mode; | |
Option<app::Color> transparentColor; | |
Option<app::tools::RotationAlgorithm> rotationAlgorithm; | |
}; | |
Selection selection; | |
}; | |
class ToolPref : public Section { | |
public: | |
ToolPref(const std::string& name); | |
void load(); | |
void save(); | |
Option<int> opacity; | |
Option<int> tolerance; | |
Option<bool> contiguous; | |
Option<bool> filled; | |
Option<bool> filledPreview; | |
Option<app::tools::InkType> ink; | |
Option<app::tools::FreehandAlgorithm> freehandAlgorithm; | |
class Brush : public Section { | |
public: | |
Brush(const std::string& name); | |
void load(); | |
void save(); | |
Option<BrushType> type; | |
Option<int> size; | |
Option<int> angle; | |
}; | |
Brush brush; | |
class Spray : public Section { | |
public: | |
Spray(const std::string& name); | |
void load(); | |
void save(); | |
Option<int> width; | |
Option<int> speed; | |
}; | |
Spray spray; | |
}; | |
class DocPref : public Section { | |
public: | |
DocPref(const std::string& name); | |
void load(); | |
void save(); | |
class Tiled : public Section { | |
public: | |
Tiled(const std::string& name); | |
void load(); | |
void save(); | |
Option<filters::TiledMode> mode; | |
}; | |
Tiled tiled; | |
class Grid : public Section { | |
public: | |
Grid(const std::string& name); | |
void load(); | |
void save(); | |
Option<bool> snap; | |
Option<bool> visible; | |
Option<gfx::Rect> bounds; | |
Option<app::Color> color; | |
Option<int> opacity; | |
Option<bool> autoOpacity; | |
}; | |
Grid grid; | |
class PixelGrid : public Section { | |
public: | |
PixelGrid(const std::string& name); | |
void load(); | |
void save(); | |
Option<bool> visible; | |
Option<app::Color> color; | |
Option<int> opacity; | |
Option<bool> autoOpacity; | |
}; | |
PixelGrid pixelGrid; | |
class Bg : public Section { | |
public: | |
Bg(const std::string& name); | |
void load(); | |
void save(); | |
Option<BgType> type; | |
Option<bool> zoom; | |
Option<app::Color> color1; | |
Option<app::Color> color2; | |
}; | |
Bg bg; | |
class Onionskin : public Section { | |
public: | |
Onionskin(const std::string& name); | |
void load(); | |
void save(); | |
Option<bool> active; | |
Option<int> prevFrames; | |
Option<int> nextFrames; | |
Option<int> opacityBase; | |
Option<int> opacityStep; | |
Option<OnionskinType> type; | |
}; | |
Onionskin onionskin; | |
class SpriteSheet : public Section { | |
public: | |
SpriteSheet(const std::string& name); | |
void load(); | |
void save(); | |
Option<SpriteSheetType> type; | |
Option<int> columns; | |
Option<int> width; | |
Option<int> height; | |
Option<bool> bestFit; | |
Option<std::string> textureFilename; | |
Option<std::string> dataFilename; | |
Option<int> borderPadding; | |
Option<int> shapePadding; | |
Option<int> innerPadding; | |
Option<bool> openGenerated; | |
}; | |
SpriteSheet spriteSheet; | |
class ImportSpriteSheet : public Section { | |
public: | |
ImportSpriteSheet(const std::string& name); | |
void load(); | |
void save(); | |
Option<gfx::Rect> bounds; | |
}; | |
ImportSpriteSheet importSpriteSheet; | |
}; | |
} // namespace gen | |
} // namespace app | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment