Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreBuiltinTool.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_BUILTIN_TOOL__
8#define __HDI_CORE_BUILTIN_TOOL__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicoreTypes.h"
13
14namespace hdi
15{
16 namespace core
17 {
18 class ThirdPartyPlugin;
19
24 {
25 public:
30 {
31 HorizontalTypeTool = 10,
32 HorizontalAreaTypeTool = 20,
33 HorizontalPathTypeTool = 30,
34 VerticalTypeTool = 40,
35 VerticalAreaTypeTool = 50,
36 VerticalPathTypeTool = 60,
37 RTLHorizontalTypeTool = 70,
38 RTLHorizontalAreaTypeTool = 80,
39 RTLHorizontalPathTypeTool = 90,
40 TextPositioningTool = 100,
41
42 LineTool = 110,
43 ArcTool = 120,
44 RectangleTool = 130,
45 RoundedRectangleTool = 140,
46 EllipseTool = 150,
47 PolygonTool = 160,
48 StarTool = 170,
49 SpiralTool = 180,
50 PluginEllipseTool = 190,
51 PluginRectangleTool = 200,
52
53 SelectTool = 210,
54 DirectSelectTool = 220,
55 DirectObjectSelectTool = 230,
56 ToggleSelectTool = 240,
57 ToggleDirectSelectTool = 250,
58
59 ScaleTool = 260,
60 RotateTool = 270,
61 ReflectTool = 280,
62 ShearTool = 290,
63 FreeTransformTool = 300,
64
65 ColumnGraphTool = 310,
66 StackedColumnGraphTool = 320,
67 LineGraphTool = 330,
68 PieGraphTool = 340,
69 AreaGraphTool = 350,
70 ScatterGraphTool = 360,
71 BarGraphTool = 370,
72 StackedBarGraphTool = 380,
73 RadarGraphTool = 390,
74
75 ScrollTool = 400,
76 FreehandTool = 410,
77 FreehandSmoothTool = 420,
78 FreehandEraseTool = 440,
79
80 PenTool = 450,
81 ScissorsTool = 460,
82 KnifeTool = 470,
83 ReshapeTool = 480,
84 WidthTool = 490,
85 StencilTool = 493,
86 NaturalJoinTool = 496,
87
88 BlendTool = 500,
89 MeasureTool = 510,
90 PageTool = 520,
91 ZoomTool = 530,
92
93 AddAnchorPointTool = 540,
94 DeleteAnchorPointTool = 550,
95 ConvertAnchorPointTool = 560,
96
97 GradientVectorTool = 570,
98 BrushTool = 580,
99 EyedropperTool = 590,
100 MeshEditingTool = 600,
101 PatternTileTool = 610,
102
103 DirectLassoTool = 620,
104 MagicWandTool = 630,
105 RectangularGridTool = 640,
106 PolarGridTool = 650,
107 PerspectiveGridTool = 660,
108 PerspectiveSelectionTool = 670,
109
110 FlareTool = 680,
111 WarpTool = 690,
112 NewTwirlTool = 700,
113 PuckerTool = 710,
114 BloatTool = 720,
115 ScallopTool = 730,
116 CrystallizeTool = 740,
117 WrinkleTool = 750,
118 CurvatureTool = 755,
119
120 SliceTool = 760,
121 SliceSelectTool = 770,
122
123 SymbolSprayerTool = 780,
124 SymbolShifterTool = 790,
125 SymbolScruncherTool = 800,
126 SymbolSizerTool = 810,
127 SymbolSpinnerTool = 820,
128 SymbolStainerTool = 830,
129 SymbolScreenerTool = 840,
130 SymbolStylerTool = 850,
131
132 PlanarPaintbucketTool = 860,
133 PlanarFaceSelectTool = 870,
134
135 EraserTool = 880,
136 CropTool = 890,
137
138 BlobTool = 900,
139 LiveMergeTool = 910,
140
141 PlaceGunTool = 920,
142 ChartsTool = 930,
143
144 ShaperTool = 940,
145 SymmetryTool = 950,
146
147 PuppetWarpTool = 960,
148 DiffusionColoringTool = 970,
149
150 SmartEditTool = 980
151 };
152
165
174
187 BuiltinTool(const AdobeTool tool_);
188
194 virtual ~BuiltinTool();
195
205 virtual BuiltinTool& operator=(const BuiltinTool& rhs_);
206
215 virtual bool operator==(const BuiltinTool& rhs_) const;
216
225 virtual bool operator!=(const BuiltinTool& rhs_) const;
226
238 virtual AIToolHandle aiToolHandle() const;
239
247 virtual bool isEmpty() const;
248
256 virtual std::unique_ptr<ThirdPartyPlugin> plugin() const;
257
265 virtual bool selected() const;
266
272 virtual void setSelected();
273
281 virtual std::string title() const;
282
290 virtual std::string tip() const;
291
292
293 private:
294 AIToolHandle __toolHandle;
295 std::string __toolName;
296 };
297
298 typedef std::unique_ptr<BuiltinTool> BuiltinToolUP;
299 typedef std::shared_ptr<BuiltinTool> BuiltinToolSP;
300 typedef std::weak_ptr<BuiltinTool> BuiltinToolWP;
301 }
302}
303
304#endif
305// HDI_CORE_AIP_MODE
306
307#endif
308// __HDI_CORE_BUILTIN_TOOL__
Class for accessing and querying built-in Illustrator tools.
Definition: hdicoreBuiltinTool.h:24
virtual std::string tip() const
Gets the tool's tip string.
BuiltinTool()
Constructs an empty BuiltinTool object.
virtual bool operator==(const BuiltinTool &rhs_) const
Tests whether a given BuiltinTool object is the same as another.
BuiltinTool(const AdobeTool tool_)
Constructs a new BuiltinTool object by acquiring the underlying built-in Illustrator tool.
virtual std::unique_ptr< ThirdPartyPlugin > plugin() const
Gets the plugin associated with the tool, if any.
BuiltinTool(const BuiltinTool &tool_)
Constructs a new BuiltinTool object from an existing BuiltinTool object (copy constructor)
virtual void setSelected()
Sets the target BuiltinTool object as the currently selected tool.
virtual AIToolHandle aiToolHandle() const
Gets the tool handle around which the target object is wrapped.
virtual bool selected() const
Gets whether the target BuiltinTool object is the currently selected tool.
virtual bool operator!=(const BuiltinTool &rhs_) const
Tests whether a given BuiltinTool object is not the same as another.
virtual bool isEmpty() const
Gets whether the target BuiltinTool object is empty (constructed with the default ctor)
virtual std::string title() const
Gets the tool's title.
AdobeTool
Describes the built-in Illustrator tools that can be acquired.
Definition: hdicoreBuiltinTool.h:30
virtual BuiltinTool & operator=(const BuiltinTool &rhs_)
Assigns one BuiltinTool object to another.
virtual ~BuiltinTool()
Destructs a BuiltinTool object.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.