VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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, int min = -2147483647, int max = 2147483647, int step = 1,
71  bool*ok = 0, const Qt::WindowFlags& flags = Qt::Tool);
72 
74  static double getDouble(QWidget* parent, const QString& title, const QString& label,
75  QLineEdit::EchoMode mode = QLineEdit::Normal, double start = 0., double minimum = -2147483647,
76  double maximum = 2147483647, int decimals = 1, bool*ok = 0, const Qt::WindowFlags& flags = Qt::Tool);
77  };
78 }
#define DT_DLL_VRFGUICOMMONQT
Definition: vrfGuiCommonQt.h:20
A wrapper around the QFileDialog classes to allow for more convenient access and allow rendering to c...
Definition: qtStaticFileDialog.h:30
Option
Definition: qtStaticFileDialog.h:34
const char int mode
Definition: ioapi.h:38

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)