Next: 3.6 Predefined Constants Up: 3. The available Commands Previous: 3.4.3 Layer related Commands Index

# 3.5 Using Dialogs from Scribus

FileDialog(``caption'', ``filter'' ``defaultName'' [preview, mode])
  Shows a FileSelect Box with the Caption ``caption''. Files are filtered with the Filter String ``filter'', refer to the Qt-Documentation for it's use. A default Filename can also supplied, leave this string empty when you don't want to use it. A Value of 1 for preview enables a small Preview Widget in the FileSelect Box.
  When the mode parameter is set to 1 the Dialog acts like a ``Save As'' Dialog otherwise it acts like a ``File Open Dialog''. The default for both of the opional Parameters is 0.
MessageBox(``caption'', ``message'', icon, Button1 [Button2, Button3]
  Shows a Message Box with the Title ``caption'', the Message ``message'', and an Icon icon and up to 3 Buttons. Button1 is always needed. For the icon and the Button Parameters there are predefined Constants available with the same Names as in the Qt Documentation. Returns the number of the selected Button.
NewDocDialog()
  Shows the ``New Document'' Dialog Box. Returns true if a new Document was created.
StatusMessage(``string'')
  Displays the Message ``string'' in the StatusBar.

Next: 3.6 Predefined Constants Up: 3. The available Commands Previous: 3.4.3 Layer related Commands Index