src
paraview-5.12
Qt
Components
pqDialog.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3
// SPDX-License-Identifier: BSD-3-Clause
4
#ifndef pqDialog_h
5
#define pqDialog_h
6
7
#include "pqComponentsModule.h"
8
#include <QDialog>
9
25
class
PQCOMPONENTS_EXPORT
pqDialog
:
public
QDialog
26
{
27
Q_OBJECT
28
typedef
QDialog Superclass;
29
30
public
:
31
pqDialog
(QWidget* parent =
nullptr
, Qt::WindowFlags f = Qt::WindowFlags{});
32
~
pqDialog
()
override
;
33
37
void
setUndoLabel
(
const
QString& label) { this->UndoLabel = label; }
38
Q_SIGNALS:
43
void
beginUndo(
const
QString&);
44
49
void
endUndo();
50
51
public
:
52
void
accept()
override
;
53
54
void
done(
int
r)
override
;
55
56
protected
:
60
virtual
void
acceptInternal
() {}
61
65
virtual
void
doneInternal
(
int
/*r*/
) {}
66
67
QString
UndoLabel
;
68
};
69
70
#endif
pqDialog::UndoLabel
QString UndoLabel
Definition:
pqDialog.h:67
pqDialog
This is a QDialog subclass that is aware of the undo-redo sub-system.
Definition:
pqDialog.h:25
pqDialog::setUndoLabel
void setUndoLabel(const QString &label)
Set the label used for undo command.
Definition:
pqDialog.h:37
pqDialog::doneInternal
virtual void doneInternal(int)
Subclassess should override this instead of done().
Definition:
pqDialog.h:65
pqDialog::acceptInternal
virtual void acceptInternal()
Subclassess should override this instead of accept();.
Definition:
pqDialog.h:60
Generated by
1.8.17 on Wed Mar 27 2024