VirtualBox

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

Last change on this file since 35740 was 28800, checked in by vboxsync, 14 years ago

Automated rebranding to Oracle copyright/license strings via filemuncher

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

© 2023 Oracle
ContactPrivacy policyTerms of Use