Rev 711 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 711 | Rev 750 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | SERVER.TCP_PORT = Setting.value("TCP-PORT", DEV_IP_PORT).toInt(); |
40 | SERVER.TCP_PORT = Setting.value("TCP-PORT", DEV_IP_PORT).toInt(); |
41 | SERVER.UDP_PORT = Setting.value("UDP-PORT", DEV_IP_PORT).toInt(); |
41 | SERVER.UDP_PORT = Setting.value("UDP-PORT", DEV_IP_PORT).toInt(); |
42 | SERVER.Password = Setting.value("Password", QString("")).toString(); |
42 | SERVER.Password = Setting.value("Password", QString("")).toString(); |
43 | Setting.endGroup(); |
43 | Setting.endGroup(); |
Line -... | Line 44... | ||
- | 44 | ||
- | 45 | Setting.beginGroup("LIVEDATA"); |
|
- | 46 | LIVEDATA.Server = Setting.value("Server", QString("")).toString(); |
|
- | 47 | LIVEDATA.Port = Setting.value("Port", QString("64410")).toString(); |
|
- | 48 | LIVEDATA.User = Setting.value("User", QString("")).toString(); |
|
- | 49 | LIVEDATA.Password = Setting.value("Password", QString("")).toString(); |
|
- | 50 | Setting.endGroup(); |
|
44 | 51 | ||
45 | Setting.beginGroup("CLIENT"); |
52 | Setting.beginGroup("CLIENT"); |
46 | CLIENT.TTY_MAX = Setting.value("TTY_MAX", 1).toInt(); |
53 | CLIENT.TTY_MAX = Setting.value("TTY_MAX", 1).toInt(); |
Line 47... | Line 54... | ||
47 | CLIENT.TTY_ID = Setting.value("TTY_ID", 0).toInt(); |
54 | CLIENT.TTY_ID = Setting.value("TTY_ID", 0).toInt(); |
Line 63... | Line 70... | ||
63 | Setting.beginGroup("GUI"); |
70 | Setting.beginGroup("GUI"); |
64 | GUI.isMax = Setting.value("IsMax",false).toBool(); |
71 | GUI.isMax = Setting.value("IsMax",false).toBool(); |
65 | GUI.Size = Setting.value("Size", QSize(500, 350)).toSize(); |
72 | GUI.Size = Setting.value("Size", QSize(500, 350)).toSize(); |
66 | GUI.Point = Setting.value("Point",QPoint(1,1)).toPoint(); |
73 | GUI.Point = Setting.value("Point",QPoint(1,1)).toPoint(); |
67 | Setting.endGroup(); |
74 | Setting.endGroup(); |
- | 75 | ||
- | 76 | Setting.beginGroup("TERMINAL"); |
|
- | 77 | TERMINAL.isMax = Setting.value("IsMax",false).toBool(); |
|
- | 78 | TERMINAL.Size = Setting.value("Size", QSize(500, 350)).toSize(); |
|
- | 79 | TERMINAL.Point = Setting.value("Point",QPoint(1,1)).toPoint(); |
|
- | 80 | DATA.Data = Setting.value("Data",false).toBool(); |
|
- | 81 | DATA.Info = Setting.value("Info",false).toBool(); |
|
- | 82 | DATA.Send = Setting.value("Send",false).toBool(); |
|
- | 83 | DATA.TCP = Setting.value("TCP",false).toBool(); |
|
- | 84 | Setting.endGroup(); |
|
68 | } |
85 | } |
Line 69... | Line 86... | ||
69 | 86 | ||
70 | void cSettings::write_Settings() |
87 | void cSettings::write_Settings() |
71 | { |
88 | { |
Line 79... | Line 96... | ||
79 | Setting.setValue("TCP-PORT", SERVER.TCP_PORT); |
96 | Setting.setValue("TCP-PORT", SERVER.TCP_PORT); |
80 | Setting.setValue("UDP-PORT", SERVER.UDP_PORT); |
97 | Setting.setValue("UDP-PORT", SERVER.UDP_PORT); |
81 | Setting.setValue("Password", SERVER.Password); |
98 | Setting.setValue("Password", SERVER.Password); |
82 | Setting.endGroup(); |
99 | Setting.endGroup(); |
Line -... | Line 100... | ||
- | 100 | ||
- | 101 | Setting.beginGroup("LIVEDATA"); |
|
- | 102 | Setting.setValue("Server", LIVEDATA.Server); |
|
- | 103 | Setting.setValue("Port", LIVEDATA.Port); |
|
- | 104 | Setting.setValue("User", LIVEDATA.User); |
|
- | 105 | Setting.setValue("Password", LIVEDATA.Password); |
|
- | 106 | Setting.endGroup(); |
|
83 | 107 | ||
84 | Setting.beginGroup("CLIENT"); |
108 | Setting.beginGroup("CLIENT"); |
85 | Setting.setValue("TTY_MAX", CLIENT.TTY_MAX); |
109 | Setting.setValue("TTY_MAX", CLIENT.TTY_MAX); |
86 | Setting.setValue("TTY_ID", CLIENT.TTY_ID); |
110 | Setting.setValue("TTY_ID", CLIENT.TTY_ID); |
Line 87... | Line 111... | ||
87 | Setting.setValue("Password", CLIENT.TCP_Password); |
111 | Setting.setValue("Password", CLIENT.TCP_Password); |
88 | 112 | ||
89 | for (int z = 0; z < CLIENT.TTY_MAX; z++) |
113 | for (int z = 0; z < CLIENT.TTY_MAX; z++) |
Line 100... | Line 124... | ||
100 | } |
124 | } |
101 | Setting.endGroup(); |
125 | Setting.endGroup(); |
Line 102... | Line 126... | ||
102 | 126 | ||
103 | Setting.beginGroup("GUI"); |
127 | Setting.beginGroup("GUI"); |
104 | Setting.setValue("IsMax", GUI.isMax); |
128 | Setting.setValue("IsMax", GUI.isMax); |
105 | Setting.setValue("Size", GUI.Size); |
129 | Setting.setValue("Size", GUI.Size); |
106 | Setting.setValue("Point", GUI.Point); |
130 | Setting.setValue("Point", GUI.Point); |
Line -... | Line 131... | ||
- | 131 | Setting.endGroup(); |
|
- | 132 | ||
- | 133 | Setting.beginGroup("TERMINAL"); |
|
- | 134 | Setting.setValue("IsMax", TERMINAL.isMax); |
|
- | 135 | Setting.setValue("Size", TERMINAL.Size); |
|
- | 136 | Setting.setValue("Point", TERMINAL.Point); |
|
- | 137 | Setting.setValue("Data", DATA.Data); |
|
- | 138 | Setting.setValue("Send", DATA.Send); |
|
- | 139 | Setting.setValue("Info", DATA.Info); |
|
107 | Setting.endGroup(); |
140 | Setting.setValue("TCP", DATA.TCP); |