CFx SDK Documentation
2023 SP0
SDK
CFx
commonui_inc
UI
FxUIDialogButtonBox.h
Go to the documentation of this file.
1
//
2
// (C) Copyright 2005-2022 by Graebert GmbH.
3
//
4
// Permission to use, copy, modify, and distribute this software in
5
// object code form for any purpose and without fee is hereby granted,
6
// provided that the above copyright notice appears in all copies and
7
// that both that copyright notice and the limited warranty and
8
// restricted rights notice below appear in all supporting
9
// documentation.
10
//
11
// GRAEBERT PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
12
// GRAEBERT SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
13
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. GRAEBERT GMBH
14
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
15
// UNINTERRUPTED OR ERROR FREE.
16
17
#pragma once
18
19
#include "
FxUIBaseView.h
"
20
#include "
FxUIPushButton.h
"
21
#include "
FxUIDialog.h
"
22
26
class
COMMONUI_API
CFxUIDialogButtonBox
:
public
CFxUIBaseView
27
{
28
public
:
32
enum
StandardButton
{
33
NoButton = 0x00000000,
34
Ok = 0x00000400,
35
Save = 0x00000800,
36
SaveAll = 0x00001000,
37
Open = 0x00002000,
38
Yes = 0x00004000,
39
YesToAll = 0x00008000,
40
No = 0x00010000,
41
NoToAll = 0x00020000,
42
Abort = 0x00040000,
43
Retry = 0x00080000,
44
Ignore = 0x00100000,
45
Close = 0x00200000,
46
Cancel = 0x00400000,
47
Discard = 0x00800000,
48
Help = 0x01000000,
49
Apply = 0x02000000,
50
Reset = 0x04000000,
51
RestoreDefaults = 0x08000000,
52
53
FirstButton = Ok,
54
LastButton = RestoreDefaults
55
};
56
typedef
QFlags<StandardButton>
StandardButtons
;
57
59
explicit
CFxUIDialogButtonBox
(
CFxUIDialog
* parent );
60
62
~CFxUIDialogButtonBox
();
63
69
void
setStandardButtons
(
StandardButtons
buttons );
70
78
CFxUIPushButton
*
button
(
StandardButton
which )
const
;
79
83
CFxUISignal
<
void
(
void
)>&
accepted
();
84
88
CFxUISignal
<
void
(
CFxUIPushButton
*button)>&
clicked
();
89
93
CFxUISignal
<
void
(
void
)>&
helpRequest
();
94
98
CFxUISignal
<
void
(
void
)>&
rejected
();
99
100
//...
101
};
COMMONUI_API
#define COMMONUI_API
Definition:
FxCommonFramework.h:20
FxUIBaseView.h
FxUIDialog.h
FxUIPushButton.h
CFxUIBaseView
Definition:
FxUIBaseView.h:30
CFxUIDialogButtonBox
Definition:
FxUIDialogButtonBox.h:27
CFxUIDialogButtonBox::setStandardButtons
void setStandardButtons(StandardButtons buttons)
CFxUIDialogButtonBox::clicked
CFxUISignal< void(CFxUIPushButton *button)> & clicked()
CFxUIDialogButtonBox::button
CFxUIPushButton * button(StandardButton which) const
CFxUIDialogButtonBox::StandardButton
StandardButton
Definition:
FxUIDialogButtonBox.h:32
CFxUIDialogButtonBox::~CFxUIDialogButtonBox
~CFxUIDialogButtonBox()
CFxUIDialogButtonBox::accepted
CFxUISignal< void(void)> & accepted()
CFxUIDialogButtonBox::CFxUIDialogButtonBox
CFxUIDialogButtonBox(CFxUIDialog *parent)
CFxUIDialogButtonBox::rejected
CFxUISignal< void(void)> & rejected()
CFxUIDialogButtonBox::StandardButtons
QFlags< StandardButton > StandardButtons
Definition:
FxUIDialogButtonBox.h:56
CFxUIDialogButtonBox::helpRequest
CFxUISignal< void(void)> & helpRequest()
CFxUIDialog
Definition:
FxUIDialog.h:30
CFxUIPushButton
Definition:
FxUIPushButton.h:30
CFxUISignal
Definition:
FxUISignal.h:74
void
typedef void(APIENTRYP PFNGLACTIVETEXTUREPROC)(GLenum texture)
Generated on Thu Feb 24 2022 15:09:31