Subversion Repositories Projects

Rev

Rev 750 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 750 Rev 801
Line 83... Line 83...
83
    Setting.beginGroup("GUI");
83
    Setting.beginGroup("GUI");
84
        GUI.isMax       = Setting.value("IsMax",false).toBool();
84
        GUI.isMax       = Setting.value("IsMax",false).toBool();
85
        GUI.Size        = Setting.value("Size", QSize(700, 300)).toSize();
85
        GUI.Size        = Setting.value("Size", QSize(700, 300)).toSize();
86
        GUI.Point       = Setting.value("Point",QPoint(1,1)).toPoint();
86
        GUI.Point       = Setting.value("Point",QPoint(1,1)).toPoint();
87
    Setting.endGroup();
87
    Setting.endGroup();
88
/*
-
 
89
    Setting.beginGroup("SERVER");
-
 
90
        SERVER.Password = Setting.value("Password", QString("")).toString();
-
 
91
        SERVER.IP_MAX = Setting.value("IP_MAX", 1).toInt();
-
 
92
        SERVER.IP_ID  = Setting.value("IP_ID",  0).toInt();
-
 
93
 
-
 
94
        for (int z = 0; z < SERVER.IP_MAX; z++)
-
 
95
        {
-
 
96
            SERVER.IP[z] = Setting.value("IP_" + QString("%1").arg(z), QString("127.0.0.1:64400")).toString();
-
 
97
        }
-
 
98
    Setting.endGroup();
-
 
99
*/
-
 
100
}
88
}
Line 101... Line 89...
101
 
89
 
102
void cSettings::write_Settings()
90
void cSettings::write_Settings()
103
{
91
{
Line 115... Line 103...
115
    Setting.beginGroup("GUI");
103
    Setting.beginGroup("GUI");
116
        Setting.setValue("IsMax", GUI.isMax);
104
        Setting.setValue("IsMax", GUI.isMax);
117
        Setting.setValue("Size", GUI.Size);
105
        Setting.setValue("Size", GUI.Size);
118
        Setting.setValue("Point", GUI.Point);
106
        Setting.setValue("Point", GUI.Point);
119
    Setting.endGroup();
107
    Setting.endGroup();
120
/*
-
 
121
    Setting.beginGroup("SERVER");
-
 
122
        Setting.setValue("Password", SERVER.Password);
-
 
123
        Setting.setValue("IP_MAX", SERVER.IP_MAX);
-
 
124
        Setting.setValue("IP_ID",  SERVER.IP_ID);
-
 
125
 
-
 
126
        for (int z = 0; z < SERVER.IP_MAX; z++)
-
 
127
        {
-
 
128
            Setting.setValue("IP_" + QString("%1").arg(z), SERVER.IP[z]);
-
 
129
        }
-
 
130
    Setting.endGroup();
-
 
131
*/
-
 
132
}
108
}