VR-Forces 4.0.4 Class Documentation
include/commonWgt/neverAskAgain.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: neverAskAgain.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DTNEVERASKAGAIN_H_
00013 #define DTNEVERASKAGAIN_H_
00014 
00015 #include "commonWgt/commonWgtDefines.h"
00016 #include <QtGui/QMessageBox>
00017 
00018 class QCheckBox;
00019 
00020 class DT_DLL_commonWgt DtNeverAskAgainMessageBox : public QMessageBox
00021 {
00022    Q_OBJECT
00023 
00024 public:
00025    DtNeverAskAgainMessageBox(Icon icon, const QString & title,
00026       const QString & text, StandardButtons buttons = NoButton,
00027       QWidget * parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint);
00028 
00029    bool neverAskAgain() const;
00030 
00031    virtual void setNeverText(const QString&);
00032 
00033    void setDisableNoButtonOnAskChange(bool);
00034    bool disableNoButtonOnAskChange() const;
00035 
00036 public slots:
00037    virtual void setNeverAskAgain(bool);
00038 
00039 protected slots:
00040    virtual void neverAskChanged();
00041 
00042 protected:
00043    virtual void resizeEvent( QResizeEvent * );
00044    virtual bool eventFilter( QObject *obj, QEvent *ev );
00045 
00046 public:
00047    QCheckBox*  myNeverAsk;
00048    int         myIgnoreResize;
00049    bool        myDisableNoButtonOnAskChange;
00050 };
00051 
00052 inline void DtNeverAskAgainMessageBox::setDisableNoButtonOnAskChange(bool b)
00053 {
00054    myDisableNoButtonOnAskChange = b;
00055 }
00056 
00057 inline bool DtNeverAskAgainMessageBox::disableNoButtonOnAskChange() const
00058 {
00059    return myDisableNoButtonOnAskChange;
00060 }
00061 
00062 #endif //DTNEVERASKAGAIN_H_

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)