MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / StController

Method StController

src/render_panel/ui/st_controller.cpp:36–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34{
35
36 StController::StController(const std::shared_ptr<GrApplication>& app, QWidget* parent) : TabBase(app, parent){
37 settings_ = GrSettings::Instance();
38 auto root_layout = new NoMarginHLayout();
39 auto column1_layout = new NoMarginVLayout();
40 root_layout->addLayout(column1_layout);
41
42 auto column2_layout = new NoMarginVLayout();
43 root_layout->addSpacing(10);
44 root_layout->addLayout(column2_layout);
45
46 root_layout->addStretch();
47
48 // segment encoder
49 auto tips_label_width = 300;
50 auto tips_label_height = 35;
51 auto tips_label_size = QSize(tips_label_width, tips_label_height);
52 auto input_size = QSize(280, tips_label_height);
53
54 // 通用设置
55 {
56 auto segment_layout = new NoMarginVLayout();
57 {
58 // title
59 auto label = new TcLabel(this);
60 label->SetTextId("id_general_settings");
61 label->setStyleSheet("font-size: 16px; font-weight: 700;");
62 segment_layout->addSpacing(0);
63 segment_layout->addWidget(label);
64 }
65
66 {
67 auto layout = new NoMarginHLayout();
68 auto label = new TcLabel(this);
69 label->SetTextId("id_start_max_window");
70 label->setFixedSize(tips_label_size);
71 label->setStyleSheet("font-size: 14px; font-weight: 500;");
72 layout->addWidget(label);
73
74 auto edit = new QCheckBox(this);
75 edit->setChecked(settings_->IsMaxWindowEnabled());
76 layout->addWidget(edit);
77 connect(edit, &QCheckBox::checkStateChanged, this, [=, this](Qt::CheckState state) {
78 if (state == Qt::CheckState::Checked) {
79 settings_->SetShowingMaxWindow(true);
80 }
81 else {
82 settings_->SetShowingMaxWindow(false);
83 }
84 });
85
86 layout->addStretch();
87 segment_layout->addSpacing(10);
88 segment_layout->addLayout(layout);
89 }
90
91 {
92 auto layout = new NoMarginHLayout();
93 auto label = new TcLabel(this);

Callers

nothing calls this directly

Calls 12

IsMaxWindowEnabledMethod · 0.80
SetShowingMaxWindowMethod · 0.80
SetDisplayClientLogoMethod · 0.80
SetColorfulTitleBarMethod · 0.80
GetMaxNumOfScreenMethod · 0.80
SetMaxNumOfScreenMethod · 0.80
GetPreferDecoderMethod · 0.80
SetPreferDecoderMethod · 0.80

Tested by

no test coverage detected