1 |
patrick 09/04/26 12:10:33 |
2 |
|
3 |
Added: qtstalker-0.36-gcc43.patch |
4 |
qtstalker-0.36-nodocs.patch |
5 |
qtstalker-0.36-csv_quote.patch |
6 |
qtstalker-0.36-parallel-make.patch |
7 |
qtstalker-0.36-fibo.patch |
8 |
Log: |
9 |
Bump to 0.36, patches and ebuild mods by Anton Bolshakov. Fixes #218904 |
10 |
(Portage version: 2.2_rc31/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.1 app-office/qtstalker/files/qtstalker-0.36-gcc43.patch |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-gcc43.patch?rev=1.1&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-gcc43.patch?rev=1.1&content-type=text/plain |
17 |
|
18 |
Index: qtstalker-0.36-gcc43.patch |
19 |
=================================================================== |
20 |
--- qtstalker/lib/UpgradeMessage.cpp.orig 2008-04-14 17:59:26.000000000 +0200 |
21 |
+++ qtstalker/lib/UpgradeMessage.cpp 2008-04-14 17:59:59.000000000 +0200 |
22 |
@@ -32,10 +32,11 @@ |
23 |
#include <qfileinfo.h> |
24 |
#include <qdir.h> |
25 |
#include <qfile.h> |
26 |
#include <qpushbutton.h> |
27 |
#include <db.h> |
28 |
+#include <stdlib.h> |
29 |
|
30 |
UpgradeMessage::UpgradeMessage (int type) : QTabDialog (0, "UpgradeMessage", TRUE) |
31 |
{ |
32 |
switch (type) |
33 |
{ |
34 |
--- qtstalker/src/IndicatorPage.cpp.orig 2008-04-14 18:06:35.000000000 +0200 |
35 |
+++ qtstalker/src/IndicatorPage.cpp 2008-04-14 18:07:01.000000000 +0200 |
36 |
@@ -41,11 +41,11 @@ |
37 |
#include <qfile.h> |
38 |
#include <qtextstream.h> |
39 |
#include <qinputdialog.h> |
40 |
#include <qmessagebox.h> |
41 |
#include <qtooltip.h> |
42 |
- |
43 |
+#include <stdlib.h> |
44 |
|
45 |
IndicatorPage::IndicatorPage (QWidget *w, DBIndex *i) : QWidget (w) |
46 |
{ |
47 |
chartIndex = i; |
48 |
updateEnableFlag = FALSE; |
49 |
|
50 |
|
51 |
|
52 |
1.1 app-office/qtstalker/files/qtstalker-0.36-nodocs.patch |
53 |
|
54 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-nodocs.patch?rev=1.1&view=markup |
55 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-nodocs.patch?rev=1.1&content-type=text/plain |
56 |
|
57 |
Index: qtstalker-0.36-nodocs.patch |
58 |
=================================================================== |
59 |
diff -Naur docs-orig/docs.pro docs/docs.pro |
60 |
--- docs-orig/docs.pro 2007-09-28 02:01:58.000000000 -0600 |
61 |
+++ docs/docs.pro 2008-01-20 00:41:16.000000000 -0600 |
62 |
@@ -2,33 +2,6 @@ |
63 |
|
64 |
CONFIG += thread |
65 |
|
66 |
-# install the html files |
67 |
-docs.path = /usr/local/share/doc/qtstalker/html |
68 |
-docs.files = *.html |
69 |
-INSTALLS += docs |
70 |
- |
71 |
-# install the html pic files |
72 |
-pics.path = /usr/local/share/doc/qtstalker/html |
73 |
-pics.files = *.png |
74 |
-INSTALLS += pics |
75 |
- |
76 |
-# install the example indicator html files and pics |
77 |
-idocs.path = /usr/local/share/doc/qtstalker/html/indicator |
78 |
-idocs.files = indicator/*.html |
79 |
-idocs.files += indicator/*.png |
80 |
-INSTALLS += idocs |
81 |
- |
82 |
-# install the CHANGELOG files |
83 |
-cl.path = /usr/local/share/doc/qtstalker/html |
84 |
-cl.files = CHANGELOG* |
85 |
-INSTALLS += cl |
86 |
- |
87 |
-# install the past CHANGELOG files |
88 |
-pcl.path = /usr/local/share/doc/qtstalker/html/pastchanges |
89 |
-pcl.files = pastchanges/*.html |
90 |
-pcl.files += pastchanges/CHANGELOG* |
91 |
-INSTALLS += pcl |
92 |
- |
93 |
# install the translation files |
94 |
i18n.path = /usr/local/share/qtstalker/i18n |
95 |
i18n.files = ../i18n/*.qm |
96 |
|
97 |
|
98 |
|
99 |
1.1 app-office/qtstalker/files/qtstalker-0.36-csv_quote.patch |
100 |
|
101 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-csv_quote.patch?rev=1.1&view=markup |
102 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-csv_quote.patch?rev=1.1&content-type=text/plain |
103 |
|
104 |
Index: qtstalker-0.36-csv_quote.patch |
105 |
=================================================================== |
106 |
diff -urN lib/QuotePlugin.cpp.orig lib/QuotePlugin.cpp |
107 |
--- lib/QuotePlugin.cpp.orig 2007-09-28 15:05:07.000000000 +0800 |
108 |
+++ lib/QuotePlugin.cpp 2008-07-04 14:57:58.000000000 +0800 |
109 |
@@ -160,18 +160,26 @@ |
110 |
tabs->addTab(w, tr("Timeout")); |
111 |
} |
112 |
|
113 |
-void QuotePlugin::stripJunk (QString &d, QString &s) |
114 |
+QString QuotePlugin::substituteSep (const QString &str, const QChar &search_sep, const QChar &new_sep) |
115 |
{ |
116 |
- s = d.stripWhiteSpace(); |
117 |
+ QString string_copy = str.copy(); |
118 |
|
119 |
- while (1) |
120 |
+ bool isInBlock = false; |
121 |
+ |
122 |
+ for (uint i = 0; i < string_copy.length(); i++) |
123 |
{ |
124 |
- int p = s.find('"', 0, TRUE); |
125 |
- if (p == -1) |
126 |
- break; |
127 |
- else |
128 |
- s.remove(p, 1); |
129 |
- } |
130 |
+ if (string_copy[i] == '\"') |
131 |
+ { |
132 |
+ isInBlock = !isInBlock; |
133 |
+ string_copy.remove(i, 1); |
134 |
+ } |
135 |
+ |
136 |
+ if ( (!isInBlock) && (string_copy[i] == search_sep) ) |
137 |
+ { |
138 |
+ string_copy = string_copy.replace(i, 1, new_sep); |
139 |
+ } |
140 |
+ } |
141 |
+ return string_copy; |
142 |
} |
143 |
|
144 |
bool QuotePlugin::setTFloat (QString &d, bool flag) |
145 |
diff -urN lib/QuotePlugin.h.orig lib/QuotePlugin.h |
146 |
--- lib/QuotePlugin.h.orig 2007-09-20 10:56:58.000000000 +0800 |
147 |
+++ lib/QuotePlugin.h 2008-07-04 14:58:04.000000000 +0800 |
148 |
@@ -55,7 +55,7 @@ |
149 |
QuotePlugin (); |
150 |
virtual ~QuotePlugin (); |
151 |
bool setTFloat (QString &, bool); |
152 |
- void stripJunk (QString &, QString &); |
153 |
+ QString substituteSep(const QString &, const QChar &, const QChar &); |
154 |
void createDirectory (QString &, QString &); |
155 |
void getPluginName (QString &); |
156 |
void getHelpFile (QString &); |
157 |
diff -urN plugins/quote/CSV/CSV.cpp.orig plugins/quote/CSV/CSV.cpp |
158 |
--- plugins/quote/CSV/CSV.cpp.orig 2008-02-19 11:34:26.000000000 +0800 |
159 |
+++ plugins/quote/CSV/CSV.cpp 2008-07-04 14:57:36.000000000 +0800 |
160 |
@@ -41,7 +41,7 @@ |
161 |
CSV::CSV () |
162 |
{ |
163 |
pluginName = "CSV"; |
164 |
- delim = ","; |
165 |
+ delim = ','; |
166 |
helpFile = "csv.html"; |
167 |
cancelFlag = FALSE; |
168 |
|
169 |
@@ -259,10 +259,8 @@ |
170 |
while(stream.atEnd() == 0) |
171 |
{ |
172 |
QString ts = stream.readLine(); |
173 |
- QString s; |
174 |
- stripJunk(ts, s); |
175 |
+ QStringList l = QStringList::split( '\n', substituteSep( ts, delim, '\n' ), FALSE); |
176 |
|
177 |
- QStringList l = QStringList::split(delim, s, FALSE); |
178 |
lineCount++; |
179 |
if (l.count() != fieldList.count()) |
180 |
{ |
181 |
@@ -272,7 +270,7 @@ |
182 |
QString::number(lineCount).latin1(), l.count(), fieldList.count() |
183 |
); |
184 |
printStatusLogMessage(ss); |
185 |
- continue; |
186 |
+ continue; |
187 |
} |
188 |
|
189 |
int fieldLoop; |
190 |
@@ -498,25 +496,25 @@ |
191 |
{ |
192 |
if (! d.compare("Comma")) |
193 |
{ |
194 |
- delim = ","; |
195 |
+ delim = ','; |
196 |
return; |
197 |
} |
198 |
|
199 |
if (! d.compare("Tab")) |
200 |
{ |
201 |
- delim = " "; |
202 |
+ delim = '\t'; |
203 |
return; |
204 |
} |
205 |
|
206 |
if (! d.compare("Space")) |
207 |
{ |
208 |
- delim = " "; |
209 |
+ delim = ' '; |
210 |
return; |
211 |
} |
212 |
|
213 |
if (! d.compare("Semicolon")) |
214 |
{ |
215 |
- delim = ";"; |
216 |
+ delim = ';'; |
217 |
return; |
218 |
} |
219 |
} |
220 |
diff -urN plugins/quote/CSV/CSV.h.orig plugins/quote/CSV/CSV.h |
221 |
--- plugins/quote/CSV/CSV.h.orig 2007-10-25 16:42:01.000000000 +0800 |
222 |
+++ plugins/quote/CSV/CSV.h 2008-07-04 14:51:08.000000000 +0800 |
223 |
@@ -66,7 +66,7 @@ |
224 |
|
225 |
private: |
226 |
Config config; |
227 |
- QString delim; |
228 |
+ QChar delim; |
229 |
FuturesData fd; |
230 |
DbPlugin db; |
231 |
QString symbolOveride; |
232 |
diff -urN plugins/quote/NYBOT/NYBOT.cpp.orig plugins/quote/NYBOT/NYBOT.cpp |
233 |
--- plugins/quote/NYBOT/NYBOT.cpp.orig 2007-02-04 07:04:37.000000000 +0800 |
234 |
+++ plugins/quote/NYBOT/NYBOT.cpp 2008-07-04 14:56:35.000000000 +0800 |
235 |
@@ -152,16 +152,12 @@ |
236 |
QTextStream stream(&f); |
237 |
|
238 |
QString ts = stream.readLine(); |
239 |
- QString s; |
240 |
- stripJunk(ts, s); |
241 |
- QStringList keys = QStringList::split(",", s, FALSE); |
242 |
+ QStringList keys = QStringList::split( '\n', substituteSep( ts, ',', '\n' ), FALSE); |
243 |
|
244 |
while(stream.atEnd() == 0) |
245 |
{ |
246 |
ts = stream.readLine(); |
247 |
- stripJunk(ts, s); |
248 |
- |
249 |
- QStringList l = QStringList::split(",", s, FALSE); |
250 |
+ QStringList l = QStringList::split( '\n', substituteSep( ts, ',', '\n' ), FALSE); |
251 |
|
252 |
if (l.count() != keys.count()) |
253 |
continue; |
254 |
@@ -202,6 +198,7 @@ |
255 |
} |
256 |
|
257 |
ts = "dailyOpenPrice1"; |
258 |
+ QString s; |
259 |
data.getData(ts, s); |
260 |
if (s.toFloat() == 0) |
261 |
{ |
262 |
diff -urN plugins/quote/Yahoo/Yahoo.cpp.orig plugins/quote/Yahoo/Yahoo.cpp |
263 |
--- plugins/quote/Yahoo/Yahoo.cpp.orig 2008-04-03 13:54:09.000000000 +0800 |
264 |
+++ plugins/quote/Yahoo/Yahoo.cpp 2008-07-04 14:38:20.000000000 +0800 |
265 |
@@ -294,7 +294,7 @@ |
266 |
return; |
267 |
|
268 |
// strip off the header |
269 |
- QString s = "Date,Open,High,Low,Close"; |
270 |
+ QString s = "Date,Open,High,Low,Close,Volume,Adj Close\n"; |
271 |
int p = data.find(s, 0, TRUE); |
272 |
if (p != -1) |
273 |
data.remove(0, p + s.length()); |
274 |
@@ -368,12 +368,15 @@ |
275 |
while(stream.atEnd() == 0) |
276 |
{ |
277 |
ts = stream.readLine(); |
278 |
- stripJunk(ts, s); |
279 |
+ QStringList l = QStringList::split( '\n', substituteSep(ts, ',', '\n'), FALSE); |
280 |
|
281 |
- QStringList l = QStringList::split(",", s, FALSE); |
282 |
if (l.count() < 5) |
283 |
+ { |
284 |
+ QString ss = tr("Parse: invalid number of parameters") + " " + ts2 + " " + tr("skipped"); |
285 |
+ printStatusLogMessage(ss); |
286 |
+ errorList.append(ts2); |
287 |
continue; |
288 |
- |
289 |
+ } |
290 |
// date |
291 |
QString date = parseDate(l[0]); |
292 |
Bar bar; |
293 |
@@ -523,11 +526,15 @@ |
294 |
while(stream.atEnd() == 0) |
295 |
{ |
296 |
ts = stream.readLine(); |
297 |
- stripJunk(ts, s); |
298 |
+ QStringList l = QStringList::split( '\n', substituteSep( ts, ',', '\n' ), FALSE); |
299 |
|
300 |
- QStringList l = QStringList::split(",", s, FALSE); |
301 |
if (l.count() < 9 || l.count() > 10) |
302 |
+ { |
303 |
+ QString ss = tr("Parse: invalid number of parameters ") + " " + ts2 + " " + tr("skipped"); |
304 |
+ printStatusLogMessage(ss); |
305 |
+ errorList.append(ts2); |
306 |
continue; |
307 |
+ } |
308 |
|
309 |
// get date |
310 |
QStringList l2 = QStringList::split("/", l[3], FALSE); |
311 |
@@ -561,6 +568,9 @@ |
312 |
else |
313 |
bar.setHigh(tfloat); |
314 |
|
315 |
+ // make Low price equal to Open if Low is not available |
316 |
+ if (! l[8].compare("N/A")) |
317 |
+ l[8] = l[6]; |
318 |
if (setTFloat(l[8], FALSE)) |
319 |
continue; |
320 |
else |
321 |
|
322 |
|
323 |
|
324 |
1.1 app-office/qtstalker/files/qtstalker-0.36-parallel-make.patch |
325 |
|
326 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-parallel-make.patch?rev=1.1&view=markup |
327 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-parallel-make.patch?rev=1.1&content-type=text/plain |
328 |
|
329 |
Index: qtstalker-0.36-parallel-make.patch |
330 |
=================================================================== |
331 |
diff -Naur qtstalker.pro.orig qtstalker.pro |
332 |
--- qtstalker.pro.orig 2007-02-03 15:10:53.000000000 -0600 |
333 |
+++ qtstalker.pro 2008-01-20 00:43:48.000000000 -0600 |
334 |
@@ -3,6 +3,8 @@ |
335 |
# compile TALIB |
336 |
#SUBDIRS += TALIB |
337 |
|
338 |
+CONFIG += ordered |
339 |
+ |
340 |
# compile qtstalker lib |
341 |
SUBDIRS += lib |
342 |
|
343 |
|
344 |
|
345 |
|
346 |
1.1 app-office/qtstalker/files/qtstalker-0.36-fibo.patch |
347 |
|
348 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-fibo.patch?rev=1.1&view=markup |
349 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/qtstalker/files/qtstalker-0.36-fibo.patch?rev=1.1&content-type=text/plain |
350 |
|
351 |
Index: qtstalker-0.36-fibo.patch |
352 |
=================================================================== |
353 |
--- lib/FiboLine.cpp.orig 2007-02-13 08:18:30.000000000 +0800 |
354 |
+++ lib/FiboLine.cpp 2008-05-22 21:45:10.000000000 +0800 |
355 |
@@ -302,18 +302,8 @@ |
356 |
break; |
357 |
if (y >= ty) |
358 |
break; |
359 |
- |
360 |
- startDate = tx; |
361 |
- endDate = x; |
362 |
- high = ty; |
363 |
- low = y; |
364 |
- |
365 |
- setSaveFlag(TRUE); |
366 |
- setColor(defaultColor); |
367 |
- emit signalDraw(); |
368 |
status = None; |
369 |
emit message(""); |
370 |
- emit signalSave(name); |
371 |
break; |
372 |
default: |
373 |
break; |
374 |
@@ -322,11 +312,20 @@ |
375 |
return status; |
376 |
} |
377 |
|
378 |
-void FiboLine::pointerMoving (QPixmap &buffer, QPoint &point, QDateTime &x, double y) |
379 |
+void FiboLine::pointerMoving (QPixmap &, QPoint &, QDateTime &x, double y) |
380 |
{ |
381 |
if (status == ClickWait2) |
382 |
{ |
383 |
- drawMovingPointer(buffer, point); |
384 |
+ startDate = tx; |
385 |
+ endDate = x; |
386 |
+ high = ty; |
387 |
+ low = y; |
388 |
+ setSaveFlag(TRUE); |
389 |
+ setColor(defaultColor); |
390 |
+ emit signalDraw(); |
391 |
+ QString s = x.toString("yyyy-MM-dd hh:mm:ss") + " " + QString::number(y); |
392 |
+ emit message(s); |
393 |
+ emit signalSave(name); |
394 |
return; |
395 |
} |
396 |
|
397 |
@@ -371,38 +370,6 @@ |
398 |
} |
399 |
} |
400 |
|
401 |
-void FiboLine::drawMovingPointer (QPixmap &buffer, QPoint &point) |
402 |
-{ |
403 |
- if (point.x() < mpx) |
404 |
- return; |
405 |
- |
406 |
- if (point.y() < mpy) |
407 |
- return; |
408 |
- |
409 |
- QPainter painter; |
410 |
- painter.begin(&buffer); |
411 |
- painter.setRasterOp(Qt::XorROP); |
412 |
- painter.setPen(defaultColor); |
413 |
- |
414 |
- // erase the previous line drawn |
415 |
- if (mpx2 != -1 && mpy2 != -1) |
416 |
- { |
417 |
- painter.drawLine (mpx, mpy, mpx2, mpy); |
418 |
- painter.drawLine (mpx, mpy2, mpx2, mpy2); |
419 |
- } |
420 |
- |
421 |
- // draw the new line |
422 |
- painter.drawLine (mpx, mpy, point.x(), mpy); |
423 |
- painter.drawLine (mpx, point.y(), point.x(), point.y()); |
424 |
- |
425 |
- mpx2 = point.x(); |
426 |
- mpy2 = point.y(); |
427 |
- |
428 |
- painter.end(); |
429 |
- |
430 |
- emit signalRefresh(); |
431 |
-} |
432 |
- |
433 |
void FiboLine::loadDefaults () |
434 |
{ |
435 |
QSettings settings; |