Skip to content

Commit 3e68554

Browse files
committed
documentation update
1 parent 57dc682 commit 3e68554

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/main.cpp

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -121,24 +121,24 @@ int main(int argc, char **argv)
121121
QApplication application(argc, argv);
122122

123123
// ==============================
124-
// BASIC APPLICATION VARIABLES:
124+
// Basic application properties:
125125
// ==============================
126126
application.setApplicationName("Perl Executing Browser");
127127
application.setApplicationVersion("0.4.1");
128128
bool startedAsRoot = false;
129129

130130
// ==============================
131-
// PSEUDO-DOMAIN:
131+
// Pseudo-domain:
132132
// ==============================
133133
application.setProperty("pseudoDomain", QString("local-pseudodomain"));
134134

135135
// ==============================
136-
// UTF-8 ENCODING APPLICATION-WIDE:
136+
// UTF-8 encoding application-wide:
137137
// ==============================
138138
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF8"));
139139

140140
// ==============================
141-
// USER PRIVILEGES DETECTION:
141+
// User privileges detection:
142142
// ==============================
143143
// Linux and Mac:
144144
#ifndef Q_OS_WIN
@@ -161,7 +161,7 @@ int main(int argc, char **argv)
161161
#endif
162162

163163
// ==============================
164-
// START FROM TERMINAL DETECTION:
164+
// Start from terminal detection:
165165
// ==============================
166166
// If the browser is started from terminal,
167167
// it will start another copy of itself and close the first one.
@@ -201,7 +201,7 @@ int main(int argc, char **argv)
201201
#endif
202202

203203
// ==============================
204-
// BINARY FILE DIRECTORY:
204+
// Binary file directory:
205205
// ==============================
206206
QDir binaryDir = QDir::toNativeSeparators(application.applicationDirPath());
207207

@@ -215,7 +215,7 @@ int main(int argc, char **argv)
215215
QString binaryDirName = binaryDir.absolutePath().toLatin1();
216216

217217
// ==============================
218-
// PERL INTERPRETER:
218+
// Perl interpreter:
219219
// ==============================
220220
QString perlExecutable;
221221

@@ -255,7 +255,7 @@ int main(int argc, char **argv)
255255
application.setProperty("perlInterpreter", perlInterpreterFullPath);
256256

257257
// ==============================
258-
// APPLICATION DIRECTORY:
258+
// Application directory:
259259
// ==============================
260260
QString applicationDirName = QDir::toNativeSeparators(
261261
binaryDirName + QDir::separator()
@@ -265,7 +265,7 @@ int main(int argc, char **argv)
265265
application.setProperty("application", applicationDirName);
266266

267267
// ==============================
268-
// APPLICATION ICON:
268+
// Application icon:
269269
// ==============================
270270
QString iconPathName = QDir::toNativeSeparators(
271271
binaryDirName + QDir::separator()
@@ -285,7 +285,7 @@ int main(int argc, char **argv)
285285
}
286286

287287
// ==============================
288-
// TRUSTED DOMAINS:
288+
// Trusted domains:
289289
// ==============================
290290
QString trustedDomainsFilePath =
291291
applicationDirName + QDir::separator() + "trusted-domains.json";
@@ -321,7 +321,7 @@ int main(int argc, char **argv)
321321
application.setProperty("trustedDomains", trustedDomainsList);
322322

323323
// ==============================
324-
// LOGGING:
324+
// Logging:
325325
// ==============================
326326
// If 'logs' directory is found in the directory of the browser binary,
327327
// all program messages will be redirected to log files,
@@ -343,7 +343,7 @@ int main(int argc, char **argv)
343343
}
344344

345345
// ==============================
346-
// MAIN GUI CLASSES INITIALIZATION:
346+
// MAIN WINDOW INITIALIZATION:
347347
// ==============================
348348
QMainBrowserWindow mainWindow;
349349

@@ -371,9 +371,9 @@ int main(int argc, char **argv)
371371
&exitHandler, SLOT(qExitApplicationSlot()));
372372

373373
// ==============================
374-
// STARTED WITH
375-
// ADMINISTRATIVE PRIVILEGES
376-
// ERROR MESSAGE:
374+
// Started with
375+
// administrative privileges
376+
// error message:
377377
// ==============================
378378
#if ADMIN_PRIVILEGES_CHECK == 1
379379
if (startedAsRoot == true) {
@@ -397,7 +397,7 @@ int main(int argc, char **argv)
397397
#endif
398398

399399
// ==============================
400-
// MISSING PERL INTERPRETER ERROR MESSAGE:
400+
// Missing Perl interpreter error message:
401401
// ==============================
402402
if (perlInterpreterFullPath.length() == 0) {
403403
QFileReader *resourceReader =
@@ -421,7 +421,7 @@ int main(int argc, char **argv)
421421

422422
if (startedAsRoot == false and perlInterpreterFullPath.length() > 0) {
423423
// ==============================
424-
// LOG BASIC PROGRAM INFORMATION AND SETTINGS:
424+
// Logging basic program information:
425425
// ==============================
426426
qDebug() << application.applicationName().toLatin1().constData()
427427
<< application.applicationVersion().toLatin1().constData()
@@ -458,7 +458,7 @@ int main(int argc, char **argv)
458458
}
459459

460460
// ==============================
461-
// START PAGE EXISTENCE CHECK AND LOADING:
461+
// Start page loading:
462462
// ==============================
463463
QString startPage;
464464
QFile staticStartPageFile(

0 commit comments

Comments
 (0)