Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterTerminal.h
1#ifndef CPARAMETERTERMINALAPPEARANCE_H
2#define CPARAMETERTERMINALAPPEARANCE_H
3
4#include "ParameterConnecter.h"
5#include "qtermwidget.h"
6#include <QFont>
7#include "terminal_export.h"
8
9class TERMINAL_EXPORT CParameterTerminal : public CParameterConnecter
10{
11 Q_OBJECT
12
13public:
15
16 virtual int Load(QSettings &set) override;
17 virtual int Save(QSettings &set) override;
18
19 const QFont &GetFont() const;
20 void SetFont(const QFont &newFont);
21 bool GetSizeHint() const;
22 void SetSizeHint(bool newSizeHint);
23 const QString &GetColorScheme() const;
24 void SetColorScheme(const QString &newColorScheme);
25 Konsole::Emulation::KeyboardCursorShape GetCursorShape() const;
26 void SetCursorShape(Konsole::Emulation::KeyboardCursorShape newCursorShape);
27 QTermWidget::ScrollBarPosition GetScrollBarPosition() const;
28 void SetScrollBarPosition(QTermWidget::ScrollBarPosition newScrollBarPosition);
29 int GetTransparency() const;
30 void SetTransparency(int newTermTransparency);
31 const QString &GetBackgroupImage() const;
32 void SetBackgroupImage(const QString &newBackgroupImage);
33 bool GetFlowControl() const;
34 void SetFlowControl(bool newFlowControl);
35 bool GetFlowControlWarning() const;
36 void SetFlowControlWarning(bool newFlowControlWarning);
37 bool GetMotionAfterPasting() const;
38 void SetMotionAfterPasting(bool newMotionAfterPasting);
39 bool GetDisableBracketedPasteMode() const;
40 void SetDisableBracketedPasteMode(bool newDisableBracketedPasteMode);
41 bool GetDirectional() const;
42 void SetDirectional(bool newBiDirectional);
43 const QString &GetKeyBindings() const;
44 void SetKeyBindings(const QString &newSzKeyBindings);
45 const QString &GetTextCodec() const;
46 void SetTextCodec(const QString &newTextCodec);
47 int GetHistorySize() const;
48 void SetHistorySize(int newHistorySize);
49
50private:
51 QFont m_Font;
52 bool m_bSizeHint; // show size when windows resize
53 QString m_szColorScheme;
54 Konsole::Emulation::KeyboardCursorShape m_CursorShape;
55 QTermWidget::ScrollBarPosition m_ScrollBarPosition;
56 int m_nTransparency;
57 QString m_BackgroupImage;
58
59 bool m_bFlowControl;
60 bool m_bFlowControlWarning;
61
62 bool m_bMotionAfterPasting;
63 bool m_bDisableBracketedPasteMode;
64 bool m_bDirectional;
65 QString m_szKeyBindings;
66 QString m_szTextCodec;
67 int m_nHistorySize;
68};
69
70#endif // CPARAMETERTERMINALAPPEARANCE_H
the parameters of connecter interface.
virtual int Save(QString szFile=QString(), bool bForce=true)
Save to file.
Definition Parameter.cpp:44
virtual int Load(QString szFile=QString())
Load from file.
Definition Parameter.cpp:33