1 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\r
11 class FunctionParam;
\r
17 /// virtual destructor
\r
18 virtual ~FunctionData() = 0;
\r
20 virtual void load(SettingLoader *i_sl) = 0;
\r
22 virtual void exec(Engine *i_engine, FunctionParam *i_param) const = 0;
\r
24 virtual const _TCHAR *getName() const = 0;
\r
26 virtual tostream &output(tostream &i_ost) const = 0;
\r
28 virtual FunctionData *clone() const = 0;
\r
32 extern tostream &operator<<(tostream &i_ost, const FunctionData *i_data);
\r
36 extern FunctionData *createFunctionData(const tstring &i_name);
\r
40 VKey_extended = 0x100, ///
\r
41 VKey_released = 0x200, ///
\r
42 VKey_pressed = 0x400, ///
\r
46 extern tostream &operator<<(tostream &i_ost, VKey i_data);
\r
51 ToWindowType_toBegin = -2, ///
\r
52 ToWindowType_toMainWindow = -2, ///
\r
53 ToWindowType_toOverlappedWindow = -1, ///
\r
54 ToWindowType_toItself = 0, ///
\r
55 ToWindowType_toParentWindow = 1, ///
\r
59 extern tostream &operator<<(tostream &i_ost, ToWindowType i_data);
\r
61 // get value of ToWindowType
\r
62 extern bool getTypeValue(ToWindowType *o_type, const tstring &i_name);
\r
67 GravityType_C = 0, /// center
\r
68 GravityType_N = 1 << 0, /// north
\r
69 GravityType_E = 1 << 1, /// east
\r
70 GravityType_W = 1 << 2, /// west
\r
71 GravityType_S = 1 << 3, /// south
\r
72 GravityType_NW = GravityType_N | GravityType_W, /// north west
\r
73 GravityType_NE = GravityType_N | GravityType_E, /// north east
\r
74 GravityType_SW = GravityType_S | GravityType_W, /// south west
\r
75 GravityType_SE = GravityType_S | GravityType_E, /// south east
\r
79 extern tostream &operator<<(tostream &i_ost, GravityType i_data);
\r
81 /// get value of GravityType
\r
82 extern bool getTypeValue(GravityType *o_type, const tstring &i_name);
\r
85 /// enum MouseHookType is defined in hook.h
\r
86 extern enum MouseHookType;
\r
89 extern tostream &operator<<(tostream &i_ost, MouseHookType i_data);
\r
91 /// get value of MouseHookType
\r
92 extern bool getTypeValue(MouseHookType *o_type, const tstring &i_name);
\r
96 enum MayuDialogType {
\r
97 MayuDialogType_investigate = 0x10000, ///
\r
98 MayuDialogType_log = 0x20000, ///
\r
99 MayuDialogType_mask = 0xffff0000, ///
\r
103 extern tostream &operator<<(tostream &i_ost, MayuDialogType i_data);
\r
105 // get value of MayuDialogType
\r
106 bool getTypeValue(MayuDialogType *o_type, const tstring &i_name);
\r
110 enum ModifierLockType {
\r
111 ModifierLockType_Lock0 = Modifier::Type_Lock0, ///
\r
112 ModifierLockType_Lock1 = Modifier::Type_Lock1, ///
\r
113 ModifierLockType_Lock2 = Modifier::Type_Lock2, ///
\r
114 ModifierLockType_Lock3 = Modifier::Type_Lock3, ///
\r
115 ModifierLockType_Lock4 = Modifier::Type_Lock4, ///
\r
116 ModifierLockType_Lock5 = Modifier::Type_Lock5, ///
\r
117 ModifierLockType_Lock6 = Modifier::Type_Lock6, ///
\r
118 ModifierLockType_Lock7 = Modifier::Type_Lock7, ///
\r
119 ModifierLockType_Lock8 = Modifier::Type_Lock8, ///
\r
120 ModifierLockType_Lock9 = Modifier::Type_Lock9, ///
\r
125 ToggleType_toggle = -1, ///
\r
126 ToggleType_off = 0, ///
\r
127 ToggleType_on = 1, ///
\r
131 extern tostream &operator<<(tostream &i_ost, ToggleType i_data);
\r
133 // get value of ShowCommandType
\r
134 extern bool getTypeValue(ToggleType *o_type, const tstring &i_name);
\r
138 extern tostream &operator<<(tostream &i_ost, ModifierLockType i_data);
\r
140 // get value of ModifierLockType
\r
141 extern bool getTypeValue(ModifierLockType *o_type, const tstring &i_name);
\r
145 enum ShowCommandType {
\r
146 ShowCommandType_hide = SW_HIDE, ///
\r
147 ShowCommandType_maximize = SW_MAXIMIZE, ///
\r
148 ShowCommandType_minimize = SW_MINIMIZE, ///
\r
149 ShowCommandType_restore = SW_RESTORE, ///
\r
150 ShowCommandType_show = SW_SHOW, ///
\r
151 ShowCommandType_showDefault = SW_SHOWDEFAULT, ///
\r
152 ShowCommandType_showMaximized = SW_SHOWMAXIMIZED, ///
\r
153 ShowCommandType_showMinimized = SW_SHOWMINIMIZED, ///
\r
154 ShowCommandType_showMinNoActive = SW_SHOWMINNOACTIVE, ///
\r
155 ShowCommandType_showNA = SW_SHOWNA, ///
\r
156 ShowCommandType_showNoActivate = SW_SHOWNOACTIVATE, ///
\r
157 ShowCommandType_showNormal = SW_SHOWNORMAL, ///
\r
161 extern tostream &operator<<(tostream &i_ost, ShowCommandType i_data);
\r
163 // get value of ShowCommandType
\r
164 extern bool getTypeValue(ShowCommandType *o_type, const tstring &i_name);
\r
168 enum TargetWindowType {
\r
169 TargetWindowType_overlapped = 0, ///
\r
170 TargetWindowType_mdi = 1, ///
\r
174 extern tostream &operator<<(tostream &i_ost, TargetWindowType i_data);
\r
176 // get value of ShowCommandType
\r
177 extern bool getTypeValue(TargetWindowType *o_type, const tstring &i_name);
\r
182 BooleanType_false = 0, ///
\r
183 BooleanType_true = 1, ///
\r
187 extern tostream &operator<<(tostream &i_ost, BooleanType i_data);
\r
189 // get value of ShowCommandType
\r
190 extern bool getTypeValue(BooleanType *o_type, const tstring &i_name);
\r
194 enum LogicalOperatorType {
\r
195 LogicalOperatorType_or = 0, ///
\r
196 LogicalOperatorType_and = 1, ///
\r
200 extern tostream &operator<<(tostream &i_ost, LogicalOperatorType i_data);
\r
202 // get value of LogicalOperatorType
\r
203 extern bool getTypeValue(LogicalOperatorType *o_type, const tstring &i_name);
\r
207 enum WindowMonitorFromType {
\r
208 WindowMonitorFromType_primary = 0, ///
\r
209 WindowMonitorFromType_current = 1, ///
\r
213 extern tostream &operator<<(tostream &i_ost, WindowMonitorFromType i_data);
\r
215 // get value of WindowMonitorFromType
\r
216 extern bool getTypeValue(WindowMonitorFromType *o_type, const tstring &i_name);
\r
220 extern tostream &operator<<(tostream &i_ost,
\r
221 const std::list<tstringq> &i_data);
\r
224 /// string type expression
\r
228 /// string type expression for function arguments
\r
239 StrExprArg(const StrExprArg &i_data);
\r
240 StrExprArg(const tstringq &i_symbol, Type i_type);
\r
242 StrExprArg &operator=(const StrExprArg &i_data);
\r
243 tstringq eval() const;
\r
244 static void setEngine(const Engine *i_engine);
\r
249 tostream &operator<<(tostream &i_ost, const StrExprArg &i_data);
\r
252 #endif // !_FUNCTION_H
\r