VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtQtUtil.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005  
00009  
00010 #pragma once
00011  
00012 #include <vrvCoreQt/vrvCoreQt.h>
00013 #include <QtGui/QMessageBox>
00014 #include <QtCore/QEvent>
00015 #include <QtCore/QString>
00016 
00017 namespace makVrv 
00018 {
00019 
00022    class DT_DLL_VRVCOREQT DtQtUtil
00023    {
00024    public:
00028       static QString eventTypeName(QEvent::Type eventType);
00029 
00033       static QString eventTypeName(QEvent const * event);
00034 
00037       static QMessageBox::StandardButton critical (
00038          QWidget * parent, const QString & title, const QString & text, 
00039          QMessageBox::StandardButtons buttons = QMessageBox::Ok, 
00040          QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
00041          Qt::WindowFlags f = Qt::Tool | Qt::MSWindowsFixedSizeDialogHint);
00042 
00045       static QMessageBox::StandardButton information ( 
00046          QWidget * parent, const QString & title, const QString & text, 
00047          QMessageBox::StandardButtons buttons = QMessageBox::Ok, 
00048          QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
00049          Qt::WindowFlags f = Qt::Tool | Qt::MSWindowsFixedSizeDialogHint );
00050 
00053       static QMessageBox::StandardButton question (
00054          QWidget * parent, const QString & title, const QString & text,
00055          QMessageBox::StandardButtons buttons = QMessageBox::Yes | QMessageBox::No,
00056          QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
00057          Qt::WindowFlags f = Qt::MSWindowsFixedSizeDialogHint | Qt::Tool);
00058 
00061       static QMessageBox::StandardButton warning (
00062          QWidget * parent, const QString & title, const QString & text,
00063          QMessageBox::StandardButtons buttons = QMessageBox::Ok,
00064          QMessageBox::StandardButton defaultButton = QMessageBox::NoButton,
00065          Qt::WindowFlags f = Qt::MSWindowsFixedSizeDialogHint | Qt::Tool);
00066 
00067    private:
00068 
00071       static QMessageBox::StandardButton showMessageBox (
00072          QMessageBox& mbox, QMessageBox::StandardButton defaultButton);
00073 
00074    };
00075 
00076 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)