Just Wonder
5 years ago
7 changed files with 171 additions and 1 deletions
@ -0,0 +1,94 @@
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<ui version="4.0"> |
||||
<class>KevaNewNamespaceDialog</class> |
||||
<widget class="QDialog" name="KevaNewNamespaceDialog"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>0</x> |
||||
<y>0</y> |
||||
<width>400</width> |
||||
<height>100</height> |
||||
</rect> |
||||
</property> |
||||
<property name="windowTitle"> |
||||
<string notr="true">Create New Namespace</string> |
||||
</property> |
||||
<layout class="QVBoxLayout" name="verticalLayout_2"> |
||||
<item> |
||||
<layout class="QGridLayout" name="gridLayout"> |
||||
<item row="2" column="0"> |
||||
<widget class="QLabel" name="label_2"> |
||||
<property name="toolTip"> |
||||
<string>The name of the namespace.</string> |
||||
</property> |
||||
<property name="text"> |
||||
<string>Name:</string> |
||||
</property> |
||||
<property name="alignment"> |
||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
||||
</property> |
||||
<property name="buddy"> |
||||
<cstring>namespaceText</cstring> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
<item row="2" column="2"> |
||||
<widget class="QLineEdit" name="namespaceText"> |
||||
<property name="toolTip"> |
||||
<string>This pane allows the creation of a new Keva namespace</string> |
||||
</property> |
||||
<property name="readOnly"> |
||||
<bool>false</bool> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
</layout> |
||||
</item> |
||||
<item> |
||||
<widget class="QDialogButtonBox" name="buttonBox"> |
||||
<property name="orientation"> |
||||
<enum>Qt::Horizontal</enum> |
||||
</property> |
||||
<property name="standardButtons"> |
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Save</set> |
||||
</property> |
||||
</widget> |
||||
</item> |
||||
</layout> |
||||
</widget> |
||||
<resources/> |
||||
<connections> |
||||
<connection> |
||||
<sender>buttonBox</sender> |
||||
<signal>accepted()</signal> |
||||
<receiver>KevaNewNamespaceDialog</receiver> |
||||
<slot>accept()</slot> |
||||
<hints> |
||||
<hint type="sourcelabel"> |
||||
<x>20</x> |
||||
<y>20</y> |
||||
</hint> |
||||
<hint type="destinationlabel"> |
||||
<x>20</x> |
||||
<y>20</y> |
||||
</hint> |
||||
</hints> |
||||
</connection> |
||||
<connection> |
||||
<sender>buttonBox</sender> |
||||
<signal>rejected()</signal> |
||||
<receiver>KevaNewNamespaceDialog</receiver> |
||||
<slot>reject()</slot> |
||||
<hints> |
||||
<hint type="sourcelabel"> |
||||
<x>20</x> |
||||
<y>20</y> |
||||
</hint> |
||||
<hint type="destinationlabel"> |
||||
<x>20</x> |
||||
<y>20</y> |
||||
</hint> |
||||
</hints> |
||||
</connection> |
||||
</connections> |
||||
</ui> |
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
// Copyright (c) 2011-2017 The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <qt/kevanewnamespacedialog.h> |
||||
#include <qt/forms/ui_kevanewnamespacedialog.h> |
||||
|
||||
#include <qt/kevatablemodel.h> |
||||
|
||||
#include <QModelIndex> |
||||
|
||||
KevaNewNamespaceDialog::KevaNewNamespaceDialog(QWidget *parent) : |
||||
QDialog(parent), |
||||
ui(new Ui::KevaNewNamespaceDialog) |
||||
{ |
||||
ui->setupUi(this); |
||||
} |
||||
|
||||
void KevaNewNamespaceDialog::accept() |
||||
{ |
||||
// Create the namespace here.
|
||||
QDialog::accept(); |
||||
} |
||||
|
||||
KevaNewNamespaceDialog::~KevaNewNamespaceDialog() |
||||
{ |
||||
delete ui; |
||||
} |
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
// Copyright (c) 2011-2014 The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#ifndef BITCOIN_QT_KEVANEWNMAESPACEDIALOG_H |
||||
#define BITCOIN_QT_KEVANEWNMAESPACEDIALOG_H |
||||
|
||||
#include <QObject> |
||||
#include <QString> |
||||
|
||||
#include <QDialog> |
||||
|
||||
namespace Ui { |
||||
class KevaNewNamespaceDialog; |
||||
} |
||||
|
||||
|
||||
/** Dialog showing namepsace creation. */ |
||||
class KevaNewNamespaceDialog : public QDialog |
||||
{ |
||||
Q_OBJECT |
||||
|
||||
public: |
||||
explicit KevaNewNamespaceDialog(QWidget *parent = 0); |
||||
~KevaNewNamespaceDialog(); |
||||
void accept(); |
||||
|
||||
private: |
||||
Ui::KevaNewNamespaceDialog *ui; |
||||
}; |
||||
|
||||
#endif // BITCOIN_QT_KEVANEWNMAESPACEDIALOG_H
|
Loading…
Reference in new issue