MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / CDlgSetFreeRDP

Method CDlgSetFreeRDP

Plugins/FreeRDP/Client/DlgSetFreeRDP.cpp:29–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static Q_LOGGING_CATEGORY(log, "FreeRDP.Parameter.Dlg")
28
29CDlgSetFreeRDP::CDlgSetFreeRDP(CParameterFreeRDP *pSettings, QWidget *parent) :
30 QDialog(parent)
31 , ui(new Ui::CDlgSetFreeRDP)
32 , m_pSettings(pSettings)
33 , m_pFileModel(nullptr)
34 , m_pProxyUI(nullptr)
35 , m_pRecordUI(nullptr)
36 , m_pButtonGroup(nullptr)
37{
38 setAttribute(Qt::WA_DeleteOnClose);
39 ui->setupUi(this);
40
41 ui->leName->setText(m_pSettings->GetName());
42
43 // Server
44 ui->leDomain->setText(m_pSettings->GetDomain());
45 ui->wNet->SetParameter(&m_pSettings->m_Net);
46
47 ui->cbOnlyView->setChecked(m_pSettings->GetOnlyView());
48 ui->cbClipboard->setChecked(m_pSettings->GetClipboard());
49 ui->cbShowServerName->setChecked(m_pSettings->GetShowServerName());
50
51 m_pProxyUI = new CParameterProxyUI(ui->tabWidget);
52 m_pProxyUI->SetParameter(&m_pSettings->m_Proxy);
53 InsertView(m_pProxyUI, 1);
54
55 m_pRecordUI = new CParameterRecordUI(ui->tabWidget);
56 m_pRecordUI->SetParameter(&m_pSettings->m_Record);
57 QList<QWidget *> ws;
58 ws << m_pRecordUI;
59 AddViewers(ws);
60
61 // Display
62 // It has to be the first. GetScreenGeometry depends on it
63 ui->cbAllMonitor->setChecked(m_pSettings->GetUseMultimon());
64 UpdateDesktopSize();
65 int width = GetScreenGeometry().width();
66 int height = GetScreenGeometry().height();
67 QString curSize = QString::number(width) + "×" + QString::number(height);
68 UINT32 desktopWidth = 0, desktopHeight = 0;
69 desktopWidth = m_pSettings->GetDesktopWidth();
70 desktopHeight = m_pSettings->GetDesktopHeight();
71 if(width == desktopWidth && height == desktopHeight)
72 {
73 ui->rbLocalScreen->setChecked(true);
74 ui->cbDesktopSize->setCurrentText(curSize);
75 } else {
76 ui->rbSelect->setChecked(true);
77 curSize = QString::number(desktopWidth)
78 + "×" + QString::number(desktopHeight);
79 ui->cbDesktopSize->setCurrentText(curSize);
80 }
81
82 ui->cbColorDepth->addItem(tr("8 bits"), 8);
83 ui->cbColorDepth->addItem(tr("16 bits"), 16);
84 ui->cbColorDepth->addItem(tr("24 bits"), 24);
85 ui->cbColorDepth->addItem(tr("32 bits"), 32);
86 int nIndex = ui->cbColorDepth->findData(

Callers

nothing calls this directly

Calls 15

setupUiMethod · 0.80
GetOnlyViewMethod · 0.80
GetClipboardMethod · 0.80
GetShowServerNameMethod · 0.80
GetUseMultimonMethod · 0.80
GetDesktopWidthMethod · 0.80
GetDesktopHeightMethod · 0.80
addItemMethod · 0.80
GetColorDepthMethod · 0.80
GetReconnectIntervalMethod · 0.80
GetRedirectionPrinterMethod · 0.80
GetRedirectionSoundMethod · 0.80

Tested by

no test coverage detected