Skip to content

Commit 4ceea93

Browse files
committed
GUI: Show project file's name in project file -dialog title.
1 parent e468779 commit 4ceea93

8 files changed

Lines changed: 193 additions & 159 deletions

File tree

gui/cppcheck_de.ts

Lines changed: 26 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ Stop the checking before exiting.</source>
427427
</message>
428428
<message>
429429
<location filename="mainwindow.cpp" line="688"/>
430+
<location filename="mainwindow.cpp" line="704"/>
430431
<source>Project files (*.cppcheck);;All files(*.*)</source>
431432
<translation type="unfinished"></translation>
432433
</message>
@@ -435,6 +436,11 @@ Stop the checking before exiting.</source>
435436
<source>Select Project File</source>
436437
<translation type="unfinished"></translation>
437438
</message>
439+
<message>
440+
<location filename="mainwindow.cpp" line="706"/>
441+
<source>Select Project Filename</source>
442+
<translation type="unfinished"></translation>
443+
</message>
438444
<message>
439445
<location filename="translationhandler.cpp" line="34"/>
440446
<source>Finnish</source>
@@ -472,49 +478,47 @@ Stop the checking before exiting.</source>
472478
</message>
473479
</context>
474480
<context>
475-
<name>ProjectFile</name>
481+
<name>Project</name>
476482
<message>
477-
<location filename="projectfile.ui" line="14"/>
478-
<source>Project File</source>
483+
<location filename="project.cpp" line="63"/>
484+
<location filename="project.cpp" line="96"/>
485+
<source>Cppcheck</source>
479486
<translation type="unfinished"></translation>
480487
</message>
481488
<message>
482-
<location filename="projectfile.ui" line="22"/>
483-
<source>Include paths:</source>
489+
<location filename="project.cpp" line="64"/>
490+
<source>Could not read the project file.</source>
484491
<translation type="unfinished"></translation>
485492
</message>
486493
<message>
487-
<location filename="projectfile.ui" line="39"/>
488-
<source>Defines:</source>
494+
<location filename="project.cpp" line="97"/>
495+
<source>Could not write the project file.</source>
489496
<translation type="unfinished"></translation>
490497
</message>
491498
</context>
492499
<context>
493-
<name>ProjectFileDialog</name>
494-
<message>
495-
<location filename="projectfiledialog.cpp" line="48"/>
496-
<location filename="projectfiledialog.cpp" line="106"/>
497-
<source>Cppcheck</source>
498-
<translation type="unfinished"></translation>
499-
</message>
500+
<name>ProjectFile</name>
500501
<message>
501-
<location filename="projectfiledialog.cpp" line="49"/>
502-
<source>Could not read the project file.</source>
502+
<location filename="projectfile.ui" line="14"/>
503+
<source>Project File</source>
503504
<translation type="unfinished"></translation>
504505
</message>
505506
<message>
506-
<location filename="projectfiledialog.cpp" line="87"/>
507-
<source>Project files (*.cppcheck);;All files(*.*)</source>
507+
<location filename="projectfile.ui" line="22"/>
508+
<source>Include paths:</source>
508509
<translation type="unfinished"></translation>
509510
</message>
510511
<message>
511-
<location filename="projectfiledialog.cpp" line="89"/>
512-
<source>Save Project File</source>
512+
<location filename="projectfile.ui" line="39"/>
513+
<source>Defines:</source>
513514
<translation type="unfinished"></translation>
514515
</message>
516+
</context>
517+
<context>
518+
<name>ProjectFileDialog</name>
515519
<message>
516-
<location filename="projectfiledialog.cpp" line="107"/>
517-
<source>Could not write the project file.</source>
520+
<location filename="projectfiledialog.cpp" line="30"/>
521+
<source>Project file: %1</source>
518522
<translation type="unfinished"></translation>
519523
</message>
520524
</context>

