Subversion Repositories Projects

Rev

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

Rev 674 Rev 750
Line 74... Line 74...
74
    Setting.beginGroup("Global");
74
    Setting.beginGroup("Global");
75
        Settings_ID  = Setting.value("Settings ID", Settings_ID).toInt();
75
        Settings_ID  = Setting.value("Settings ID", Settings_ID).toInt();
76
    Setting.endGroup();
76
    Setting.endGroup();
77
 
77
 
78
    Setting.beginGroup("DATA");
78
    Setting.beginGroup("DATA");
79
        DATA.Debug_Intervall  = Setting.value("Debug-Intervall", 500).toInt();
79
//        DATA.Debug_Intervall  = Setting.value("Debug-Intervall", 500).toInt();
80
        DATA.Plotter_Count    = Setting.value("Plotter-Count", 100).toInt();
80
        DATA.Plotter_Count    = Setting.value("Plotter-Count", 100).toInt();
81
    Setting.endGroup();
81
    Setting.endGroup();
82
 
82
 
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
 
88
/*
89
    Setting.beginGroup("SERVER");
89
    Setting.beginGroup("SERVER");
90
        SERVER.Password = Setting.value("Password", QString("")).toString();
90
        SERVER.Password = Setting.value("Password", QString("")).toString();
91
        SERVER.IP_MAX = Setting.value("IP_MAX", 1).toInt();
91
        SERVER.IP_MAX = Setting.value("IP_MAX", 1).toInt();
92
        SERVER.IP_ID  = Setting.value("IP_ID",  0).toInt();
92
        SERVER.IP_ID  = Setting.value("IP_ID",  0).toInt();
93
 
93
 
94
        for (int z = 0; z < SERVER.IP_MAX; z++)
94
        for (int z = 0; z < SERVER.IP_MAX; z++)
95
        {
95
        {
96
            SERVER.IP[z] = Setting.value("IP_" + QString("%1").arg(z), QString("127.0.0.1:64400")).toString();
96
            SERVER.IP[z] = Setting.value("IP_" + QString("%1").arg(z), QString("127.0.0.1:64400")).toString();
97
        }
97
        }
98
    Setting.endGroup();
98
    Setting.endGroup();
-
 
99
*/
99
}
100
}
100
 
101
 
101
void cSettings::write_Settings()
102
void cSettings::write_Settings()
102
{
103
{
103
    QSettings Setting("QMK", QA_NAME);
104
    QSettings Setting("QMK", QA_NAME);
Line 106... Line 107...
106
        Setting.setValue("Settings ID", Settings_ID);
107
        Setting.setValue("Settings ID", Settings_ID);
107
    Setting.endGroup();
108
    Setting.endGroup();
108
 
109
 
109
    Setting.beginGroup("DATA");
110
    Setting.beginGroup("DATA");
110
        Setting.setValue("Plotter-Count", DATA.Plotter_Count);
111
        Setting.setValue("Plotter-Count", DATA.Plotter_Count);
111
        Setting.setValue("Debug-Intervall", DATA.Debug_Intervall);
112
//        Setting.setValue("Debug-Intervall", DATA.Debug_Intervall);
112
    Setting.endGroup();
113
    Setting.endGroup();
113
 
114
 
114
    Setting.beginGroup("GUI");
115
    Setting.beginGroup("GUI");
115
        Setting.setValue("IsMax", GUI.isMax);
116
        Setting.setValue("IsMax", GUI.isMax);
116
        Setting.setValue("Size", GUI.Size);
117
        Setting.setValue("Size", GUI.Size);
117
        Setting.setValue("Point", GUI.Point);
118
        Setting.setValue("Point", GUI.Point);
118
    Setting.endGroup();
119
    Setting.endGroup();
119
 
120
/*
120
    Setting.beginGroup("SERVER");
121
    Setting.beginGroup("SERVER");
121
        Setting.setValue("Password", SERVER.Password);
122
        Setting.setValue("Password", SERVER.Password);
122
        Setting.setValue("IP_MAX", SERVER.IP_MAX);
123
        Setting.setValue("IP_MAX", SERVER.IP_MAX);
123
        Setting.setValue("IP_ID",  SERVER.IP_ID);
124
        Setting.setValue("IP_ID",  SERVER.IP_ID);
124
 
125
 
125
        for (int z = 0; z < SERVER.IP_MAX; z++)
126
        for (int z = 0; z < SERVER.IP_MAX; z++)
126
        {
127
        {
127
            Setting.setValue("IP_" + QString("%1").arg(z), SERVER.IP[z]);
128
            Setting.setValue("IP_" + QString("%1").arg(z), SERVER.IP[z]);
128
        }
129
        }
129
    Setting.endGroup();
130
    Setting.endGroup();
-
 
131
*/
130
}
132
}
131
 
133
 
132
 
134