VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtQtUtil.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 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <QtGui/QMessageBox>
14 #include <QtCore/QEvent>
15 #include <QtCore/QString>
16 
17 namespace makVrv
18 {
19 
23  {
24  public:
28  static QString eventTypeName(QEvent::Type eventType);
29 
33  static QString eventTypeName(QEvent const * event);
34 
37  static QMessageBox::StandardButton critical (
38  QWidget * parent, const QString & title, const QString & text,
39  QMessageBox::StandardButtons buttons = QMessageBox::Ok,
40  QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
41  Qt::WindowFlags f = Qt::Tool | Qt::MSWindowsFixedSizeDialogHint);
42 
45  static QMessageBox::StandardButton information (
46  QWidget * parent, const QString & title, const QString & text,
47  QMessageBox::StandardButtons buttons = QMessageBox::Ok,
48  QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
49  Qt::WindowFlags f = Qt::Tool | Qt::MSWindowsFixedSizeDialogHint );
50 
53  static QMessageBox::StandardButton question (
54  QWidget * parent, const QString & title, const QString & text,
55  QMessageBox::StandardButtons buttons = QMessageBox::Yes | QMessageBox::No,
56  QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
57  Qt::WindowFlags f = Qt::MSWindowsFixedSizeDialogHint | Qt::Tool);
58 
61  static QMessageBox::StandardButton warning (
62  QWidget * parent, const QString & title, const QString & text,
63  QMessageBox::StandardButtons buttons = QMessageBox::Ok,
64  QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
65  Qt::WindowFlags f = Qt::MSWindowsFixedSizeDialogHint | Qt::Tool);
66 
67  private:
68 
71  static QMessageBox::StandardButton showMessageBox (
72  QMessageBox& mbox, QMessageBox::StandardButton defaultButton);
73 
74  };
75 
76 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)