mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-15 06:35:56 +08:00
wip label_width
This commit is contained in:
parent
d355df4be5
commit
885330d54b
@ -1475,6 +1475,8 @@ public:
|
|||||||
int height = -1;
|
int height = -1;
|
||||||
// Optional width of an input field.
|
// Optional width of an input field.
|
||||||
int width = -1;
|
int width = -1;
|
||||||
|
// Optional label width of an input field (if in a line).
|
||||||
|
int label_width = -1;
|
||||||
// <min, max> limit of a numeric input.
|
// <min, max> limit of a numeric input.
|
||||||
// If not set, the <min, max> is set to <INT_MIN, INT_MAX>
|
// If not set, the <min, max> is set to <INT_MIN, INT_MAX>
|
||||||
// By setting min=0, only nonnegative input is allowed.
|
// By setting min=0, only nonnegative input is allowed.
|
||||||
|
@ -1318,7 +1318,10 @@ bool Tab::create_pages(std::string setting_type_name)
|
|||||||
option.opt.full_width = true;
|
option.opt.full_width = true;
|
||||||
}
|
}
|
||||||
else if (boost::starts_with(params[i], "width$")) {
|
else if (boost::starts_with(params[i], "width$")) {
|
||||||
option.opt.width = atoi(params[i].substr(6, params[i].size()-6).c_str());
|
option.opt.width = atoi(params[i].substr(6, params[i].size() - 6).c_str());
|
||||||
|
}
|
||||||
|
else if (boost::starts_with(params[i], "label_width$")) {
|
||||||
|
option.opt.label_width = atoi(params[i].substr(12, params[i].size() - 12).c_str());
|
||||||
}
|
}
|
||||||
else if (boost::starts_with(params[i], "height$")) {
|
else if (boost::starts_with(params[i], "height$")) {
|
||||||
option.opt.height = atoi(params[i].substr(7, params[i].size() - 7).c_str());
|
option.opt.height = atoi(params[i].substr(7, params[i].size() - 7).c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user