-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpqRecordEventsDialog.h
53 lines (40 loc) · 1.38 KB
/
pqRecordEventsDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
// SPDX-License-Identifier: BSD-3-Clause
#ifndef _pqRecordEventsDialog_h
#define _pqRecordEventsDialog_h
#include "QtTestingExport.h"
#include <QDialog>
class pqEventRecorder;
class pqTestUtility;
/// Provides a standard dialog that will record user input to an XML file as long as the dialog
/// remains open
class QTTESTING_EXPORT pqRecordEventsDialog : public QDialog
{
Q_OBJECT
public:
/**
Creates the dialog and begins translating user input with the supplied translator.
*/
pqRecordEventsDialog(pqEventRecorder* recorder, pqTestUtility* testUtility, QWidget* Parent);
private Q_SLOTS:
void done(int) override;
void onEventRecorded(const QString&, const QString&, const QString&, int eventType);
void addComment();
/**
* Called when dashboard mode is toggled.
* Call setDashboardMode on the test utility
* and record a dashboard mode toggle event on the main window
*/
void onDashboardModeToggled(bool toggle);
public Q_SLOTS:
void updateUi();
private:
pqRecordEventsDialog(const pqRecordEventsDialog&);
pqRecordEventsDialog& operator=(const pqRecordEventsDialog&);
~pqRecordEventsDialog() override;
void ignoreObject(QObject* object);
struct pqImplementation;
pqImplementation* const Implementation;
};
#endif // !_pqRecordEventsDialog_h