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

    [Dev] Documenting Feathercoin Specific Software settings - Part 1

    Technical Development
    2
    84
    24307
    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.*

      https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

      src/qt/askpassphrasedialog.cpp

      +                 tr("Warning: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR FEATHERCOINS</b>!") + "<br><br>" + tr("Are you sure you wish to encrypt your wallet?"),
      
      +                                         tr("Feathercoin will close now to finish the encryption process. "
      
      +                                         "your feathercoins from being stolen by malware infecting your computer.") +
      

      Name change interface

      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.*

        https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

        src/qt/bitcoingui.cpp

         +// Copyright (c) 2013-2014 The Feathercoin developers
        

        Update copyright

          +    
          +    QPalette palette;
          +    palette.setBrush(QPalette::Background,QBrush(QPixmap(":/images/mainbg")));
          +    this->setPalette(palette);
          +    this->setAutoFillBackground(true);    
        
          +    
          +    accountReportAction = new QAction(QIcon(":/icons/account-report"), tr("&Report"), this);
          +    accountReportAction->setStatusTip(tr("Get my account report"));
          +    accountReportAction->setToolTip(accountReportAction->statusTip());
          +    accountReportAction->setCheckable(true);
          +    accountReportAction->setShortcut(QKeySequence(Qt::ALT       + Qt::Key_5));
          +    tabGroup->addAction(accountReportAction);    
        
          +    connect(accountReportAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
          +    connect(accountReportAction, SIGNAL(triggered()), this, SLOT(gotoAccountReportPage()));    
        

        Interface addition scrypt

         +        aboutAction = new QAction(QIcon(":/icons/bitcoin"), tr("&About Feathercoin Core"), this);
        
         +        aboutAction = new QAction(QIcon(":/icons/bitcoin_testnet"), tr("&About Feathercoin Core"), this);
        
         +    aboutAction->setStatusTip(tr("Show information about Feathercoin"));
        
         +    signMessageAction->setStatusTip(tr("Sign messages with your Feathercoin addresses to prove you own them"));
        
         +    verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Feathercoin addresses"));
        

        Bitcoin Code replaced

         +        toolbar->addAction(accountReportAction);
        
         +    accountReportAction->setEnabled(enabled);
        
          +void BitcoinGUI::gotoAccountReportPage()
          +{
          +		accountReportAction->setChecked(true);
          +    if (walletFrame) walletFrame->gotoAccountReportPage();
          +}
          +
        

        Additional code

         +    labelConnectionsIcon->setToolTip(tr("%n active connection(s) to Feathercoin network", "", count));
        

        Replace Bitcoin code

         +    QString strTitle = tr("Feathercoin"); // default title
        
        1 Reply Last reply Reply Quote 1
        • wrapper
          wrapper Moderators last edited by wrapper

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

          https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

          src/qt/bitcoingui.h

           +    QAction *accountReportAction;
          

          Addition

           +    void setNumBlocks(int count);
          
           +    /** Switch to account report page */
           +    void gotoAccountReportPage();
           +    
          

          Bitcoincode replace scrypt interface

          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.*

            https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

            src/qt/clientmodel.cpp

             +#include "rpcserver.h"
            

            Include added

             +    cachedNumBlocks(0),
            

            Bitcoin code replaced.

            +    LOCK(cs_main);
            
             +double ClientModel::getCurrDifficulty() const
             +{
             +    return (double)GetDifficulty();
            +} 
            +
            

            Code added.

              +    LOCK(cs_main);
            
              +    // Get required lock upfront. This avoids the GUI from getting stuck on
              +    // periodical polls if the core is holding the locks for a longer time -
              +    // for example, during a wallet rescan.
              +    TRY_LOCK(cs_main, lockMain);
              +    if(!lockMain)
              +        return;
            

            Locks added.

              -    int newNumBlocksOfPeers = getNumBlocksOfPeers();
            

            Bitcoin code removed

              +    if (cachedNumBlocks != newNumBlocks ||
            
             +        emit numBlocksChanged(newNumBlocks);
            

            Bitcoin code replaced

               -int ClientModel::getNumBlocksOfPeers() const
               -{
               -    return GetNumBlocksOfPeers();
               -}
               -
            

            Code added.

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

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

              https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

              src/qt/clientmodel.h

               -    //! Return conservative estimate of total number of blocks, or 0 if unknown
              -    int getNumBlocksOfPeers() const;
              
              -    int cachedNumBlocksOfPeers;
              

              Bitcoin code removed

              +    // Return Current block
              +    double getCurrDifficulty() const;    
              

              Code added

               +    void numBlocksChanged(int count);
              

              Bitcoin code replaced

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

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

                https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                src/qt/feathercoin.qrc

                + <file alias="account-report">res/icons/account-report.png</file>
                + <file alias="mainlogo">res/images/LOGO.png</file>
                
                + <file alias="mainbg">res/images/mainbg.png</file>
                

                Additional image files are defined.

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

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

                  https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                  src/qt/forms/aboutdialog.ui

                  Further changes are made in later commits. Name and directory interface changes to definitions.

                  +   <string>About Feathercoin Core</string>
                  
                  +   <pixmap>:/images/about</pixmap>
                  
                  +   <string>&lt;b&gt;Feathercoin Core&lt;/b&gt; version</string>
                  
                  +   <string notr="true">0.9.3-Standard</string>
                  

                  Bitcoin code replaced

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

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

                    https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                    src/qt/forms/helpmessagedialog.ui

                    Help message dialog customizations in GUI. Further commits.

                    +  <height>327</height>
                    
                    +  <string>Feathercoin Core - Command-line options</string>
                    
                    +  <pixmap>:/images/about</pixmap>
                    
                    +  <pixmap>:/images/about</pixmap>
                    
                    +   <width>748</width>
                    +   <height>276</height>
                    

                    Bitcoin code replaced

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

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

                      https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                      src/qt/forms/overviewpage.ui

                      overviewpage message dialog customizations in GUI. Further commits. Note, that changes are usually made to the GUI via the Qt creator IDE.

                      Large sections of this file have been updated - Review how to handle Qt layout file updates?

                      +    <height>344</height>
                      

                      Bitcoin code replaced

                       -    <widget class="QFrame" name="frame">
                      

                      Bitcoin code removed

                        +    <widget class="QLabel" name="labelMainlogo">
                        +     <property name="text">
                        +      <string/>
                        +     </property>
                        +     <property name="pixmap">
                        +      <pixmap resource="../feathercoin.qrc">:/images/mainlogo</pixmap>
                        +     </property>
                        +     <property name="alignment">
                        +      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
                        +     </property>
                        +    </widget>
                        +   </item>
                        +   <item>
                        +    <widget class="QLabel" name="labelOverviewPage">
                        +     <property name="font">
                        +      <font>
                        +       <family>Arial Rounded MT Bold</family>
                        +       <pointsize>11</pointsize>
                        +       <weight>50</weight>
                        +       <bold>false</bold>
                        +      </font>
                        +     </property>
                        +     <property name="text">
                        +      <string>OverviewPage</string>
                        +     </property>
                        +     <property name="alignment">
                        +      <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
                        +     </property>
                        +    </widget>
                        +   </item>
                        +   <item>
                        +    <widget class="QLabel" name="labelOverview1">
                        +     <property name="text">
                        +      <string>Feathercoin</string>
                        +     </property>
                        +    </widget>
                        +   </item>
                        +   <item>
                        +    <widget class="QLabel" name="labelOverview2">
                        +     <property name="text">
                        +      <string>Feathercoin</string>
                        +     </property>
                        +    </widget>
                        +   </item>
                        +   <item>
                        +    <spacer name="verticalSpacer">
                        +     <property name="orientation">
                        +      <enum>Qt::Vertical</enum>
                        +     </property>
                        +     <property name="sizeHint" stdset="0">
                        +      <size>
                        +       <width>20</width>
                        +       <height>40</height>
                        +      </size>
                        +     </property>
                        +    </spacer>
                        +   </item>
                        +  </layout>
                        + </item>
                        + <item>
                        +  <layout class="QVBoxLayout" name="verticalLayout_3">
                        +   <item>
                        +    <widget class="QFrame" name="frame_2">
                      

                      Code for Feathercoin background image?, from Dogecoin?

                      +     <layout class="QVBoxLayout" name="verticalLayout">
                      

                      Bitcoin code replaced

                         -       <layout class="QHBoxLayout" name="horizontalLayout_3">
                         -       <item>
                         -       <layout class="QFormLayout" name="formLayout_2">
                         -       <property name="fieldGrowthPolicy">
                         -       <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
                         -       </property>
                         -       <property name="horizontalSpacing">
                         -       <number>12</number>
                      

                      Bitcoin code removed

                        +       <widget class="QFrame" name="frame">
                        +        <property name="frameShape">
                        +         <enum>QFrame::StyledPanel</enum>
                      

                      Code added

                        + <resources>
                       +  <include location="../feathercoin.qrc"/>
                       + </resources>
                      

                      Additonal code, after long section of code replacement, with FTC layout.

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

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

                        https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                        src/qt/overviewpage.cpp

                        overviwpage.cpp integrates with the ui file.

                         +    int shareBalance=0; //Ready for POS
                        

                        Additional code scrypt interface.

                        [FAQ] What is POS?

                        Proof of share or POS. An transaction algorythm that pays wallets based on their exposed contents, in addition or instead of POW (proof of work).

                        +    ui->labelShare->setText(BitcoinUnits::formatWithUnit(unit, shareBalance));
                        

                        Additional code

                           -    // only show immature (newly mined) balance if it's non       -zero, so as not to complicate things
                           -    // for the non       -mining users
                           -    bool showImmature = immatureBalance != 0; 
                        

                        Bitcoin code removed

                         + bool showImmature =true; 
                        

                        Replaced Bitcoin code

                         +    
                         + setOverview();
                         + }
                         +
                         + void OverviewPage::setOverview()
                         + {
                         +   ui->labelOverview1->setText(tr("Current Block :")+tr(" %1 ").arg(clientModel->getNumBlocks()));
                         +   ui->labelOverview2->setText(tr("Current Difficulty :")+tr(" %1").arg(clientModel->getCurrDifficulty()));
                        

                        Additional code

                        +   // Show RPC information when blocks had changed
                        +   connect(model, SIGNAL(numBlocksChanged(int)), this, SLOT(setOverview()));
                        

                        Additional code

                        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.*

                          https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                          src/qt/overviewpage.h

                          overviwpage.h integrates with the ui file.

                          +    void setOverview();
                          

                          Additional code

                          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.*

                            https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                            src/qt/reportview.cpp

                            New file with the FTC reports update in? 500 llines code.

                            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.*

                              https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                              src/qt/reportview.h

                              New file containing FTC reports addon. 91 lines code.

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

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

                                https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                                src/qt/rpcconsole.cpp

                                 -   setNumBlocks(model       ->getNumBlocks(), model       ->getNumBlocksOfPeers());
                                 -   connect(model, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int)));
                                

                                Bitcoin code replaced

                                 +   setNumBlocks(model       ->getNumBlocks());
                                 +   connect(model, SIGNAL(numBlocksChanged(int)), this, SLOT(setNumBlocks(int)));
                                

                                Bitcoin code replaced

                                 +  message(CMD_REPLY, (tr("Welcome to the Feathercoin RPC console.") + "<br>" +
                                

                                name change, Bitcoin code replaced.

                                - void RPCConsole::setNumBlocks(int count, int countOfPeers)
                                
                                -    // If there is no current countOfPeers available display N/A instead of 0, which can't ever be true
                                -    ui->totalBlocks->setText(countOfPeers == 0 ? tr("N/A") : QString::number(countOfPeers));
                                

                                Bitcoin code removed

                                + void RPCConsole::setNumBlocks(int count)
                                

                                Bitcoin code replaced.

                                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.*

                                  https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                                  src/qt/signverifymessagedialog.cpp

                                  +  ui->addressIn_VM->setPlaceholderText(tr("Enter a Feathercoin address (e.g. 6djzFXtrfK8axEpEhSPe5o7YgJ16gFjSw7)"));
                                  

                                  Name change, Bitcoin code replaced

                                  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.*

                                    https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                                    src/qt/splashscreen.cpp

                                    Layout of splash screen has been updated, use latest file.

                                    +    pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight+44,paddingTop,titleText);
                                    
                                    +    pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight+2+58,paddingTop+titleVersionVSpace,versionText);
                                    
                                    +    pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight+64,paddingTop+titleCopyrightVSpace,copyrightText);
                                    

                                    Layout adjustments Bitcoin code replaced

                                    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.*

                                      https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                                      src/qt/utilitydialog.cpp

                                      This file has further updates. Compare with latest.

                                      +    ui->copyrightLabel->setText(tr("Copyright") + QString(" &copy; 2013-%1 ").arg(COPYRIGHT_YEAR) + tr("The Feathercoin Core developers"));
                                      

                                      Replace Bitcoin code name change, auto at compile time?

                                      + header = tr("Feathercoin Core") + " " + tr("version") + " " +
                                      
                                      +   "  feathercoin-qt [" + tr("command-line options") + "]                     " + "\n";
                                      
                                      +   tr("Feathercoin Core is shutting down...") + "<br /><br />" +
                                      

                                      Name change Bitcoin 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.*

                                        https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                                        src/qt/walletframe.cpp

                                        This file has further updates. Compare with latest.

                                          +void WalletFrame::gotoAccountReportPage()
                                          +{
                                          +    QMap<QString, WalletView*>::const_iterator i;
                                          +    for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd();       +      +i)
                                          +        i.value()->gotoAccountReportPage();
                                          +}
                                        

                                        Additional code for Feathercoin reports add-on

                                        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.*

                                          https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                                          src/qt/walletframe.h

                                          +    /** Switch to account report page */
                                          +    void gotoAccountReportPage();
                                          +    
                                          

                                          FTC reports addon 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.*

                                            https://github.com/FeatherCoin/Feathercoin/commit/89e49238366fd9597ca3f8e5b2711f48e402372b

                                            src/qt/walletview.cpp

                                            +#include "reportview.h"
                                            

                                            Additional code FTC reports add-on.

                                              +    
                                              +  accountreportPage = new QWidget(this);
                                              +  QVBoxLayout *vboxR = new QVBoxLayout();
                                              +  QHBoxLayout *hboxR_buttons = new QHBoxLayout();
                                              +  reportView = new ReportView(this);
                                              +  vboxR->addWidget(reportView);   
                                              + 
                                              +
                                            

                                            Additional code FTC reports add-on.

                                              +  QPushButton *exportRButton = new QPushButton(tr("&Export"), this);
                                              +  exportRButton->setToolTip(tr("Export the data in the current tab to a file"));
                                              +#ifndef Q_OS_MAC // Icons on push buttons are very uncommon on Mac
                                              +  exportRButton->setIcon(QIcon(":/icons/export"));
                                              + #endif    
                                              +   hboxR_buttons->addStretch();
                                              +   hboxR_buttons->addWidget(exportRButton);
                                              +  vboxR->addLayout(hboxR_buttons);
                                              +  accountreportPage->setLayout(vboxR); 
                                              +    
                                            

                                            Additional code FTC reports add-on.

                                             +  addWidget(accountreportPage);
                                            
                                             +  connect(exportRButton, SIGNAL(clicked()), reportView, SLOT(exportClicked()));
                                            

                                            Additional code for FTC reports.

                                             + reportView->setModel(walletModel);
                                            

                                            Additional code for FTC reports.

                                             + void WalletView::gotoAccountReportPage()
                                             + {
                                             +    setCurrentWidget(accountreportPage); 
                                             + }
                                             +
                                            

                                            Additional code for FTC reports.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post