Rev 674 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 674 | Rev 750 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | 38 | ||
39 | Setting.beginGroup("GUI"); |
39 | Setting.beginGroup("GUI"); |
40 | GUI.isMax = Setting.value("IsMax",false).toBool(); |
40 | GUI.isMax = Setting.value("IsMax",false).toBool(); |
41 | GUI.Size = Setting.value("Size", QSize(500, 350)).toSize(); |
41 | GUI.Size = Setting.value("Size", QSize(500, 350)).toSize(); |
42 | GUI.Point = Setting.value("Point",QPoint(1,1)).toPoint(); |
- | |
43 | Setting.endGroup(); |
- | |
44 | - | ||
45 | Setting.beginGroup("SERVER"); |
- | |
46 | SERVER.Password = Setting.value("Password", QString("")).toString(); |
- | |
47 | SERVER.IP_MAX = Setting.value("IP_MAX", 1).toInt(); |
42 | GUI.Point = Setting.value("Point",QPoint(1,1)).toPoint(); |
48 | SERVER.IP_ID = Setting.value("IP_ID", 0).toInt(); |
- | |
49 | - | ||
50 | for (int z = 0; z < SERVER.IP_MAX; z++) |
- | |
51 | { |
- | |
52 | SERVER.IP[z] = Setting.value("IP_" + QString("%1").arg(z), QString("127.0.0.1:64400")).toString(); |
- | |
53 | } |
43 | GUI.Toolbar = Setting.value("Toolbar",true).toBool(); |
54 | Setting.endGroup(); |
44 | Setting.endGroup(); |
Line 55... | Line 45... | ||
55 | } |
45 | } |
56 | 46 | ||
Line 64... | Line 54... | ||
64 | 54 | ||
65 | Setting.beginGroup("GUI"); |
55 | Setting.beginGroup("GUI"); |
66 | Setting.setValue("IsMax", GUI.isMax); |
56 | Setting.setValue("IsMax", GUI.isMax); |
67 | Setting.setValue("Size", GUI.Size); |
57 | Setting.setValue("Size", GUI.Size); |
68 | Setting.setValue("Point", GUI.Point); |
- | |
69 | Setting.endGroup(); |
- | |
70 | - | ||
71 | Setting.beginGroup("SERVER"); |
58 | Setting.setValue("Point", GUI.Point); |
72 | Setting.setValue("Password", SERVER.Password); |
- | |
73 | Setting.setValue("IP_MAX", SERVER.IP_MAX); |
- | |
74 | Setting.setValue("IP_ID", SERVER.IP_ID); |
- | |
75 | - | ||
76 | for (int z = 0; z < SERVER.IP_MAX; z++) |
- | |
77 | { |
- | |
78 | Setting.setValue("IP_" + QString("%1").arg(z), SERVER.IP[z]); |
- | |
79 | } |
59 | Setting.setValue("Toolbar", GUI.Toolbar); |
80 | Setting.endGroup(); |
60 | Setting.endGroup(); |