1 #include "pirreversemultitap.h"
4 #include "pirmacrocommanditem.h"
7 PIRReverseMultitap::PIRReverseMultitap(
12 "Reverse Multitap Keyboard Macros"),
44 void PIRReverseMultitap::generateLetterA()
46 PIRMacro *m = new PIRMacro(this, "Multitap A", 'A');
47 m->appendCommand(new PIRKeyCommandItem(Two_Key, mainWindow));
48 // macros[m->getName()] = m;
51 void PIRReverseMultitap::generateLetterB()
53 PIRMacro *m = new PIRMacro(this, "Multitap B", 'B');
54 m->appendCommand(new PIRKeyCommandItem(Two_Key, mainWindow));
55 m->appendCommand(new PIRKeyCommandItem(Two_Key, mainWindow));
56 // macros[m->getName()] = m;
59 void PIRReverseMultitap::generateLetterC()
61 PIRMacro *m = new PIRMacro(this, "Multitap C", 'C');
62 m->appendCommand(new PIRKeyCommandItem(Two_Key, mainWindow));
63 m->appendCommand(new PIRKeyCommandItem(Two_Key, mainWindow));
64 m->appendCommand(new PIRKeyCommandItem(Two_Key, mainWindow));
65 // macros[m->getName()] = m;
68 void PIRReverseMultitap::generateLetterD()
70 PIRMacro *m = new PIRMacro(this, "Multitap D", 'D');
71 m->appendCommand(new PIRKeyCommandItem(Three_Key, mainWindow));
72 // macros[m->getName()] = m;
75 void PIRReverseMultitap::generateLetterE()
77 PIRMacro *m = new PIRMacro(this, "Multitap E", 'E');
78 m->appendCommand(new PIRKeyCommandItem(Three_Key, mainWindow));
79 m->appendCommand(new PIRKeyCommandItem(Three_Key, mainWindow));
80 // macros[m->getName()] = m;
83 void PIRReverseMultitap::generateLetterF()
85 PIRMacro *m = new PIRMacro(this, "Multitap F", 'F');
86 m->appendCommand(new PIRKeyCommandItem(Three_Key, mainWindow));
87 m->appendCommand(new PIRKeyCommandItem(Three_Key, mainWindow));
88 m->appendCommand(new PIRKeyCommandItem(Three_Key, mainWindow));
89 // macros[m->getName()] = m;
92 void PIRReverseMultitap::generateLetterG()
94 PIRMacro *m = new PIRMacro(this, "Multitap G", 'G');
95 m->appendCommand(new PIRKeyCommandItem(Four_Key, mainWindow));
96 // macros[m->getName()] = m;
99 void PIRReverseMultitap::generateLetterH()
101 PIRMacro *m = new PIRMacro(this, "Multitap H", 'H');
102 m->appendCommand(new PIRKeyCommandItem(Four_Key, mainWindow));
103 m->appendCommand(new PIRKeyCommandItem(Four_Key, mainWindow));
104 // macros[m->getName()] = m;
107 void PIRReverseMultitap::generateLetterI()
109 PIRMacro *m = new PIRMacro(this, "Multitap I", 'I');
110 m->appendCommand(new PIRKeyCommandItem(Four_Key, mainWindow));
111 m->appendCommand(new PIRKeyCommandItem(Four_Key, mainWindow));
112 m->appendCommand(new PIRKeyCommandItem(Four_Key, mainWindow));
113 // macros[m->getName()] = m;
116 void PIRReverseMultitap::generateLetterJ()
118 PIRMacro *m = new PIRMacro(this, "Multitap J", 'J');
119 m->appendCommand(new PIRKeyCommandItem(Five_Key, mainWindow));
120 // macros[m->getName()] = m;
123 void PIRReverseMultitap::generateLetterK()
125 PIRMacro *m = new PIRMacro(this, "Multitap K", 'K');
126 m->appendCommand(new PIRKeyCommandItem(Five_Key, mainWindow));
127 m->appendCommand(new PIRKeyCommandItem(Five_Key, mainWindow));
128 // macros[m->getName()] = m;
131 void PIRReverseMultitap::generateLetterL()
133 PIRMacro *m = new PIRMacro(this, "Multitap L", 'L');
134 m->appendCommand(new PIRKeyCommandItem(Five_Key, mainWindow));
135 m->appendCommand(new PIRKeyCommandItem(Five_Key, mainWindow));
136 m->appendCommand(new PIRKeyCommandItem(Five_Key, mainWindow));
137 // macros[m->getName()] = m;
140 void PIRReverseMultitap::generateLetterM()
142 PIRMacro *m = new PIRMacro(this, "Multitap M", 'M');
143 m->appendCommand(new PIRKeyCommandItem(Six_Key, mainWindow));
144 // macros[m->getName()] = m;
147 void PIRReverseMultitap::generateLetterN()
149 PIRMacro *m = new PIRMacro(this, "Multitap N", 'N');
150 m->appendCommand(new PIRKeyCommandItem(Six_Key, mainWindow));
151 m->appendCommand(new PIRKeyCommandItem(Six_Key, mainWindow));
152 // macros[m->getName()] = m;
155 void PIRReverseMultitap::generateLetterO()
157 PIRMacro *m = new PIRMacro(this, "Multitap O", 'O');
158 m->appendCommand(new PIRKeyCommandItem(Six_Key, mainWindow));
159 m->appendCommand(new PIRKeyCommandItem(Six_Key, mainWindow));
160 m->appendCommand(new PIRKeyCommandItem(Six_Key, mainWindow));
161 // macros[m->getName()] = m;
164 void PIRReverseMultitap::generateLetterP()
166 PIRMacro *m = new PIRMacro(this, "Multitap P", 'P');
167 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
168 // macros[m->getName()] = m;
171 void PIRReverseMultitap::generateLetterQ()
173 PIRMacro *m = new PIRMacro(this, "Multitap Q", 'Q');
174 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
175 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
176 // macros[m->getName()] = m;
179 void PIRReverseMultitap::generateLetterR()
181 PIRMacro *m = new PIRMacro(this, "Multitap R", 'R');
182 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
183 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
184 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
185 // macros[m->getName()] = m;
188 void PIRReverseMultitap::generateLetterS()
190 PIRMacro *m = new PIRMacro(this, "Multitap S", 'S');
191 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
192 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
193 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
194 m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
195 // macros[m->getName()] = m;
198 void PIRReverseMultitap::generateLetterT()
200 PIRMacro *m = new PIRMacro(this, "Multitap T", 'T');
201 m->appendCommand(new PIRKeyCommandItem(Eight_Key, mainWindow));
202 // macros[m->getName()] = m;
205 void PIRReverseMultitap::generateLetterU()
207 PIRMacro *m = new PIRMacro(this, "Multitap U", 'U');
208 m->appendCommand(new PIRKeyCommandItem(Eight_Key, mainWindow));
209 m->appendCommand(new PIRKeyCommandItem(Eight_Key, mainWindow));
210 // macros[m->getName()] = m;
213 void PIRReverseMultitap::generateLetterV()
215 PIRMacro *m = new PIRMacro(this, "Multitap V", 'V');
216 m->appendCommand(new PIRKeyCommandItem(Eight_Key, mainWindow));
217 m->appendCommand(new PIRKeyCommandItem(Eight_Key, mainWindow));
218 m->appendCommand(new PIRKeyCommandItem(Eight_Key, mainWindow));
219 // macros[m->getName()] = m;
222 void PIRReverseMultitap::generateLetterW()
224 PIRMacro *m = new PIRMacro(this, "Multitap W", 'W');
225 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
226 // macros[m->getName()] = m;
229 void PIRReverseMultitap::generateLetterX()
231 PIRMacro *m = new PIRMacro(this, "Multitap X", 'X');
232 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
233 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
234 // macros[m->getName()] = m;
237 void PIRReverseMultitap::generateLetterY()
239 PIRMacro *m = new PIRMacro(this, "Multitap Y", 'Y');
240 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
241 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
242 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
243 // macros[m->getName()] = m;
246 void PIRReverseMultitap::generateLetterZ()
248 PIRMacro *m = new PIRMacro(this, "Multitap Z", 'Z');
249 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
250 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
251 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
252 m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
253 // macros[m->getName()] = m;
256 void PIRReverseMultitap::generateSpace()
258 PIRMacro *m = new PIRMacro(this, "Multitap Space", ' ');
259 m->appendCommand(new PIRKeyCommandItem(Zero_Key, mainWindow));
260 // macros[m->getName()] = m;