Bugfixes and Keysets
[pierogi] / macros / pirreversemultitap.cpp
1 #include "pirreversemultitap.h"
2
3 #include "pirmacro.h"
4 #include "pirmacrocommanditem.h"
5
6
7 PIRReverseMultitap::PIRReverseMultitap(
8   QTreeWidget *qtw,
9   MainWindow *mw)
10   : PIRMacroPack(
11       qtw,
12       "Reverse Multitap Keyboard Macros"),
13     mainWindow(mw)
14 {
15   generateLetterA();
16   generateLetterB();
17   generateLetterC();
18   generateLetterD();
19   generateLetterE();
20   generateLetterF();
21   generateLetterG();
22   generateLetterH();
23   generateLetterI();
24   generateLetterJ();
25   generateLetterK();
26   generateLetterL();
27   generateLetterM();
28   generateLetterN();
29   generateLetterO();
30   generateLetterP();
31   generateLetterQ();
32   generateLetterR();
33   generateLetterS();
34   generateLetterT();
35   generateLetterU();
36   generateLetterV();
37   generateLetterW();
38   generateLetterX();
39   generateLetterY();
40   generateLetterZ();
41   generateSpace();
42 }
43
44 void PIRReverseMultitap::generateLetterA()
45 {
46   PIRMacro *m = new PIRMacro(this, "Multitap A", 'A');
47   m->appendCommand(new PIRKeyCommandItem(Two_Key, mainWindow));
48 //  macros[m->getName()] = m;
49 }
50
51 void PIRReverseMultitap::generateLetterB()
52 {
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;
57 }
58
59 void PIRReverseMultitap::generateLetterC()
60 {
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;
66 }
67
68 void PIRReverseMultitap::generateLetterD()
69 {
70   PIRMacro *m = new PIRMacro(this, "Multitap D", 'D');
71   m->appendCommand(new PIRKeyCommandItem(Three_Key, mainWindow));
72 //  macros[m->getName()] = m;
73 }
74
75 void PIRReverseMultitap::generateLetterE()
76 {
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;
81 }
82
83 void PIRReverseMultitap::generateLetterF()
84 {
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;
90 }
91
92 void PIRReverseMultitap::generateLetterG()
93 {
94   PIRMacro *m = new PIRMacro(this, "Multitap G", 'G');
95   m->appendCommand(new PIRKeyCommandItem(Four_Key, mainWindow));
96 //  macros[m->getName()] = m;
97 }
98
99 void PIRReverseMultitap::generateLetterH()
100 {
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;
105 }
106
107 void PIRReverseMultitap::generateLetterI()
108 {
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;
114 }
115
116 void PIRReverseMultitap::generateLetterJ()
117 {
118   PIRMacro *m = new PIRMacro(this, "Multitap J", 'J');
119   m->appendCommand(new PIRKeyCommandItem(Five_Key, mainWindow));
120 //  macros[m->getName()] = m;
121 }
122
123 void PIRReverseMultitap::generateLetterK()
124 {
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;
129 }
130
131 void PIRReverseMultitap::generateLetterL()
132 {
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;
138 }
139
140 void PIRReverseMultitap::generateLetterM()
141 {
142   PIRMacro *m = new PIRMacro(this, "Multitap M", 'M');
143   m->appendCommand(new PIRKeyCommandItem(Six_Key, mainWindow));
144 //  macros[m->getName()] = m;
145 }
146
147 void PIRReverseMultitap::generateLetterN()
148 {
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;
153 }
154
155 void PIRReverseMultitap::generateLetterO()
156 {
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;
162 }
163
164 void PIRReverseMultitap::generateLetterP()
165 {
166   PIRMacro *m = new PIRMacro(this, "Multitap P", 'P');
167   m->appendCommand(new PIRKeyCommandItem(Seven_Key, mainWindow));
168 //  macros[m->getName()] = m;
169 }
170
171 void PIRReverseMultitap::generateLetterQ()
172 {
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;
177 }
178
179 void PIRReverseMultitap::generateLetterR()
180 {
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;
186 }
187
188 void PIRReverseMultitap::generateLetterS()
189 {
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;
196 }
197
198 void PIRReverseMultitap::generateLetterT()
199 {
200   PIRMacro *m = new PIRMacro(this, "Multitap T", 'T');
201   m->appendCommand(new PIRKeyCommandItem(Eight_Key, mainWindow));
202 //  macros[m->getName()] = m;
203 }
204
205 void PIRReverseMultitap::generateLetterU()
206 {
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;
211 }
212
213 void PIRReverseMultitap::generateLetterV()
214 {
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;
220 }
221
222 void PIRReverseMultitap::generateLetterW()
223 {
224   PIRMacro *m = new PIRMacro(this, "Multitap W", 'W');
225   m->appendCommand(new PIRKeyCommandItem(Nine_Key, mainWindow));
226 //  macros[m->getName()] = m;
227 }
228
229 void PIRReverseMultitap::generateLetterX()
230 {
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;
235 }
236
237 void PIRReverseMultitap::generateLetterY()
238 {
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;
244 }
245
246 void PIRReverseMultitap::generateLetterZ()
247 {
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;
254 }
255
256 void PIRReverseMultitap::generateSpace()
257 {
258   PIRMacro *m = new PIRMacro(this, "Multitap Space", ' ');
259   m->appendCommand(new PIRKeyCommandItem(Zero_Key, mainWindow));
260 //  macros[m->getName()] = m;
261 }