Browse Source
Makefiles now build bitcoind only. qmake/make in top-level directory is used to build Bitcoin QT Deleted almost all #ifdef GUI from the code (left one possibly controversial one) Deleted xpm/ files.pull/1/head
28 changed files with 26 additions and 14942 deletions
@ -1,355 +0,0 @@
@@ -1,355 +0,0 @@
|
||||
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
||||
// Copyright (c) 2011 The Bitcoin developers
|
||||
// Distributed under the MIT/X11 software license, see the accompanying
|
||||
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
|
||||
#ifndef BITCOIN_UI_H |
||||
#define BITCOIN_UI_H |
||||
|
||||
#include <boost/function.hpp> |
||||
#include "wallet.h" |
||||
|
||||
DECLARE_EVENT_TYPE(wxEVT_UITHREADCALL, -1) |
||||
|
||||
|
||||
|
||||
extern wxLocale g_locale; |
||||
|
||||
|
||||
|
||||
void HandleCtrlA(wxKeyEvent& event); |
||||
void UIThreadCall(boost::function0<void>); |
||||
int ThreadSafeMessageBox(const std::string& message, const std::string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1); |
||||
bool ThreadSafeAskFee(int64 nFeeRequired, const std::string& strCaption, wxWindow* parent); |
||||
void CalledSetStatusBar(const std::string& strText, int nField); |
||||
void MainFrameRepaint(); |
||||
void CreateMainWindow(); |
||||
void SetStartOnSystemStartup(bool fAutoStart); |
||||
inline void InitMessage(const std::string &message) |
||||
{ |
||||
} |
||||
|
||||
|
||||
|
||||
inline int MyMessageBox(const wxString& message, const wxString& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1) |
||||
{ |
||||
#ifdef GUI |
||||
if (!fDaemon) |
||||
return wxMessageBox(message, caption, style, parent, x, y); |
||||
#endif |
||||
printf("wxMessageBox %s: %s\n", std::string(caption).c_str(), std::string(message).c_str()); |
||||
fprintf(stderr, "%s: %s\n", std::string(caption).c_str(), std::string(message).c_str()); |
||||
return wxOK; |
||||
} |
||||
#define wxMessageBox MyMessageBox |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class CMainFrame : public CMainFrameBase |
||||
{ |
||||
protected: |
||||
// Event handlers
|
||||
void OnNotebookPageChanged(wxNotebookEvent& event); |
||||
void OnClose(wxCloseEvent& event); |
||||
void OnIconize(wxIconizeEvent& event); |
||||
void OnMouseEvents(wxMouseEvent& event); |
||||
void OnKeyDown(wxKeyEvent& event) { HandleCtrlA(event); } |
||||
void OnIdle(wxIdleEvent& event); |
||||
void OnPaint(wxPaintEvent& event); |
||||
void OnPaintListCtrl(wxPaintEvent& event); |
||||
void OnMenuFileExit(wxCommandEvent& event); |
||||
void OnUpdateUIOptionsGenerate(wxUpdateUIEvent& event); |
||||
void OnMenuOptionsChangeYourAddress(wxCommandEvent& event); |
||||
void OnMenuOptionsEncryptWallet(wxCommandEvent& event); |
||||
void OnMenuOptionsChangeWalletPassphrase(wxCommandEvent& event); |
||||
void OnMenuOptionsOptions(wxCommandEvent& event); |
||||
void OnMenuHelpAbout(wxCommandEvent& event); |
||||
void OnButtonSend(wxCommandEvent& event); |
||||
void OnButtonAddressBook(wxCommandEvent& event); |
||||
void OnSetFocusAddress(wxFocusEvent& event); |
||||
void OnMouseEventsAddress(wxMouseEvent& event); |
||||
void OnButtonNew(wxCommandEvent& event); |
||||
void OnButtonCopy(wxCommandEvent& event); |
||||
void OnListColBeginDrag(wxListEvent& event); |
||||
void OnListItemActivated(wxListEvent& event); |
||||
void OnListItemActivatedProductsSent(wxListEvent& event); |
||||
void OnListItemActivatedOrdersSent(wxListEvent& event); |
||||
void OnListItemActivatedOrdersReceived(wxListEvent& event); |
||||
|
||||
public: |
||||
/** Constructor */ |
||||
CMainFrame(wxWindow* parent); |
||||
~CMainFrame(); |
||||
|
||||
// Custom
|
||||
enum |
||||
{ |
||||
ALL = 0, |
||||
SENTRECEIVED = 1, |
||||
SENT = 2, |
||||
RECEIVED = 3, |
||||
}; |
||||
int nPage; |
||||
wxListCtrl* m_listCtrl; |
||||
bool fShowGenerated; |
||||
bool fShowSent; |
||||
bool fShowReceived; |
||||
bool fRefreshListCtrl; |
||||
bool fRefreshListCtrlRunning; |
||||
bool fOnSetFocusAddress; |
||||
unsigned int nListViewUpdated; |
||||
bool fRefresh; |
||||
|
||||
void OnUIThreadCall(wxCommandEvent& event); |
||||
int GetSortIndex(const std::string& strSort); |
||||
void InsertLine(bool fNew, int nIndex, uint256 hashKey, std::string strSort, const wxColour& colour, const wxString& str1, const wxString& str2, const wxString& str3, const wxString& str4, const wxString& str5); |
||||
bool DeleteLine(uint256 hashKey); |
||||
bool InsertTransaction(const CWalletTx& wtx, bool fNew, int nIndex=-1); |
||||
void RefreshListCtrl(); |
||||
void RefreshStatusColumn(); |
||||
}; |
||||
|
||||
|
||||
|
||||
|
||||
class CTxDetailsDialog : public CTxDetailsDialogBase |
||||
{ |
||||
protected: |
||||
// Event handlers
|
||||
void OnButtonOK(wxCommandEvent& event); |
||||
|
||||
public: |
||||
/** Constructor */ |
||||
CTxDetailsDialog(wxWindow* parent, CWalletTx wtx); |
||||
|
||||
// State
|
||||
CWalletTx wtx; |
||||
}; |
||||
|
||||
|
||||
|
||||
class COptionsDialog : public COptionsDialogBase |
||||
{ |
||||
protected: |
||||
// Event handlers
|
||||
void OnListBox(wxCommandEvent& event); |
||||
void OnKillFocusTransactionFee(wxFocusEvent& event); |
||||
void OnCheckBoxUseProxy(wxCommandEvent& event); |
||||
void OnKillFocusProxy(wxFocusEvent& event); |
||||
|
||||
void OnButtonOK(wxCommandEvent& event); |
||||
void OnButtonCancel(wxCommandEvent& event); |
||||
void OnButtonApply(wxCommandEvent& event); |
||||
|
||||
public: |
||||
/** Constructor */ |
||||
COptionsDialog(wxWindow* parent); |
||||
|
||||
// Custom
|
||||
bool fTmpStartOnSystemStartup; |
||||
bool fTmpMinimizeOnClose; |
||||
void SelectPage(int nPage); |
||||
CAddress GetProxyAddr(); |
||||
}; |
||||
|
||||
|
||||
|
||||
class CAboutDialog : public CAboutDialogBase |
||||
{ |
||||
protected: |
||||
// Event handlers
|
||||
void OnButtonOK(wxCommandEvent& event); |
||||
|
||||
public: |
||||
/** Constructor */ |
||||
CAboutDialog(wxWindow* parent); |
||||
}; |
||||
|
||||
|
||||
|
||||
class CSendDialog : public CSendDialogBase |
||||
{ |
||||
protected: |
||||
// Event handlers
|
||||
void OnKeyDown(wxKeyEvent& event) { HandleCtrlA(event); } |
||||
void OnKillFocusAmount(wxFocusEvent& event); |
||||
void OnButtonAddressBook(wxCommandEvent& event); |
||||
void OnButtonPaste(wxCommandEvent& event); |
||||
void OnButtonSend(wxCommandEvent& event); |
||||
void OnButtonCancel(wxCommandEvent& event); |
||||
|
||||
public: |
||||
/** Constructor */ |
||||
CSendDialog(wxWindow* parent, const wxString& strAddress=""); |
||||
|
||||
// Custom
|
||||
bool fEnabledPrev; |
||||
std::string strFromSave; |
||||
std::string strMessageSave; |
||||
}; |
||||
|
||||
|
||||
|
||||
class CSendingDialog : public CSendingDialogBase |
||||
{ |
||||
public: |
||||
// Event handlers
|
||||
void OnClose(wxCloseEvent& event); |
||||
void OnButtonOK(wxCommandEvent& event); |
||||
void OnButtonCancel(wxCommandEvent& event); |
||||
void OnPaint(wxPaintEvent& event); |
||||
|
||||
public: |
||||
/** Constructor */ |
||||
CSendingDialog(wxWindow* parent, const CAddress& addrIn, int64 nPriceIn, const CWalletTx& wtxIn); |
||||
~CSendingDialog(); |
||||
|
||||
// State
|
||||
CAddress addr; |
||||
int64 nPrice; |
||||
CWalletTx wtx; |
||||
wxDateTime start; |
||||
char pszStatus[10000]; |
||||
bool fCanCancel; |
||||
bool fAbort; |
||||
bool fSuccess; |
||||
bool fUIDone; |
||||
bool fWorkDone; |
||||
|
||||
void Close(); |
||||
void Repaint(); |
||||
bool Status(); |
||||
bool Status(const std::string& str); |
||||
bool Error(const std::string& str); |
||||
void StartTransfer(); |
||||
void OnReply2(CDataStream& vRecv); |
||||
void OnReply3(CDataStream& vRecv); |
||||
}; |
||||
|
||||
void SendingDialogStartTransfer(void* parg); |
||||
void SendingDialogOnReply2(void* parg, CDataStream& vRecv); |
||||
void SendingDialogOnReply3(void* parg, CDataStream& vRecv); |
||||
|
||||
|
||||
|
||||
class CAddressBookDialog : public CAddressBookDialogBase |
||||
{ |
||||
protected: |
||||
// Event handlers
|
||||
void OnNotebookPageChanged(wxNotebookEvent& event); |
||||
void OnListEndLabelEdit(wxListEvent& event); |
||||
void OnListItemSelected(wxListEvent& event); |
||||
void OnListItemActivated(wxListEvent& event); |
||||
void OnButtonDelete(wxCommandEvent& event); |
||||
void OnButtonCopy(wxCommandEvent& event); |
||||
void OnButtonEdit(wxCommandEvent& event); |
||||
void OnButtonNew(wxCommandEvent& event); |
||||
void OnButtonOK(wxCommandEvent& event); |
||||
void OnButtonCancel(wxCommandEvent& event); |
||||
void OnClose(wxCloseEvent& event); |
||||
|
||||
public: |
||||
/** Constructor */ |
||||
CAddressBookDialog(wxWindow* parent, const wxString& strInitSelected, int nPageIn, bool fDuringSendIn); |
||||
|
||||
// Custom
|
||||
enum |
||||
{ |
||||
SENDING = 0, |
||||
RECEIVING = 1, |
||||
}; |
||||
int nPage; |
||||
wxListCtrl* m_listCtrl; |
||||
bool fDuringSend; |
||||
wxString GetAddress(); |
||||
wxString GetSelectedAddress(); |
||||
wxString GetSelectedSendingAddress(); |
||||
wxString GetSelectedReceivingAddress(); |
||||
bool CheckIfMine(const std::string& strAddress, const std::string& strTitle); |
||||
}; |
||||
|
||||
|
||||
|
||||
class CGetTextFromUserDialog : public CGetTextFromUserDialogBase |
||||
{ |
||||
protected: |
||||
// Event handlers
|
||||
void OnButtonOK(wxCommandEvent& event) { EndModal(true); } |
||||
void OnButtonCancel(wxCommandEvent& event) { EndModal(false); } |
||||
void OnClose(wxCloseEvent& event) { EndModal(false); } |
||||
|
||||
void OnKeyDown(wxKeyEvent& event) |
||||
{ |
||||
if (event.GetKeyCode() == '\r' || event.GetKeyCode() == WXK_NUMPAD_ENTER) |
||||
EndModal(true); |
||||
else |
||||
HandleCtrlA(event); |
||||
} |
||||
|
||||
public: |
||||
/** Constructor */ |
||||
CGetTextFromUserDialog(wxWindow* parent, |
||||
const std::string& strCaption, |
||||
const std::string& strMessage1, |
||||
const std::string& strValue1="", |
||||
const std::string& strMessage2="", |
||||
const std::string& strValue2="") : CGetTextFromUserDialogBase(parent, wxID_ANY, strCaption) |
||||
{ |
||||
int x = GetSize().GetWidth(); |
||||
int y = GetSize().GetHeight(); |
||||
m_staticTextMessage1->SetLabel(strMessage1); |
||||
m_textCtrl1->SetValue(strValue1); |
||||
y += wxString(strMessage1).Freq('\n') * 14; |
||||
if (!strMessage2.empty()) |
||||
{ |
||||
m_staticTextMessage2->Show(true); |
||||
m_staticTextMessage2->SetLabel(strMessage2); |
||||
m_textCtrl2->Show(true); |
||||
m_textCtrl2->SetValue(strValue2); |
||||
y += 46 + wxString(strMessage2).Freq('\n') * 14; |
||||
} |
||||
#ifndef __WXMSW__ |
||||
x = x * 114 / 100; |
||||
y = y * 114 / 100; |
||||
#endif |
||||
SetSize(x, y); |
||||
} |
||||
|
||||
// Custom
|
||||
std::string GetValue() { return (std::string)m_textCtrl1->GetValue(); } |
||||
std::string GetValue1() { return (std::string)m_textCtrl1->GetValue(); } |
||||
std::string GetValue2() { return (std::string)m_textCtrl2->GetValue(); } |
||||
}; |
||||
|
||||
|
||||
|
||||
class CMyTaskBarIcon : public wxTaskBarIcon |
||||
{ |
||||
protected: |
||||
// Event handlers
|
||||
void OnLeftButtonDClick(wxTaskBarIconEvent& event); |
||||
void OnMenuRestore(wxCommandEvent& event); |
||||
void OnMenuSend(wxCommandEvent& event); |
||||
void OnMenuOptions(wxCommandEvent& event); |
||||
void OnUpdateUIGenerate(wxUpdateUIEvent& event); |
||||
void OnMenuGenerate(wxCommandEvent& event); |
||||
void OnMenuExit(wxCommandEvent& event); |
||||
|
||||
public: |
||||
CMyTaskBarIcon() : wxTaskBarIcon() |
||||
{ |
||||
Show(true); |
||||
} |
||||
|
||||
void Show(bool fShow=true); |
||||
void Hide(); |
||||
void Restore(); |
||||
void UpdateTooltip(); |
||||
virtual wxMenu* CreatePopupMenu(); |
||||
|
||||
DECLARE_EVENT_TABLE() |
||||
}; |
||||
|
||||
#endif |
@ -1,425 +0,0 @@
@@ -1,425 +0,0 @@
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// C++ code generated with wxFormBuilder (version Dec 21 2009)
|
||||
// http://www.wxformbuilder.org/
|
||||
//
|
||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __uibase__ |
||||
#define __uibase__ |
||||
|
||||
#include <wx/intl.h> |
||||
|
||||
#include <wx/string.h> |
||||
#include <wx/bitmap.h> |
||||
#include <wx/image.h> |
||||
#include <wx/icon.h> |
||||
#include <wx/menu.h> |
||||
#include <wx/gdicmn.h> |
||||
#include <wx/font.h> |
||||
#include <wx/colour.h> |
||||
#include <wx/settings.h> |
||||
#include <wx/toolbar.h> |
||||
#include <wx/statusbr.h> |
||||
#include <wx/stattext.h> |
||||
#include <wx/textctrl.h> |
||||
#include <wx/button.h> |
||||
#include <wx/sizer.h> |
||||
#include <wx/choice.h> |
||||
#include <wx/listctrl.h> |
||||
#include <wx/panel.h> |
||||
#include <wx/notebook.h> |
||||
#include <wx/frame.h> |
||||
#include <wx/html/htmlwin.h> |
||||
#include <wx/dialog.h> |
||||
#include <wx/listbox.h> |
||||
#include <wx/checkbox.h> |
||||
#include <wx/scrolwin.h> |
||||
#include <wx/statbmp.h> |
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define wxID_MAINFRAME 1000 |
||||
#define wxID_BUTTONSEND 1001 |
||||
#define wxID_BUTTONRECEIVE 1002 |
||||
#define wxID_TEXTCTRLADDRESS 1003 |
||||
#define wxID_BUTTONNEW 1004 |
||||
#define wxID_BUTTONCOPY 1005 |
||||
#define wxID_PROXYIP 1006 |
||||
#define wxID_PROXYPORT 1007 |
||||
#define wxID_TRANSACTIONFEE 1008 |
||||
#define wxID_TEXTCTRLPAYTO 1009 |
||||
#define wxID_BUTTONPASTE 1010 |
||||
#define wxID_BUTTONADDRESSBOOK 1011 |
||||
#define wxID_TEXTCTRLAMOUNT 1012 |
||||
#define wxID_CHOICETRANSFERTYPE 1013 |
||||
#define wxID_LISTCTRL 1014 |
||||
#define wxID_BUTTONRENAME 1015 |
||||
#define wxID_PANELSENDING 1016 |
||||
#define wxID_LISTCTRLSENDING 1017 |
||||
#define wxID_PANELRECEIVING 1018 |
||||
#define wxID_LISTCTRLRECEIVING 1019 |
||||
#define wxID_BUTTONDELETE 1020 |
||||
#define wxID_BUTTONEDIT 1021 |
||||
#define wxID_TEXTCTRL 1022 |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class CMainFrameBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class CMainFrameBase : public wxFrame |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
wxMenuBar* m_menubar; |
||||
wxMenu* m_menuFile; |
||||
wxMenu* m_menuHelp; |
||||
wxToolBar* m_toolBar; |
||||
|
||||
wxStaticText* m_staticText32; |
||||
wxButton* m_buttonNew; |
||||
wxButton* m_buttonCopy; |
||||
|
||||
wxStaticText* m_staticText41; |
||||
wxStaticText* m_staticTextBalance; |
||||
|
||||
wxChoice* m_choiceFilter; |
||||
wxNotebook* m_notebook; |
||||
wxPanel* m_panel9; |
||||
wxPanel* m_panel91; |
||||
wxPanel* m_panel92; |
||||
wxPanel* m_panel93; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnClose( wxCloseEvent& event ) { event.Skip(); } |
||||
virtual void OnIconize( wxIconizeEvent& event ) { event.Skip(); } |
||||
virtual void OnIdle( wxIdleEvent& event ) { event.Skip(); } |
||||
virtual void OnMouseEvents( wxMouseEvent& event ) { event.Skip(); } |
||||
virtual void OnPaint( wxPaintEvent& event ) { event.Skip(); } |
||||
virtual void OnMenuFileExit( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnMenuOptionsChangeYourAddress( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnMenuOptionsEncryptWallet( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnMenuOptionsChangeWalletPassphrase( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnMenuOptionsOptions( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnMenuHelpAbout( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonSend( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonAddressBook( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnKeyDown( wxKeyEvent& event ) { event.Skip(); } |
||||
virtual void OnMouseEventsAddress( wxMouseEvent& event ) { event.Skip(); } |
||||
virtual void OnSetFocusAddress( wxFocusEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonNew( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCopy( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnNotebookPageChanged( wxNotebookEvent& event ) { event.Skip(); } |
||||
virtual void OnListColBeginDrag( wxListEvent& event ) { event.Skip(); } |
||||
virtual void OnListItemActivated( wxListEvent& event ) { event.Skip(); } |
||||
virtual void OnPaintListCtrl( wxPaintEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
wxMenu* m_menuOptions; |
||||
wxMenuItem* m_menuOptionsEncryptWallet; |
||||
wxMenuItem* m_menuOptionsChangeWalletPassphrase; |
||||
wxStatusBar* m_statusBar; |
||||
wxTextCtrl* m_textCtrlAddress; |
||||
wxListCtrl* m_listCtrlAll; |
||||
wxListCtrl* m_listCtrlSentReceived; |
||||
wxListCtrl* m_listCtrlSent; |
||||
wxListCtrl* m_listCtrlReceived; |
||||
|
||||
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 ); |
||||
~CMainFrameBase(); |
||||
|
||||
}; |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class CTxDetailsDialogBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class CTxDetailsDialogBase : public wxDialog |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
wxHtmlWindow* m_htmlWin; |
||||
wxButton* m_buttonOK; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
|
||||
CTxDetailsDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Transaction Details"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 620,450 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
||||
~CTxDetailsDialogBase(); |
||||
|
||||
}; |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class COptionsDialogBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class COptionsDialogBase : public wxDialog |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
wxListBox* m_listBox; |
||||
wxScrolledWindow* m_scrolledWindow; |
||||
wxPanel* m_panelMain; |
||||
|
||||
wxCheckBox* m_checkBoxStartOnSystemStartup; |
||||
wxCheckBox* m_checkBoxMinimizeToTray; |
||||
wxCheckBox* m_checkBoxUseUPnP; |
||||
wxCheckBox* m_checkBoxMinimizeOnClose; |
||||
wxCheckBox* m_checkBoxUseProxy; |
||||
|
||||
wxStaticText* m_staticTextProxyIP; |
||||
wxTextCtrl* m_textCtrlProxyIP; |
||||
wxStaticText* m_staticTextProxyPort; |
||||
wxTextCtrl* m_textCtrlProxyPort; |
||||
|
||||
wxStaticText* m_staticText32; |
||||
wxStaticText* m_staticText31; |
||||
wxTextCtrl* m_textCtrlTransactionFee; |
||||
wxPanel* m_panelTest2; |
||||
|
||||
wxStaticText* m_staticText321; |
||||
wxStaticText* m_staticText69; |
||||
wxButton* m_buttonOK; |
||||
wxButton* m_buttonCancel; |
||||
wxButton* m_buttonApply; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnListBox( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnCheckBoxMinimizeToTray( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnCheckBoxUseProxy( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnKillFocusProxy( wxFocusEvent& event ) { event.Skip(); } |
||||
virtual void OnKillFocusTransactionFee( wxFocusEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonApply( wxCommandEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
|
||||
COptionsDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 540,360 ), long style = wxDEFAULT_DIALOG_STYLE ); |
||||
~COptionsDialogBase(); |
||||
|
||||
}; |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class CAboutDialogBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class CAboutDialogBase : public wxDialog |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
wxStaticBitmap* m_bitmap; |
||||
|
||||
wxStaticText* m_staticText40; |
||||
|
||||
wxStaticText* m_staticTextMain; |
||||
|
||||
|
||||
wxButton* m_buttonOK; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
wxStaticText* m_staticTextVersion; |
||||
|
||||
CAboutDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("About Bitcoin"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 532,333 ), long style = wxDEFAULT_DIALOG_STYLE ); |
||||
~CAboutDialogBase(); |
||||
|
||||
}; |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class CSendDialogBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class CSendDialogBase : public wxDialog |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
|
||||
|
||||
wxStaticText* m_staticTextInstructions; |
||||
|
||||
wxStaticBitmap* m_bitmapCheckMark; |
||||
wxStaticText* m_staticText36; |
||||
wxTextCtrl* m_textCtrlAddress; |
||||
wxButton* m_buttonPaste; |
||||
wxButton* m_buttonAddress; |
||||
wxStaticText* m_staticText19; |
||||
wxTextCtrl* m_textCtrlAmount; |
||||
wxStaticText* m_staticText20; |
||||
wxChoice* m_choiceTransferType; |
||||
|
||||
|
||||
|
||||
wxButton* m_buttonSend; |
||||
wxButton* m_buttonCancel; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnKeyDown( wxKeyEvent& event ) { event.Skip(); } |
||||
virtual void OnTextAddress( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonPaste( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonAddressBook( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnKillFocusAmount( wxFocusEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonSend( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
|
||||
CSendDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Send Coins"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 498,157 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
||||
~CSendDialogBase(); |
||||
|
||||
}; |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class CSendingDialogBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class CSendingDialogBase : public wxDialog |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
wxStaticText* m_staticTextSending; |
||||
wxTextCtrl* m_textCtrlStatus; |
||||
|
||||
wxButton* m_buttonOK; |
||||
wxButton* m_buttonCancel; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnClose( wxCloseEvent& event ) { event.Skip(); } |
||||
virtual void OnPaint( wxPaintEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
|
||||
CSendingDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Sending..."), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 442,151 ), long style = wxDEFAULT_DIALOG_STYLE ); |
||||
~CSendingDialogBase(); |
||||
|
||||
}; |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class CYourAddressDialogBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class CYourAddressDialogBase : public wxDialog |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
|
||||
wxStaticText* m_staticText45; |
||||
wxListCtrl* m_listCtrl; |
||||
|
||||
wxButton* m_buttonRename; |
||||
wxButton* m_buttonNew; |
||||
wxButton* m_buttonCopy; |
||||
wxButton* m_buttonOK; |
||||
wxButton* m_buttonCancel; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnClose( wxCloseEvent& event ) { event.Skip(); } |
||||
virtual void OnListEndLabelEdit( wxListEvent& event ) { event.Skip(); } |
||||
virtual void OnListItemActivated( wxListEvent& event ) { event.Skip(); } |
||||
virtual void OnListItemSelected( wxListEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonRename( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonNew( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCopy( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
|
||||
CYourAddressDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Your Bitcoin Addresses"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 610,390 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
||||
~CYourAddressDialogBase(); |
||||
|
||||
}; |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class CAddressBookDialogBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class CAddressBookDialogBase : public wxDialog |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
wxNotebook* m_notebook; |
||||
wxPanel* m_panelSending; |
||||
|
||||
wxStaticText* m_staticText55; |
||||
wxListCtrl* m_listCtrlSending; |
||||
wxPanel* m_panelReceiving; |
||||
|
||||
wxStaticText* m_staticText45; |
||||
|
||||
wxListCtrl* m_listCtrlReceiving; |
||||
|
||||
wxButton* m_buttonDelete; |
||||
wxButton* m_buttonCopy; |
||||
wxButton* m_buttonEdit; |
||||
wxButton* m_buttonNew; |
||||
wxButton* m_buttonOK; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnClose( wxCloseEvent& event ) { event.Skip(); } |
||||
virtual void OnNotebookPageChanged( wxNotebookEvent& event ) { event.Skip(); } |
||||
virtual void OnListEndLabelEdit( wxListEvent& event ) { event.Skip(); } |
||||
virtual void OnListItemActivated( wxListEvent& event ) { event.Skip(); } |
||||
virtual void OnListItemSelected( wxListEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonDelete( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCopy( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonEdit( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonNew( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
wxButton* m_buttonCancel; |
||||
|
||||
CAddressBookDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Address Book"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 610,390 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
||||
~CAddressBookDialogBase(); |
||||
|
||||
}; |
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// Class CGetTextFromUserDialogBase
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class CGetTextFromUserDialogBase : public wxDialog |
||||
{ |
||||
private: |
||||
|
||||
protected: |
||||
|
||||
wxStaticText* m_staticTextMessage1; |
||||
wxTextCtrl* m_textCtrl1; |
||||
wxStaticText* m_staticTextMessage2; |
||||
wxTextCtrl* m_textCtrl2; |
||||
|
||||
|
||||
wxButton* m_buttonOK; |
||||
wxButton* m_buttonCancel; |
||||
|
||||
// Virtual event handlers, overide them in your derived class
|
||||
virtual void OnClose( wxCloseEvent& event ) { event.Skip(); } |
||||
virtual void OnKeyDown( wxKeyEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonOK( wxCommandEvent& event ) { event.Skip(); } |
||||
virtual void OnButtonCancel( wxCommandEvent& event ) { event.Skip(); } |
||||
|
||||
|
||||
public: |
||||
|
||||
CGetTextFromUserDialogBase( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 440,138 ), long style = wxDEFAULT_DIALOG_STYLE ); |
||||
~CGetTextFromUserDialogBase(); |
||||
|
||||
}; |
||||
|
||||
#endif //__uibase__
|
@ -1,665 +0,0 @@
@@ -1,665 +0,0 @@
|
||||
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
||||
// Distributed under the MIT/X11 software license, see the accompanying
|
||||
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
|
||||
/* XPM */ |
||||
static const char * about_xpm[] = { |
||||
/* columns rows colors chars-per-pixel */ |
||||
"96 564 92 1", |
||||
" c #001269", |
||||
". c #000C72", |
||||
"X c #00057F", |
||||
"o c #001175", |
||||
"O c #000B6A", |
||||
"+ c #000E84", |
||||
"@ c #000489", |
||||
"# c #001583", |
||||
"$ c #001B89", |
||||
"% c #001B99", |
||||
"& c #000B92", |
||||
"* c #00208B", |
||||
"= c #002B97", |
||||
"- c #0004A6", |
||||
"; c #001DA7", |
||||
": c #0014BC", |
||||
"> c #0019BB", |
||||
", c #0017B4", |
||||
"< c #0023A3", |
||||
"1 c #002CAA", |
||||
"2 c #0030A4", |
||||
"3 c #003BA3", |
||||
"4 c #0033AB", |
||||
"5 c #003FA8", |