-
Notifications
You must be signed in to change notification settings - Fork 0
/
DlgLiveCaptureSettings.h
89 lines (41 loc) · 1.45 KB
/
DlgLiveCaptureSettings.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// DlgLiveCaptureSettings.h
// Declares the DlgLiveCaptureSettings class representing the UI dialog to set settings for a live capture session
#ifndef DLGLIVESESSIONSETTINGS_H
#define DLGLIVESESSIONSETTINGS_H
#include <memory>
#include <QDialog>
#include "VgdbComm.h"
// fwd:
class QLineEdit;
class LiveCaptureSettings;
namespace Ui
{
class DlgLiveCaptureSettings;
}
class DlgLiveCaptureSettings:
public QDialog
{
typedef QDialog Super;
Q_OBJECT
public:
explicit DlgLiveCaptureSettings(QWidget * a_Parent = nullptr);
/** Shows the dialog, initialized to the specified settings.
If the user clicks "Capture", returns true and the settings are updated to match whatever the user entered.
If the user cancels the dialog, returns false.
a_RunningInstances is a vector containing the instances that the user can choose as the "existing process".
Returns only after the dialog is closed. */
bool show(
LiveCaptureSettings & a_Settings,
const std::vector<VgdbComm::InstanceDesc> & a_RunningInstances
);
private slots:
void bNewProcessExecutableBrowseClicked();
void bNewProcessStartFolderBrowseClicked();
void bSnapshotFolderBrowseClicked();
private:
std::shared_ptr<Ui::DlgLiveCaptureSettings> m_UI;
LiveCaptureSettings * m_Settings;
/** Displays the BrowseForFolder dialog and sets the selected folder into the specified edit box. */
void browseForFolder(QLineEdit * a_DstLineEdit);
};
#endif // DLGLIVESESSIONSETTINGS_H