-
-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathTerminalParameter.h
More file actions
57 lines (47 loc) · 1.41 KB
/
TerminalParameter.h
File metadata and controls
57 lines (47 loc) · 1.41 KB
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
#ifndef TERMINALPARAMETER_H
#define TERMINALPARAMETER_H
#include "ParameterTerminalBase.h"
class CTerminalParameter : public CParameterTerminalBase
{
Q_OBJECT
public:
explicit CTerminalParameter(CParameterOperate *parent = nullptr,
const QString& szPrefix = QString());
public:
[[nodiscard]] const QString GetShellName() const;
int SetShellName(const QString& name);
private:
QString m_szShellName;
public:
int SetShell(const QString& shell);
[[nodiscard]] const QString GetShell() const;
private:
QString m_szShell;
public:
int SetShellParameters(const QString& para);
[[nodiscard]] const QString GetShellParameters() const;
private:
QString m_szShellParameters;
public:
[[nodiscard]] const QString GetLasterDirectory() const;
int SetLasterDirectory(const QString& d);
private:
QString m_szLasterDirectory;
public:
[[nodiscard]] bool GetRestoreDirectory() const;
int SetRestoreDirectory(bool bEnable);
private:
bool m_bRestoreDirectory;
public:
[[nodiscard]] bool GetEnableTitleChanged() const;
void SetEnableTitleChanged(bool newTitleChanged);
private:
Q_SIGNALS:
void sigEnableTitleChanged(bool titleChanged);
private:
bool m_bTitleChanged;
protected:
virtual int OnLoad(QSettings &set) override;
virtual int OnSave(QSettings &set) override;
};
#endif // TERMINALPARAMETER_H