Permalink
Browse files

blockchain comment

  • Loading branch information...
cqtenq9@gmail.com
cqtenq9@gmail.com committed Jul 1, 2016
1 parent 9b4ffd0 commit 482589d8ae4e764e12e85775dde46abb701dac6c
View
@@ -84,6 +84,7 @@ QT_FORMS_UI = \
qt/forms/intro.ui \
qt/forms/openuridialog.ui \
qt/forms/optionsdialog.ui \
qt/forms/commentdialog.ui \
qt/forms/overviewpage.ui \
qt/forms/receivecoinsdialog.ui \
qt/forms/receiverequestdialog.ui \
@@ -212,6 +213,7 @@ BITCOIN_QT_H = \
RES_ICONS = \
qt/res/icons/add.png \
qt/res/icons/toolbar.png \
qt/res/icons/address-book.png \
qt/res/icons/about.png \
qt/res/icons/about_qt.png \
View
@@ -20,6 +20,9 @@ static const CAmount CENT = 1000000;
static const CAmount MAX_MONEY = 21000000 * 16 * COIN;
inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
/** Dust Hard Limit, ignored as wallet inputs (mininput default) */
static const int64_t DUST_HARD_LIMIT = CENT;
/** Type-safe wrapper class to for fee rates
* (how much to pay based on transaction size)
*/
View
@@ -1,5 +1,6 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/icons">
<file alias="comment">res/icons/toolbar.png</file>
<file alias="bitcoin">res/icons/bitcoin.png</file>
<file alias="address-book">res/icons/address-book.png</file>
<file alias="quit">res/icons/quit.png</file>
View
@@ -342,6 +342,9 @@ void BitcoinGUI::createActions()
unlockWalletAction->setToolTip(tr("Unlock wallet"));
unlockWalletAction->setCheckable(true);
inertBlockChainAction = new QAction(QIcon(":/icons/comment"), tr("&Comments"), this);
inertBlockChainAction->setStatusTip(tr("Insert your comments into blockchain"));
openRPCConsoleAction = new QAction(TextColorIcon(":/icons/debugwindow"), tr("&Debug window"), this);
openRPCConsoleAction->setStatusTip(tr("Open debugging and diagnostic console"));
@@ -379,6 +382,8 @@ void BitcoinGUI::createActions()
connect(usedSendingAddressesAction, SIGNAL(triggered()), walletFrame, SLOT(usedSendingAddresses()));
connect(usedReceivingAddressesAction, SIGNAL(triggered()), walletFrame, SLOT(usedReceivingAddresses()));
connect(openAction, SIGNAL(triggered()), this, SLOT(openClicked()));
connect(inertBlockChainAction, SIGNAL(triggered()), walletFrame, SLOT(inertBlockChain()));
}
#endif // ENABLE_WALLET
}
@@ -394,13 +399,14 @@ void BitcoinGUI::createMenuBar()
#endif
// Configure the menus
QMenu *file = appMenuBar->addMenu(tr("&File"));
QMenu *file = appMenuBar->addMenu(tr("&Wallet"));
if(walletFrame)
{
file->addAction(openAction);
file->addAction(backupWalletAction);
file->addAction(signMessageAction);
file->addAction(verifyMessageAction);
file->addSeparator();
file->addAction(encryptWalletAction);
file->addAction(changePassphraseAction);
file->addSeparator();
file->addAction(usedSendingAddressesAction);
file->addAction(usedReceivingAddressesAction);
@@ -411,20 +417,20 @@ void BitcoinGUI::createMenuBar()
}
file->addAction(quitAction);
QMenu *settings = appMenuBar->addMenu(tr("&Settings"));
QMenu *settings = appMenuBar->addMenu(tr("&Advanced"));
if(walletFrame)
{
settings->addAction(encryptWalletAction);
settings->addAction(changePassphraseAction);
settings->addAction(signMessageAction);
settings->addAction(verifyMessageAction);
settings->addSeparator();
settings->addAction(inertBlockChainAction);
settings->addSeparator();
settings->addAction(openRPCConsoleAction);
settings->addSeparator();
}
settings->addAction(optionsAction);
QMenu *help = appMenuBar->addMenu(tr("&Help"));
if(walletFrame)
{
help->addAction(openRPCConsoleAction);
}
help->addAction(showHelpMessageAction);
help->addSeparator();
help->addAction(aboutAction);
@@ -528,6 +534,7 @@ void BitcoinGUI::setWalletActionsEnabled(bool enabled)
usedSendingAddressesAction->setEnabled(enabled);
usedReceivingAddressesAction->setEnabled(enabled);
openAction->setEnabled(enabled);
inertBlockChainAction->setEnabled(enabled);
}
void BitcoinGUI::createTrayIcon(const NetworkStyle *networkStyle)
View
@@ -130,6 +130,7 @@ class BitcoinGUI : public QMainWindow
QAction *lockWalletAction;
QAction *unlockWalletAction;
QAction *inertBlockChainAction;
QSystemTrayIcon *trayIcon;
QMenu *trayIconMenu;
@@ -0,0 +1,129 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CommentDialog</class>
<widget class="QDialog" name="CommentDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>556</width>
<height>208</height>
</rect>
</property>
<property name="windowTitle">
<string>Insert your comments into our blockchain</string>
</property>
<widget class="QPushButton" name="insertButton">
<property name="geometry">
<rect>
<x>170</x>
<y>140</y>
<width>171</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Insert into BlockChain</string>
</property>
<property name="icon">
<iconset resource="../bitcoin.qrc">
<normaloff>:/icons/add</normaloff>:/icons/add</iconset>
</property>
</widget>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="geometry">
<rect>
<x>610</x>
<y>415</y>
<width>81</width>
<height>26</height>
</rect>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::NoButton</set>
</property>
<property name="centerButtons">
<bool>true</bool>
</property>
</widget>
<widget class="QLineEdit" name="addrEdit">
<property name="geometry">
<rect>
<x>82</x>
<y>25</y>
<width>451</width>
<height>20</height>
</rect>
</property>
<property name="toolTip">
<string>Recipient address</string>
</property>
<property name="statusTip">
<string>Recipient address</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>27</x>
<y>29</y>
<width>54</width>
<height>12</height>
</rect>
</property>
<property name="text">
<string>Pay to:</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>27</x>
<y>75</y>
<width>54</width>
<height>12</height>
</rect>
</property>
<property name="text">
<string>Comments</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>440</x>
<y>140</y>
<width>81</width>
<height>31</height>
</rect>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16177186</height>
</size>
</property>
<property name="text">
<string>Exit</string>
</property>
<property name="icon">
<iconset resource="../bitcoin.qrc">
<normaloff>:/icons/quit</normaloff>:/icons/quit</iconset>
</property>
</widget>
<widget class="QLineEdit" name="txtComment">
<property name="geometry">
<rect>
<x>80</x>
<y>70</y>
<width>451</width>
<height>20</height>
</rect>
</property>
</widget>
</widget>
<resources>
<include location="../bitcoin.qrc"/>
</resources>
<connections/>
</ui>
@@ -221,7 +221,7 @@
</message>
</context>
<context>
<name>FeathercoinGUI</name>
<name>BitcoinGUI</name>
<message>
<source>Sign &amp;message...</source>
<translation>消息签名(&amp;M)...</translation>
@@ -382,6 +382,34 @@
<source>&amp;Help</source>
<translation>帮助(&amp;H)</translation>
</message>
<message>
<source>&amp;Wallet</source>
<translation>钱包</translation>
</message>
<message>
<source>&amp;Advanced</source>
<translation>高级</translation>
</message>
<message>
<source>&amp;Plugins</source>
<translation>插件</translation>
</message>
<message>
<source>Insert your comments into blockchain</source>
<translation>向区块链内写入留言</translation>
</message>
<message>
<source>&amp;Comments</source>
<translation>留言</translation>
</message>
<message>
<source>&amp;Lock wallet</source>
<translation>锁定钱包</translation>
</message>
<message>
<source>Unlo&amp;ck wallet</source>
<translation>解锁钱包</translation>
</message>
<message>
<source>Tabs toolbar</source>
<translation>分页工具栏</translation>
@@ -841,6 +869,57 @@
<translation>无法在此创建数据目录。</translation>
</message>
</context>
<context>
<name>CommentDialog</name>
<message>
<source>Insert your comments into our blockchain</source>
<translation>向区块链插入你的留言</translation>
</message>
<message>
<source>Pay to:</source>
<translation>付款给:</translation>
</message>
<message>
<source>Comments</source>
<translation>请留言</translation>
</message>
<message>
<source>Insert into BlockChain</source>
<translation>插入区块链</translation>
</message>
<message>
<source>Exit</source>
<translation>退出</translation>
</message>
<message>
<source>The comment length can not be above 35 charset !</source>
<translation>留言文字长度不能超过35个字符!</translation>
</message>
<message>
<source>Are you sure you want to send?</source>
<translation>你同意发出吗?</translation>
</message>
<message>
<source>Insert into blockchain ,Yes!!!</source>
<translation>写入块链完成!</translation>
</message>
<message>
<source>Wallet Message</source>
<translation>钱包信息</translation>
</message>
<message>
<source>Wallet WARNING</source>
<translation>钱包警告</translation>
</message>
<message>
<source>Send Coins Failed:</source>
<translation>发送羽毛币失败:</translation>
</message>
<message>
<source>Send Coins</source>
<translation>发送羽毛币</translation>
</message>
</context>
<context>
<name>HelpMessageDialog</name>
<message>
@@ -2779,7 +2858,7 @@
</message>
</context>
<context>
<name>feathercoin-core</name>
<name>bitcoin-core</name>
<message>
<source>Options:</source>
<translation>选项:
@@ -3211,8 +3290,8 @@ rpcpassword=%s
<translation>信息</translation>
</message>
<message>
<source>Initialization sanity check failed. Feathercoin Core is shutting down.</source>
<translation>初始化完整性检查失败。Feathercoin Core 即将关闭。</translation>
<source>Initialization sanity check failed. Bitcoin Core is shutting down.</source>
<translation>初始化完整性检查失败。Bitcoin Core 即将关闭。</translation>
</message>
<message>
<source>Invalid amount for -maxtxfee=&lt;amount&gt;: '%s'</source>
@@ -3344,7 +3423,7 @@ rpcpassword=%s
<translation>JSON-RPC 连接用户名</translation>
</message>
<message>
<source>Wallet needed to be rewritten: restart Feathercoin Core to complete</source>
<source>Wallet needed to be rewritten: restart Bitcoin Core to complete</source>
<translation>钱包需要被改写:重新启动核心钱包来完成</translation>
</message>
<message>
View
BIN +53 KB (170%) src/qt/res/icons/Thumbs.db
Binary file not shown.
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit 482589d

Please sign in to comment.