VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfGuiCoreQt
neverAskAgainMessageBox.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
#pragma once
13
17
18
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
19
#include <QtGui/QMessageBox>
20
21
class
QCheckBox
;
22
23
namespace
makVrf
24
{
25
class
DT_DLL_VRFGUICOREQT
DtNeverAskAgainMessageBox
:
public
QMessageBox
26
{
27
Q_OBJECT
28
29
public
:
30
DtNeverAskAgainMessageBox
(Icon icon,
const
QString & title,
31
const
QString & text, StandardButtons buttons = NoButton,
32
QWidget
* parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint);
33
34
virtual
~
DtNeverAskAgainMessageBox
();
35
36
bool
neverAskAgain()
const
;
37
38
virtual
void
setNeverText(
const
QString&);
39
40
void
setDisableNoButtonOnAskChange(
bool
);
41
bool
disableNoButtonOnAskChange()
const
;
42
43
public
slots:
44
virtual
void
setNeverAskAgain(
bool
);
45
46
protected
slots:
47
virtual
void
neverAskChanged();
48
49
protected
:
50
virtual
void
resizeEvent( QResizeEvent * );
51
virtual
bool
eventFilter(
QObject
*obj, QEvent *ev );
52
53
public
:
54
QCheckBox
*
myNeverAsk
;
55
int
myIgnoreResize
;
56
bool
myDisableNoButtonOnAskChange
;
57
};
58
59
inline
void
DtNeverAskAgainMessageBox::setDisableNoButtonOnAskChange
(
bool
b)
60
{
61
myDisableNoButtonOnAskChange
= b;
62
}
63
64
inline
bool
DtNeverAskAgainMessageBox::disableNoButtonOnAskChange
()
const
65
{
66
return
myDisableNoButtonOnAskChange
;
67
}
68
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)