Subversion Repositories tpanel

Rev

Rev 118 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 118 Rev 120
Line 68... Line 68...
68
    uint logLevelBits;          //!< The numeric bit field of the loglevel
68
    uint logLevelBits;          //!< The numeric bit field of the loglevel
69
    bool longformat{false};     //!< TRUE = long format
69
    bool longformat{false};     //!< TRUE = long format
70
    bool noBanner{false};       //!< Startup without showing a banner on the command line.
70
    bool noBanner{false};       //!< Startup without showing a banner on the command line.
71
    bool certCheck{false};      //!< TRUE = Check certificate for SSL connection
71
    bool certCheck{false};      //!< TRUE = Check certificate for SSL connection
72
    bool scale{false};          //!< TRUE = Images are scaled to fit the whole screen
72
    bool scale{false};          //!< TRUE = Images are scaled to fit the whole screen
-
 
73
    bool tbforce{false};        //!< TRUE = The toolbar is forced to display
73
    bool profiling{false};      //!< TRUE = The declaration traces meassure the time and write it to the log
74
    bool profiling{false};      //!< TRUE = The declaration traces meassure the time and write it to the log
74
    string password1;           //!< First panel password
75
    string password1;           //!< First panel password
75
    string password2;           //!< Second panel password
76
    string password2;           //!< Second panel password
76
    string password3;           //!< Third panel password
77
    string password3;           //!< Third panel password
77
    string password4;           //!< Fourth panel password
78
    string password4;           //!< Fourth panel password
Line 458... Line 459...
458
    DECL_TRACER("TConfig::saveBanner(bool banner)");
459
    DECL_TRACER("TConfig::saveBanner(bool banner)");
459
 
460
 
460
    localSettings.noBanner = banner;
461
    localSettings.noBanner = banner;
461
}
462
}
462
 
463
 
-
 
464
void TConfig::saveToolbarForce(bool tb)
-
 
465
{
-
 
466
    DECL_TRACER("TConfig::saveToolbarForce(bool tb)");
-
 
467
 
-
 
468
    localSettings.tbforce = tb;
-
 
469
}
-
 
470
 
463
void TConfig::saveProfiling(bool prof)
471
void TConfig::saveProfiling(bool prof)
464
{
472
{
465
    DECL_TRACER("TConfig::saveProfiling(bool prof)");
473
    DECL_TRACER("TConfig::saveProfiling(bool prof)");
466
 
474
 
467
    localSettings.profiling = prof;
475
    localSettings.profiling = prof;
Line 652... Line 660...
652
        ofstream file(fname);
660
        ofstream file(fname);
653
        string lines = "LogFile=" + localSettings.logFile + "\n";
661
        string lines = "LogFile=" + localSettings.logFile + "\n";
654
        lines += "LogLevel=" + localSettings.logLevel + "\n";
662
        lines += "LogLevel=" + localSettings.logLevel + "\n";
655
        lines += "ProjectPath=" + localSettings.project + "\n";
663
        lines += "ProjectPath=" + localSettings.project + "\n";
656
        lines += string("NoBanner=") + (localSettings.noBanner ? "true" : "false") + "\n";
664
        lines += string("NoBanner=") + (localSettings.noBanner ? "true" : "false") + "\n";
-
 
665
        lines += string("ToolbarForce=") + (localSettings.tbforce ? "true" : "false") + "\n";
657
        lines += string("LongFormat=") + (localSettings.longformat ? "true" : "false") + "\n";
666
        lines += string("LongFormat=") + (localSettings.longformat ? "true" : "false") + "\n";
658
        lines += "Address=" + localSettings.server + "\n";
667
        lines += "Address=" + localSettings.server + "\n";
659
        lines += "Port=" + std::to_string(localSettings.port) + "\n";
668
        lines += "Port=" + std::to_string(localSettings.port) + "\n";
660
        lines += "Channel=" + std::to_string(localSettings.ID) + "\n";
669
        lines += "Channel=" + std::to_string(localSettings.ID) + "\n";
661
        lines += "System=" + std::to_string(localSettings.system) + "\n";
670
        lines += "System=" + std::to_string(localSettings.system) + "\n";
Line 740... Line 749...
740
    DECL_TRACER("TConfig::getScale()");
749
    DECL_TRACER("TConfig::getScale()");
741
 
750
 
742
    return localSettings.scale;
751
    return localSettings.scale;
743
}
752
}
744
 
753
 
-
 
754
bool TConfig::getToolbarForce()
-
 
755
{
-
 
756
    DECL_TRACER("TConfig::getToolbarForce()");
-
 
757
 
-
 
758
    return localSettings.tbforce;
-
 
759
}
-
 
760
 
745
bool TConfig::getProfiling()
761
bool TConfig::getProfiling()
746
{
762
{
747
    return localSettings.profiling;
763
    return localSettings.profiling;
748
}
764
}
749
 
765
 
Line 965... Line 981...
965
    content += "Port=1319\n";
981
    content += "Port=1319\n";
966
    content += "Channel=10001\n";
982
    content += "Channel=10001\n";
967
    content += "PanelType=Android\n";
983
    content += "PanelType=Android\n";
968
    content += string("Firmware=") + VERSION_STRING() + "\n";
984
    content += string("Firmware=") + VERSION_STRING() + "\n";
969
    content += "Scale=true\n";
985
    content += "Scale=true\n";
-
 
986
    content += "ToolbarForce=false\n";
970
    content += "Profiling=false\n";
987
    content += "Profiling=false\n";
971
    content += "Password1=1988\n";
988
    content += "Password1=1988\n";
972
    content += "Password2=1988\n";
989
    content += "Password2=1988\n";
973
    content += "Password3=1988\n";
990
    content += "Password3=1988\n";
974
    content += "Password4=1988\n";
991
    content += "Password4=1988\n";
Line 1287... Line 1304...
1287
                    localSettings.ID = 0;
1304
                    localSettings.ID = 0;
1288
                }
1305
                }
1289
            }
1306
            }
1290
            else if (caseCompare(left, "Scale") == 0 && !right.empty())
1307
            else if (caseCompare(left, "Scale") == 0 && !right.empty())
1291
                localSettings.scale = isTrue(right);
1308
                localSettings.scale = isTrue(right);
-
 
1309
            else if (caseCompare(left, "ToolbarForce") == 0 && !right.empty())
-
 
1310
                localSettings.tbforce = isTrue(right);
1292
            else if (caseCompare(left, "Profiling") == 0 && !right.empty())
1311
            else if (caseCompare(left, "Profiling") == 0 && !right.empty())
1293
                localSettings.profiling = isTrue(right);
1312
                localSettings.profiling = isTrue(right);
1294
            else if (caseCompare(left, "Password1") == 0 && !right.empty())
1313
            else if (caseCompare(left, "Password1") == 0 && !right.empty())
1295
                localSettings.password1 = right;
1314
                localSettings.password1 = right;
1296
            else if (caseCompare(left, "Password2") == 0 && !right.empty())
1315
            else if (caseCompare(left, "Password2") == 0 && !right.empty())