+ m_advSettingsBtn = new QPushButton(tr("Advanced"), this);
+ m_selectRemoteBtn = new QPushButton(tr("Select remote"), this);
+ m_aboutBtn = new QPushButton(tr("About"), this);
+ m_rateUpBtn = new QPushButton(
+ QIcon(settings.value("symbolPath",
+ "/usr/share/irwi/symbols/").
+ toString() + "symbol_thumbs_up.png"),
+ "", this);
+ m_rateDownBtn = new QPushButton(
+ QIcon(settings.value("symbolPath",
+ "/usr/share/irwi/symbols/").
+ toString() + "symbol_thumbs_down.png"),
+ "", this);
+ m_rateUpBtn->setMaximumSize(72, 72);
+ m_rateDownBtn->setMaximumSize(72, 72);
+
+ m_btnLayout->addWidget(m_advSettingsBtn);
+ m_btnLayout->addWidget(m_selectRemoteBtn);
+ m_btnLayout->addWidget(m_aboutBtn);
+
+ m_remoteNameLabel = new QLabel(this);
+ m_ratingLabel = new QLabel(this);
+ m_remoteNameLayout->addWidget(m_remoteNameLabel);
+ m_remoteNameLayout->addWidget(m_ratingLabel);
+ m_remoteNameLayout->addWidget(m_rateUpBtn);
+ m_remoteNameLayout->addWidget(m_rateDownBtn);
+
+ connect(m_advSettingsBtn, SIGNAL(clicked()),
+ this, SLOT(showAdvSettingsDlg()));
+ connect(m_selectRemoteBtn, SIGNAL(clicked()),
+ this, SLOT(showSelectRemoteDlg()));
+ connect(m_aboutBtn, SIGNAL(clicked()),
+ this, SLOT(showAboutDlg()));
+ connect(m_rateUpBtn, SIGNAL(clicked()),
+ this, SLOT(rateUpClicked()));
+ connect(m_rateDownBtn, SIGNAL(clicked()),
+ this, SLOT(rateDownClicked()));
+
+ m_layout->addLayout(m_remoteNameLayout);
+ m_layout->addLayout(m_btnLayout);
+ this->setLayout(m_layout);
+
+ QString remoteName = settings.value("remoteName", "").toString();
+ if (remoteName == "") {
+ m_remoteNameLabel->setText(tr("No remote selected"));
+ } else {
+ // Create remote by name and update it's info if online
+ m_remote = Remote(remoteName);
+ connect(&m_remote, SIGNAL(infoUpdated()),
+ this, SLOT(updateRemoteInfo()));
+ m_remoteNameLabel->setText(settings.value("remoteMfg", "").toString()
+ + " " + remoteName);