Use ModelTextEdit in model edit screens!!
This commit is contained in:
committed by
Peter Feerick
parent
2f3919c4b9
commit
cd84f8665a
@@ -87,7 +87,7 @@ class CurveEditWindow : public Page
|
|||||||
// Name
|
// Name
|
||||||
new StaticText(window, grid.getFieldSlot(), STR_NAME, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(window, grid.getFieldSlot(), STR_NAME, 0, COLOR_THEME_PRIMARY1);
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
new RadioTextEdit(window, grid.getFieldSlot(), curve.name, sizeof(curve.name));
|
new ModelTextEdit(window, grid.getFieldSlot(), curve.name, sizeof(curve.name));
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
@@ -169,7 +169,7 @@ class CurveEditWindow : public Page
|
|||||||
|
|
||||||
// Name
|
// Name
|
||||||
new StaticText(window, grid.getLabelSlot(), STR_NAME, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(window, grid.getLabelSlot(), STR_NAME, 0, COLOR_THEME_PRIMARY1);
|
||||||
new RadioTextEdit(window, grid.getFieldSlot(), curve.name, sizeof(curve.name));
|
new ModelTextEdit(window, grid.getFieldSlot(), curve.name, sizeof(curve.name));
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
|
|||||||
@@ -263,7 +263,7 @@ void GVarEditWindow::buildBody(FormWindow * window)
|
|||||||
grid.spacer(8);
|
grid.spacer(8);
|
||||||
|
|
||||||
new StaticText(window, grid.getLabelSlot(), STR_NAME, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(window, grid.getLabelSlot(), STR_NAME, 0, COLOR_THEME_PRIMARY1);
|
||||||
new RadioTextEdit(window, grid.getFieldSlot(), gvar->name, LEN_GVAR_NAME);
|
new ModelTextEdit(window, grid.getFieldSlot(), gvar->name, LEN_GVAR_NAME);
|
||||||
|
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ class RegisterDialog: public Dialog {
|
|||||||
|
|
||||||
// Register ID
|
// Register ID
|
||||||
new StaticText(form, grid.getLabelSlot(), STR_REG_ID, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(form, grid.getLabelSlot(), STR_REG_ID, 0, COLOR_THEME_PRIMARY1);
|
||||||
auto edit = new RadioTextEdit(form, grid.getFieldSlot(), g_model.modelRegistrationID, sizeof(g_model.modelRegistrationID));
|
auto edit = new ModelTextEdit(form, grid.getFieldSlot(), g_model.modelRegistrationID, sizeof(g_model.modelRegistrationID));
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
// UID
|
// UID
|
||||||
@@ -222,7 +222,7 @@ class RegisterDialog: public Dialog {
|
|||||||
rect_t rect = waiting->getRect();
|
rect_t rect = waiting->getRect();
|
||||||
waiting->deleteLater();
|
waiting->deleteLater();
|
||||||
|
|
||||||
rxName = new RadioTextEdit(&content->form, rect, reusableBuffer.moduleSetup.pxx2.registerRxName, PXX2_LEN_RX_NAME);
|
rxName = new ModelTextEdit(&content->form, rect, reusableBuffer.moduleSetup.pxx2.registerRxName, PXX2_LEN_RX_NAME);
|
||||||
rect = exitButton->getRect();
|
rect = exitButton->getRect();
|
||||||
auto okButton = new TextButton(&content->form, rect, "OK",
|
auto okButton = new TextButton(&content->form, rect, "OK",
|
||||||
[=]() -> int8_t {
|
[=]() -> int8_t {
|
||||||
|
|||||||
@@ -344,7 +344,7 @@ class SensorEditWindow : public Page {
|
|||||||
|
|
||||||
// Sensor name
|
// Sensor name
|
||||||
new StaticText(window, grid.getLabelSlot(), STR_NAME, 0, COLOR_THEME_PRIMARY1);
|
new StaticText(window, grid.getLabelSlot(), STR_NAME, 0, COLOR_THEME_PRIMARY1);
|
||||||
new RadioTextEdit(window, grid.getFieldSlot(), sensor->label, sizeof(sensor->label));
|
new ModelTextEdit(window, grid.getFieldSlot(), sensor->label, sizeof(sensor->label));
|
||||||
grid.nextLine();
|
grid.nextLine();
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
|
|||||||
Reference in New Issue
Block a user