Subversion Repositories Projects

Rev

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

Rev 674 Rev 750
Line 28... Line 28...
28
    o_Settings = t_Settings;
28
    o_Settings = t_Settings;
29
 
29
 
30
    le_TCP_Port->setText(QString("%1").arg(o_Settings->SERVER.TCP_PORT));
30
    le_TCP_Port->setText(QString("%1").arg(o_Settings->SERVER.TCP_PORT));
31
    le_UDP_Port->setText(QString("%1").arg(o_Settings->SERVER.UDP_PORT));
31
    le_UDP_Port->setText(QString("%1").arg(o_Settings->SERVER.UDP_PORT));
32
    le_Password->setText(o_Settings->SERVER.Password);
32
    le_Password->setText(o_Settings->SERVER.Password);
-
 
33
 
-
 
34
    le_LiveServer->setText(o_Settings->LIVEDATA.Server);
-
 
35
    le_LivePort->setText(o_Settings->LIVEDATA.Port);
-
 
36
    le_LiveUser->setText(o_Settings->LIVEDATA.User);
-
 
37
    le_LivePassword->setText(o_Settings->LIVEDATA.Password);
33
}
38
}
34
 
39
 
35
cSettings *dlg_Preferences::get_Settings()
40
cSettings *dlg_Preferences::get_Settings()
36
{
41
{
37
    o_Settings->SERVER.Password = le_Password->text();
42
    o_Settings->SERVER.Password = le_Password->text();
38
    o_Settings->SERVER.TCP_PORT = le_TCP_Port->text().toInt();
43
    o_Settings->SERVER.TCP_PORT = le_TCP_Port->text().toInt();
39
    o_Settings->SERVER.UDP_PORT = le_UDP_Port->text().toInt();
44
    o_Settings->SERVER.UDP_PORT = le_UDP_Port->text().toInt();
40
 
45
 
-
 
46
    o_Settings->LIVEDATA.Server   = le_LiveServer->text();
-
 
47
    o_Settings->LIVEDATA.Port     = le_LivePort->text();
-
 
48
    o_Settings->LIVEDATA.User     = le_LiveUser->text();
-
 
49
    o_Settings->LIVEDATA.Password = le_LivePassword->text();
-
 
50
 
41
    return o_Settings;
51
    return o_Settings;
42
}
52
}