VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
qtStaticFileDialog.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <QtCore/QtGlobal>
14 #include <QtCore/QString>
15 #include <QtWidgets/QLineEdit>
16 
17 class QWidget;
18 class QStringList;
19 
20 namespace makVrv
21 {
22  class DtDe;
23 }
24 
25 namespace makVrf
26 {
31  {
32  public:
33 
34  enum Option
35  {
36  ShowDirsOnly = 0x01,
37  DontResolveSymlinks = 0x02,
38  DontConfirmOverwrite = 0x04,
39  DontUseSheet = 0x08,
40  DontUseNativeDialog = 0x10
41  };
42 
43  Q_DECLARE_FLAGS(Options, Option)
44 
45  static QString getExistingDirectory ( makVrv::DtDe& de, QWidget * parent = 0,
46  const QString & caption = QString(), const QString & dir = QString(),
47  Options options = ShowDirsOnly, bool nativeFileDialog = false );
48 
49  static QString getOpenFileName ( makVrv::DtDe& de, QWidget * parent = 0,
50  const QString & caption = QString(), const QString & dir = QString(),
51  const QString & filter = QString(), QString * selectedFilter = 0,
52  Options options = 0, bool mustExist = false, bool nativeFileDialog = false );
53 
54  static QStringList getOpenFileNames ( makVrv::DtDe& de, QWidget * parent = 0,
55  const QString & caption = QString(), const QString & dir = QString(),
56  const QString & filter = QString(), QString * selectedFilter = 0,
57  Options options = 0, bool nativeFileDialog = false );
58 
59  static QString getSaveFileName ( makVrv::DtDe& de, QWidget * parent = 0,
60  const QString & caption = QString(), const QString & dir = QString(),
61  const QString & filter = QString(), QString * selectedFilter = 0,
62  Options options = 0 , bool nativeFileDialog = false);
63 
65  static QString getText(QWidget* parent, const QString& title, const QString& label,
66  QLineEdit::EchoMode mode = QLineEdit::Normal, const QString& startText = "", bool*ok = 0, const Qt::WindowFlags& flags = 0);
67 
69  static int getInt(QWidget* parent, const QString& title, const QString& label,
70  QLineEdit::EchoMode mode = QLineEdit::Normal, int startInt = 0, bool*ok = 0, const Qt::WindowFlags& flags = 0);
71  };
72 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)