mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-21 20:59:56 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
42 lines
1.2 KiB
Modula-2
42 lines
1.2 KiB
Modula-2
native enum QFileDialog::FileMode is Editor.FileDialog.FileMode;
|
|
native enum QFileDialog::ViewMode is Editor.FileDialog.ViewMode;
|
|
native enum QFileDialog::DialogLabel is Editor.FileDialog.DialogLabel;
|
|
native enum QFileDialog::Option is Editor.FileDialog.Option;
|
|
native enum QFileDialog::AcceptMode is Editor.FileDialog.AcceptMode;
|
|
|
|
native class QFileDialog : QWidget
|
|
{
|
|
static QFileDialog Create( QWidget parent ); [new]
|
|
|
|
// QDialog
|
|
int exec();
|
|
void setModal(bool modal);
|
|
void setResult(int r);
|
|
|
|
// QFileDialog
|
|
void setDirectory( QString directory );
|
|
QDir directory();
|
|
|
|
void selectFile( QString filename );
|
|
|
|
void setNameFilter( QString filter );
|
|
// void setNameFilters( QStringList filters );
|
|
QStringList nameFilters();
|
|
void selectNameFilter( QString filter );
|
|
QString selectedMimeTypeFilter();
|
|
QString selectedNameFilter();
|
|
|
|
void setAcceptMode(AcceptMode mode);
|
|
AcceptMode acceptMode();
|
|
|
|
void setDefaultSuffix( QString suffix);
|
|
QString defaultSuffix();
|
|
|
|
QStringList selectedFiles();
|
|
|
|
void setFileMode(Editor.FileDialog.FileMode mode);
|
|
Editor.FileDialog.FileMode fileMode();
|
|
|
|
void setOption( Editor.FileDialog.Option option, bool on );
|
|
}
|