Subversion Repositories Projects

Rev

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

Rev 199 Rev 227
Line 40... Line 40...
40
    sp_Navi_Slow->setValue(Settings->Data.Navi_Slow);
40
    sp_Navi_Slow->setValue(Settings->Data.Navi_Slow);
41
    sp_Navi_Off->setValue(Settings->Data.Navi_Off);
41
    sp_Navi_Off->setValue(Settings->Data.Navi_Off);
42
    le_ServerPort->setText(Settings->Server.Port);
42
    le_ServerPort->setText(Settings->Server.Port);
43
    cb_StartServer->setChecked(Settings->Server.StartServer);
43
    cb_StartServer->setChecked(Settings->Server.StartServer);
44
    cb_ToGround->setChecked(Settings->Server.ToGround);
44
    cb_ToGround->setChecked(Settings->Server.ToGround);
-
 
45
    le_Login->setText(Settings->Server.QMKS_Login);
-
 
46
    le_Password->setText(Settings->Server.QMKS_Password);
45
}
47
}
Line 46... Line 48...
46
 
48
 
47
cSettings *dlg_Preferences::get_Settings()
49
cSettings *dlg_Preferences::get_Settings()
48
{
50
{
49
    Settings->TTY.Port           = le_TTY->text();
51
    Settings->TTY.Port             = le_TTY->text();
50
    Settings->Data.Plotter_Count = sp_Plotter_Count->value();
52
    Settings->Data.Plotter_Count   = sp_Plotter_Count->value();
51
    Settings->Data.Debug_Fast    = sp_Debug_Fast->value();
53
    Settings->Data.Debug_Fast      = sp_Debug_Fast->value();
52
    Settings->Data.Debug_Slow    = sp_Debug_Slow->value();
54
    Settings->Data.Debug_Slow      = sp_Debug_Slow->value();
53
    Settings->Data.Debug_Off     = sp_Debug_Off->value();
55
    Settings->Data.Debug_Off       = sp_Debug_Off->value();
54
    Settings->Data.Navi_Fast     = sp_Navi_Fast->value();
56
    Settings->Data.Navi_Fast       = sp_Navi_Fast->value();
55
    Settings->Data.Navi_Slow     = sp_Navi_Slow->value();
57
    Settings->Data.Navi_Slow       = sp_Navi_Slow->value();
56
    Settings->Data.Navi_Off      = sp_Navi_Off->value();
58
    Settings->Data.Navi_Off        = sp_Navi_Off->value();
57
    Settings->Server.Port        = le_ServerPort->text();
59
    Settings->Server.Port          = le_ServerPort->text();
58
    Settings->Server.StartServer = cb_StartServer->isChecked();
60
    Settings->Server.StartServer   = cb_StartServer->isChecked();
-
 
61
    Settings->Server.ToGround      = cb_ToGround->isChecked();
-
 
62
    Settings->Server.QMKS_Login    = le_Login->text();
Line 59... Line 63...
59
    Settings->Server.ToGround    = cb_ToGround->isChecked();
63
    Settings->Server.QMKS_Password = le_Password->text();
60
 
64
 
Line 61... Line 65...
61
    return Settings;
65
    return Settings;