|
|
|
@ -18,15 +18,14 @@ in the source distribution for its full text. |
|
|
|
#include "XUtils.h" |
|
|
|
#include "XUtils.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Panel* SignalsPanel_new() { |
|
|
|
Panel* SignalsPanel_new(int preSelectedSignal) { |
|
|
|
Panel* this = Panel_new(1, 1, 1, 1, Class(ListItem), true, FunctionBar_newEnterEsc("Send ", "Cancel ")); |
|
|
|
Panel* this = Panel_new(1, 1, 1, 1, Class(ListItem), true, FunctionBar_newEnterEsc("Send ", "Cancel ")); |
|
|
|
const int defaultSignal = SIGTERM; |
|
|
|
|
|
|
|
int defaultPosition = 15; |
|
|
|
int defaultPosition = 15; |
|
|
|
unsigned int i; |
|
|
|
unsigned int i; |
|
|
|
for (i = 0; i < Platform_numberOfSignals; i++) { |
|
|
|
for (i = 0; i < Platform_numberOfSignals; i++) { |
|
|
|
Panel_set(this, i, (Object*) ListItem_new(Platform_signals[i].name, Platform_signals[i].number)); |
|
|
|
Panel_set(this, i, (Object*) ListItem_new(Platform_signals[i].name, Platform_signals[i].number)); |
|
|
|
// signal 15 is not always the 15th signal in the table
|
|
|
|
// signal 15 is not always the 15th signal in the table
|
|
|
|
if (Platform_signals[i].number == defaultSignal) { |
|
|
|
if (Platform_signals[i].number == preSelectedSignal) { |
|
|
|
defaultPosition = i; |
|
|
|
defaultPosition = i; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|