What changed
Bitcoin v0.2.4 → v0.2.5
Release commit message: transaction filter tabs instead of view->show generated -- version 0.2.5
Previous diff: v0.2.2 → v0.2.4. Next: v0.2.5 → v0.2.6.
- build-unix.txt modified · +1 −1
- db.cpp modified · +0 −2
- main.cpp modified · +3 −1
- serialize.h modified · +1 −1
- ui.cpp modified · +62 −25
- ui.h modified · +13 −3
- uibase.cpp modified · +73 −19
- uibase.h modified · +36 −31
build-unix.txt (modified)
1--- v0.2.4/build-unix.txt2+++ v0.2.5/build-unix.txt3@@ -70,7 +70,7 @@4 Boost5 -----6 If you want to build Boost yourself,7-cd /usr/local/boost_1_42_08+cd /usr/local/boost_1_38_09 su10 ./bootstrap.sh11 ./bjam install
db.cpp (modified)
1--- v0.2.4/db.cpp2+++ v0.2.5/db.cpp3@@ -599,7 +599,6 @@4 ssKey >> strKey;5 6 // Menu state7- if (strKey == "fShowGenerated") ssValue >> fShowGenerated;8 if (strKey == "fGenerateBitcoins") ssValue >> fGenerateBitcoins;9 10 // Options11@@ -618,7 +617,6 @@12 }13 14 printf("nFileVersion = %d\n", nFileVersion);15- printf("fShowGenerated = %d\n", fShowGenerated);16 printf("fGenerateBitcoins = %d\n", fGenerateBitcoins);17 printf("nTransactionFee = %"PRI64d"\n", nTransactionFee);18 printf("addrIncoming = %s\n", addrIncoming.ToString().c_str());
main.cpp (modified)
1--- v0.2.4/main.cpp2+++ v0.2.5/main.cpp3@@ -1335,7 +1335,9 @@4 if (!AddToBlockIndex(nFile, nBlockPos))5 return error("AcceptBlock() : AddToBlockIndex failed");6 7- if (hashBestChain == hash && nBestHeight > 28000)8+ // Don't relay old inventory during initial block download.9+ // Please keep this constant updated to a few thousand below current block count.10+ if (hashBestChain == hash && nBestHeight > 40000)11 RelayInventory(CInv(MSG_BLOCK, hash));12 13 // // Add atoms to user reviews for coins created
serialize.h (modified)
1--- v0.2.4/serialize.h2+++ v0.2.5/serialize.h3@@ -19,7 +19,7 @@4 class CDataStream;5 class CAutoFile;6 7-static const int VERSION = 204;8+static const int VERSION = 205;9 static const char* pszSubVer = ".0";10 11
ui.cpp (modified)
1--- v0.2.4/ui.cpp2+++ v0.2.5/ui.cpp3@@ -20,7 +20,6 @@4 bool fClosedToTray = false;5 6 // Settings7-int fShowGenerated = true;8 int fMinimizeToTray = true;9 int fMinimizeOnClose = true;10 11@@ -281,6 +280,12 @@12 CMainFrame::CMainFrame(wxWindow* parent) : CMainFrameBase(parent)13 {14 Connect(wxEVT_UITHREADCALL, wxCommandEventHandler(CMainFrame::OnUIThreadCall), NULL, this);15+16+ // Set initially selected page17+ wxNotebookEvent event;18+ event.SetSelection(0);19+ OnNotebookPageChanged(event);20+ m_notebook->ChangeSelection(0);21 22 // Init23 fRefreshListCtrl = false;24@@ -298,8 +303,8 @@25 m_staticTextBalance->SetFont(fontTmp);26 m_staticTextBalance->SetSize(140, 17);27 // resize to fit ubuntu's huge default font28- dResize = 1.20;29- SetSize((dResize + 0.02) * GetSize().GetWidth(), 1.09 * GetSize().GetHeight());30+ dResize = 1.22;31+ SetSize(dResize * GetSize().GetWidth(), 1.09 * GetSize().GetHeight());32 #endif33 m_staticTextBalance->SetLabel(FormatMoney(GetBalance()) + " ");34 m_listCtrl->SetFocus();35@@ -309,13 +314,17 @@36 int nDateWidth = DateTimeStr(1229413914).size() * 6 + 8;37 if (!strstr(DateTimeStr(1229413914).c_str(), "2008"))38 nDateWidth += 12;39- m_listCtrl->InsertColumn(0, "", wxLIST_FORMAT_LEFT, dResize * 0);40- m_listCtrl->InsertColumn(1, "", wxLIST_FORMAT_LEFT, dResize * 0);41- m_listCtrl->InsertColumn(2, _("Status"), wxLIST_FORMAT_LEFT, dResize * 110);42- m_listCtrl->InsertColumn(3, _("Date"), wxLIST_FORMAT_LEFT, dResize * nDateWidth);43- m_listCtrl->InsertColumn(4, _("Description"), wxLIST_FORMAT_LEFT, dResize * 409 - nDateWidth);44- m_listCtrl->InsertColumn(5, _("Debit"), wxLIST_FORMAT_RIGHT, dResize * 79);45- m_listCtrl->InsertColumn(6, _("Credit"), wxLIST_FORMAT_RIGHT, dResize * 79);46+ wxListCtrl* pplistCtrl[] = {m_listCtrlAll, m_listCtrlSentReceived, m_listCtrlSent, m_listCtrlReceived};47+ foreach(wxListCtrl* p, pplistCtrl)48+ {49+ p->InsertColumn(0, "", wxLIST_FORMAT_LEFT, dResize * 0);50+ p->InsertColumn(1, "", wxLIST_FORMAT_LEFT, dResize * 0);51+ p->InsertColumn(2, _("Status"), wxLIST_FORMAT_LEFT, dResize * 112);52+ p->InsertColumn(3, _("Date"), wxLIST_FORMAT_LEFT, dResize * nDateWidth);53+ p->InsertColumn(4, _("Description"), wxLIST_FORMAT_LEFT, dResize * 409 - nDateWidth);54+ p->InsertColumn(5, _("Debit"), wxLIST_FORMAT_RIGHT, dResize * 79);55+ p->InsertColumn(6, _("Credit"), wxLIST_FORMAT_RIGHT, dResize * 79);56+ }57 58 // Init status bar59 int pnWidths[3] = { -100, 88, 290 };60@@ -339,6 +348,42 @@61 pframeMain = NULL;62 delete ptaskbaricon;63 ptaskbaricon = NULL;64+}65+66+void CMainFrame::OnNotebookPageChanged(wxNotebookEvent& event)67+{68+ event.Skip();69+ nPage = event.GetSelection();70+ if (nPage == ALL)71+ {72+ m_listCtrl = m_listCtrlAll;73+ fShowGenerated = true;74+ fShowSent = true;75+ fShowReceived = true;76+ }77+ else if (nPage == SENTRECEIVED)78+ {79+ m_listCtrl = m_listCtrlSentReceived;80+ fShowGenerated = false;81+ fShowSent = true;82+ fShowReceived = true;83+ }84+ else if (nPage == SENT)85+ {86+ m_listCtrl = m_listCtrlSent;87+ fShowGenerated = false;88+ fShowSent = true;89+ fShowReceived = false;90+ }91+ else if (nPage == RECEIVED)92+ {93+ m_listCtrl = m_listCtrlReceived;94+ fShowGenerated = false;95+ fShowSent = false;96+ fShowReceived = true;97+ }98+ RefreshListCtrl();99+ m_listCtrl->SetFocus();100 }101 102 void CMainFrame::OnClose(wxCloseEvent& event)103@@ -547,7 +592,6 @@104 return false;105 }106 107- // View->Show Generated108 if (!fShowGenerated)109 return false;110 }111@@ -571,7 +615,6 @@112 // Credit113 //114 string strDescription;115-116 if (wtx.IsCoinBase())117 {118 // Generated119@@ -598,6 +641,8 @@120 else if (!mapValue["from"].empty() || !mapValue["message"].empty())121 {122 // Received by IP connection123+ if (!fShowReceived)124+ return false;125 if (!mapValue["from"].empty())126 strDescription += _("From: ") + mapValue["from"];127 if (!mapValue["message"].empty())128@@ -610,6 +655,8 @@129 else130 {131 // Received by Bitcoin Address132+ if (!fShowReceived)133+ return false;134 foreach(const CTxOut& txout, wtx.vout)135 {136 if (txout.IsMine())137@@ -675,6 +722,9 @@138 //139 // Debit140 //141+ if (!fShowSent)142+ return false;143+144 int64 nTxFee = nDebit - wtx.GetValueOut();145 wtx.nLinesDisplayed = 0;146 for (int nOut = 0; nOut < wtx.vout.size(); nOut++)147@@ -1033,19 +1083,6 @@148 {149 // File->Exit150 Close(true);151-}152-153-void CMainFrame::OnMenuViewShowGenerated(wxCommandEvent& event)154-{155- // View->Show Generated156- fShowGenerated = event.IsChecked();157- CWalletDB().WriteSetting("fShowGenerated", fShowGenerated);158- RefreshListCtrl();159-}160-161-void CMainFrame::OnUpdateUIViewShowGenerated(wxUpdateUIEvent& event)162-{163- event.Check(fShowGenerated);164 }165 166 void CMainFrame::OnMenuOptionsGenerate(wxCommandEvent& event)
ui.h (modified)
1--- v0.2.4/ui.h2+++ v0.2.5/ui.h3@@ -8,7 +8,6 @@4 extern map<string, string> mapArgs;5 6 // Settings7-extern int fShowGenerated;8 extern int fMinimizeToTray;9 extern int fMinimizeOnClose;10 11@@ -31,6 +30,7 @@12 {13 protected:14 // Event handlers15+ void OnNotebookPageChanged(wxNotebookEvent& event);16 void OnClose(wxCloseEvent& event);17 void OnIconize(wxIconizeEvent& event);18 void OnMouseEvents(wxMouseEvent& event);19@@ -39,8 +39,6 @@20 void OnPaint(wxPaintEvent& event);21 void OnPaintListCtrl(wxPaintEvent& event);22 void OnMenuFileExit(wxCommandEvent& event);23- void OnMenuViewShowGenerated(wxCommandEvent& event);24- void OnUpdateUIViewShowGenerated(wxUpdateUIEvent& event);25 void OnMenuOptionsGenerate(wxCommandEvent& event);26 void OnUpdateUIOptionsGenerate(wxUpdateUIEvent& event);27 void OnMenuOptionsChangeYourAddress(wxCommandEvent& event);28@@ -64,6 +62,18 @@29 ~CMainFrame();30 31 // Custom32+ enum33+ {34+ ALL = 0,35+ SENTRECEIVED = 1,36+ SENT = 2,37+ RECEIVED = 3,38+ };39+ int nPage;40+ wxListCtrl* m_listCtrl;41+ bool fShowGenerated;42+ bool fShowSent;43+ bool fShowReceived;44 bool fRefreshListCtrl;45 bool fRefreshListCtrlRunning;46 bool fOnSetFocusAddress;
uibase.cpp (modified)
1--- v0.2.4/uibase.cpp2+++ v0.2.5/uibase.cpp3@@ -29,13 +29,6 @@4 5 m_menubar->Append( m_menuFile, _("&File") );6 7- m_menuView = new wxMenu();8- wxMenuItem* m_menuViewShowGenerated;9- m_menuViewShowGenerated = new wxMenuItem( m_menuView, wxID_VIEWSHOWGENERATED, wxString( _("&Show Generated Coins") ) , wxEmptyString, wxITEM_CHECK );10- m_menuView->Append( m_menuViewShowGenerated );11- 12- m_menubar->Append( m_menuView, _("&View") );13- 14 m_menuOptions = new wxMenu();15 wxMenuItem* m_menuOptionsGenerateBitcoins;16 m_menuOptionsGenerateBitcoins = new wxMenuItem( m_menuOptions, wxID_OPTIONSGENERATEBITCOINS, wxString( _("&Generate Coins") ) , wxEmptyString, wxITEM_CHECK );17@@ -135,8 +128,53 @@18 19 bSizer2->Add( bSizer3, 0, wxEXPAND, 5 );20 21- m_listCtrl = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING|wxVSCROLL );22- bSizer2->Add( m_listCtrl, 1, wxEXPAND, 5 );23+ m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );24+ m_panel9 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );25+ wxBoxSizer* bSizer11;26+ bSizer11 = new wxBoxSizer( wxVERTICAL );27+ 28+ m_listCtrlAll = new wxListCtrl( m_panel9, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING|wxVSCROLL );29+ bSizer11->Add( m_listCtrlAll, 1, wxEXPAND, 5 );30+ 31+ m_panel9->SetSizer( bSizer11 );32+ m_panel9->Layout();33+ bSizer11->Fit( m_panel9 );34+ m_notebook->AddPage( m_panel9, _("All Transactions"), true );35+ m_panel91 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );36+ wxBoxSizer* bSizer111;37+ bSizer111 = new wxBoxSizer( wxVERTICAL );38+ 39+ m_listCtrlSentReceived = new wxListCtrl( m_panel91, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING|wxVSCROLL );40+ bSizer111->Add( m_listCtrlSentReceived, 1, wxEXPAND, 5 );41+ 42+ m_panel91->SetSizer( bSizer111 );43+ m_panel91->Layout();44+ bSizer111->Fit( m_panel91 );45+ m_notebook->AddPage( m_panel91, _("Sent/Received"), false );46+ m_panel92 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );47+ wxBoxSizer* bSizer112;48+ bSizer112 = new wxBoxSizer( wxVERTICAL );49+ 50+ m_listCtrlSent = new wxListCtrl( m_panel92, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING|wxVSCROLL );51+ bSizer112->Add( m_listCtrlSent, 1, wxEXPAND, 5 );52+ 53+ m_panel92->SetSizer( bSizer112 );54+ m_panel92->Layout();55+ bSizer112->Fit( m_panel92 );56+ m_notebook->AddPage( m_panel92, _("Sent"), false );57+ m_panel93 = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );58+ wxBoxSizer* bSizer113;59+ bSizer113 = new wxBoxSizer( wxVERTICAL );60+ 61+ m_listCtrlReceived = new wxListCtrl( m_panel93, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_NO_SORT_HEADER|wxLC_REPORT|wxLC_SORT_DESCENDING|wxVSCROLL );62+ bSizer113->Add( m_listCtrlReceived, 1, wxEXPAND, 5 );63+ 64+ m_panel93->SetSizer( bSizer113 );65+ m_panel93->Layout();66+ bSizer113->Fit( m_panel93 );67+ m_notebook->AddPage( m_panel93, _("Received"), false );68+ 69+ bSizer2->Add( m_notebook, 1, wxEXPAND, 5 );70 71 this->SetSizer( bSizer2 );72 this->Layout();73@@ -160,8 +198,6 @@74 this->Connect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );75 this->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaint ) );76 this->Connect( m_menuFileExit->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuFileExit ) );77- this->Connect( m_menuViewShowGenerated->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuViewShowGenerated ) );78- this->Connect( m_menuViewShowGenerated->GetId(), wxEVT_UPDATE_UI, wxUpdateUIEventHandler( CMainFrameBase::OnUpdateUIViewShowGenerated ) );79 this->Connect( m_menuOptionsGenerateBitcoins->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsGenerate ) );80 this->Connect( m_menuOptionsGenerateBitcoins->GetId(), wxEVT_UPDATE_UI, wxUpdateUIEventHandler( CMainFrameBase::OnUpdateUIOptionsGenerate ) );81 this->Connect( m_menuOptionsChangeYourAddress->GetId(), wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsChangeYourAddress ) );82@@ -186,9 +222,19 @@83 m_textCtrlAddress->Connect( wxEVT_SET_FOCUS, wxFocusEventHandler( CMainFrameBase::OnSetFocusAddress ), NULL, this );84 m_buttonNew->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonNew ), NULL, this );85 m_buttonCopy->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonCopy ), NULL, this );86- m_listCtrl->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );87- m_listCtrl->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );88- m_listCtrl->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );89+ m_notebook->Connect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( CMainFrameBase::OnNotebookPageChanged ), NULL, this );90+ m_listCtrlAll->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );91+ m_listCtrlAll->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );92+ m_listCtrlAll->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );93+ m_listCtrlSentReceived->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );94+ m_listCtrlSentReceived->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );95+ m_listCtrlSentReceived->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );96+ m_listCtrlSent->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );97+ m_listCtrlSent->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );98+ m_listCtrlSent->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );99+ m_listCtrlReceived->Connect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );100+ m_listCtrlReceived->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );101+ m_listCtrlReceived->Connect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );102 }103 104 CMainFrameBase::~CMainFrameBase()105@@ -212,8 +258,6 @@106 this->Disconnect( wxEVT_MOUSEWHEEL, wxMouseEventHandler( CMainFrameBase::OnMouseEvents ) );107 this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaint ) );108 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuFileExit ) );109- this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuViewShowGenerated ) );110- this->Disconnect( wxID_ANY, wxEVT_UPDATE_UI, wxUpdateUIEventHandler( CMainFrameBase::OnUpdateUIViewShowGenerated ) );111 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsGenerate ) );112 this->Disconnect( wxID_ANY, wxEVT_UPDATE_UI, wxUpdateUIEventHandler( CMainFrameBase::OnUpdateUIOptionsGenerate ) );113 this->Disconnect( wxID_ANY, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler( CMainFrameBase::OnMenuOptionsChangeYourAddress ) );114@@ -238,9 +282,19 @@115 m_textCtrlAddress->Disconnect( wxEVT_SET_FOCUS, wxFocusEventHandler( CMainFrameBase::OnSetFocusAddress ), NULL, this );116 m_buttonNew->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonNew ), NULL, this );117 m_buttonCopy->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( CMainFrameBase::OnButtonCopy ), NULL, this );118- m_listCtrl->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );119- m_listCtrl->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );120- m_listCtrl->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );121+ m_notebook->Disconnect( wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, wxNotebookEventHandler( CMainFrameBase::OnNotebookPageChanged ), NULL, this );122+ m_listCtrlAll->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );123+ m_listCtrlAll->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );124+ m_listCtrlAll->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );125+ m_listCtrlSentReceived->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );126+ m_listCtrlSentReceived->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );127+ m_listCtrlSentReceived->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );128+ m_listCtrlSent->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );129+ m_listCtrlSent->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );130+ m_listCtrlSent->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );131+ m_listCtrlReceived->Disconnect( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, wxListEventHandler( CMainFrameBase::OnListColBeginDrag ), NULL, this );132+ m_listCtrlReceived->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( CMainFrameBase::OnListItemActivated ), NULL, this );133+ m_listCtrlReceived->Disconnect( wxEVT_PAINT, wxPaintEventHandler( CMainFrameBase::OnPaintListCtrl ), NULL, this );134 }135 136 CTxDetailsDialogBase::CTxDetailsDialogBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
uibase.h (modified)
1--- v0.2.4/uibase.h2+++ v0.2.5/uibase.h3@@ -28,6 +28,7 @@4 #include <wx/panel.h>5 #include <wx/choice.h>6 #include <wx/listctrl.h>7+#include <wx/notebook.h>8 #include <wx/frame.h>9 #include <wx/html/htmlwin.h>10 #include <wx/dialog.h>11@@ -36,36 +37,34 @@12 #include <wx/spinctrl.h>13 #include <wx/scrolwin.h>14 #include <wx/statbmp.h>15-#include <wx/notebook.h>16 17 ///////////////////////////////////////////////////////////////////////////18 19 #define wxID_MAINFRAME 100020-#define wxID_VIEWSHOWGENERATED 100121-#define wxID_OPTIONSGENERATEBITCOINS 100222-#define wxID_MENUOPTIONSOPTIONS 100323-#define wxID_BUTTONSEND 100424-#define wxID_BUTTONRECEIVE 100525-#define wxID_TEXTCTRLADDRESS 100626-#define wxID_BUTTONNEW 100727-#define wxID_BUTTONCOPY 100828-#define wxID_TRANSACTIONFEE 100929-#define wxID_PROXYIP 101030-#define wxID_PROXYPORT 101131-#define wxID_TEXTCTRLPAYTO 101232-#define wxID_BUTTONPASTE 101333-#define wxID_BUTTONADDRESSBOOK 101434-#define wxID_TEXTCTRLAMOUNT 101535-#define wxID_CHOICETRANSFERTYPE 101636-#define wxID_LISTCTRL 101737-#define wxID_BUTTONRENAME 101838-#define wxID_PANELSENDING 101939-#define wxID_LISTCTRLSENDING 102040-#define wxID_PANELRECEIVING 102141-#define wxID_LISTCTRLRECEIVING 102242-#define wxID_BUTTONDELETE 102343-#define wxID_BUTTONEDIT 102444-#define wxID_TEXTCTRL 102545+#define wxID_OPTIONSGENERATEBITCOINS 100146+#define wxID_MENUOPTIONSOPTIONS 100247+#define wxID_BUTTONSEND 100348+#define wxID_BUTTONRECEIVE 100449+#define wxID_TEXTCTRLADDRESS 100550+#define wxID_BUTTONNEW 100651+#define wxID_BUTTONCOPY 100752+#define wxID_TRANSACTIONFEE 100853+#define wxID_PROXYIP 100954+#define wxID_PROXYPORT 101055+#define wxID_TEXTCTRLPAYTO 101156+#define wxID_BUTTONPASTE 101257+#define wxID_BUTTONADDRESSBOOK 101358+#define wxID_TEXTCTRLAMOUNT 101459+#define wxID_CHOICETRANSFERTYPE 101560+#define wxID_LISTCTRL 101661+#define wxID_BUTTONRENAME 101762+#define wxID_PANELSENDING 101863+#define wxID_LISTCTRLSENDING 101964+#define wxID_PANELRECEIVING 102065+#define wxID_LISTCTRLRECEIVING 102166+#define wxID_BUTTONDELETE 102267+#define wxID_BUTTONEDIT 102368+#define wxID_TEXTCTRL 102469 70 ///////////////////////////////////////////////////////////////////////////////71 /// Class CMainFrameBase72@@ -77,7 +76,6 @@73 protected:74 wxMenuBar* m_menubar;75 wxMenu* m_menuFile;76- wxMenu* m_menuView;77 wxMenu* m_menuHelp;78 wxToolBar* m_toolBar;79 wxStatusBar* m_statusBar;80@@ -91,6 +89,11 @@81 wxStaticText* m_staticTextBalance;82 83 wxChoice* m_choiceFilter;84+ wxNotebook* m_notebook;85+ wxPanel* m_panel9;86+ wxPanel* m_panel91;87+ wxPanel* m_panel92;88+ wxPanel* m_panel93;89 90 // Virtual event handlers, overide them in your derived class91 virtual void OnClose( wxCloseEvent& event ){ event.Skip(); }92@@ -99,8 +102,6 @@93 virtual void OnMouseEvents( wxMouseEvent& event ){ event.Skip(); }94 virtual void OnPaint( wxPaintEvent& event ){ event.Skip(); }95 virtual void OnMenuFileExit( wxCommandEvent& event ){ event.Skip(); }96- virtual void OnMenuViewShowGenerated( wxCommandEvent& event ){ event.Skip(); }97- virtual void OnUpdateUIViewShowGenerated( wxUpdateUIEvent& event ){ event.Skip(); }98 virtual void OnMenuOptionsGenerate( wxCommandEvent& event ){ event.Skip(); }99 virtual void OnUpdateUIOptionsGenerate( wxUpdateUIEvent& event ){ event.Skip(); }100 virtual void OnMenuOptionsChangeYourAddress( wxCommandEvent& event ){ event.Skip(); }101@@ -113,6 +114,7 @@102 virtual void OnSetFocusAddress( wxFocusEvent& event ){ event.Skip(); }103 virtual void OnButtonNew( wxCommandEvent& event ){ event.Skip(); }104 virtual void OnButtonCopy( wxCommandEvent& event ){ event.Skip(); }105+ virtual void OnNotebookPageChanged( wxNotebookEvent& event ){ event.Skip(); }106 virtual void OnListColBeginDrag( wxListEvent& event ){ event.Skip(); }107 virtual void OnListItemActivated( wxListEvent& event ){ event.Skip(); }108 virtual void OnPaintListCtrl( wxPaintEvent& event ){ event.Skip(); }109@@ -121,8 +123,11 @@110 public:111 wxMenu* m_menuOptions;112 wxTextCtrl* m_textCtrlAddress;113- wxListCtrl* m_listCtrl;114- CMainFrameBase( wxWindow* parent, wxWindowID id = wxID_MAINFRAME, const wxString& title = _("Bitcoin"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 712,484 ), long style = wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER|wxTAB_TRAVERSAL );115+ wxListCtrl* m_listCtrlAll;116+ wxListCtrl* m_listCtrlSentReceived;117+ wxListCtrl* m_listCtrlSent;118+ wxListCtrl* m_listCtrlReceived;119+ CMainFrameBase( wxWindow* parent, wxWindowID id = wxID_MAINFRAME, const wxString& title = _("Bitcoin"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 723,484 ), long style = wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER|wxTAB_TRAVERSAL );120 ~CMainFrameBase();121 122 };