gui/cppcheck_en.ts

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ Stop the checking before exiting.</translation>
444444
</message>
445445
<message>
446446
<location filename="mainwindow.cpp" line="688"/>
447+
<location filename="mainwindow.cpp" line="704"/>
447448
<source>Project files (*.cppcheck);;All files(*.*)</source>
448449
<translation type="unfinished"></translation>
449450
</message>
@@ -452,6 +453,11 @@ Stop the checking before exiting.</translation>
452453
<source>Select Project File</source>
453454
<translation type="unfinished"></translation>
454455
</message>
456+
<message>
457+
<location filename="mainwindow.cpp" line="706"/>
458+
<source>Select Project Filename</source>
459+
<translation type="unfinished"></translation>
460+
</message>
455461
<message>
456462
<location filename="translationhandler.cpp" line="34"/>
457463
<source>Finnish</source>
@@ -489,49 +495,47 @@ Stop the checking before exiting.</translation>
489495
</message>
490496
</context>
491497
<context>
492-
<name>ProjectFile</name>
498+
<name>Project</name>
493499
<message>
494-
<location filename="projectfile.ui" line="14"/>
495-
<source>Project File</source>
496-
<translation type="unfinished"></translation>
500+
<location filename="project.cpp" line="63"/>
501+
<location filename="project.cpp" line="96"/>
502+
<source>Cppcheck</source>
503+
<translation type="unfinished">Cppcheck</translation>
497504
</message>
498505
<message>
499-
<location filename="projectfile.ui" line="22"/>
500-
<source>Include paths:</source>
506+
<location filename="project.cpp" line="64"/>
507+
<source>Could not read the project file.</source>
501508
<translation type="unfinished"></translation>
502509
</message>
503510
<message>
504-
<location filename="projectfile.ui" line="39"/>
505-
<source>Defines:</source>
511+
<location filename="project.cpp" line="97"/>
512+
<source>Could not write the project file.</source>
506513
<translation type="unfinished"></translation>
507514
</message>
508515
</context>
509516
<context>
510-
<name>ProjectFileDialog</name>
511-
<message>
512-
<location filename="projectfiledialog.cpp" line="48"/>
513-
<location filename="projectfiledialog.cpp" line="106"/>
514-
<source>Cppcheck</source>
515-
<translation type="unfinished">Cppcheck</translation>
516-
</message>
517+
<name>ProjectFile</name>
517518
<message>
518-
<location filename="projectfiledialog.cpp" line="49"/>
519-
<source>Could not read the project file.</source>
519+
<location filename="projectfile.ui" line="14"/>
520+
<source>Project File</source>
520521
<translation type="unfinished"></translation>
521522
</message>
522523
<message>
523-
<location filename="projectfiledialog.cpp" line="87"/>
524-
<source>Project files (*.cppcheck);;All files(*.*)</source>
524+
<location filename="projectfile.ui" line="22"/>
525+
<source>Include paths:</source>
525526
<translation type="unfinished"></translation>
526527
</message>
527528
<message>
528-
<location filename="projectfiledialog.cpp" line="89"/>
529-
<source>Save Project File</source>
529+
<location filename="projectfile.ui" line="39"/>
530+
<source>Defines:</source>
530531
<translation type="unfinished"></translation>
531532
</message>
533+
</context>
534+
<context>
535+
<name>ProjectFileDialog</name>
532536
<message>
533-
<location filename="projectfiledialog.cpp" line="107"/>
534-
<source>Could not write the project file.</source>
537+
<location filename="projectfiledialog.cpp" line="30"/>
538+
<source>Project file: %1</source>
535539
<translation type="unfinished"></translation>
536540
</message>
537541
</context>

gui/cppcheck_fi.ts

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ Lopeta tarkistus ennen ohjelman sammuttamista.</translation>
448448
</message>
449449
<message>
450450
<location filename="mainwindow.cpp" line="688"/>
451+
<location filename="mainwindow.cpp" line="704"/>
451452
<source>Project files (*.cppcheck);;All files(*.*)</source>
452453
<translation type="unfinished"></translation>
453454
</message>
@@ -456,6 +457,11 @@ Lopeta tarkistus ennen ohjelman sammuttamista.</translation>
456457
<source>Select Project File</source>
457458
<translation type="unfinished"></translation>
458459
</message>
460+
<message>
461+
<location filename="mainwindow.cpp" line="706"/>
462+
<source>Select Project Filename</source>
463+
<translation type="unfinished"></translation>
464+
</message>
459465
<message>
460466
<location filename="translationhandler.cpp" line="34"/>
461467
<source>Finnish</source>
@@ -493,49 +499,47 @@ Lopeta tarkistus ennen ohjelman sammuttamista.</translation>
493499
</message>
494500
</context>
495501
<context>
496-
<name>ProjectFile</name>
502+
<name>Project</name>
497503
<message>
498-
<location filename="projectfile.ui" line="14"/>
499-
<source>Project File</source>
500-
<translation type="unfinished"></translation>
504+
<location filename="project.cpp" line="63"/>
505+
<location filename="project.cpp" line="96"/>
506+
<source>Cppcheck</source>
507+
<translation type="unfinished">Cppcheck</translation>
501508
</message>
502509
<message>
503-
<location filename="projectfile.ui" line="22"/>
504-
<source>Include paths:</source>
510+
<location filename="project.cpp" line="64"/>
511+
<source>Could not read the project file.</source>
505512
<translation type="unfinished"></translation>
506513
</message>
507514
<message>
508-
<location filename="projectfile.ui" line="39"/>
509-
<source>Defines:</source>
515+
<location filename="project.cpp" line="97"/>
516+
<source>Could not write the project file.</source>
510517
<translation type="unfinished"></translation>
511518
</message>
512519
</context>
513520
<context>
514-
<name>ProjectFileDialog</name>
515-
<message>
516-
<location filename="projectfiledialog.cpp" line="48"/>
517-
<location filename="projectfiledialog.cpp" line="106"/>
518-
<source>Cppcheck</source>
519-
<translation type="unfinished">Cppcheck</translation>
520-
</message>
521+
<name>ProjectFile</name>
521522
<message>
522-
<location filename="projectfiledialog.cpp" line="49"/>
523-
<source>Could not read the project file.</source>
523+
<location filename="projectfile.ui" line="14"/>
524+
<source>Project File</source>
524525
<translation type="unfinished"></translation>
525526
</message>
526527
<message>
527-
<location filename="projectfiledialog.cpp" line="87"/>
528-
<source>Project files (*.cppcheck);;All files(*.*)</source>
528+
<location filename="projectfile.ui" line="22"/>
529+
<source>Include paths:</source>
529530
<translation type="unfinished"></translation>
530531
</message>
531532
<message>
532-
<location filename="projectfiledialog.cpp" line="89"/>
533-
<source>Save Project File</source>
533+
<location filename="projectfile.ui" line="39"/>
534+
<source>Defines:</source>
534535
<translation type="unfinished"></translation>
535536
</message>
537+
</context>
538+
<context>
539+
<name>ProjectFileDialog</name>
536540
<message>
537-
<location filename="projectfiledialog.cpp" line="107"/>
538-
<source>Could not write the project file.</source>
541+
<location filename="projectfiledialog.cpp" line="30"/>
542+
<source>Project file: %1</source>
539543
<translation type="unfinished"></translation>
540544
</message>
541545
</context>

