-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5629 Move activation widgets to new activation dialog
- Loading branch information
1 parent
125c5c4
commit 9b696b8
Showing
3 changed files
with
254 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>ActivationDialog</class> | ||
<widget class="QDialog" name="ActivationDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>564</width> | ||
<height>385</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Dialog</string> | ||
</property> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>30</x> | ||
<y>340</y> | ||
<width>521</width> | ||
<height>32</height> | ||
</rect> | ||
</property> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||
</property> | ||
</widget> | ||
<widget class="QTextEdit" name="m_pTextEditSerialKey"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>30</x> | ||
<y>244</y> | ||
<width>521</width> | ||
<height>70</height> | ||
</rect> | ||
</property> | ||
</widget> | ||
<widget class="QRadioButton" name="m_pRadioButtonActivate"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>30</x> | ||
<y>60</y> | ||
<width>520</width> | ||
<height>24</height> | ||
</rect> | ||
</property> | ||
<property name="font"> | ||
<font> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>&Account login</string> | ||
</property> | ||
<property name="checked"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
<widget class="QRadioButton" name="m_pRadioButtonSubscription"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>30</x> | ||
<y>214</y> | ||
<width>520</width> | ||
<height>24</height> | ||
</rect> | ||
</property> | ||
<property name="font"> | ||
<font> | ||
<weight>75</weight> | ||
<bold>true</bold> | ||
</font> | ||
</property> | ||
<property name="text"> | ||
<string>&Serial key</string> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="label_9"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>30</x> | ||
<y>20</y> | ||
<width>520</width> | ||
<height>18</height> | ||
</rect> | ||
</property> | ||
<property name="text"> | ||
<string>Enable your <a href="http://symless.com/pricing?source=gui">Synergy Pro</a> and Synergy Basic features.</string> | ||
</property> | ||
<property name="openExternalLinks"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
<widget class="QWidget" name="layoutWidget"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>30</x> | ||
<y>100</y> | ||
<width>285</width> | ||
<height>92</height> | ||
</rect> | ||
</property> | ||
<layout class="QFormLayout" name="formLayout_2"> | ||
<property name="fieldGrowthPolicy"> | ||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum> | ||
</property> | ||
<property name="horizontalSpacing"> | ||
<number>20</number> | ||
</property> | ||
<property name="verticalSpacing"> | ||
<number>10</number> | ||
</property> | ||
<item row="0" column="0"> | ||
<widget class="QLabel" name="m_pLabelEmail_2"> | ||
<property name="text"> | ||
<string>Email:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="0" column="1"> | ||
<widget class="QLineEdit" name="m_pLineEditEmail_2"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>200</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
<property name="echoMode"> | ||
<enum>QLineEdit::Normal</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="1"> | ||
<widget class="QLineEdit" name="m_pLineEditPassword_2"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="minimumSize"> | ||
<size> | ||
<width>200</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
<property name="echoMode"> | ||
<enum>QLineEdit::Password</enum> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="2" column="1"> | ||
<widget class="QLabel" name="label_4"> | ||
<property name="text"> | ||
<string><a href="https://symless.com/account/reset/?source=gui">Forgot password</a></string> | ||
</property> | ||
<property name="openExternalLinks"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item row="1" column="0"> | ||
<widget class="QLabel" name="label_3"> | ||
<property name="text"> | ||
<string>Password:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>ActivationDialog</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>ActivationDialog</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#include "ActivationDialog.h" | ||
#include "ui_ActivationDialog.h" | ||
|
||
ActivationDialog::ActivationDialog(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::ActivationDialog) | ||
{ | ||
ui->setupUi(this); | ||
} | ||
|
||
ActivationDialog::~ActivationDialog() | ||
{ | ||
delete ui; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef ACTIVATIONDIALOG_H | ||
#define ACTIVATIONDIALOG_H | ||
|
||
#include <QDialog> | ||
|
||
namespace Ui { | ||
class ActivationDialog; | ||
} | ||
|
||
class ActivationDialog : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit ActivationDialog(QWidget *parent = 0); | ||
~ActivationDialog(); | ||
|
||
private: | ||
Ui::ActivationDialog *ui; | ||
}; | ||
|
||
#endif // ACTIVATIONDIALOG_H |