This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5629 Move activation widgets to new activation dialog

  • Loading branch information...
nlyan committed Sep 29, 2016
1 parent 663e3f5 commit 81ae0c211a25510734017cc4d56e2a6852a33cef
Showing with 254 additions and 0 deletions.
  1. +218 −0 src/gui/res/ActivationDialog.ui
  2. +14 −0 src/gui/src/ActivationDialog.cpp
  3. +22 −0 src/gui/src/ActivationDialog.h
@@ -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>&amp;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>&amp;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 &lt;a href=&quot;http://symless.com/pricing?source=gui&quot;&gt;Synergy Pro&lt;/a&gt; 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>&lt;a href=&quot;https://symless.com/account/reset/?source=gui&quot;&gt;Forgot password&lt;/a&gt;</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>
@@ -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;
+}
@@ -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

0 comments on commit 81ae0c2

Please sign in to comment.