gui/cppcheck_nl.ts

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ Stop de controle alvorens te sluiten.</translation>
444444
</message>
445445
<message>
446446
<location filename="mainwindow.cpp" line="688"/>
447+
<location filename="mainwindow.cpp" line="704"/>
447448
<source>Project files (*.cppcheck);;All files(*.*)</source>
448449
<translation type="unfinished"></translation>
449450
</message>
@@ -452,6 +453,11 @@ Stop de controle alvorens te sluiten.</translation>
452453
<source>Select Project File</source>
453454
<translation type="unfinished"></translation>
454455
</message>
456+
<message>
457+
<location filename="mainwindow.cpp" line="706"/>
458+
<source>Select Project Filename</source>
459+
<translation type="unfinished"></translation>
460+
</message>
455461
<message>
456462
<location filename="translationhandler.cpp" line="34"/>
457463
<source>Finnish</source>
@@ -489,49 +495,47 @@ Stop de controle alvorens te sluiten.</translation>
489495
</message>
490496
</context>
491497
<context>
492-
<name>ProjectFile</name>
498+
<name>Project</name>
493499
<message>
494-
<location filename="projectfile.ui" line="14"/>
495-
<source>Project File</source>
496-
<translation type="unfinished"></translation>
500+
<location filename="project.cpp" line="63"/>
501+
<location filename="project.cpp" line="96"/>
502+
<source>Cppcheck</source>
503+
<translation type="unfinished">Cppcheck</translation>
497504
</message>
498505
<message>
499-
<location filename="projectfile.ui" line="22"/>
500-
<source>Include paths:</source>
506+
<location filename="project.cpp" line="64"/>
507+
<source>Could not read the project file.</source>
501508
<translation type="unfinished"></translation>
502509
</message>
503510
<message>
504-
<location filename="projectfile.ui" line="39"/>
505-
<source>Defines:</source>
511+
<location filename="project.cpp" line="97"/>
512+
<source>Could not write the project file.</source>
506513
<translation type="unfinished"></translation>
507514
</message>
508515
</context>
509516
<context>
510-
<name>ProjectFileDialog</name>
511-
<message>
512-
<location filename="projectfiledialog.cpp" line="48"/>
513-
<location filename="projectfiledialog.cpp" line="106"/>
514-
<source>Cppcheck</source>
515-
<translation type="unfinished">Cppcheck</translation>
516-
</message>
517+
<name>ProjectFile</name>
517518
<message>
518-
<location filename="projectfiledialog.cpp" line="49"/>
519-
<source>Could not read the project file.</source>
519+
<location filename="projectfile.ui" line="14"/>
520+
<source>Project File</source>
520521
<translation type="unfinished"></translation>
521522
</message>
522523
<message>
523-
<location filename="projectfiledialog.cpp" line="87"/>
524-
<source>Project files (*.cppcheck);;All files(*.*)</source>
524+
<location filename="projectfile.ui" line="22"/>
525+
<source>Include paths:</source>
525526
<translation type="unfinished"></translation>
526527
</message>
527528
<message>
528-
<location filename="projectfiledialog.cpp" line="89"/>
529-
<source>Save Project File</source>
529+
<location filename="projectfile.ui" line="39"/>
530+
<source>Defines:</source>
530531
<translation type="unfinished"></translation>
531532
</message>
533+
</context>
534+
<context>
535+
<name>ProjectFileDialog</name>
532536
<message>
533-
<location filename="projectfiledialog.cpp" line="107"/>
534-
<source>Could not write the project file.</source>
537+
<location filename="projectfiledialog.cpp" line="30"/>
538+
<source>Project file: %1</source>
535539
<translation type="unfinished"></translation>
536540
</message>
537541
</context>

0 commit comments

Comments
 (0)