Debian Codegraph @

README-DEVEL

raw
1 This is a file to read if you want to join the KLog development team.
2
3 This document will explain the KLog architecture, requirements, tips and important to know
4 things to take into account when joining the KLog development team.
5
6
7
8 CONTENT:
9 1 - BEFORE CODING
10 2 - KLOG ARCHITECTURE
11 3 - BEFORE CODING
12 4 - CODING
13 5 - AFTER CODING
14 6 - GUI
15 7 - DOCUMENTATION
16 8 - TRANSLATIONS
17 9 - DEPLOYING
18
19
20 1 - BEFORE CODING:
21
22 Read this document.
23
24 Join the KLog Telegram group and say hello.
25 Once the number of developers grow, I will create a Telegram group or mailing list for developers.
26
27 Interesting links:
28 http://www.qtcentre.org/wiki/index.php?title=Keeping_the_GUI_Responsive
29 Packer: http://upx.sourceforge.net/
30
31
32
33 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
34
35 2 - KLOG ARCHITECTURE
36
37 KLog is intended to be a MODULAR software with the requirement to be modular ;-) so it is easy to
38 add new features (mainly contests and awards support).
39
40 2.1 IMPORTANT THINGS TO HAVE IN MIND
41
42 DEPRECATED - KLog version number is using the following system:
43 Release versions: 2.4, 2.5, ... 2.4.1, 2.4.2, ...
44 There are Release Critical versions that will be released before an official release for testing purposes.
45 Release Critical versions are like: 2.4.2-RC1, 2.4.2-RC2, ...
46 The release number is defined in the "version.h.in" file.
47
48 - KLog should manage several logs. The "log" table of the DB has a column called "lognumber".
49 ALL QSO has a lognumber id that identifies the log it belongs to.
50 Each lognumber will have associated a Name and/or ID (TBD) so the user is able to "open" just
51 that log. It is important that all the QSO operations are aware of this lognumber id.
52
53 - The log table has a "marked" column. This column is to allow mass operations. Changing this column has
54 to be done with care and leave it "unmarked" once the desired operation is finished.
55 KLog should unmark(N) all QSO when starts and exits. Mark = 'X', unmark='N' or other.
56 Marked column should not be saved.
57
58 - Any change to the DB architecture must be communicated and agreed with the development team before
59 commiting to the SVN and following the 2.4 DB UPDATES area in this document.
60
61
62
63 2.3 AWARD SUPPORT
64
65 2.4 DB UPDATES
66
67 A DB update consist on:
68
69 - All the intended changes.
70 - Update the softwarecontrol TABLE on the DB
71
72 To update the DB structure there are several things to have in mind:
73
74 - The current version of the DB is defined in database.h
75 const float DBVersionf = 0.003;
76
77 - All the actions to update the DB to the new structure are done here:
78 DataBase::updateIfNeeded
79
80 - After making any update
81
82
83
84 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
85
86 3 - BEFORE CODING
87
88 Update your sources from the Github: Remember that other developer may has done a commit.
89
90 3.0 - Common development environment
91
92 KLog is being developed using:
93 - Qt 6.8.3
94 - Hamlib 4.6.3
95
96 Versions of Qt are upgraded together with Debian testing. KLog development can't be ahead of Debian testing to prevent we use a version
97 that is not deployed in Debian stable and therefore we make KLog not available in all the Debian derivative versions (Ubuntu, ...)
98 Same should be taken into consideration for hamlib.
99
100 3.1 - Linux development environment
101 3.2 - macOS development environment
102 3.3 - Windows development environment
103 KLog is being developed using Qt Creator 17.0.0.
104 Using Qt Maintenance Tool, install:
105
106 + Qt
107 - Qt 6.8.3
108 - MinGW 13.1.0 64 bits
109 - Additional Libraries:
110 - Qt Charts
111 - Qt Location
112 - Qt Positioning
113 - Qt Serial Port
114
115 +Build Tools
116 - CMake
117 - Ninja
118 - MinGW 13.10.0 64bit
119 - OpenSSL 3.0.16 Toolkit
120
121 After installing the previous software, KLog can be also developed with Visual Studio Code.
122
123 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
124
125 4 - CODING
126
127 - The development language is English.
128 - All Strings to be shown to the user must be translatable. i.e. tr("String")
129
130 4.1 - STYLE
131 4.2 - ADIF SUPPORT
132
133 KLog is using some application defined ADIF fields: APP_{PROGRAMID}_{FIELDNAME}
134
135 Header fields:
136 APP_KLOG_LOG_DATE_EXPORT: The date and time (in UTC) when the log was exported.
137 APP_KLOG_QSOS: The number of QSOs in the log.
138 DEPRECATED: APP_KLOG_RELEASE: Release of KLog used to export the log file. CHANGED TO PROGRAMVERSION (ADIF standard)
139
140 QSO fields:
141 APP_KLOG_POINTS: Points given by the QSO.
142 APP_KLOG_LOGN: Lognumber if the ADIF file contains several logs.
143
144
145 KLog is also importing other application defined ADIF fields:
146 APP_N1MM_POINTS: That is imported into the points column in the log table.
147
148 KLog should not export any ADIF header that comming from other application without renaming it to APP_KLOG_
149
150 4.3 SHORTCUTS
151
152 Before adding or modifying any shortcut:
153 - It should be agreed in the devel mailing list.
154 - It should be as standard as possible, reuse the same shortcuts of main/popular contest software.
155 - It should be checked and added to a list below.
156
157
158
159 4.4 DATA BASE
160
161 - The DB version has to be checked and modified after a DB schema modification.
162 - Any modification to the DB has to be provided with the code to update from any previous version.
163
164 4.5 MODE & SUBMODE
165
166 The UI should show always the SUBMODE in the main widget.
167 QSOs should save mode & submode.
168 If no submode is present, KLog should save the first "mode" where mode & submode are the same.
169 On export, mode & submode should be exported.
170
171 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
172
173 5 - AFTER CODING
174
175 Test that your code compiles and does not break the previous code.
176
177 Document your changes and close/update the tasks/bugs you have worked on.
178
179 Remember to commit your code to the SVN.
180
181 Try to do "atomic" commits. That is to commit updates that may be disabled as a block.
182 i.e. A new function or a modification to a function. Don't commit several things at once
183 if you can avoid it.
184 This is just a recommendation to avoid big commits that, in case of a problem are difficult to
185 trace.
186
187 Document your commits: ALWAYS add a clear comment to the commits so it is easy to know what is it about.
188
189 5.1 TEST CHECKLIST
190
191 Here is the list of tests to be done before releasing new software:
192
193 - Install in a new installation of Windows/macOS
194 - Upgrade from a previous version
195
196 - Create a new log
197 - Add a new QSO
198 - Check that the DXCC & IOTA continent make sense
199 - Check if QSO/worked DXCC, ... count changes
200 - Edit a QSO from log
201 - Modify at least one field in each tab
202 - Edit a QSO from the search box
203 - Remove a QSO
204 - Update the DXCC status tab
205
206
207 - Connect to the DXCluster
208 - Click on a spot on the DXCluster
209
210 - Export an ADIF file
211 - Import an ADIF file
212
213 - Remove KLog in Windows
214
215
216
217
218 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
219
220 6 - GUI
221
222 6.1 CONTEST GUI
223
224 - The GUI should only have the data fields that are needed for that contest, keeping the GUI simple
225 and easy to use.
226
227
228
229 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
230
231 7 - DOCUMENTATION
232
233 - One feature will not be considered completed until it is not added to the user manual.
234 Please document in the klog-handbook.xml your feature so the user knows how to use it.
235
236 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
237
238 9 - TRANSLATIONS
239
240 9.1 ADDING TRANSLATIONS
241
242 To add a new translation add the new language file to the klog.pro file following the sintax:
243
244 TRANSLATIONS = KLog_es.ts \
245 klog_fr.ts
246
247 Being es, fr, the ISO codes naming the language.
248
249 After a translation is added, you also need to update the aboutdialog.cpp to include a new Translator line.
250
251 9.2 TRANSLATING
252
253 Translators should work in the *.ts files.
254
255 9.2 UPDATING TRANSLATIONS
256
257 Update translations:
258 Run: lupdate -verbose klog.pro
259 in the klog directory to update the language files
260
261 = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
262
263 9 - DEPLOYING
264
265 Before deploying, translations should be updated.
266
267
268 9.1 DEPLOYING ON LINUX
269
270 9.2 DEPLOYING ON macOS
271
272 Build KLog with QTCreator
273 If you can't run KLog due to missing libTIFF/LibJPEG/libPNG/libGIF chec this URL:
274 https://stackoverflow.com/questions/35509731/dyld-symbol-not-found-cg-jpeg-resync-to-restart
275 Try this in the shell:
276 $ cd /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources
277 $ sudo ln -sf libJPEG.dylib /usr/local/lib/libJPEG.dylib
278 $ sudo ln -sf libPng.dylib /usr/local/lib/libPng.dylib
279 $ sudo ln -sf libTIFF.dylib /usr/local/lib/libTIFF.dylib
280 $ sudo ln -sf libGIF.dylib /usr/local/lib/libGIF.dylib
281
282 Run the following command from the build directory:
283 mv klog.app KLog.app
284 create new folder in KLog.app/Contents/PlugIns/sqldrivers
285 copy $QT_DIR/plugins/sqldrivers/libqsqlite.dylib to the new folder (/Developer/Applications/Qt/plugins/)
286 create new folder: KLog.app/Contents/MacOs/translations
287 copy the *.qm (translation) files into KLog.app/Contents/MacOS/translations
288 macdeployqt KLog.app/ -dmg
289 mv KLog.dmg KLog-[VERSION].dmg
290
291 9.3 DEPLOYING ON WINDOWS
292 Currently using an Open Source Licence of: BitRock InstallBuilder
293
294 9.4 ICON
295 Follow this link for all the OS:
296 http://doc.qt.io/qt-5/appicon.html
297
298 Installer:
299 http://en.wikipedia.org/wiki/List_of_installation_software
300