VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
commonWgt
neverAskAgain.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2005 MAK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: neverAskAgain.h,v $ $Revision: 1.8 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DTNEVERASKAGAIN_H_
13
#define DTNEVERASKAGAIN_H_
14
15
#include "
commonWgt/commonWgtDefines.h
"
16
#include <QtGui/QMessageBox>
17
18
class
QCheckBox
;
19
20
class
DT_DLL_commonWgt
DtNeverAskAgainMessageBox
:
public
QMessageBox
21
{
22
Q_OBJECT
23
24
public
:
25
DtNeverAskAgainMessageBox
(Icon icon,
const
QString & title,
26
const
QString & text, StandardButtons buttons = NoButton,
27
QWidget
* parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint);
28
29
bool
neverAskAgain()
const
;
30
31
virtual
void
setNeverText(
const
QString&);
32
33
void
setDisableNoButtonOnAskChange(
bool
);
34
bool
disableNoButtonOnAskChange()
const
;
35
36
public
slots:
37
virtual
void
setNeverAskAgain(
bool
);
38
39
protected
slots:
40
virtual
void
neverAskChanged();
41
42
protected
:
43
virtual
void
resizeEvent( QResizeEvent * );
44
virtual
bool
eventFilter(
QObject
*obj, QEvent *ev );
45
46
public
:
47
QCheckBox
*
myNeverAsk
;
48
int
myIgnoreResize
;
49
bool
myDisableNoButtonOnAskChange
;
50
};
51
52
inline
void
DtNeverAskAgainMessageBox::setDisableNoButtonOnAskChange
(
bool
b)
53
{
54
myDisableNoButtonOnAskChange
= b;
55
}
56
57
inline
bool
DtNeverAskAgainMessageBox::disableNoButtonOnAskChange
()
const
58
{
59
return
myDisableNoButtonOnAskChange
;
60
}
61
62
#endif //DTNEVERASKAGAIN_H_
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)