Subversion Repositories Projects

Rev

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

Rev 279 Rev 306
Line 23... Line 23...
23
#include "../Classes/ToolBox.h"
23
#include "../Classes/ToolBox.h"
Line 24... Line 24...
24
 
24
 
25
wdg_Settings::wdg_Settings(QWidget *parent) : QWidget(parent)
25
wdg_Settings::wdg_Settings(QWidget *parent) : QWidget(parent)
26
{
26
{
-
 
27
    setupUi(this);
Line 27... Line 28...
27
    setupUi(this);
28
    listWidget->setCurrentRow(0);
28
 
29
 
Line 29... Line 30...
29
#ifndef _BETA_
30
#ifndef _BETA_
Line 116... Line 117...
116
    }
117
    }
117
}
118
}
Line 118... Line 119...
118
 
119
 
119
void wdg_Settings::slot_ValuetoLED16(int Wert)
120
void wdg_Settings::slot_ValuetoLED16(int Wert)
120
{
-
 
121
//    QSpinBox *SpinBox = (QSpinBox*)sender();
-
 
122
 
-
 
123
//    int Wert = SpinBox->value();
-
 
124
 
121
{
125
    set_LED(J16_0);
122
    set_LED(J16_0);
126
    set_LED(J16_1);
123
    set_LED(J16_1);
127
    set_LED(J16_2);
124
    set_LED(J16_2);
128
    set_LED(J16_3);
125
    set_LED(J16_3);
Line 176... Line 173...
176
    }
173
    }
177
}
174
}
Line 178... Line 175...
178
 
175
 
179
void wdg_Settings::slot_ValuetoLED17(int Wert)
176
void wdg_Settings::slot_ValuetoLED17(int Wert)
180
{
-
 
181
//    QSpinBox *SpinBox = (QSpinBox*)sender();
-
 
182
 
-
 
183
//    int Wert = SpinBox->value();
-
 
184
 
177
{
185
    set_LED(J17_0);
178
    set_LED(J17_0);
186
    set_LED(J17_1);
179
    set_LED(J17_1);
187
    set_LED(J17_2);
180
    set_LED(J17_2);
188
    set_LED(J17_3);
181
    set_LED(J17_3);
Line 238... Line 231...
238
 
231
 
239
void wdg_Settings::slot_tbUp()
232
void wdg_Settings::slot_tbUp()
240
{
233
{
241
    if (tb_9_6->text() == QString("0"))
234
    if (tb_9_6->text() == QString("0"))
242
    {
-
 
243
//        tb_9_6->setIcon(ToolBox::Icon(20));
235
    {
244
        tb_9_6->setText("1");
236
        tb_9_6->setText("1");
245
    }
237
    }
246
    else
238
    else
247
    {
-
 
248
//        tb_9_6->setIcon(ToolBox::Icon(21));
239
    {
249
        tb_9_6->setText("0");
240
        tb_9_6->setText("0");
250
    }
241
    }
Line 251... Line 242...
251
}
242
}
252
 
243
 
253
void wdg_Settings::slot_tbDown()
244
void wdg_Settings::slot_tbDown()
254
{
245
{
255
    if (tb_9_7->text() == QString("0"))
-
 
256
    {
246
    if (tb_9_7->text() == QString("0"))
257
//        tb_9_7->setIcon(ToolBox::Icon(22));
247
    {
258
        tb_9_7->setText("1");
248
        tb_9_7->setText("1");
259
    }
249
    }
260
    else
-
 
261
    {
250
    else
262
//        tb_9_7->setIcon(ToolBox::Icon(23));
251
    {
263
        tb_9_7->setText("0");
252
        tb_9_7->setText("0");
Line 264... Line 253...
264
    }
253
    }
265
}
254
}
266
 
255
 
267
void wdg_Settings::slot_tbLeft()
256
void wdg_Settings::slot_tbLeft()
268
{
-
 
269
    if (tb_9_8->text() == QString("0"))
257
{
270
    {
258
    if (tb_9_8->text() == QString("0"))
271
//        tb_9_8->setIcon(ToolBox::Icon(24));
259
    {
272
        tb_9_8->setText("1");
260
        tb_9_8->setText("1");
273
    }
-
 
274
    else
261
    }
275
    {
262
    else
276
//        tb_9_8->setIcon(ToolBox::Icon(25));
263
    {
Line 277... Line 264...
277
        tb_9_8->setText("0");
264
        tb_9_8->setText("0");
278
    }
265
    }
279
}
266
}
280
 
267
 
281
void wdg_Settings::slot_tbRight()
-
 
282
{
268
void wdg_Settings::slot_tbRight()
283
    if (tb_9_9->text() == QString("0"))
269
{
284
    {
270
    if (tb_9_9->text() == QString("0"))
285
//        tb_9_9->setIcon(ToolBox::Icon(26));
271
    {
286
        tb_9_9->setText("1");
-
 
287
    }
272
        tb_9_9->setText("1");
288
    else
273
    }
289
    {
274
    else
Line 290... Line 275...
290
//        tb_9_9->setIcon(ToolBox::Icon(27));
275
    {
Line 755... Line 740...
755
}
740
}
Line 756... Line 741...
756
 
741
 
757
void wdg_Settings::show_FCSettings(int Set, int FCSettings[MaxParameter]) // DONE 0.71h
742
void wdg_Settings::show_FCSettings(int Set, int FCSettings[MaxParameter]) // DONE 0.71h
758
{
743
{
759
    memcpy(Settings, FCSettings, sizeof(FCSettings));
-
 
Line 760... Line 744...
760
//    memcpy(ParameterSet, ParamSet, sizeof(ParamSet));
744
    memcpy(Settings, FCSettings, sizeof(FCSettings));
Line 761... Line 745...
761
 
745