Debian Codegraph @

TODO

raw
1 /*========== START Qt6 migration:
2 **
3 void tst_MainWindow::test_focusOrder()
4 Test: // qApplication::setActiveWindow(mainWindow);
5 I had to replace previews line.
6
7 **
8 void DataBase::compress()
9 qsqldatabase::exec is deprecated
10
11 **
12 void eLogQrzLog::parseXMLAnswer(QXmlStreamReader &xml)
13 { // Next line was commented out as it returns q QStringView instead of a QString
14 //showDebugLog (Q_FUNC_INFO, QString("Start: " + xml.text()));
15
16 =============== END of Qt6 migration
17
18
19
20 BUG: KLog needs to update the Entity DB is shown on every start
21
22 KLog should update ALWAYS when receiving from LoTW the QSL_LOTW_rcvd or add the QSO if not in local log.
23
24 Review the process after Setup
25
26
27 TODO: Integrate HAMQTH https://www.hamqth.com/developers.php
28 TODO:- New feature: Regional Award support: #include "setuppages/setuppagesubdivisions.h"
29
30 TODO: Stat More frequently worked calls: "select log.call, count(log.call) from log group by log.call ORDER BY count(log.call) DESC"
31 TODO: Stat Number of different callsigns
32 TODO: Find "duplicated" QSOs QUERY=> SELECT call, bandid, modeid, substr(qso_date, 1, 15), COUNT(*) c FROM log GROUP BY call, bandid, modeid, substr(qso_date, 1, 15) HAVING c>1
33 TODO: Find duplicate queries:
34 select call, qso_date from log where datetime('2007-07-22 09:45:00', '-5 minutes')< datetime(qso_date) AND datetime('2007-07-22 09:49:00', '+5 minutes') > datetime(qso_date)
35 select call, qso_date, bandid, modeid, COUNT(*) c from log where datetime('2010-10-31 19:20:00', '-5 minutes')< datetime(qso_date) AND datetime('2010-10-31 19:20:00', '+5 minutes') > datetime(qso_date) group by call having c>1
36
37
38 RC-BUGS:
39
40
41 TODO: Check if dxccStatusWidget in logwindow is useful and remove it if not.
42 NONE
43
44 TODO: New feature: KLog can now control a rotator through PSTRotator.
45 TODO: UI: Added a DXCC summary obtained from the Tools menu.
46
47 TBD - 0.9.8
48 Hamlib: COMports in Windows must follow the format: \\.\com14 for ports highet than 9 but it works also for lower so ALL should be managed that way.
49
50 For next release:
51 TODO: - Some warnings removed from compilation time.
52 TODO: - The log can be now updated with a LoTW ADIF file import.
53 TODO: - Isolate the Awards tab and create a widget with it.
54 TODO: - ADD A TIP ON the DXCC tab stating Prefix, CQ, ITU & Bearing.
55 TODO: Rework the band & mode hash tables to optimize queries (not sql queries)
56 TODO: Rework the DXCC & WAZ hash table sto optimize queries (not SQL queries)
57
58 TODO: Import LOTW (MainWindow::slotADIFImport)
59 TODO: Remove the Querys from void SetupPageLogs::
60
61 TODO: Create a Widget with the WAZ status (copying the DXCC Status widget)
62
63 Working:
64 TODO: ADD A TIP ON the DXCC tab stating Prefix, CQ, ITU & Bearing
65
66
67 TODO: Check how to implement qInstallMessageHandler
68 SAT DB: https://db.satnogs.org/api/
69
70 This is a kind of roadmap for KLog development.
71 It is not fixed... new features may be prioritized or not added without any notice ;-)
72 Feel free to request any roadmap change if you have any suggestion.
73
74 TODO: To add the support to import/export the following ADIF fields that are already existing in DB
75 AWARD_SUBMITTED
76 AWARD_GRANTED
77 DARC_DOK
78 FISTS
79 FISTS_CC
80 GUEST_OP
81 "hrdlog_qso_upload_date VARCHAR(10),"
82 "hrdlog_qso_upload_status VARCHAR(1),"
83 "my_antenna VARCHAR,"
84 "my_dxcc INTEGER, "
85 "my_fists INTEGER, "
86 "my_itu_zone INTEGER ,"
87 "my_postal_code VARCHAR ,"
88 "my_sota_ref VARCHAR, "
89 "my_usaca_counties VARCHAR, "
90 "my_vucc_grids VARCHAR, "
91 "silent_key VARCHAR(1), "
92 "region VARCHAR, "
93 "qrzcom_qso_upload_date VARCHAR(10), "
94 "qrzcom_qso_upload_status VARCHAR(1), "
95 "skcc VARCHAR, "
96 "sota_ref VARCHAR, "
97 "uksmg INTEGER, "
98 "usaca_counties VARCHAR, "
99 "ve_prov VARCHAR, "
100 "vucc_grids VARCHAR, "
101
102
103 TODO: Add a warning or periodically ADIF export so data is backup
104 TODO: Create a function to look for QSO without a DXCC and ask the user to confirm the DXCC.
105 TODO: Isolate the QSO input tab and create a widget with it.
106 TODO: Isolate the Main QRZ box and create a widget with it.
107 TODO: Isolate the Awards tab and create a widget with it.
108 TODO: Add an option to save the DXCluster data to a file (file based on name or so)
109
110 TODO: Think if it is possible to create a function in the Widgets(i.e. MainWindowInputQSL) to read the data and
111 enter it in the DB automatically when the user clicks on "enter"
112 It would help to "isolate" it and make it more "independant"
113
114 TODO: Review the color management in MainWindowInputOthers::setIOTA (and maybe others) (completewithPrevious of MainWindow)
115 TODO: Check if in mainwindow (read formUI and modify the eQSL/LOTW REC/SENT values are correct
116
117 TODO: If no QSL sent via or rec via are defined, KLog shows as direct? It should be bureau
118
119
120 TODO: Add a cheking to the list of bureaus and propose the bureau for QSL via when there is an existing one and propose direct when no bureau is existing.
121 (http://www.iaru.org/qsl-bureaus.html)
122
123 TODO: Define band limits for CW/SSB/RTTY... so when a click on the cluster is done, the right mode is proposed.
124 TODO: Add in the setup/Band/mode a combobox showing all the active band/modes so the user can select the default band/mode from that list.
125
126 BUG: Potential bug
127 Double click on a QSO in the log on the Mode/Band... you can modifify the value. As it is a double click, the QSO goes to edit and ...
128 Check if:
129 - Only selected modes can be shown there.
130 - If double click on the log we only "quick modify" directly in the log, without editing.
131
132 BUG: (TNX JL3OXR)
133 The DB is not storing if the time is stored in UTC or local so that info is lost.
134 If a user changes the configuration from time to time, the user will loose the real time when the QSO was made.
135 Solution:
136 - Consider the DB is only storing UTC QSO.
137 - Read config from user (or simply ask) and convert all the DB to UTC if needed (only one time when new version is installed to upgrade the DB)
138 Always:
139 - When entering data from the UI, check the user config and store only UTC time.
140 - TODO: Think how to show the data in the log or search box as data is stored in UTC and showed directly (specially log widget)
141 - Solution: Maybe changing the header to UTC may solve this and provide the info to the user that UTC is being used for storage
142 It may be weird for the user to see the log in UTC when working in local time... in the rest of the functions...
143
144
145 TODO: void DXCCStatusWidget::slotRefreshButtonClicked()//TODO: Define a way to show the status of the selected log or all the logs in the DB
146
147 BUG: Optimize the KLog start
148 BUG: If logbook.dat is not existing but klogrc it is, KLog does not start.
149
150 TODO: Add a tip on the DXCC Status showing some info: bearing, DXCC status (worked or not...)
151 TODO: Add a link or action on DXCCStatus items to doubleclick and search the QSOs that provide such status.
152
153 TODO: Show the flag of the worked QRZ on the top right,close to the Entity Name
154
155 TODO: Add the flags to the DXCluster
156 TODO: Click on an Entity name will select all the QSO of that Entity on the search box
157
158 Debian:
159
160 Time in UTC: (not to be fixed)
161 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=654325
162
163
164 BUG: Check the options that are marked in QSL when rightbutton.
165 i.e.: Is myQSL sent marked as requested when it should be the DX-QSL?
166
167 TODO GUI: To add the CQ/ITU box or make them editable
168 TODO: checkIfNewBandOrMode() is not being used. Code should be removed...
169
170 BUG:
171 Clublog:
172 void MainWindow::slotQRZReturnPressed()
173 _x = elogClublog->deleteQSO(clublogPrevQSO);
174 _x = elogClublog->sendQSO(dataProxy->getClubLogRealTimeFromId(modifyingQSOid))
175 It runs so fast and not serialized that at the end sometimes the QSO is deleted but not created afterwards
176
177
178 <CLUBLOG>
179 TODO: Add the possibility to the user to select from the setup a call to be used in clublog or use the one comming from the station callsign lineedit
180 TODO: In slotQsoUploadFinished, if QSO is not uploaded. mark it as not uploaded in the log
181
182 If qsoToEdit, nothing is modified and OK. (Clublog returns QSO DUPE)
183 Again qsoToEdit, nothing is modified and OK (Clublogs returns QSO DROPPED, and QSO is dropped!)
184
185 TODO: Check the values that clublog is returning to manage errors and show messages to the user
186 TODO: To add the possibility to upload a modified QSO to clublog.
187 TODO: If there is an error in password/username or whatever, disable clublog in KLog
188
189 TODO: Upload a logfile to clublog
190 // Ideas: https://code.google.com/p/datacod-qt-tools/source/browse/upcoder/uploader.h
191 // https://code.google.com/p/datacod-qt-tools/source/browse/upcoder/uploader.cpp
192
193 TODO: Define a maximum QSO upload rate to clublog to avoid excesive API usage.
194 </CLUBLOG>
195
196
197 KLog 0.9.4
198 TODO: Some Entities are not recognized by ARRL (I, IG9, IT9 are the same ARRL id entities but different ones). Maybe I should not be working
199 with ARRLid or maybe I should detect special ones and "id+10000" so >10000 ids are special ones.
200
201
202 KLog 0.9.3
203 TODO: Support CQ WW SSB (Including Cabrillo Import/Export)
204 TODO: Support CQ WW CW (Including Cabrillo Import/Export)
205
206 KLog 0.9.4
207 TODO: Hamlib support (Linux).
208
209 KLog 0.9.5
210 TODO: Support CQ WPX SSB (Including Cabrillo Import/Export)
211 TODO: Support CQ WPX CW (Including Cabrillo Import/Export)
212
213 KLog 0.9.6
214 WORLDEDITOR Dialog
215 TODO: WorldEditor is not updated when the CTY.CSV file is updated
216 TODO: World Editor: Create a way to add an entity.
217 TODO: World Editor: Create a way to remove an entity.
218 TODO: World Editor: Create a way to edit an entity.
219
220 KLog 0.9.7
221 TODO: Integrate with www.clublog.org (http://www.clublog.org/docs/pages/viewpage.action?pageId=1638482)
222
223 KLog 0.9.8
224 TODO: Integrate with eqsl.cc
225 https://www.eqsl.cc/qslcard/ADIFContentSpecs.cfm
226
227 KLog 0.9.9
228 TODO: Server to log all the QSO in real time (through the network) from N1MM
229 http://n1mm.hamdocs.com/tiki-index.php?page=UDP+Broadcasts&structure=N1MM+Logger+Documentation
230
231 KLog 0.9.10
232 TODO: Integrate with FLIGI real time logging (req by AA5VI)
233
234 KLog 0.9.11 - Cluster release
235 TODO: DXCluster: Add flags to the DXCluster widget
236 TODO: DXCluster: UI: Modify the DX-Cluster tab to show the data in a table?: DX de/Freq/DX/Comment/Time/Loc
237 TODO: DXCluster: Add the DXMarathon information to the spots
238 TODO: DXCLuster: Create a band map (including a "to-be-worked")
239 TODO: Working on the dxCluster: Tool to save the DXCluster in a file (for further analysis).
240
241 KLog 0.9.12
242 TODO: Add the awards functionality (to manage awa files, TPEA, WAS, ...)
243
244 KLog 0.9.13
245 TODO: Mobile interface. Create a mobile UI.
246
247 <BUGS>
248 TODO: Check if the data has been modified (only memory) and save the data!
249 TODO BUG: When modifying allow deleting data (as in KLog 0.5.8)
250 DONE BUG: Worked DXCC and WAZ are not updated until confirmed :-?
251 </BUGS>
252
253 TODO: When importing an ADIF file with several logs, create automatically the logs as detected.
254 TODO: HelpHelpDialog
255 TODO: HelpAboutDialog
256
257 TODO: setuppagelogs.cpp
258 TODO: Remove references to DataBase from all classes except DataProxySQLite
259
260 TODO: DXCluster: Lines that are not a DX should not be in another color than default.
261 TODO: Add a default DX Cluster server
262
263 TODO: Make a tool to mark and export QSO from the right button. (i.e. To mark several QSO to print and export the ADIF file with just those QSO)
264
265 TODO: Add all the Entity Info to the slotClear to clear everything.
266 TODO: Add a list of previous QSO with the same station, if any. (Done in the search box)
267
268 TODO: Create something like a void Awards::setAwardsOfAllQSO to read ALL QSO and set the Awards at once instead of adding one QSO per QSO
269
270
271 KLOG TODO:
272 TODO: To create a function tha runs the log and marks "N" if QSL has not been sent or received.
273 TODO: Create a setup page to configure a default prop_mode per band (ie 6m = ES)
274
275 TODO: CTY.DAT update
276 TODO: Award tabs: center/bold tabs
277 TODO: Add export to cabrillo to the logfile
278
279
280
281 SETUP:
282 TODO: Show progress when doing actions
283 TODO: Open this file when opening
284 TODO: DXCLuster: Show HF activity
285 TODO: DXCLuster: Show WARC
286 TODO: DXCLuster: Show VHUF
287 TODO: DXCLuster: Show confirmed
288 TODO: DXCLuster: Show SSB
289 TODO: DXCLuster: Show CW
290 TODO: DXCLuster: Show Ann/full
291 TODO: DXCLuster: Show WCY
292 TODO: DXCLuster: Show WWV
293 TODO: DXCLuster: Double click on a spot, add it to log
294 TODO: DXCLuster: Add Cluster servers
295 DONE: TODO: Colors: Confirmed, Worked, Needed band, New, Default
296
297 TODO: Require mandatory fields in all QSO
298
299 TODO: Awards: Add Award
300 TODO: Awards: Remove Award
301
302 =====================
303 <SATELLITE SUPPORT>
304 TODO: Sats: Create a way to update the list of supported satellites. Maybe another tab in the setup dialog as the World Editor
305 TODO: Sats: https://www.eqsl.cc/qslcard/ADIFContentSpecs.cfm
306 TODO: Sats: https://lotw.arrl.org/lotw/faq#sats
307
308 TODO: Sat Modes:
309 http://www.amsat.org/amsat/intro/sats_faq.html#RTFToC5
310 http://www.sckans.edu/~sireland/radio/amsat.html
311
312 A - This mode requires a 2 meter SSB/CW transmitter and a 10 meter SSB/CW receiver and supports CW and voice.
313 B - This mode requires a 70 cm SSB/CW transmitter and a 2 meter SSB/CW receiver and supports CW and voice. Some satellites also support RTTY and SSTV in this mode.
314 J -> V Uplink and U downlink
315 JA - This mode stands for J Analog and requires a 2 meter SSB/CW transmitter and a 70 cm SSB/CW receiver and supports CW, voice.
316 JD - This mode stands for J Digital and requires a 2 meter FM transmitter and a 70 cm SSB/CW receiver and supports packet.
317
318 K - This mode requires a 15 meter SSB/CW transmitter and a 10 meter SSB/CW receiver and supports CW and voice. This mode is unique in that it can be done with a simple HF rig.
319 S - This mode requires a 70 cm SSB/CW transmitter and a 2.4 GHz SSB/CW receiver and supports CW and voice. Many people use a 2.4 GHz to 2 meter converter with a 2 meter SSB/CW receiver instead of buying a 2.4 GHz SSB/CW receiver.
320 T - This mode requires a 15 meter SSB/CW transmitter and a 2 meter SSB/CW receiver and supports CW and voice.
321 KT, KA, BS, Some satellites have dual modes that operate simultaneously. For example, AO-13 can operate in mode BS which means that it can do both mode B and mode S simultaneously. Other common dual modes are KT and KA.
322
323 Mode V
324 Mode U
325 Mode U/V -> B
326 </SATELLITE SUPPORT>
327
328 TODO: Code a way to sort the bands/modes in the setuppagebandsmodes.cpp
329
330 TODO: Create an "updateKLog" class to manage all the release updates
331 so there is a way to detect the version of KLog and upgrade the DB to the latest.
332
333
334 TODO:
335 The following fields may add information, even if the qsl has not been rcvd/sent
336 <QSL_RCVD_VIA:1>B <QSL_SENT_VIA:1>B
337
338 TODO: showStatusOfDXCC should be executed when band change.
339
340 TODO: Add color support: messages for slotQRZTextChanged
341
342 TODO: SetupPageColors: Check the style in the buttons as the rounds are lost when I change the color!!
343
344 TODO: Check when to connect the DXCluster and when no, it tries twice or more...
345
346 TODO: Awards: make a function to calculate the total.
347
348 TODO: Color support: Add needed, worked, confirmed, neutral colors to the configuration dialog.
349 TODO: Color support: Support the bar when a QRZ is entered.
350 TODO: Color support: Calculate a color for the log.
351
352 TODO: World::getDXStatus: Calculate the algorithm to know the different status for a DXCC (confirmed, worked, confirmed in another band, ,...)
353 TODO: World:: Maybe the color should be returned from the World class
354
355 TODO: Check the readDataFromUI. QSO are not added when in contest.
356 TODO: Check that New Log, Open, ... somewhere the log table is removed from the DB!
357
358 TODO: The confirmed WAZ number is not properly calculated.
359
360 TODO: GUI: Add in the input box a combobox to change the CQZ
361 TODO: GUI: Add in the input box a combobox to change the ITUZ
362
363
364 TODO: In CQWWSSB, when editing QSO the SRX, Points, multiplier, ... are not sent to the edit so after "OK", those data are lost.
365
366 TODO: MainWindow::slotQsoDeleteFromLog: Add the CALL to the message before detele a QSO.
367
368 TODO: Search GUI: add multi-selection QSO to do the same actions inmultiple QSO.
369
370 TODO: When importing ADIF, update the logview sometimes... just to show the progress.
371 TODO: When importing ADIF: Only shows the ProgresDialog when the number is low >1000 <14000 investigate
372 TODO: Import Cabrillo
373
374
375 TODO: To check how can I order the columns in the log or in the search QTableView. Now the order depends only on the order of the SQL table.
376
377 TODO: When modifying a cell directly in the log, it is possible to select a mode/band that is not actually active in the configuration.
378
379 TODO: Slot: If (only)eqsl/lotw is sent/rec, the QSL_RCVD_VIA should be E
380
381 TODO: Code a Tool to get statistcs for the contests, some kind of post contest tool.
382 http://www.qsl.net/3v4-002/Contests/2011%20CQ-WW-SSB%203V8SS/index.htm
383
384 TODO: Be able to send scores to: http://www.cqcontest.ru/help/developers.jsp
385
386 TODO: Create an update CTY.DAT without overwriting the current data. Just Adding and correcting (asking) if data is already there but different.
387 TODO: Create an export CTY.DAT file to create a CTY.DAT file with ALL the data in the current "world".
388
389
390
391 FILEMANAGER
392 TODO: adifLogExportToFile: Count the marked QSO and adjust the numberOfQsos
393 TODO: FileManager::adifReadLog: Optimize the dialog (maybe updating only each 100 or as in KLog)
394 TODO: FileManager::adifReadLog: Add a semaphore/lock or similar to avoid running the same method twice or more at the same time... or at least the same file.
395 It seems that now it "serializes" the import...
396 TODO: Check that FileManager::adifLogExportToFile is exporting ALL the DB fields.
397 TODO: FileManager::adifLogExportToFile code a progress dialog for exporting.
398 TODO: When importing ADIF: Check if all the QSO have all the mandatory fields and warn the user if not.
399
400 Optimization: The ADIF import is very slow. Optimization is recommended.
401
402
403 IMPROVEMENT: Improve the result of the log printing.
404
405 DONE: TODO: Working on the DB version update functions
406 DONE: MainWindow::showAwards Remove "empty CQZ" when counting to avoid having 41 CQ zones
407 DONE: Code the color configuration for status of an entity (needed/worked/confirmed).
408 DONE: Color support: Calculate a color for the search results.
409 DONE: Color support: Calculate a color for the DXCluster.
410 DONE: TODO: Colors: Reconfigure the colors needs KLog to be restarted.
411 DONE: Working on the dxCluster: Color support, identify the different kind of lines... DX de, normal spots, comments, ...
412 DONE: Right click on log to show a to edit QSO.
413 DONE: Right click on log to show a QSL received.
414 DONE: Right click on log to remove a QSO.
415 DONE: Right click on log to show a QSL sent.
416 TODO: Right click on search to remove a QSO.
417 DONE: Right click on search to show a QSL reception.
418 DONE: Right click on search to show a QSL sent.
419 DONE: Right click on search to show to edit QSO.
420 DONE: Added a select/unselect all button to the search QSO tab.
421 DONE: Search QSO to send
422 DONE: Add a button to export to ADIF the content of searchResultsTreeWidget
423
424 DONE: When importing ADIF, if the CQZ/ITUZ/DXCC is empty, calculate and add it.
425 DONE: Not export ADIF fields if "N":
426 DONE: Print the log.
427 DONE: TODO: Time in UTC
428 DONE: TODO: Log in real time
429 DONE: Double click on cluster to select
430 DONE: TODO: When double clicking on a DX-Spot, frequency should be also copied to inputbox
431 DONE: TODO: When a DX-Spot is selected, the DX-Entity and status should be shown.
432 DONE: TODO: DXCluster: Connect, disconnect and connect again does not work
433 DONE: TODO: Add a field in Mainwindow to manage RX_PWR
434 DONE: TODO: slotclearbuttons->Colors to default
435 DONE: GUI: Add in the input box a combobox to change the DXCC
436 */