| 860 | } |
| 861 | |
| 862 | MacroActionVariableEdit::MacroActionVariableEdit( |
| 863 | QWidget *parent, std::shared_ptr<MacroActionVariable> entryData) |
| 864 | : QWidget(parent), |
| 865 | _variables(new VariableSelection(this)), |
| 866 | _variables2(new VariableSelection(this)), |
| 867 | _actions(new FilterComboBox(this)), |
| 868 | _strValue(new VariableTextEdit(this, 5, 1, 1)), |
| 869 | _numValue(new VariableDoubleSpinBox(this)), |
| 870 | _segmentIdx(new MacroSegmentSelection( |
| 871 | this, MacroSegmentSelection::Type::CONDITION, false)), |
| 872 | _segmentValueStatus(new QLabel()), |
| 873 | _segmentValue(new ResizingPlainTextEdit(this, 10, 1, 1)), |
| 874 | _substringLayout(new QVBoxLayout()), |
| 875 | _subStringControlsLayout(new QHBoxLayout()), |
| 876 | _subStringStart(new VariableSpinBox(this)), |
| 877 | _subStringSize(new VariableSpinBox(this)), |
| 878 | _subStringRegex(new RegexConfigWidget(parent)), |
| 879 | _regexPattern(new ResizingPlainTextEdit(this, 10, 1, 1)), |
| 880 | _regexMatchIdx(new VariableSpinBox(this)), |
| 881 | _findReplaceLayout(new QHBoxLayout()), |
| 882 | _findRegex(new RegexConfigWidget()), |
| 883 | _findStr(new VariableTextEdit(this, 10, 1, 1)), |
| 884 | _replaceStr(new VariableTextEdit(this, 10, 1, 1)), |
| 885 | _mathExpression(new VariableLineEdit(this)), |
| 886 | _mathExpressionResult(new QLabel()), |
| 887 | _promptLayout(new QHBoxLayout()), |
| 888 | _useCustomPrompt(new QCheckBox()), |
| 889 | _inputPrompt(new VariableLineEdit(this)), |
| 890 | _placeholderLayout(new QHBoxLayout()), |
| 891 | _useInputPlaceholder(new QCheckBox()), |
| 892 | _inputPlaceholder(new VariableLineEdit(this)), |
| 893 | _envVariable(new VariableLineEdit(this)), |
| 894 | _scenes(new SceneSelectionWidget(this, true, false, true, true, |
| 895 | true)), |
| 896 | _tempVars(new TempVariableSelection(this)), |
| 897 | _tempVarsHelp(new HelpIcon(obs_module_text( |
| 898 | "AdvSceneSwitcher.action.variable.type.setToTempvar.help"))), |
| 899 | _sceneItemIndex(new VariableSpinBox(this)), |
| 900 | _direction(new QComboBox()), |
| 901 | _stringLength(new VariableSpinBox(this)), |
| 902 | _paddingCharSelection(new SingleCharSelection()), |
| 903 | _caseType(new FilterComboBox(this)), |
| 904 | _randomNumberStart(new VariableDoubleSpinBox(this)), |
| 905 | _randomNumberEnd(new VariableDoubleSpinBox(this)), |
| 906 | _generateInteger(new QCheckBox( |
| 907 | obs_module_text( |
| 908 | "AdvSceneSwitcher.action.variable.generateInteger"), |
| 909 | this)), |
| 910 | _randomNumberLayout(new QVBoxLayout()), |
| 911 | _randomValues(new StringListEdit(this)), |
| 912 | _allowRepeatValues(new QCheckBox( |
| 913 | obs_module_text( |
| 914 | "AdvSceneSwitcher.action.variable.type.allowRepeat"), |
| 915 | this)), |
| 916 | _randomValueLayout(new QVBoxLayout()), |
| 917 | _jsonQuery(new VariableLineEdit(this)), |
| 918 | _jsonQueryHelp(new HelpIcon( |
| 919 | obs_module_text( |
nothing calls this directly
no test coverage detected