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

    [Dev] Documenting Feathercoin Specific Software settings - Part 4

    Technical Development
    1
    24
    5693
    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.*

      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