Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [Dev] Documenting Feathercoin Specific Software settings - Part 4

    Technical Development
    1
    24
    5691
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • wrapper
      wrapper Moderators last edited by

      Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

      fix coinname in QT-UI - commit

      https://github.com/FeatherCoin/Feathercoin/commit/5084b46f8af4911cec46d6a3d20aba81a15f2c22

      src/qt/forms/signverifymessagedialog.ui

      Name changes. Use translations?

       +        <string>Sign the message to prove you own this Feathercoin address</string>
      
       +        <string>Verify the message to ensure it was signed with the specified Feathercoin address</string>
      

      Code replaced

      1 Reply Last reply Reply Quote 0
      • wrapper
        wrapper Moderators last edited by wrapper

        Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

        Add the Shapeshift API interface : - commit

        https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

        src/qt/Makefile.am

         +  forms/shiftdialog.ui \
        
         +  moc_shiftdialog.cpp \
        
         +  shiftdialog.h \
        
         +  shiftdialog.cpp \
        

        Makefile updates. extra Shapeshift files

        1 Reply Last reply Reply Quote 0
        • wrapper
          wrapper Moderators last edited by wrapper

          Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

          Add the Shapeshift API interface : - commit

          https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

          src/qt/bitcoingui.cpp

           +    bitmessageAction = new QAction(QIcon(":/icons/bitmessage"), tr("B&itmessage..."), this);
          
           +    bitmessageAction->setStatusTip(tr("Start Bitmessage from feathercoin wallet"));
          

          Replaced messages

           +     	
           +     shapeshiftAction = new QAction(QIcon(":/icons/shapeshift"), tr("Shapeshift..."), this);
           +     shapeshiftAction->setStatusTip(tr("Exchange other coins whit your feathercoin on Shapeshift"));
           +     shapeshiftAction->setShortcut(QKeySequence(Qt::ALT      +  Qt::Key_8));
          
           +        connect(shapeshiftAction, SIGNAL(triggered()), this, SLOT(openShapeshiftClicked()));        
          

          Additional code

           -        advanced->addAction(merchantListAction);
                     advanced->addSeparator();
           -        advanced->addAction(bitmessageAction);
          

          Code removed

           +         advanced->addAction(merchantListAction);
           +     }
           +     
           +     QMenu *plugins = appMenuBar->addMenu(tr("&Plugins"));
           +     if(walletFrame)
           +     { 
           +         plugins->addAction(bitmessageAction);
           +         plugins->addSeparator();
           +         plugins->addAction(shapeshiftAction);
          

          Code added

           +    shapeshiftAction->setEnabled(enabled);
          

          Code added

           + void BitcoinGUI::openShapeshiftClicked()
           + {
           +     if(!clientModel || !clientModel->getOptionsModel())
           +         return;
           + 
           +     ShiftDialog dlg(this);
           +     dlg.setModel(clientModel->getOptionsModel());
           +     dlg.exec();
           + }
           + 
          

          Code added

          1 Reply Last reply Reply Quote 0
          • wrapper
            wrapper Moderators last edited by wrapper

            Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

            Add the Shapeshift API interface : - commit

            https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

            src/qt/bitcoingui.h

             +    QAction *shapeshiftAction;
            
             +    /** Visit Shapeshift' API */
             +    void openShapeshiftClicked();
            

            Additional code

            1 Reply Last reply Reply Quote 0
            • wrapper
              wrapper Moderators last edited by wrapper

              Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

              Add the Shapeshift API interface : - commit

              https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

              src/qt/feathercoin.qrc

               +        <file alias="shapeshift">res/icons/shapeshift.png</file>
              
               +        <file alias="merchant_shapeshift">res/images/shapeshift.png</file>
               +        <file alias="merchant_bitbooks">res/images/bitbooks.png</file>
               +        <file alias="merchant_coinverted">res/images/coinverted.png</file>
              

              Additional code shapeshift

              1 Reply Last reply Reply Quote 0
              • wrapper
                wrapper Moderators last edited by wrapper

                Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                Add the Shapeshift API interface : - commit

                https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

                src/qt/forms/merchantlist.ui

                 +    <height>461</height>
                

                Code change size

                 +         <layout class="QHBoxLayout" name="horizontalLayout_5">
                 +          <item>
                 +           <widget class="QLabel" name="label_left_3">
                 +            <property name="cursor">
                 +             <cursorShape>PointingHandCursor</cursorShape>
                 +            </property>
                 +            <property name="text">
                 +             <string/>
                 +            </property>
                 +            <property name="pixmap">
                 +             <pixmap resource="../feathercoin.qrc">:/images/merchant_bitbooks</pixmap>
                 +            </property>
                 +           </widget>
                 +          </item>
                 +          <item>
                 +           <widget class="QLabel" name="label_left_4">
                 +            <property name="cursor">
                 +             <cursorShape>PointingHandCursor</cursorShape>
                 +            </property>
                 +            <property name="text">
                 +             <string/>
                 +            </property>
                 +            <property name="pixmap">
                 +             <pixmap resource="../feathercoin.qrc">:/images/merchant_coinverted</pixmap>
                 +            </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>
                 +        <item>
                 +         <layout class="QHBoxLayout" name="horizontalLayout_6">
                 +          <item>
                 +           <widget class="QLabel" name="label_left_5">
                 +            <property name="text">
                 +             <string/>
                 +            </property>
                 +           </widget>
                 +          </item>
                 +          <item>
                 +           <widget class="QLabel" name="label_left_6">
                 +            <property name="text">
                 +             <string/>
                 +            </property>
                 +           </widget>
                 +          </item>
                 +         </layout>
                 +        </item>
                 +        <item>
                

                New code layout

                 +         <layout class="QHBoxLayout" name="horizontalLayout_4">
                 +          <item>
                 +           <widget class="QLabel" name="label_right_7">
                 +            <property name="cursor">
                 +             <cursorShape>PointingHandCursor</cursorShape>
                 +            </property>
                 +            <property name="text">
                 +             <string/>
                 +            </property>
                 +            <property name="pixmap">
                 +             <pixmap resource="../feathercoin.qrc">:/images/merchant_shapeshift</pixmap>
                 +            </property>
                 +           </widget>
                 +          </item>
                 +         </layout>
                 +        </item>
                 +        <item>
                

                New code layout

                1 Reply Last reply Reply Quote 0
                • wrapper
                  wrapper Moderators last edited by wrapper

                  Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                  Add the Shapeshift API interface : - commit

                  https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

                  src/qt/forms/shiftdialog.ui

                  New file for shapeshift interface

                  <?xml version="1.0" encoding="UTF-8"?>
                  <ui version="4.0">
                   <class>ShiftDialog</class>
                   <widget class="QDialog" name="ShiftDialog">
                    <property name="geometry">
                     <rect>
                      <x>0</x>
                      <y>0</y>
                      <width>560</width>
                      <height>425</height>
                     </rect>
                    </property>
                    <property name="windowTitle">
                     <string>ShapeShift</string>
                    </property>
                    <property name="modal">
                  <bool>true</bool>
                  

                  Start of code 1192 lines

                  1 Reply Last reply Reply Quote 0
                  • wrapper
                    wrapper Moderators last edited by wrapper

                    Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                    Add the Shapeshift API interface : - commit

                    https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

                    src/qt/merchantlist.cpp

                     +    ui->label_left_3->installEventFilter(this);
                     +    ui->label_left_4->installEventFilter(this);
                    
                     +    ui->label_right_7->installEventFilter(this);
                    

                    Code addition

                     + 	 	 	if (obj == ui->label_left_3) { 
                     + 	 	 	  QDesktopServices::openUrl(QUrl("http://bitbooks.co"));
                     + 	 			return true; 
                     + 	 		}
                     + 	 	 	if (obj == ui->label_left_4) { 
                     + 	 	 	  QDesktopServices::openUrl(QUrl("http://coinverted.com"));
                     + 	 			return true; 
                     + 	 		}
                    

                    Code addition

                     + 	 		if (obj == ui->label_right_7) { 
                     + 	 	 	  QDesktopServices::openUrl(QUrl("http://shapeshift.io"));
                     + 	 			return true; 
                     + 	 		}
                    

                    Code addition

                     + #if QT_VERSION >= 0x040700
                     +     ui->thirdPartyTxUrls->setPlaceholderText("http://explorer.feathercoin.com/tx/%s");
                     + #endif
                    

                    Code addition ifdef Qt version

                     +     /* Wallet */
                     +     connect(ui->spendZeroConfChange, SIGNAL(clicked(bool)), this, SLOT(showRestartWarning()));
                    
                      +    connect(ui->thirdPartyTxUrls, SIGNAL(textChanged(const QString &)), this, SLOT(showRestartWarning()));
                    
                      +    mapper->addMapping(ui->thirdPartyTxUrls, OptionsModel::ThirdPartyTxUrls);
                    

                    Added code shapeshift

                    1 Reply Last reply Reply Quote 0
                    • wrapper
                      wrapper Moderators last edited by

                      Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                      Add the Shapeshift API interface : - commit

                      https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

                      src/qt/res/images/*

                       src/qt/res/icons/shapeshift.png
                      
                       src/qt/res/images/bitbooks.png
                       src/qt/res/images/bitbooks.png
                       src/qt/res/images/coinverted.png
                       
                       src/qt/res/images/shapeshift.png
                       src/qt/res/images/splash.png
                      

                      New images and icons added

                      1 Reply Last reply Reply Quote 0
                      • wrapper
                        wrapper Moderators last edited by

                        Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                        Add the Shapeshift API interface : - commit

                        https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

                        src/qt/shiftdialog.cpp

                        New file for shapeshift

                         + // Copyright (c) 2011-2013 The Bitcoin developers
                         + // Distributed under the MIT/X11 software license, see the accompanying
                         + // file COPYING or http://www.opensource.org/licenses/mit-license.php.
                         + 
                         + #if defined(HAVE_CONFIG_H)
                         + #include "bitcoin-config.h"
                         + #endif
                         + 
                         + #include "shiftdialog.h"
                         + #include "ui_shiftdialog.h"
                         + 
                         + #include "bitcoinunits.h"
                         + #include "guiutil.h"
                         + #include "monitoreddatamapper.h"
                         + #include "optionsmodel.h"
                         + 
                         + #include "main.h" // for CTransaction::nMinTxFee and MAX_SCRIPTCHECK_THREADS
                         + #include "netbase.h"
                         + #include "txdb.h" // for -dbcache defaults
                        

                        Start of code for new file 454 lines of code

                        1 Reply Last reply Reply Quote 0
                        • wrapper
                          wrapper Moderators last edited by

                          Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                          Add the Shapeshift API interface : - commit

                          https://github.com/FeatherCoin/Feathercoin/commit/e20615c45c07f8a4a433d3baf907934c5a8f3039

                          src/qt/shiftdialog.h

                          New file for shapeshift

                           + // Copyright (c) 2011-2013 The Bitcoin developers
                           + // Distributed under the MIT/X11 software license, see the accompanying
                           + // file COPYING or http://www.opensource.org/licenses/mit-license.php.
                           + 
                           + #ifndef SHIFTDIALOG_H
                           + #define SHIFTDIALOG_H
                           + 
                           + #include <QDialog>
                           + #include <QtNetwork>
                           + 
                           + class MonitoredDataMapper;
                           + class OptionsModel;
                           + class QValidatedLineEdit;
                           + 
                           + namespace Ui {
                           + class ShiftDialog;
                           + }
                           + 
                           + /** Preferences dialog. */
                           + class ShiftDialog : public QDialog
                          

                          New file for shapeshift start of code …

                          1 Reply Last reply Reply Quote 0
                          • wrapper
                            wrapper Moderators last edited by wrapper

                            Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                            Add lock/unlock menu : - commit

                            https://github.com/FeatherCoin/Feathercoin/commit/6f0ff3bb8b59d5955d1fcb9614ed9259061ca882

                            src/qt/bitcoingui.cpp

                            Update for shapeshift

                             +     lockWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Lock wallet"), this);
                             +     lockWalletAction->setToolTip(tr("Lock wallet"));
                             +     lockWalletAction->setCheckable(true);
                             + 
                             +     unlockWalletAction = new QAction(QIcon(":/icons/lock_open"), tr("Unlo&ck wallet"), this);
                             +     unlockWalletAction->setToolTip(tr("Unlock wallet"));
                             +     unlockWalletAction->setCheckable(true);
                            

                            Additional code

                              +    connect(lockWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(lockWallet()));
                              +     connect(unlockWalletAction, SIGNAL(triggered(bool)), walletFrame, SLOT(unlockWallet()));
                              +  
                            

                            Additional code

                             +     file->addAction(lockWalletAction);
                             +     file->addAction(unlockWalletAction);
                             +     file->addSeparator();
                            

                            Additional code

                             +         lockWalletAction->setEnabled(false);
                             +         unlockWalletAction->setEnabled(false);
                            

                            Additional code

                             +         lockWalletAction->setEnabled(true);
                             +         lockWalletAction->setChecked(false);
                             +         unlockWalletAction->setEnabled(false);
                             +         unlockWalletAction->setChecked(true);
                            

                            Additional code

                             +         lockWalletAction->setChecked(true);
                             +         lockWalletAction->setEnabled(false);
                             +         unlockWalletAction->setChecked(false);
                             +         unlockWalletAction->setEnabled(true); 
                            

                            Additional code

                            1 Reply Last reply Reply Quote 0
                            • wrapper
                              wrapper Moderators last edited by wrapper

                              Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                              Add lock/unlock menu : - commit

                              https://github.com/FeatherCoin/Feathercoin/commit/6f0ff3bb8b59d5955d1fcb9614ed9259061ca882

                              src/qt/bitcoingui.h

                              Update for shapeshift

                               -    WalletFrame *walletFrame;
                              

                              Code replaced

                               +    WalletModel *walletModel;
                               +    WalletFrame *walletFrame;    
                              

                              Additional code

                               +    QAction *lockWalletAction;
                               +    QAction *unlockWalletAction;
                              

                              Additional code

                              1 Reply Last reply Reply Quote 0
                              • wrapper
                                wrapper Moderators last edited by wrapper

                                Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                Add lock/unlock menu : - commit

                                https://github.com/FeatherCoin/Feathercoin/commit/6f0ff3bb8b59d5955d1fcb9614ed9259061ca882

                                src/qt/walletframe.cpp

                                Update for shapeshift

                                 + void WalletFrame::lockWallet()
                                 + {
                                 +     WalletView *walletView = currentWalletView();
                                 +     if (walletView)
                                 +         walletView->lockWallet();
                                 + }
                                 + 
                                

                                Code added

                                1 Reply Last reply Reply Quote 1
                                • wrapper
                                  wrapper Moderators last edited by

                                  Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                  Add lock/unlock menu : - commit

                                  https://github.com/FeatherCoin/Feathercoin/commit/6f0ff3bb8b59d5955d1fcb9614ed9259061ca882

                                  src/qt/walletframe.h

                                  Update for shapeshift

                                  +    /** Lock the wallet */
                                  +    void lockWallet();
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • wrapper
                                    wrapper Moderators last edited by

                                    Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                    Add lock/unlock menu : - commit

                                    https://github.com/FeatherCoin/Feathercoin/commit/6f0ff3bb8b59d5955d1fcb9614ed9259061ca882

                                    src/qt/walletframe.h

                                     +    /** Lock the wallet */
                                     +    void lockWallet();
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • wrapper
                                      wrapper Moderators last edited by wrapper

                                      Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                      Add lock/unlock menu : - commit

                                      https://github.com/FeatherCoin/Feathercoin/commit/6f0ff3bb8b59d5955d1fcb9614ed9259061ca882

                                      src/qt/walletview.cpp

                                       + void WalletView::lockWallet()
                                       + {
                                       +     if(!walletModel)
                                       +         return;
                                       +     // Lock wallet when requested by wallet model
                                       +     if (walletModel->getEncryptionStatus() == WalletModel::Unlocked)
                                       +     {
                                       +         SecureString dummy;
                                       +         walletModel->setWalletLocked(true, dummy);
                                       +     }
                                       + }
                                       +
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • wrapper
                                        wrapper Moderators last edited by

                                        Feathercoin specific changes made to convert Bitcoin to FTC 0.9.6.*

                                        Add lock/unlock menu : - commit

                                        https://github.com/FeatherCoin/Feathercoin/commit/6f0ff3bb8b59d5955d1fcb9614ed9259061ca882

                                        src/qt/walletview.h

                                         +    /** Lock the wallet */
                                         +    void lockWallet();
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • First post
                                          Last post