Add AddContactPanel
diff --git a/src/addcontactpanel.cpp b/src/addcontactpanel.cpp
new file mode 100644
index 0000000..aceac41
--- /dev/null
+++ b/src/addcontactpanel.cpp
@@ -0,0 +1,14 @@
+#include "addcontactpanel.h"
+#include "ui_addcontactpanel.h"
+
+AddContactPanel::AddContactPanel(QWidget *parent) :
+ QDialog(parent),
+ ui(new Ui::AddContactPanel)
+{
+ ui->setupUi(this);
+}
+
+AddContactPanel::~AddContactPanel()
+{
+ delete ui;
+}
diff --git a/src/addcontactpanel.h b/src/addcontactpanel.h
new file mode 100644
index 0000000..c640394
--- /dev/null
+++ b/src/addcontactpanel.h
@@ -0,0 +1,22 @@
+#ifndef ADDCONTACTPANEL_H
+#define ADDCONTACTPANEL_H
+
+#include <QDialog>
+
+namespace Ui {
+class AddContactPanel;
+}
+
+class AddContactPanel : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit AddContactPanel(QWidget *parent = 0);
+ ~AddContactPanel();
+
+private:
+ Ui::AddContactPanel *ui;
+};
+
+#endif // ADDCONTACTPANEL_H
diff --git a/src/addcontactpanel.ui b/src/addcontactpanel.ui
new file mode 100644
index 0000000..d2b0374
--- /dev/null
+++ b/src/addcontactpanel.ui
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>AddContactPanel</class>
+ <widget class="QDialog" name="AddContactPanel">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>400</width>
+ <height>500</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Add Contact</string>
+ </property>
+ <widget class="QWidget" name="">
+ <property name="geometry">
+ <rect>
+ <x>10</x>
+ <y>10</y>
+ <width>381</width>
+ <height>481</height>
+ </rect>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout" stretch="1,15,1">
+ <property name="spacing">
+ <number>10</number>
+ </property>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout" stretch="1,5,2">
+ <item>
+ <widget class="QLabel" name="label">
+ <property name="font">
+ <font>
+ <weight>75</weight>
+ <bold>true</bold>
+ </font>
+ </property>
+ <property name="text">
+ <string>Contact:</string>
+ </property>
+ <property name="textFormat">
+ <enum>Qt::AutoText</enum>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QLineEdit" name="lineEdit"/>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pushButton">
+ <property name="text">
+ <string>Search</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item>
+ <widget class="QTableView" name="tableView"/>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
+ <widget class="QPushButton" name="pushButton_2">
+ <property name="text">
+ <string>Cancel</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="pushButton_3">
+ <property name="text">
+ <string>Add</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>
diff --git a/src/contactpanel.ui b/src/contactpanel.ui
index 0b26479..f0ee709 100644
--- a/src/contactpanel.ui
+++ b/src/contactpanel.ui
@@ -22,7 +22,7 @@
<property name="windowTitle">
<string>Contacts</string>
</property>
- <widget class="QWidget" name="">
+ <widget class="QWidget" name="layoutWidget">
<property name="geometry">
<rect>
<x>11</x>
@@ -175,15 +175,78 @@
</layout>
</widget>
</widget>
- <widget class="QWidget" name="TrustLevel">
+ <widget class="QWidget" name="TrustScope">
<attribute name="title">
- <string>Trust Level</string>
+ <string>Trust Scope</string>
</attribute>
+ <widget class="QWidget" name="">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>10</y>
+ <width>351</width>
+ <height>371</height>
+ </rect>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QCheckBox" name="isIntroducer">
+ <property name="text">
+ <string>Set as introducer</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QListView" name="trustScopeList"/>
+ </item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout_4">
+ <item>
+ <widget class="QPushButton" name="addScope">
+ <property name="text">
+ <string>Add Scope</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="addScope_2">
+ <property name="text">
+ <string>Delete Scope</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ </layout>
+ </widget>
</widget>
<widget class="QWidget" name="Endorse">
<attribute name="title">
<string>Endorse</string>
</attribute>
+ <widget class="QTableView" name="endorseList">
+ <property name="geometry">
+ <rect>
+ <x>20</x>
+ <y>10</y>
+ <width>351</width>
+ <height>331</height>
+ </rect>
+ </property>
+ </widget>
+ <widget class="QPushButton" name="endorseButton">
+ <property name="geometry">
+ <rect>
+ <x>260</x>
+ <y>350</y>
+ <width>114</width>
+ <height>32</height>
+ </rect>
+ </property>
+ <property name="text">
+ <string>Endorse</string>
+ </property>
+ </widget>
</widget>
</widget>
</item>