This repository has been archived by the owner. It is now read-only.
Permalink
Please sign in to comment.
Showing
with
156 additions
and 7 deletions.
- +6 −3 src/gui/gui.pro
- +108 −0 src/gui/res/FailedLoginDialog.ui
- +3 −3 src/gui/src/ActivationDialog.cpp
- +15 −0 src/gui/src/FailedLoginDialog.cpp
- +23 −0 src/gui/src/FailedLoginDialog.h
- +1 −1 src/gui/src/WebClient.cpp
| @@ -0,0 +1,108 @@ | ||
| +<?xml version="1.0" encoding="UTF-8"?> | ||
| +<ui version="4.0"> | ||
| + <class>FailedLoginDialog</class> | ||
| + <widget class="QDialog" name="FailedLoginDialog"> | ||
| + <property name="geometry"> | ||
| + <rect> | ||
| + <x>0</x> | ||
| + <y>0</y> | ||
| + <width>400</width> | ||
| + <height>165</height> | ||
| + </rect> | ||
| + </property> | ||
| + <property name="windowTitle"> | ||
| + <string>Activation Error</string> | ||
| + </property> | ||
| + <widget class="QDialogButtonBox" name="buttonBox"> | ||
| + <property name="geometry"> | ||
| + <rect> | ||
| + <x>50</x> | ||
| + <y>120</y> | ||
| + <width>341</width> | ||
| + <height>32</height> | ||
| + </rect> | ||
| + </property> | ||
| + <property name="orientation"> | ||
| + <enum>Qt::Horizontal</enum> | ||
| + </property> | ||
| + <property name="standardButtons"> | ||
| + <set>QDialogButtonBox::Close</set> | ||
| + </property> | ||
| + </widget> | ||
| + <widget class="QLabel" name="label_2"> | ||
| + <property name="geometry"> | ||
| + <rect> | ||
| + <x>10</x> | ||
| + <y>90</y> | ||
| + <width>382</width> | ||
| + <height>30</height> | ||
| + </rect> | ||
| + </property> | ||
| + <property name="text"> | ||
| + <string><html><head/><body><p><a href="https://symless.com/account/reset/?source=gui"><span style=" text-decoration: underline; color:#0000ff;">Forgotten your password?</span></a></p></body></html></string> | ||
| + </property> | ||
| + <property name="openExternalLinks"> | ||
| + <bool>true</bool> | ||
| + </property> | ||
| + </widget> | ||
| + <widget class="QLabel" name="messageLabel"> | ||
| + <property name="geometry"> | ||
| + <rect> | ||
| + <x>10</x> | ||
| + <y>10</y> | ||
| + <width>382</width> | ||
| + <height>72</height> | ||
| + </rect> | ||
| + </property> | ||
| + <property name="text"> | ||
| + <string>An error occurred while trying to activate Synergy. The Symless server returned the following error: | ||
| + | ||
| +%1</string> | ||
| + </property> | ||
| + <property name="wordWrap"> | ||
| + <bool>true</bool> | ||
| + </property> | ||
| + <property name="openExternalLinks"> | ||
| + <bool>true</bool> | ||
| + </property> | ||
| + </widget> | ||
| + <zorder>label_2</zorder> | ||
| + <zorder>messageLabel</zorder> | ||
| + <zorder>buttonBox</zorder> | ||
| + </widget> | ||
| + <resources/> | ||
| + <connections> | ||
| + <connection> | ||
| + <sender>buttonBox</sender> | ||
| + <signal>accepted()</signal> | ||
| + <receiver>FailedLoginDialog</receiver> | ||
| + <slot>accept()</slot> | ||
| + <hints> | ||
| + <hint type="sourcelabel"> | ||
| + <x>248</x> | ||
| + <y>254</y> | ||
| + </hint> | ||
| + <hint type="destinationlabel"> | ||
| + <x>157</x> | ||
| + <y>274</y> | ||
| + </hint> | ||
| + </hints> | ||
| + </connection> | ||
| + <connection> | ||
| + <sender>buttonBox</sender> | ||
| + <signal>rejected()</signal> | ||
| + <receiver>FailedLoginDialog</receiver> | ||
| + <slot>reject()</slot> | ||
| + <hints> | ||
| + <hint type="sourcelabel"> | ||
| + <x>316</x> | ||
| + <y>260</y> | ||
| + </hint> | ||
| + <hint type="destinationlabel"> | ||
| + <x>286</x> | ||
| + <y>274</y> | ||
| + </hint> | ||
| + </hints> | ||
| + </connection> | ||
| + </connections> | ||
| +</ui> |
| @@ -0,0 +1,15 @@ | ||
| +#include "FailedLoginDialog.h" | ||
| +#include "ui_FailedLoginDialog.h" | ||
| + | ||
| +FailedLoginDialog::FailedLoginDialog(QWidget *parent, QString message): | ||
| + QDialog(parent), | ||
| + ui(new Ui::FailedLoginDialog) | ||
| +{ | ||
| + ui->setupUi(this); | ||
| + ui->messageLabel->setText(ui->messageLabel->text().arg(message)); | ||
| +} | ||
| + | ||
| +FailedLoginDialog::~FailedLoginDialog() | ||
| +{ | ||
| + delete ui; | ||
| +} |
| @@ -0,0 +1,23 @@ | ||
| +#ifndef FAILEDLOGINDIALOG_H | ||
| +#define FAILEDLOGINDIALOG_H | ||
| + | ||
| +#include <QDialog> | ||
| +#include <QString> | ||
| + | ||
| +namespace Ui { | ||
| +class FailedLoginDialog; | ||
| +} | ||
| + | ||
| +class FailedLoginDialog : public QDialog | ||
| +{ | ||
| + Q_OBJECT | ||
| + | ||
| +public: | ||
| + explicit FailedLoginDialog(QWidget *parent = 0, QString message = ""); | ||
| + ~FailedLoginDialog(); | ||
| + | ||
| +private: | ||
| + Ui::FailedLoginDialog *ui; | ||
| +}; | ||
| + | ||
| +#endif // FAILEDLOGINDIALOG_H |
0 comments on commit
d6bcdcb