VirtualBox

source: vbox/trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIFileDialog.h@ 69500

Last change on this file since 69500 was 69500, checked in by vboxsync, 7 years ago

*: scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 2.1 KB
Line 
1/* $Id: QIFileDialog.h 69500 2017-10-28 15:14:05Z vboxsync $ */
2/** @file
3 * VBox Qt GUI - Qt extensions: QIFileDialog class declarations.
4 */
5
6/*
7 * Copyright (C) 2009-2017 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef __QIFileDialog_h__
19#define __QIFileDialog_h__
20
21/* Qt includes */
22#include <QFileDialog>
23
24class QIFileDialog : public QFileDialog
25{
26 Q_OBJECT;
27
28public:
29
30 QIFileDialog (QWidget *aParent, Qt::WindowFlags aFlags);
31
32 static QString getExistingDirectory (const QString &aDir, QWidget *aParent,
33 const QString &aCaption = QString::null,
34 bool aDirOnly = true,
35 bool resolveSymlinks = true);
36
37 static QString getSaveFileName (const QString &aStartWith, const QString &aFilters, QWidget *aParent,
38 const QString &aCaption, QString *aSelectedFilter = 0,
39 bool aResolveSymLinks = true, bool fConfirmOverwrite = false);
40
41 static QString getOpenFileName (const QString &aStartWith, const QString &aFilters, QWidget *aParent,
42 const QString &aCaption, QString *aSelectedFilter = 0,
43 bool aResolveSymLinks = true);
44
45 static QStringList getOpenFileNames (const QString &aStartWith, const QString &aFilters, QWidget *aParent,
46 const QString &aCaption, QString *aSelectedFilter = 0,
47 bool aResolveSymLinks = true,
48 bool aSingleFile = false);
49
50 static QString getFirstExistingDir (const QString &aStartDir);
51};
52
53#endif /* __QIFileDialog_h__ */
54
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette