Skip to content

0.14 pacglobalui #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
408 changes: 68 additions & 340 deletions src/Makefile.qt.include

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/qt/addressbookpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ AddressBookPage::AddressBookPage(const PlatformStyle *platformStyle, Mode _mode,
ui->deleteAddress->setIcon(QIcon());
ui->exportButton->setIcon(QIcon());
} else {
ui->newAddress->setIcon(QIcon(":/icons/" + theme + "/add"));
ui->copyAddress->setIcon(QIcon(":/icons/" + theme + "/editcopy"));
ui->deleteAddress->setIcon(QIcon(":/icons/" + theme + "/remove"));
ui->exportButton->setIcon(QIcon(":/icons/" + theme + "/export"));
ui->newAddress->setIcon(QIcon(":/icons/add"));
ui->copyAddress->setIcon(QIcon(":/icons/editcopy"));
ui->deleteAddress->setIcon(QIcon(":/icons/remove"));
ui->exportButton->setIcon(QIcon(":/icons/export"));
}
ui->showAddressQRCode->setIcon(QIcon());

Expand Down
162 changes: 92 additions & 70 deletions src/qt/bitcoingui.cpp

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/qt/bitcoingui.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <QMenu>
#include <QPoint>
#include <QPushButton>
#include <QToolButton>
#include <QSystemTrayIcon>

#ifdef Q_OS_MAC
Expand Down Expand Up @@ -138,6 +139,12 @@ class BitcoinGUI : public QMainWindow
HelpMessageDialog *helpMessageDialog;
ModalOverlay *modalOverlay;

QFrame *headerFrame;
QPushButton *btnImg;
QToolButton *btnRefresh;
QToolButton *btnCopyNews;
QLabel *messageLabel;

#ifdef Q_OS_MAC
CAppNapInhibitor* m_app_nap_inhibitor = nullptr;
#endif
Expand Down
6 changes: 3 additions & 3 deletions src/qt/coincontroldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ void CoinControlDialog::buttonToggleLockClicked()
else{
model->lockCoin(outpt);
item->setDisabled(true);
item->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/" + theme + "/lock_closed"));
item->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed"));
}
updateLabelLocked();
}
Expand Down Expand Up @@ -320,7 +320,7 @@ void CoinControlDialog::lockCoin()
COutPoint outpt(uint256S(contextMenuItem->text(COLUMN_TXHASH).toStdString()), contextMenuItem->text(COLUMN_VOUT_INDEX).toUInt());
model->lockCoin(outpt);
contextMenuItem->setDisabled(true);
contextMenuItem->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/" + theme + "/lock_closed"));
contextMenuItem->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed"));
updateLabelLocked();
}

Expand Down Expand Up @@ -787,7 +787,7 @@ void CoinControlDialog::updateView()
COutPoint outpt(txhash, out.i);
coinControl->UnSelect(outpt); // just to be sure
itemOutput->setDisabled(true);
itemOutput->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/" + theme + "/lock_closed"));
itemOutput->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed"));
}

// set checkbox
Expand Down
426 changes: 65 additions & 361 deletions src/qt/dash.qrc

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions src/qt/forms/optionsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -726,27 +726,6 @@ https://www.transifex.com/projects/p/dash/</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4_Display" stretch="0,0">
<item>
<widget class="QLabel" name="themeLabel">
<property name="text">
<string>User Interface Theme:</string>
</property>
</widget>
</item>
<item>
<widget class="QValueComboBox" name="theme"/>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2_Display">
<item>
Expand Down
2 changes: 1 addition & 1 deletion src/qt/forms/sendcoinsentry.ui
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
<item row="3" column="1">
<widget class="QLabel" name="messageTextLabel">
<property name="toolTip">
<string>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</string>
<string>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</string>
</property>
<property name="textFormat">
<enum>Qt::PlainText</enum>
Expand Down
15 changes: 2 additions & 13 deletions src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void setupAmountWidget(QLineEdit *widget, QWidget *parent)

bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out)
{
// return if URI is not valid or is no dash: URI
// return if URI is not valid or is no pac: URI
if(!uri.isValid() || uri.scheme() != QString("dash"))
return false;

Expand Down Expand Up @@ -922,18 +922,7 @@ QString getThemeName()
QString loadStyleSheet()
{
QString styleSheet;
QSettings settings;
QString cssName;
QString theme = settings.value("theme", "").toString();

if(!theme.isEmpty()){
cssName = QString(":/css/") + theme;
}
else {
cssName = QString(":/css/light");
settings.setValue("theme", "light");
}

QString cssName = QString(":/css/standard");
QFile qFile(cssName);
if (qFile.open(QFile::ReadOnly)) {
styleSheet = QLatin1String(qFile.readAll());
Expand Down
4 changes: 2 additions & 2 deletions src/qt/locale/dash_ar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
<translation>فتح URI</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<source>Open a pac: URI or payment request</source>
<translation>افتح شرطة: عنوان أوري أو طلب الدفع</translation>
</message>
<message>
Expand Down Expand Up @@ -2960,7 +2960,7 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>الرسائل</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>رسالة تم إرفاقها بخط العطف: عنوان الذي سيتم تخزينه مع المعاملة كمرجع لك. ملاحظة: لن يتم إرسال هذه الرسالة عبر شبكة داش.</translation>
</message>
<message>
Expand Down
6 changes: 3 additions & 3 deletions src/qt/locale/dash_bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
<translation>Отвори &amp;URI...</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<source>Open a pac: URI or payment request</source>
<translation>Отвори PACGlobal: URI или заявка за плащане</translation>
</message>
<message>
Expand Down Expand Up @@ -2988,8 +2988,8 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>Съобщение:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Съобщението което беше прикрепено към dash: URI ще бъде запазено с транзакцията за ваше сведение. Забележка: Това съобщение няма да бъде изпратено през PACGlobal мрежата.</translation>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Съобщението което беше прикрепено към pac: URI ще бъде запазено с транзакцията за ваше сведение. Забележка: Това съобщение няма да бъде изпратено през PACGlobal мрежата.</translation>
</message>
<message>
<source>This is an unauthenticated payment request.</source>
Expand Down
4 changes: 2 additions & 2 deletions src/qt/locale/dash_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
<translation>&amp;URI öffnen...</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<source>Open a pac: URI or payment request</source>
<translation>Eine "dash:"-URI oder Zahlungsanforderung öffnen</translation>
</message>
<message>
Expand Down Expand Up @@ -2990,7 +2990,7 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>Nachricht:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Eine an die "dash:"-URI angefügte Nachricht, die zusammen mit der Transaktion gespeichert wird. Hinweis: Diese Nachricht wird nicht über das PACGlobal-Netzwerk gesendet.</translation>
</message>
<message>
Expand Down
8 changes: 4 additions & 4 deletions src/qt/locale/dash_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,8 @@
</message>
<message>
<location line="+1"/>
<source>Open a dash: URI or payment request</source>
<translation>Open a dash: URI or payment request</translation>
<source>Open a pac: URI or payment request</source>
<translation>Open a pac: URI or payment request</translation>
</message>
<message>
<location line="+2"/>
Expand Down Expand Up @@ -3868,8 +3868,8 @@ https://www.transifex.com/projects/p/dash/</translation>
</message>
<message>
<location line="+10"/>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</translation>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</translation>
</message>
<message>
<location line="+433"/>
Expand Down
6 changes: 3 additions & 3 deletions src/qt/locale/dash_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@
<translation>Abrir &amp;URI...</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<translation>Abrir un dash: URI o petición de pago</translation>
<source>Open a pac: URI or payment request</source>
<translation>Abrir un pac: URI o petición de pago</translation>
</message>
<message>
<source>&amp;Command-line options</source>
Expand Down Expand Up @@ -2988,7 +2988,7 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>Mensaje:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Un mensaje que se adjuntó al PACGlobal: URI que será almacenada con la transacción para su referencia. Nota: Este mensaje no se enviará a través de la red PACGlobal.</translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/qt/locale/dash_fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
<translation>Avaa &amp;URI...</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<source>Open a pac: URI or payment request</source>
<translation>Avaa PACGlobal: URI tai maksupyyntö</translation>
</message>
<message>
Expand Down Expand Up @@ -2992,7 +2992,7 @@ Näillä toiminnoilla voit korjata korruptoituneen lohkoketjun tai puuttuvat/van
<translation>Viesti:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Viesti joka liitettiin PACGlobal: URI joka tallenetaan siirtotapahtuman kanssa viitteeksi sinulle. Huomio: Tätä viestiä ei lähetetä PACGlobal verkkoon.</translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/qt/locale/dash_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
<translation>Ouvrir une &amp;URI...</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<source>Open a pac: URI or payment request</source>
<translation>Ouvrir une URI ou demande de paiement PACGlobal</translation>
</message>
<message>
Expand Down Expand Up @@ -2988,7 +2988,7 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>Message :</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Un message joint à l'URI PACGlobal qui sera sauvegardé avec la transaction pour référence. Note : ce message ne sera pas envoyé à travers le réseau PACGlobal.</translation>
</message>
<message>
Expand Down
6 changes: 3 additions & 3 deletions src/qt/locale/dash_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@
<translation>Apri &amp;URI...</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<translation>Apri un dash: URI o una richiesta di pagamento</translation>
<source>Open a pac: URI or payment request</source>
<translation>Apri un pac: URI o una richiesta di pagamento</translation>
</message>
<message>
<source>&amp;Command-line options</source>
Expand Down Expand Up @@ -2988,7 +2988,7 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>Messaggio:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Un messaggio allegato con l'URI dash che verrà memorizzato nella transazione per il tuo referente. Nota: questo messaggio non verrà inviato attraverso il network PACGlobal.</translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/qt/locale/dash_ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
<translation>URIを開く… (&amp;U)</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<source>Open a pac: URI or payment request</source>
<translation>dash: URIまたは送金リクエストを開く</translation>
</message>
<message>
Expand Down Expand Up @@ -2961,7 +2961,7 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>メッセージ:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>PACGlobal: URIに添付されていたメッセージです。これは参照用としてトランザクションとともに保存されます。注意:このメッセージはPACGlobalネットワークを経由して送信されるわけではありません。</translation>
</message>
<message>
Expand Down
4 changes: 2 additions & 2 deletions src/qt/locale/dash_ko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
<translation>URI 열기(&amp;U)...</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<source>Open a pac: URI or payment request</source>
<translation>PACGlobal: URI 또는 지불 요청을 엽니다.</translation>
</message>
<message>
Expand Down Expand Up @@ -2960,7 +2960,7 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>메시지:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>대시: URI에 첨부된 메시지는 거래와 함께 참고용으로 저장됩니다. 주의: 이 메시지는 대시 네트워크로 전송되지 않습니다.</translation>
</message>
<message>
Expand Down
8 changes: 4 additions & 4 deletions src/qt/locale/dash_nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@
<translation>Open &amp;URI</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<translation>Open een dash: URI of betalingsaanvraag</translation>
<source>Open a pac: URI or payment request</source>
<translation>Open een pac: URI of betalingsaanvraag</translation>
</message>
<message>
<source>&amp;Command-line options</source>
Expand Down Expand Up @@ -2994,8 +2994,8 @@ Nota: Het bericht zal niet verzonden worden met de betaling over het PACGlobal n
<translation>Bericht:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Een boodschap die was bijgevoegd aan de dash: URI die met de transactie voor uw referentie wordt opgeslagen. Opmerking: Dit bericht zal niet over het PACGlobal netwerk worden verzonden.</translation>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Een boodschap die was bijgevoegd aan de pac: URI die met de transactie voor uw referentie wordt opgeslagen. Opmerking: Dit bericht zal niet over het PACGlobal netwerk worden verzonden.</translation>
</message>
<message>
<source>This is an unauthenticated payment request.</source>
Expand Down
4 changes: 2 additions & 2 deletions src/qt/locale/dash_pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@
<translation>Otwórz &amp;URI...</translation>
</message>
<message>
<source>Open a dash: URI or payment request</source>
<source>Open a pac: URI or payment request</source>
<translation>Otwórz dash: Link lub żądanie zapłaty</translation>
</message>
<message>
Expand Down Expand Up @@ -2988,7 +2988,7 @@ https://www.transifex.com/projects/p/dash/</translation>
<translation>Wiadomość:</translation>
</message>
<message>
<source>A message that was attached to the dash: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<source>A message that was attached to the pac: URI which will be stored with the transaction for your reference. Note: This message will not be sent over the PACGlobal network.</source>
<translation>Wiadomość, która została dołączona do dash: Link, który zostanie zapisany wraz z transakcją do wglądu w przyszłości. Zauważ, że sama wiadomość nie zostanie wysłana przez sieć PACGlobal.</translation>
</message>
<message>
Expand Down
Loading