Just Wonder
5 years ago
23 changed files with 695 additions and 333 deletions
@ -1,329 +1,361 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||||
<ui version="4.0"> |
<ui version="4.0"> |
||||||
<class>KevaDialog</class> |
<class>KevaDialog</class> |
||||||
<widget class="QWidget" name="KevaDialog"> |
<widget class="QWidget" name="KevaDialog"> |
||||||
<property name="geometry"> |
<property name="geometry"> |
||||||
<rect> |
<rect> |
||||||
<x>0</x> |
<x>0</x> |
||||||
<y>0</y> |
<y>0</y> |
||||||
<width>776</width> |
<width>776</width> |
||||||
<height>396</height> |
<height>396</height> |
||||||
</rect> |
</rect> |
||||||
</property> |
</property> |
||||||
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,1"> |
<layout class="QVBoxLayout" name="verticalLayout" stretch="0,0,1"> |
||||||
<item> |
|
||||||
<widget class="QFrame" name="frame2"> |
|
||||||
<property name="sizePolicy"> |
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
|
||||||
<horstretch>0</horstretch> |
|
||||||
<verstretch>0</verstretch> |
|
||||||
</sizepolicy> |
|
||||||
</property> |
|
||||||
<property name="frameShape"> |
|
||||||
<enum>QFrame::StyledPanel</enum> |
|
||||||
</property> |
|
||||||
<property name="frameShadow"> |
|
||||||
<enum>QFrame::Sunken</enum> |
|
||||||
</property> |
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_3"> |
|
||||||
<item> |
<item> |
||||||
<layout class="QGridLayout" name="gridLayout"> |
<widget class="QFrame" name="frame2"> |
||||||
<item row="4" column="2"> |
<property name="sizePolicy"> |
||||||
<widget class="QLineEdit" name="nameSpace"> |
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
||||||
<property name="toolTip"> |
|
||||||
<string>The namespace ID with a prefix "N".</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item row="2" column="2"> |
|
||||||
<widget class="QLabel" name="label_5"> |
|
||||||
<property name="text"> |
|
||||||
<string>Use this form to perform Keva database operations.</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item row="4" column="0"> |
|
||||||
<widget class="QLabel" name="label_2"> |
|
||||||
<property name="toolTip"> |
|
||||||
<string>The namespace ID with a prefix "N".</string> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string>Namespace:</string> |
|
||||||
</property> |
|
||||||
<property name="alignment"> |
|
||||||
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
|
||||||
</property> |
|
||||||
<property name="buddy"> |
|
||||||
<cstring>namespace</cstring> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item row="7" column="2"> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout"> |
|
||||||
<item> |
|
||||||
<widget class="QPushButton" name="showContent"> |
|
||||||
<property name="sizePolicy"> |
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
|
||||||
<horstretch>0</horstretch> |
|
||||||
<verstretch>0</verstretch> |
|
||||||
</sizepolicy> |
|
||||||
</property> |
|
||||||
<property name="toolTip"> |
|
||||||
<string>Show content of the namespace.</string> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string>Show</string> |
|
||||||
</property> |
|
||||||
<property name="icon"> |
|
||||||
<iconset resource="../bitcoin.qrc"> |
|
||||||
<normaloff>:/icons/eye</normaloff>:/icons/eye</iconset> |
|
||||||
</property> |
|
||||||
<property name="autoDefault"> |
|
||||||
<bool>false</bool> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QPushButton" name="createNamespace"> |
|
||||||
<property name="sizePolicy"> |
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
|
||||||
<horstretch>0</horstretch> |
|
||||||
<verstretch>0</verstretch> |
|
||||||
</sizepolicy> |
|
||||||
</property> |
|
||||||
<property name="toolTip"> |
|
||||||
<string>Create a new namespace</string> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string>&Create namespace</string> |
|
||||||
</property> |
|
||||||
<property name="icon"> |
|
||||||
<iconset resource="../bitcoin.qrc"> |
|
||||||
<normaloff>:/icons/add</normaloff>:/icons/add</iconset> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QPushButton" name="listNamespaces"> |
|
||||||
<property name="sizePolicy"> |
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
|
||||||
<horstretch>0</horstretch> |
<horstretch>0</horstretch> |
||||||
<verstretch>0</verstretch> |
<verstretch>0</verstretch> |
||||||
</sizepolicy> |
</sizepolicy> |
||||||
</property> |
|
||||||
<property name="toolTip"> |
|
||||||
<string>List my namespaces</string> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string>&My Namespaces</string> |
|
||||||
</property> |
|
||||||
<property name="icon"> |
|
||||||
<iconset resource="../bitcoin.qrc"> |
|
||||||
<normaloff>:/icons/editpaste</normaloff>:/icons/editpaste</iconset> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QPushButton" name="bookmarksButton"> |
|
||||||
<property name="sizePolicy"> |
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
|
||||||
<horstretch>0</horstretch> |
|
||||||
<verstretch>0</verstretch> |
|
||||||
</sizepolicy> |
|
||||||
</property> |
|
||||||
<property name="toolTip"> |
|
||||||
<string>Show bookmarks</string> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string>&Bookmarks</string> |
|
||||||
</property> |
|
||||||
<property name="icon"> |
|
||||||
<iconset resource="../bitcoin.qrc"> |
|
||||||
<normaloff>:/icons/address-book</normaloff>:/icons/address-book</iconset> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
<item row="7" column="0"> |
|
||||||
<widget class="QLabel" name="label_7"> |
|
||||||
<property name="text"> |
|
||||||
<string/> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<spacer name="verticalSpacer_2"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Vertical</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>20</width> |
|
||||||
<height>10</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QFrame" name="frame"> |
|
||||||
<property name="sizePolicy"> |
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
|
||||||
<horstretch>0</horstretch> |
|
||||||
<verstretch>0</verstretch> |
|
||||||
</sizepolicy> |
|
||||||
</property> |
|
||||||
<property name="frameShape"> |
|
||||||
<enum>QFrame::StyledPanel</enum> |
|
||||||
</property> |
|
||||||
<property name="frameShadow"> |
|
||||||
<enum>QFrame::Raised</enum> |
|
||||||
</property> |
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_2"> |
|
||||||
<item> |
|
||||||
<widget class="QLabel" name="label_6"> |
|
||||||
<property name="font"> |
|
||||||
<font> |
|
||||||
<weight>75</weight> |
|
||||||
<bold>true</bold> |
|
||||||
</font> |
|
||||||
</property> |
|
||||||
<property name="text"> |
|
||||||
<string>Content of namespace</string> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<widget class="QTableView" name="kevaView"> |
|
||||||
<property name="contextMenuPolicy"> |
|
||||||
<enum>Qt::CustomContextMenu</enum> |
|
||||||
</property> |
|
||||||
<property name="tabKeyNavigation"> |
|
||||||
<bool>false</bool> |
|
||||||
</property> |
|
||||||
<property name="sortingEnabled"> |
|
||||||
<bool>true</bool> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
<item> |
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
||||||
<item> |
|
||||||
<widget class="QPushButton" name="showValueButton"> |
|
||||||
<property name="enabled"> |
|
||||||
<bool>false</bool> |
|
||||||
</property> |
</property> |
||||||
<property name="toolTip"> |
<property name="frameShape"> |
||||||
<string>Show the selected request (does the same as double clicking an entry)</string> |
<enum>QFrame::StyledPanel</enum> |
||||||
</property> |
</property> |
||||||
<property name="text"> |
<property name="frameShadow"> |
||||||
<string>Show</string> |
<enum>QFrame::Sunken</enum> |
||||||
</property> |
</property> |
||||||
<property name="icon"> |
<layout class="QVBoxLayout" name="verticalLayout_3"> |
||||||
<iconset resource="../bitcoin.qrc"> |
<item> |
||||||
<normaloff>:/icons/edit</normaloff>:/icons/edit</iconset> |
<layout class="QGridLayout" name="gridLayout"> |
||||||
</property> |
<item row="4" column="2"> |
||||||
<property name="autoDefault"> |
<layout class="QHBoxLayout" name="nsHLayout"> |
||||||
<bool>false</bool> |
<item> |
||||||
</property> |
<widget class="QLineEdit" name="nameSpace"> |
||||||
</widget> |
<property name="toolTip"> |
||||||
</item> |
<string>The namespace ID with a prefix "N".</string> |
||||||
<item> |
</property> |
||||||
<widget class="QPushButton" name="removeButton"> |
<property name="maximumWidth"> |
||||||
<property name="enabled"> |
<number>600</number> |
||||||
<bool>false</bool> |
</property> |
||||||
</property> |
</widget> |
||||||
<property name="toolTip"> |
</item> |
||||||
<string>Remove the selected entries from the list</string> |
<item> |
||||||
</property> |
<widget class="QPushButton" name="bookmarkNamespace"> |
||||||
<property name="text"> |
<property name="toolTip"> |
||||||
<string>Remove</string> |
<string>Bookmark this namespace</string> |
||||||
</property> |
</property> |
||||||
<property name="icon"> |
<property name="icon"> |
||||||
<iconset resource="../bitcoin.qrc"> |
<iconset resource="../bitcoin.qrc"> |
||||||
<normaloff>:/icons/remove</normaloff>:/icons/remove</iconset> |
<normaloff>:/icons/star_empty</normaloff>:/icons/star_empty |
||||||
</property> |
</iconset> |
||||||
<property name="autoDefault"> |
</property> |
||||||
<bool>false</bool> |
</widget> |
||||||
</property> |
</item> |
||||||
</widget> |
<item> |
||||||
</item> |
<spacer name="horizontalBookmarkSpacer"> |
||||||
<item> |
<property name="orientation"> |
||||||
<widget class="QPushButton" name="addKVButton"> |
<enum>Qt::Horizontal</enum> |
||||||
<property name="enabled"> |
</property> |
||||||
<bool>false</bool> |
<property name="sizePolicy"> |
||||||
</property> |
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
||||||
<property name="toolTip"> |
<horstretch>0</horstretch> |
||||||
<string>Add new key-value pair</string> |
<verstretch>0</verstretch> |
||||||
</property> |
</sizepolicy> |
||||||
<property name="text"> |
</property> |
||||||
<string>Add key-value</string> |
</spacer> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
<item row="2" column="2"> |
||||||
|
<widget class="QLabel" name="label_5"> |
||||||
|
<property name="text"> |
||||||
|
<string>Use this form to perform Keva database operations.</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item row="4" column="0"> |
||||||
|
<widget class="QLabel" name="label_2"> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>The namespace ID with a prefix "N".</string> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Namespace:</string> |
||||||
|
</property> |
||||||
|
<property name="alignment"> |
||||||
|
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> |
||||||
|
</property> |
||||||
|
<property name="buddy"> |
||||||
|
<cstring>namespace</cstring> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item row="7" column="2"> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout"> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="showContent"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>Show content of the namespace.</string> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Show</string> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="../bitcoin.qrc"> |
||||||
|
<normaloff>:/icons/eye</normaloff>:/icons/eye</iconset> |
||||||
|
</property> |
||||||
|
<property name="autoDefault"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="createNamespace"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>Create a new namespace</string> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>&Create namespace</string> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="../bitcoin.qrc"> |
||||||
|
<normaloff>:/icons/add</normaloff>:/icons/add</iconset> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="listNamespaces"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>List my namespaces</string> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>&My Namespaces</string> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="../bitcoin.qrc"> |
||||||
|
<normaloff>:/icons/editpaste</normaloff>:/icons/editpaste</iconset> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="bookmarksButton"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
|
</property> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>Show bookmarks</string> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>&Bookmarks</string> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="../bitcoin.qrc"> |
||||||
|
<normaloff>:/icons/address-book</normaloff>:/icons/address-book</iconset> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<spacer name="horizontalSpacer"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Horizontal</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeHint" stdset="0"> |
||||||
|
<size> |
||||||
|
<width>40</width> |
||||||
|
<height>20</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
</spacer> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
<item row="7" column="0"> |
||||||
|
<widget class="QLabel" name="label_7"> |
||||||
|
<property name="text"> |
||||||
|
<string/> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<spacer name="verticalSpacer_2"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Vertical</enum> |
||||||
</property> |
</property> |
||||||
<property name="icon"> |
<property name="sizeHint" stdset="0"> |
||||||
<iconset resource="../bitcoin.qrc"> |
<size> |
||||||
<normaloff>:/icons/add</normaloff>:/icons/add</iconset> |
<width>20</width> |
||||||
|
<height>10</height> |
||||||
|
</size> |
||||||
</property> |
</property> |
||||||
<property name="autoDefault"> |
</spacer> |
||||||
<bool>false</bool> |
</item> |
||||||
|
<item> |
||||||
|
<widget class="QFrame" name="frame"> |
||||||
|
<property name="sizePolicy"> |
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding"> |
||||||
|
<horstretch>0</horstretch> |
||||||
|
<verstretch>0</verstretch> |
||||||
|
</sizepolicy> |
||||||
</property> |
</property> |
||||||
</widget> |
<property name="frameShape"> |
||||||
</item> |
<enum>QFrame::StyledPanel</enum> |
||||||
<item> |
|
||||||
<spacer name="horizontalSpacer_2"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
</property> |
||||||
<property name="sizeHint" stdset="0"> |
<property name="frameShadow"> |
||||||
<size> |
<enum>QFrame::Raised</enum> |
||||||
<width>40</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
</property> |
||||||
</spacer> |
<layout class="QVBoxLayout" name="verticalLayout_2"> |
||||||
</item> |
<item> |
||||||
</layout> |
<widget class="QLabel" name="label_6"> |
||||||
|
<property name="font"> |
||||||
|
<font> |
||||||
|
<weight>75</weight> |
||||||
|
<bold>true</bold> |
||||||
|
</font> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Content of namespace</string> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QTableView" name="kevaView"> |
||||||
|
<property name="contextMenuPolicy"> |
||||||
|
<enum>Qt::CustomContextMenu</enum> |
||||||
|
</property> |
||||||
|
<property name="tabKeyNavigation"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
<property name="sortingEnabled"> |
||||||
|
<bool>true</bool> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout_2"> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="showValueButton"> |
||||||
|
<property name="enabled"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>Show the selected request (does the same as double clicking an entry)</string> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Show</string> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="../bitcoin.qrc"> |
||||||
|
<normaloff>:/icons/edit</normaloff>:/icons/edit</iconset> |
||||||
|
</property> |
||||||
|
<property name="autoDefault"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="removeButton"> |
||||||
|
<property name="enabled"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>Remove the selected entries from the list</string> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Remove</string> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="../bitcoin.qrc"> |
||||||
|
<normaloff>:/icons/remove</normaloff>:/icons/remove</iconset> |
||||||
|
</property> |
||||||
|
<property name="autoDefault"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<widget class="QPushButton" name="addKVButton"> |
||||||
|
<property name="enabled"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>Add new key-value pair</string> |
||||||
|
</property> |
||||||
|
<property name="text"> |
||||||
|
<string>Add key-value</string> |
||||||
|
</property> |
||||||
|
<property name="icon"> |
||||||
|
<iconset resource="../bitcoin.qrc"> |
||||||
|
<normaloff>:/icons/add</normaloff>:/icons/add</iconset> |
||||||
|
</property> |
||||||
|
<property name="autoDefault"> |
||||||
|
<bool>false</bool> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item> |
||||||
|
<spacer name="horizontalSpacer_2"> |
||||||
|
<property name="orientation"> |
||||||
|
<enum>Qt::Horizontal</enum> |
||||||
|
</property> |
||||||
|
<property name="sizeHint" stdset="0"> |
||||||
|
<size> |
||||||
|
<width>40</width> |
||||||
|
<height>20</height> |
||||||
|
</size> |
||||||
|
</property> |
||||||
|
</spacer> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</item> |
||||||
|
</layout> |
||||||
|
</widget> |
||||||
</item> |
</item> |
||||||
</layout> |
</layout> |
||||||
</widget> |
</widget> |
||||||
</item> |
<customwidgets> |
||||||
</layout> |
<customwidget> |
||||||
</widget> |
<class>BitcoinAmountField</class> |
||||||
<customwidgets> |
<extends>QLineEdit</extends> |
||||||
<customwidget> |
<header>qt/bitcoinamountfield.h</header> |
||||||
<class>BitcoinAmountField</class> |
<container>1</container> |
||||||
<extends>QLineEdit</extends> |
</customwidget> |
||||||
<header>qt/bitcoinamountfield.h</header> |
</customwidgets> |
||||||
<container>1</container> |
<tabstops> |
||||||
</customwidget> |
<tabstop>reqMessage</tabstop> |
||||||
</customwidgets> |
<tabstop>receiveButton</tabstop> |
||||||
<tabstops> |
<tabstop>clearButton</tabstop> |
||||||
<tabstop>reqMessage</tabstop> |
<tabstop>recentRequestsView</tabstop> |
||||||
<tabstop>receiveButton</tabstop> |
<tabstop>showValueButton</tabstop> |
||||||
<tabstop>clearButton</tabstop> |
<tabstop>removeButton</tabstop> |
||||||
<tabstop>recentRequestsView</tabstop> |
</tabstops> |
||||||
<tabstop>showValueButton</tabstop> |
<resources> |
||||||
<tabstop>removeButton</tabstop> |
<include location="../bitcoin.qrc"/> |
||||||
</tabstops> |
</resources> |
||||||
<resources> |
<connections/> |
||||||
<include location="../bitcoin.qrc"/> |
|
||||||
</resources> |
|
||||||
<connections/> |
|
||||||
</ui> |
</ui> |
||||||
|
@ -0,0 +1,60 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<ui version="4.0"> |
||||||
|
<class>KevaEditBookmarkDialog</class> |
||||||
|
<widget class="QDialog" name="KevaEditBookmarkDialog"> |
||||||
|
<property name="geometry"> |
||||||
|
<rect> |
||||||
|
<x>0</x> |
||||||
|
<y>0</y> |
||||||
|
<width>400</width> |
||||||
|
<height>100</height> |
||||||
|
</rect> |
||||||
|
</property> |
||||||
|
<property name="windowTitle"> |
||||||
|
<string notr="true">Bookmark Name</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>Bookmark name.</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>bookmarkName</cstring> |
||||||
|
</property> |
||||||
|
</widget> |
||||||
|
</item> |
||||||
|
<item row="2" column="2"> |
||||||
|
<widget class="QLineEdit" name="bookmarkName"> |
||||||
|
<property name="toolTip"> |
||||||
|
<string>This pane allows change of bookmark name</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/> |
||||||
|
</ui> |
@ -0,0 +1,53 @@ |
|||||||
|
// 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/kevaeditbookmarkdialog.h> |
||||||
|
#include <qt/forms/ui_kevaeditbookmarkdialog.h> |
||||||
|
#include <qt/kevabookmarksdialog.h> |
||||||
|
|
||||||
|
#include <qt/kevatablemodel.h> |
||||||
|
#include <qt/kevadialog.h> |
||||||
|
|
||||||
|
#include <QPushButton> |
||||||
|
#include <QModelIndex> |
||||||
|
|
||||||
|
KevaEditBookmarkDialog::KevaEditBookmarkDialog(QWidget *parent, const QString& id, const QString& name) : |
||||||
|
QDialog(parent), id(id), name(name), |
||||||
|
ui(new Ui::KevaEditBookmarkDialog) |
||||||
|
{ |
||||||
|
ui->setupUi(this); |
||||||
|
ui->bookmarkName->setText(name); |
||||||
|
this->parentDialog = (KevaBookmarksDialog*)parent; |
||||||
|
|
||||||
|
connect(ui->buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT(close())); |
||||||
|
connect(ui->buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()), this, SLOT(save())); |
||||||
|
connect(ui->bookmarkName, SIGNAL(textChanged(const QString &)), this, SLOT(onNameChanged(const QString &))); |
||||||
|
ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(false); |
||||||
|
} |
||||||
|
|
||||||
|
void KevaEditBookmarkDialog::onNameChanged(const QString & name) |
||||||
|
{ |
||||||
|
int length = name.length(); |
||||||
|
bool enabled = length > 0; |
||||||
|
ui->buttonBox->button(QDialogButtonBox::Save)->setEnabled(enabled); |
||||||
|
this->name = name; |
||||||
|
} |
||||||
|
|
||||||
|
void KevaEditBookmarkDialog::save() |
||||||
|
{ |
||||||
|
KevaDialog* dialog = (KevaDialog*)this->parentWidget(); |
||||||
|
QString bookmarkText = ui->bookmarkName->text(); |
||||||
|
this->parentDialog->saveName(id, name); |
||||||
|
QDialog::close(); |
||||||
|
} |
||||||
|
|
||||||
|
void KevaEditBookmarkDialog::close() |
||||||
|
{ |
||||||
|
QDialog::close(); |
||||||
|
} |
||||||
|
|
||||||
|
KevaEditBookmarkDialog::~KevaEditBookmarkDialog() |
||||||
|
{ |
||||||
|
delete ui; |
||||||
|
} |
@ -0,0 +1,41 @@ |
|||||||
|
// 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_KEVAEDITBOOKMARKDIALOG_H |
||||||
|
#define BITCOIN_QT_KEVAEDITBOOKMARKDIALOG_H |
||||||
|
|
||||||
|
#include <QObject> |
||||||
|
#include <QString> |
||||||
|
|
||||||
|
#include <QDialog> |
||||||
|
|
||||||
|
namespace Ui { |
||||||
|
class KevaEditBookmarkDialog; |
||||||
|
} |
||||||
|
|
||||||
|
class KevaBookmarksDialog; |
||||||
|
|
||||||
|
|
||||||
|
/** Dialog showing namepsace creation. */ |
||||||
|
class KevaEditBookmarkDialog : public QDialog |
||||||
|
{ |
||||||
|
Q_OBJECT |
||||||
|
|
||||||
|
public: |
||||||
|
explicit KevaEditBookmarkDialog(QWidget *parent, const QString& id, const QString& name); |
||||||
|
~KevaEditBookmarkDialog(); |
||||||
|
|
||||||
|
public Q_SLOTS: |
||||||
|
void save(); |
||||||
|
void close(); |
||||||
|
void onNameChanged(const QString & ns); |
||||||
|
|
||||||
|
private: |
||||||
|
Ui::KevaEditBookmarkDialog *ui; |
||||||
|
QString id; |
||||||
|
QString name; |
||||||
|
KevaBookmarksDialog* parentDialog; |
||||||
|
}; |
||||||
|
|
||||||
|
#endif // BITCOIN_QT_KEVAEDITBOOKMARKDIALOG_H
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 63 KiB After Width: | Height: | Size: 38 KiB |
Loading…
Reference in new issue