45 if (sa.GetParamCount() > 3)
48 *SqPlus::GetInstance<wxArrayString,false>(v, 2),
50 *SqPlus::GetInstance<wxString,false>(v, 4));
52 else if (sa.GetParamCount() > 2)
55 *SqPlus::GetInstance<wxArrayString,false>(v, 2),
58 else if (sa.GetParamCount() > 1)
61 *SqPlus::GetInstance<wxArrayString,false>(v, 2));
64 return sa.ThrowError(
"EditArrayFileDlg needs at least one argument");
80 if (sa.GetParamCount() == 1)
82 else if (sa.GetParamCount() == 2)
83 dlg =
new EditArrayOrderDlg(
nullptr, *SqPlus::GetInstance<wxArrayString,false>(v, 2));
85 return sa.ThrowError(
"EditArrayOrderDlg needs at most one argument");
101 if (sa.GetParamCount() == 2)
102 dlg =
new EditArrayStringDlg(
nullptr, *SqPlus::GetInstance<wxArrayString,false>(v, 2));
104 return sa.ThrowError(
"EditArrayStringDlg needs one argument");
124 if (sa.GetParamCount() > 4)
127 *SqPlus::GetInstance<wxString,false>(v, 2),
128 *SqPlus::GetInstance<wxString,false>(v, 3),
129 *SqPlus::GetInstance<wxString,false>(v, 4),
132 else if (sa.GetParamCount() > 3)
135 *SqPlus::GetInstance<wxString,false>(v, 2),
136 *SqPlus::GetInstance<wxString,false>(v, 3),
137 *SqPlus::GetInstance<wxString,false>(v, 4));
139 else if (sa.GetParamCount() > 2)
142 *SqPlus::GetInstance<wxString,false>(v, 2),
143 *SqPlus::GetInstance<wxString,false>(v, 3));
146 return sa.ThrowError(
"EditPairDlg needs at least two arguments");
169 if (sa.GetParamCount() > 7)
172 *SqPlus::GetInstance<wxString,false>(v, 2),
173 *SqPlus::GetInstance<wxString,false>(v, 3),
174 *SqPlus::GetInstance<wxString,false>(v, 4),
175 *SqPlus::GetInstance<wxString,false>(v, 5),
178 *SqPlus::GetInstance<wxString,false>(v, 8));
180 else if (sa.GetParamCount() > 6)
183 *SqPlus::GetInstance<wxString,false>(v, 2),
184 *SqPlus::GetInstance<wxString,false>(v, 3),
185 *SqPlus::GetInstance<wxString,false>(v, 4),
186 *SqPlus::GetInstance<wxString,false>(v, 5),
190 else if (sa.GetParamCount() > 5)
193 *SqPlus::GetInstance<wxString,false>(v, 2),
194 *SqPlus::GetInstance<wxString,false>(v, 3),
195 *SqPlus::GetInstance<wxString,false>(v, 4),
196 *SqPlus::GetInstance<wxString,false>(v, 5),
199 else if (sa.GetParamCount() > 4)
202 *SqPlus::GetInstance<wxString,false>(v, 2),
203 *SqPlus::GetInstance<wxString,false>(v, 3),
204 *SqPlus::GetInstance<wxString,false>(v, 4),
205 *SqPlus::GetInstance<wxString,false>(v, 5));
207 else if (sa.GetParamCount() > 3)
210 *SqPlus::GetInstance<wxString,false>(v, 2),
211 *SqPlus::GetInstance<wxString,false>(v, 3),
212 *SqPlus::GetInstance<wxString,false>(v, 4));
214 else if (sa.GetParamCount() > 2)
217 *SqPlus::GetInstance<wxString,false>(v, 2),
218 *SqPlus::GetInstance<wxString,false>(v, 3));
221 return sa.ThrowError(
"EditPathDlg needs at least two arguments");
240 if (sa.GetParamCount() > 3)
243 *SqPlus::GetInstance<wxString,false>(v, 2),
244 *SqPlus::GetInstance<wxString,false>(v, 3),
247 else if (sa.GetParamCount() > 2)
250 *SqPlus::GetInstance<wxString,false>(v, 2),
251 *SqPlus::GetInstance<wxString,false>(v, 3));
253 else if (sa.GetParamCount() > 1)
256 *SqPlus::GetInstance<wxString,false>(v, 2));
267 SQUserPointer up =
nullptr;
270 return sa.Return(static_cast<SQInteger>(dlg->
ShowModal()));
279 SqPlus::SQClassDef<EditArrayFileDlg>(
"EditArrayFileDlg").
283 SqPlus::SQClassDef<EditArrayOrderDlg>(
"EditArrayOrderDlg").
289 SqPlus::SQClassDef<EditArrayStringDlg>(
"EditArrayStringDlg").
293 SqPlus::SQClassDef<EditPairDlg>(
"EditPairDlg").
297 SqPlus::SQClassDef<EditPathDlg>(
"EditPathDlg").
302 SqPlus::SQClassDef<GenericMultiLineNotesDlg>(
"GenericMultiLineNotesDlg").
SQInteger EditPathDlg_Dtor(SQUserPointer up, cb_unused SQInteger size)
DECLARE_ENUM_TYPE(EditPairDlg::BrowseMode)
SQInteger EditPathDlg_Ctor(HSQUIRRELVM v)
SQRESULT sq_getinstanceup(HSQUIRRELVM v, SQInteger idx, SQUserPointer *p, SQUserPointer typetag)
SQInteger EditPairDlg_Dtor(SQUserPointer up, cb_unused SQInteger size)
const wxString & GetNotes()
void SetArray(const wxArrayString &array)
SQInteger EditArrayFileDlg_Dtor(SQUserPointer up, cb_unused SQInteger size)
const wxArrayString & GetArray()
SQInteger EditArrayOrderDlg_Ctor(HSQUIRRELVM v)
SQInteger GenericMultiLineNotesDlg_Dtor(SQUserPointer up, cb_unused SQInteger size)
SQInteger EditArrayOrderDlg_Dtor(SQUserPointer up, cb_unused SQInteger size)
const wxString & GetPath()
SQInteger EditPairDlg_Ctor(HSQUIRRELVM v)
SQInteger EditArrayStringDlg_Dtor(SQUserPointer up, cb_unused SQInteger size)
SQInteger GenericMultiLineNotesDlg_Ctor(HSQUIRRELVM v)
SQInteger EditArrayFileDlg_Ctor(HSQUIRRELVM v)
void Register_UtilDialogs()
SQInteger ShowModalForDialogs(HSQUIRRELVM v)
SQInteger EditArrayStringDlg_Ctor(HSQUIRRELVM v)