///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
# include "uibase.h"
///////////////////////////////////////////////////////////////////////////
CMainFrameBase : : CMainFrameBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxFrame ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
this - > SetBackgroundColour ( wxSystemSettings : : GetColour ( wxSYS_COLOUR_BTNFACE ) ) ;
m_menubar = new wxMenuBar ( 0 ) ;
m_menubar - > SetBackgroundColour ( wxColour ( 240 , 240 , 240 ) ) ;
m_menuFile = new wxMenu ( ) ;
wxMenuItem * m_menuFileExit ;
m_menuFileExit = new wxMenuItem ( m_menuFile , wxID_ANY , wxString ( wxT ( " E&xit " ) ) , wxEmptyString , wxITEM_NORMAL ) ;
m_menuFile - > Append ( m_menuFileExit ) ;
m_menubar - > Append ( m_menuFile , wxT ( " &File " ) ) ;
m_menuOptions = new wxMenu ( ) ;
wxMenuItem * m_menuOptionsGenerateBitcoins ;
m_menuOptionsGenerateBitcoins = new wxMenuItem ( m_menuOptions , wxID_OPTIONSGENERATEBITCOINS , wxString ( wxT ( " &Generate Coins " ) ) , wxEmptyString , wxITEM_CHECK ) ;
m_menuOptions - > Append ( m_menuOptionsGenerateBitcoins ) ;
wxMenuItem * m_menuChangeYourAddress ;
m_menuChangeYourAddress = new wxMenuItem ( m_menuOptions , wxID_ANY , wxString ( wxT ( " &Change Your Address... " ) ) , wxEmptyString , wxITEM_NORMAL ) ;
m_menuOptions - > Append ( m_menuChangeYourAddress ) ;
wxMenuItem * m_menuOptionsOptions ;
m_menuOptionsOptions = new wxMenuItem ( m_menuOptions , wxID_ANY , wxString ( wxT ( " &Options... " ) ) , wxEmptyString , wxITEM_NORMAL ) ;
m_menuOptions - > Append ( m_menuOptionsOptions ) ;
m_menubar - > Append ( m_menuOptions , wxT ( " &Options " ) ) ;
m_menuHelp = new wxMenu ( ) ;
wxMenuItem * m_menuHelpAbout ;
m_menuHelpAbout = new wxMenuItem ( m_menuHelp , wxID_ANY , wxString ( wxT ( " &About... " ) ) , wxEmptyString , wxITEM_NORMAL ) ;
m_menuHelp - > Append ( m_menuHelpAbout ) ;
m_menubar - > Append ( m_menuHelp , wxT ( " &Help " ) ) ;
this - > SetMenuBar ( m_menubar ) ;
m_toolBar = this - > CreateToolBar ( wxTB_FLAT | wxTB_HORZ_TEXT , wxID_ANY ) ;
m_toolBar - > SetToolBitmapSize ( wxSize ( 20 , 20 ) ) ;
m_toolBar - > SetToolSeparation ( 1 ) ;
m_toolBar - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , 70 , 90 , 90 , false , wxEmptyString ) ) ;
m_toolBar - > AddTool ( wxID_BUTTONSEND , wxT ( " &Send Coins " ) , wxBitmap ( wxT ( " send20 " ) , wxBITMAP_TYPE_RESOURCE ) , wxNullBitmap , wxITEM_NORMAL , wxEmptyString , wxEmptyString ) ;
m_toolBar - > AddTool ( wxID_BUTTONRECEIVE , wxT ( " &Address Book " ) , wxBitmap ( wxT ( " addressbook20 " ) , wxBITMAP_TYPE_RESOURCE ) , wxNullBitmap , wxITEM_NORMAL , wxEmptyString , wxEmptyString ) ;
m_toolBar - > Realize ( ) ;
m_statusBar = this - > CreateStatusBar ( 1 , wxST_SIZEGRIP , wxID_ANY ) ;
m_statusBar - > SetBackgroundColour ( wxColour ( 240 , 240 , 240 ) ) ;
wxBoxSizer * bSizer2 ;
bSizer2 = new wxBoxSizer ( wxVERTICAL ) ;
bSizer2 - > Add ( 0 , 2 , 0 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer85 ;
bSizer85 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_staticText32 = new wxStaticText ( this , wxID_ANY , wxT ( " Your Bitcoin Address: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText32 - > Wrap ( - 1 ) ;
bSizer85 - > Add ( m_staticText32 , 0 , wxALIGN_CENTER_VERTICAL | wxLEFT , 5 ) ;
m_textCtrlAddress = new wxTextCtrl ( this , wxID_TEXTCTRLADDRESS , wxEmptyString , wxDefaultPosition , wxSize ( 250 , - 1 ) , wxTE_READONLY ) ;
m_textCtrlAddress - > SetBackgroundColour ( wxSystemSettings : : GetColour ( wxSYS_COLOUR_MENU ) ) ;
bSizer85 - > Add ( m_textCtrlAddress , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT | wxLEFT , 5 ) ;
m_buttonCopy = new wxButton ( this , wxID_BUTTONCOPY , wxT ( " &Copy to Clipboard " ) , wxDefaultPosition , wxDefaultSize , wxBU_EXACTFIT ) ;
bSizer85 - > Add ( m_buttonCopy , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_button91 = new wxButton ( this , wxID_BUTTONCHANGE , wxT ( " C&hange... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_button91 - > Hide ( ) ;
bSizer85 - > Add ( m_button91 , 0 , wxRIGHT , 5 ) ;
bSizer85 - > Add ( 0 , 0 , 0 , wxEXPAND , 5 ) ;
bSizer2 - > Add ( bSizer85 , 0 , wxEXPAND | wxRIGHT | wxLEFT , 5 ) ;
wxBoxSizer * bSizer3 ;
bSizer3 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_panel14 = new wxPanel ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * bSizer66 ;
bSizer66 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_staticText41 = new wxStaticText ( m_panel14 , wxID_ANY , wxT ( " Balance: " ) , wxDefaultPosition , wxSize ( - 1 , 15 ) , 0 ) ;
m_staticText41 - > Wrap ( - 1 ) ;
bSizer66 - > Add ( m_staticText41 , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_staticTextBalance = new wxStaticText ( m_panel14 , wxID_ANY , wxEmptyString , wxDefaultPosition , wxSize ( 120 , 15 ) , wxALIGN_RIGHT | wxST_NO_AUTORESIZE ) ;
m_staticTextBalance - > Wrap ( - 1 ) ;
m_staticTextBalance - > SetFont ( wxFont ( 8 , 70 , 90 , 90 , false , wxEmptyString ) ) ;
m_staticTextBalance - > SetBackgroundColour ( wxSystemSettings : : GetColour ( wxSYS_COLOUR_WINDOW ) ) ;
bSizer66 - > Add ( m_staticTextBalance , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_panel14 - > SetSizer ( bSizer66 ) ;
m_panel14 - > Layout ( ) ;
bSizer66 - > Fit ( m_panel14 ) ;
bSizer3 - > Add ( m_panel14 , 1 , wxEXPAND | wxALIGN_BOTTOM | wxALL , 5 ) ;
bSizer3 - > Add ( 0 , 0 , 0 , wxEXPAND , 5 ) ;
wxString m_choiceFilterChoices [ ] = { wxT ( " All " ) , wxT ( " Sent " ) , wxT ( " Received " ) , wxT ( " In Progress " ) } ;
int m_choiceFilterNChoices = sizeof ( m_choiceFilterChoices ) / sizeof ( wxString ) ;
m_choiceFilter = new wxChoice ( this , wxID_ANY , wxDefaultPosition , wxSize ( 110 , - 1 ) , m_choiceFilterNChoices , m_choiceFilterChoices , 0 ) ;
m_choiceFilter - > SetSelection ( 0 ) ;
m_choiceFilter - > Hide ( ) ;
bSizer3 - > Add ( m_choiceFilter , 0 , wxALIGN_BOTTOM | wxTOP | wxRIGHT | wxLEFT , 5 ) ;
bSizer2 - > Add ( bSizer3 , 0 , wxEXPAND , 5 ) ;
m_notebook = new wxNotebook ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_panel7 = new wxPanel ( m_notebook , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
wxBoxSizer * bSizer157 ;
bSizer157 = new wxBoxSizer ( wxVERTICAL ) ;
m_listCtrl = new wxListCtrl ( m_panel7 , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLC_NO_SORT_HEADER | wxLC_REPORT | wxLC_SORT_DESCENDING | wxALWAYS_SHOW_SB ) ;
bSizer157 - > Add ( m_listCtrl , 1 , wxEXPAND | wxALL , 5 ) ;
m_panel7 - > SetSizer ( bSizer157 ) ;
m_panel7 - > Layout ( ) ;
bSizer157 - > Fit ( m_panel7 ) ;
m_notebook - > AddPage ( m_panel7 , wxT ( " All Transactions " ) , false ) ;
bSizer2 - > Add ( m_notebook , 1 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer_TabsForFutureUse ;
bSizer_TabsForFutureUse = new wxBoxSizer ( wxVERTICAL ) ;
m_panel9 = new wxPanel ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_panel9 - > Hide ( ) ;
wxBoxSizer * bSizer159 ;
bSizer159 = new wxBoxSizer ( wxVERTICAL ) ;
m_listCtrlEscrows = new wxListCtrl ( m_panel9 , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLC_NO_SORT_HEADER | wxLC_REPORT ) ;
bSizer159 - > Add ( m_listCtrlEscrows , 1 , wxALL | wxEXPAND , 5 ) ;
m_panel9 - > SetSizer ( bSizer159 ) ;
m_panel9 - > Layout ( ) ;
bSizer159 - > Fit ( m_panel9 ) ;
bSizer_TabsForFutureUse - > Add ( m_panel9 , 1 , wxEXPAND | wxALL , 5 ) ;
m_panel8 = new wxPanel ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_panel8 - > Hide ( ) ;
wxBoxSizer * bSizer158 ;
bSizer158 = new wxBoxSizer ( wxVERTICAL ) ;
m_listCtrlOrdersSent = new wxListCtrl ( m_panel8 , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLC_NO_SORT_HEADER | wxLC_REPORT ) ;
bSizer158 - > Add ( m_listCtrlOrdersSent , 1 , wxALL | wxEXPAND , 5 ) ;
m_panel8 - > SetSizer ( bSizer158 ) ;
m_panel8 - > Layout ( ) ;
bSizer158 - > Fit ( m_panel8 ) ;
bSizer_TabsForFutureUse - > Add ( m_panel8 , 1 , wxEXPAND | wxALL , 5 ) ;
m_panel10 = new wxPanel ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_panel10 - > Hide ( ) ;
wxBoxSizer * bSizer160 ;
bSizer160 = new wxBoxSizer ( wxVERTICAL ) ;
m_listCtrlProductsSent = new wxListCtrl ( m_panel10 , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLC_NO_SORT_HEADER | wxLC_REPORT ) ;
bSizer160 - > Add ( m_listCtrlProductsSent , 1 , wxALL | wxEXPAND , 5 ) ;
m_panel10 - > SetSizer ( bSizer160 ) ;
m_panel10 - > Layout ( ) ;
bSizer160 - > Fit ( m_panel10 ) ;
bSizer_TabsForFutureUse - > Add ( m_panel10 , 1 , wxEXPAND | wxALL , 5 ) ;
m_panel11 = new wxPanel ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxTAB_TRAVERSAL ) ;
m_panel11 - > Hide ( ) ;
wxBoxSizer * bSizer161 ;
bSizer161 = new wxBoxSizer ( wxVERTICAL ) ;
m_listCtrlOrdersReceived = new wxListCtrl ( m_panel11 , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLC_NO_SORT_HEADER | wxLC_REPORT ) ;
bSizer161 - > Add ( m_listCtrlOrdersReceived , 1 , wxALL | wxEXPAND , 5 ) ;
m_panel11 - > SetSizer ( bSizer161 ) ;
m_panel11 - > Layout ( ) ;
bSizer161 - > Fit ( m_panel11 ) ;
bSizer_TabsForFutureUse - > Add ( m_panel11 , 1 , wxEXPAND | wxALL , 5 ) ;
bSizer2 - > Add ( bSizer_TabsForFutureUse , 1 , wxEXPAND , 5 ) ;
this - > SetSizer ( bSizer2 ) ;
this - > Layout ( ) ;
// Connect Events
this - > Connect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( CMainFrameBase : : OnClose ) ) ;
this - > Connect ( wxEVT_ICONIZE , wxIconizeEventHandler ( CMainFrameBase : : OnIconize ) ) ;
this - > Connect ( wxEVT_IDLE , wxIdleEventHandler ( CMainFrameBase : : OnIdle ) ) ;
this - > Connect ( wxEVT_LEFT_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_LEFT_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_MIDDLE_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_MIDDLE_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_RIGHT_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_RIGHT_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_MOTION , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_LEFT_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_MIDDLE_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_RIGHT_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_LEAVE_WINDOW , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_ENTER_WINDOW , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_MOUSEWHEEL , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Connect ( wxEVT_PAINT , wxPaintEventHandler ( CMainFrameBase : : OnPaint ) ) ;
this - > Connect ( m_menuFileExit - > GetId ( ) , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuFileExit ) ) ;
this - > Connect ( m_menuOptionsGenerateBitcoins - > GetId ( ) , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuOptionsGenerate ) ) ;
this - > Connect ( m_menuOptionsGenerateBitcoins - > GetId ( ) , wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( CMainFrameBase : : OnUpdateMenuGenerate ) ) ;
this - > Connect ( m_menuChangeYourAddress - > GetId ( ) , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuOptionsChangeYourAddress ) ) ;
this - > Connect ( m_menuOptionsOptions - > GetId ( ) , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuOptionsOptions ) ) ;
this - > Connect ( m_menuHelpAbout - > GetId ( ) , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuHelpAbout ) ) ;
this - > Connect ( wxID_BUTTONSEND , wxEVT_COMMAND_TOOL_CLICKED , wxCommandEventHandler ( CMainFrameBase : : OnButtonSend ) ) ;
this - > Connect ( wxID_BUTTONRECEIVE , wxEVT_COMMAND_TOOL_CLICKED , wxCommandEventHandler ( CMainFrameBase : : OnButtonAddressBook ) ) ;
m_textCtrlAddress - > Connect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CMainFrameBase : : OnKeyDown ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_LEFT_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_LEFT_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_MIDDLE_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_MIDDLE_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_RIGHT_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_RIGHT_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_MOTION , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_LEFT_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_MIDDLE_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_RIGHT_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_LEAVE_WINDOW , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_ENTER_WINDOW , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_MOUSEWHEEL , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_SET_FOCUS , wxFocusEventHandler ( CMainFrameBase : : OnSetFocusAddress ) , NULL , this ) ;
m_buttonCopy - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CMainFrameBase : : OnButtonCopy ) , NULL , this ) ;
m_button91 - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CMainFrameBase : : OnButtonChange ) , NULL , this ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , wxListEventHandler ( CMainFrameBase : : OnListColBeginDrag ) , NULL , this ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CMainFrameBase : : OnListItemActivatedAllTransactions ) , NULL , this ) ;
m_listCtrl - > Connect ( wxEVT_PAINT , wxPaintEventHandler ( CMainFrameBase : : OnPaintListCtrl ) , NULL , this ) ;
m_listCtrlOrdersSent - > Connect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CMainFrameBase : : OnListItemActivatedOrdersSent ) , NULL , this ) ;
m_listCtrlProductsSent - > Connect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CMainFrameBase : : OnListItemActivatedProductsSent ) , NULL , this ) ;
m_listCtrlOrdersReceived - > Connect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CMainFrameBase : : OnListItemActivatedOrdersReceived ) , NULL , this ) ;
}
CMainFrameBase : : ~ CMainFrameBase ( )
{
// Disconnect Events
this - > Disconnect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( CMainFrameBase : : OnClose ) ) ;
this - > Disconnect ( wxEVT_ICONIZE , wxIconizeEventHandler ( CMainFrameBase : : OnIconize ) ) ;
this - > Disconnect ( wxEVT_IDLE , wxIdleEventHandler ( CMainFrameBase : : OnIdle ) ) ;
this - > Disconnect ( wxEVT_LEFT_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_LEFT_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_MIDDLE_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_MIDDLE_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_RIGHT_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_RIGHT_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_MOTION , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_LEFT_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_MIDDLE_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_RIGHT_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_LEAVE_WINDOW , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_ENTER_WINDOW , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_MOUSEWHEEL , wxMouseEventHandler ( CMainFrameBase : : OnMouseEvents ) ) ;
this - > Disconnect ( wxEVT_PAINT , wxPaintEventHandler ( CMainFrameBase : : OnPaint ) ) ;
this - > Disconnect ( wxID_ANY , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuFileExit ) ) ;
this - > Disconnect ( wxID_ANY , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuOptionsGenerate ) ) ;
this - > Disconnect ( wxID_ANY , wxEVT_UPDATE_UI , wxUpdateUIEventHandler ( CMainFrameBase : : OnUpdateMenuGenerate ) ) ;
this - > Disconnect ( wxID_ANY , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuOptionsChangeYourAddress ) ) ;
this - > Disconnect ( wxID_ANY , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuOptionsOptions ) ) ;
this - > Disconnect ( wxID_ANY , wxEVT_COMMAND_MENU_SELECTED , wxCommandEventHandler ( CMainFrameBase : : OnMenuHelpAbout ) ) ;
this - > Disconnect ( wxID_BUTTONSEND , wxEVT_COMMAND_TOOL_CLICKED , wxCommandEventHandler ( CMainFrameBase : : OnButtonSend ) ) ;
this - > Disconnect ( wxID_BUTTONRECEIVE , wxEVT_COMMAND_TOOL_CLICKED , wxCommandEventHandler ( CMainFrameBase : : OnButtonAddressBook ) ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CMainFrameBase : : OnKeyDown ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_LEFT_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_LEFT_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_MIDDLE_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_MIDDLE_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_RIGHT_DOWN , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_RIGHT_UP , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_MOTION , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_LEFT_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_MIDDLE_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_RIGHT_DCLICK , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_LEAVE_WINDOW , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_ENTER_WINDOW , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_MOUSEWHEEL , wxMouseEventHandler ( CMainFrameBase : : OnMouseEventsAddress ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_SET_FOCUS , wxFocusEventHandler ( CMainFrameBase : : OnSetFocusAddress ) , NULL , this ) ;
m_buttonCopy - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CMainFrameBase : : OnButtonCopy ) , NULL , this ) ;
m_button91 - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CMainFrameBase : : OnButtonChange ) , NULL , this ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_COL_BEGIN_DRAG , wxListEventHandler ( CMainFrameBase : : OnListColBeginDrag ) , NULL , this ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CMainFrameBase : : OnListItemActivatedAllTransactions ) , NULL , this ) ;
m_listCtrl - > Disconnect ( wxEVT_PAINT , wxPaintEventHandler ( CMainFrameBase : : OnPaintListCtrl ) , NULL , this ) ;
m_listCtrlOrdersSent - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CMainFrameBase : : OnListItemActivatedOrdersSent ) , NULL , this ) ;
m_listCtrlProductsSent - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CMainFrameBase : : OnListItemActivatedProductsSent ) , NULL , this ) ;
m_listCtrlOrdersReceived - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CMainFrameBase : : OnListItemActivatedOrdersReceived ) , NULL , this ) ;
}
CTxDetailsDialogBase : : CTxDetailsDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizer64 ;
bSizer64 = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizer66 ;
bSizer66 = new wxBoxSizer ( wxVERTICAL ) ;
m_htmlWin = new wxHtmlWindow ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxHW_SCROLLBAR_AUTO ) ;
bSizer66 - > Add ( m_htmlWin , 1 , wxALL | wxEXPAND , 5 ) ;
bSizer64 - > Add ( bSizer66 , 1 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer65 ;
bSizer65 = new wxBoxSizer ( wxVERTICAL ) ;
m_buttonOK = new wxButton ( this , wxID_OK , wxT ( " OK " ) , wxDefaultPosition , wxSize ( 85 , 25 ) , 0 ) ;
bSizer65 - > Add ( m_buttonOK , 0 , wxALL , 5 ) ;
bSizer64 - > Add ( bSizer65 , 0 , wxALIGN_RIGHT , 5 ) ;
this - > SetSizer ( bSizer64 ) ;
this - > Layout ( ) ;
// Connect Events
m_buttonOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CTxDetailsDialogBase : : OnButtonOK ) , NULL , this ) ;
}
CTxDetailsDialogBase : : ~ CTxDetailsDialogBase ( )
{
// Disconnect Events
m_buttonOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CTxDetailsDialogBase : : OnButtonOK ) , NULL , this ) ;
}
COptionsDialogBase : : COptionsDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizer55 ;
bSizer55 = new wxBoxSizer ( wxVERTICAL ) ;
panelSizer = new wxBoxSizer ( wxHORIZONTAL ) ;
m_treeCtrl = new wxTreeCtrl ( this , wxID_ANY , wxDefaultPosition , wxSize ( 100 , - 1 ) , wxTR_HAS_BUTTONS | wxTR_HIDE_ROOT | wxTR_LINES_AT_ROOT ) ;
panelSizer - > Add ( m_treeCtrl , 0 , wxALL | wxEXPAND , 5 ) ;
bSizer55 - > Add ( panelSizer , 1 , wxEXPAND , 5 ) ;
m_staticline1 = new wxStaticLine ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLI_HORIZONTAL ) ;
bSizer55 - > Add ( m_staticline1 , 0 , wxEXPAND | wxALL , 5 ) ;
wxBoxSizer * bSizer58 ;
bSizer58 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_buttonOK = new wxButton ( this , wxID_OK , wxT ( " OK " ) , wxDefaultPosition , wxSize ( 85 , 25 ) , 0 ) ;
bSizer58 - > Add ( m_buttonOK , 0 , wxALL , 5 ) ;
m_buttonCancel = new wxButton ( this , wxID_CANCEL , wxT ( " Cancel " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonCancel - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer58 - > Add ( m_buttonCancel , 0 , wxALL , 5 ) ;
m_buttonApply = new wxButton ( this , wxID_ANY , wxT ( " Apply " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonApply - > Enable ( false ) ;
m_buttonApply - > Hide ( ) ;
bSizer58 - > Add ( m_buttonApply , 0 , wxALL , 5 ) ;
bSizer55 - > Add ( bSizer58 , 0 , wxALIGN_RIGHT , 5 ) ;
this - > SetSizer ( bSizer55 ) ;
this - > Layout ( ) ;
// Connect Events
m_treeCtrl - > Connect ( wxEVT_COMMAND_TREE_SEL_CHANGED , wxTreeEventHandler ( COptionsDialogBase : : MenuSelChanged ) , NULL , this ) ;
m_buttonOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( COptionsDialogBase : : OnButtonOK ) , NULL , this ) ;
m_buttonCancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( COptionsDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
COptionsDialogBase : : ~ COptionsDialogBase ( )
{
// Disconnect Events
m_treeCtrl - > Disconnect ( wxEVT_COMMAND_TREE_SEL_CHANGED , wxTreeEventHandler ( COptionsDialogBase : : MenuSelChanged ) , NULL , this ) ;
m_buttonOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( COptionsDialogBase : : OnButtonOK ) , NULL , this ) ;
m_buttonCancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( COptionsDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CAboutDialogBase : : CAboutDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizer60 ;
bSizer60 = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizer62 ;
bSizer62 = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizer62 - > Add ( 60 , 0 , 0 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer63 ;
bSizer63 = new wxBoxSizer ( wxVERTICAL ) ;
bSizer63 - > Add ( 0 , 50 , 0 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer64 ;
bSizer64 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_staticText40 = new wxStaticText ( this , wxID_ANY , wxT ( " Bitcoin " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText40 - > Wrap ( - 1 ) ;
m_staticText40 - > SetFont ( wxFont ( 10 , 74 , 90 , 92 , false , wxT ( " Tahoma " ) ) ) ;
bSizer64 - > Add ( m_staticText40 , 0 , wxALIGN_BOTTOM | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_staticTextVersion = new wxStaticText ( this , wxID_ANY , wxT ( " version " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextVersion - > Wrap ( - 1 ) ;
m_staticTextVersion - > SetFont ( wxFont ( 10 , 74 , 90 , 90 , false , wxT ( " Tahoma " ) ) ) ;
bSizer64 - > Add ( m_staticTextVersion , 0 , wxALIGN_BOTTOM | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
bSizer63 - > Add ( bSizer64 , 0 , wxEXPAND , 5 ) ;
bSizer63 - > Add ( 0 , 4 , 0 , wxEXPAND , 5 ) ;
m_staticTextMain = new wxStaticText ( this , wxID_ANY , wxT ( " Copyright © 2009 Satoshi Nakamoto. \n \n This is experimental software. Do not rely on it for actual financial transactions. \n \n Distributed under the MIT/X11 software license, see the accompanying file license.txt or http://www.opensource.org/licenses/mit-license.php. \n \n This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com). " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextMain - > Wrap ( 400 ) ;
bSizer63 - > Add ( m_staticTextMain , 0 , wxALL , 5 ) ;
bSizer63 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
bSizer62 - > Add ( bSizer63 , 1 , wxEXPAND , 5 ) ;
bSizer60 - > Add ( bSizer62 , 1 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer61 ;
bSizer61 = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizer61 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_buttonOK = new wxButton ( this , wxID_OK , wxT ( " OK " ) , wxDefaultPosition , wxSize ( 85 , 25 ) , 0 ) ;
bSizer61 - > Add ( m_buttonOK , 0 , wxALL , 5 ) ;
bSizer60 - > Add ( bSizer61 , 0 , wxALIGN_RIGHT | wxEXPAND , 5 ) ;
this - > SetSizer ( bSizer60 ) ;
this - > Layout ( ) ;
// Connect Events
m_buttonOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAboutDialogBase : : OnButtonOK ) , NULL , this ) ;
}
CAboutDialogBase : : ~ CAboutDialogBase ( )
{
// Disconnect Events
m_buttonOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAboutDialogBase : : OnButtonOK ) , NULL , this ) ;
}
CSendDialogBase : : CSendDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizer21 ;
bSizer21 = new wxBoxSizer ( wxVERTICAL ) ;
bSizer21 - > Add ( 0 , 5 , 0 , wxEXPAND , 5 ) ;
wxFlexGridSizer * fgSizer1 ;
fgSizer1 = new wxFlexGridSizer ( 3 , 2 , 0 , 0 ) ;
fgSizer1 - > AddGrowableCol ( 1 ) ;
fgSizer1 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer1 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
fgSizer1 - > Add ( 0 , 0 , 0 , wxEXPAND , 5 ) ;
m_staticText14 = new wxStaticText ( this , wxID_ANY , wxT ( " Enter the recipient's IP address (e.g. 123.45.6.7) for online transfer with comments and confirmation, \n or Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L) if recipient is not online. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText14 - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_staticText14 , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
wxBoxSizer * bSizer47 ;
bSizer47 = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizer47 - > SetMinSize ( wxSize ( 70 , - 1 ) ) ;
bSizer47 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_bitmapCheckMark = new wxStaticBitmap ( this , wxID_ANY , wxICON ( check ) , wxDefaultPosition , wxSize ( 16 , 16 ) , 0 ) ;
bSizer47 - > Add ( m_bitmapCheckMark , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_staticText36 = new wxStaticText ( this , wxID_ANY , wxT ( " Pay &To: " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxALIGN_RIGHT ) ;
m_staticText36 - > Wrap ( - 1 ) ;
bSizer47 - > Add ( m_staticText36 , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
fgSizer1 - > Add ( bSizer47 , 1 , wxEXPAND | wxLEFT , 5 ) ;
wxBoxSizer * bSizer19 ;
bSizer19 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_textCtrlAddress = new wxTextCtrl ( this , wxID_TEXTCTRLPAYTO , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer19 - > Add ( m_textCtrlAddress , 1 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_buttonPaste = new wxButton ( this , wxID_BUTTONPASTE , wxT ( " &Paste " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxBU_EXACTFIT ) ;
bSizer19 - > Add ( m_buttonPaste , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
m_buttonAddress = new wxButton ( this , wxID_BUTTONADDRESSBOOK , wxT ( " Address &Book... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer19 - > Add ( m_buttonAddress , 0 , wxALIGN_CENTER_VERTICAL | wxRIGHT , 5 ) ;
fgSizer1 - > Add ( bSizer19 , 1 , wxEXPAND | wxRIGHT , 5 ) ;
m_staticText19 = new wxStaticText ( this , wxID_ANY , wxT ( " &Amount: " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxALIGN_RIGHT ) ;
m_staticText19 - > Wrap ( - 1 ) ;
fgSizer1 - > Add ( m_staticText19 , 0 , wxALIGN_CENTER_VERTICAL | wxTOP | wxBOTTOM | wxLEFT | wxALIGN_RIGHT , 5 ) ;
m_textCtrlAmount = new wxTextCtrl ( this , wxID_TEXTCTRLAMOUNT , wxEmptyString , wxDefaultPosition , wxSize ( 145 , - 1 ) , 0 ) ;
m_textCtrlAmount - > SetMaxLength ( 20 ) ;
m_textCtrlAmount - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , 70 , 90 , 90 , false , wxEmptyString ) ) ;
fgSizer1 - > Add ( m_textCtrlAmount , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
m_staticText20 = new wxStaticText ( this , wxID_ANY , wxT ( " T&ransfer: " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , wxALIGN_RIGHT ) ;
m_staticText20 - > Wrap ( - 1 ) ;
m_staticText20 - > Hide ( ) ;
fgSizer1 - > Add ( m_staticText20 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
wxString m_choiceTransferTypeChoices [ ] = { wxT ( " Standard " ) } ;
int m_choiceTransferTypeNChoices = sizeof ( m_choiceTransferTypeChoices ) / sizeof ( wxString ) ;
m_choiceTransferType = new wxChoice ( this , wxID_CHOICETRANSFERTYPE , wxDefaultPosition , wxDefaultSize , m_choiceTransferTypeNChoices , m_choiceTransferTypeChoices , 0 ) ;
m_choiceTransferType - > SetSelection ( 0 ) ;
m_choiceTransferType - > Hide ( ) ;
fgSizer1 - > Add ( m_choiceTransferType , 0 , wxALIGN_CENTER_VERTICAL | wxALL , 5 ) ;
fgSizer1 - > Add ( 0 , 3 , 0 , wxEXPAND , 5 ) ;
fgSizer1 - > Add ( 0 , 0 , 0 , wxEXPAND , 5 ) ;
bSizer21 - > Add ( fgSizer1 , 0 , wxEXPAND | wxLEFT , 5 ) ;
wxBoxSizer * bSizer672 ;
bSizer672 = new wxBoxSizer ( wxHORIZONTAL ) ;
wxBoxSizer * bSizer681 ;
bSizer681 = new wxBoxSizer ( wxVERTICAL ) ;
m_staticTextFrom = new wxStaticText ( this , wxID_ANY , wxT ( " &From: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextFrom - > Wrap ( - 1 ) ;
bSizer681 - > Add ( m_staticTextFrom , 0 , wxBOTTOM | wxLEFT , 5 ) ;
m_textCtrlFrom = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
bSizer681 - > Add ( m_textCtrlFrom , 0 , wxLEFT | wxEXPAND , 5 ) ;
bSizer672 - > Add ( bSizer681 , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
bSizer21 - > Add ( bSizer672 , 0 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer67 ;
bSizer67 = new wxBoxSizer ( wxHORIZONTAL ) ;
wxBoxSizer * bSizer68 ;
bSizer68 = new wxBoxSizer ( wxVERTICAL ) ;
m_staticTextMessage = new wxStaticText ( this , wxID_ANY , wxT ( " &Message: " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticTextMessage - > Wrap ( - 1 ) ;
bSizer68 - > Add ( m_staticTextMessage , 0 , wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_textCtrlMessage = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , wxTE_MULTILINE ) ;
bSizer68 - > Add ( m_textCtrlMessage , 1 , wxEXPAND | wxLEFT , 5 ) ;
bSizer67 - > Add ( bSizer68 , 1 , wxEXPAND | wxBOTTOM | wxRIGHT | wxLEFT , 5 ) ;
bSizer21 - > Add ( bSizer67 , 1 , wxEXPAND , 5 ) ;
wxBoxSizer * bSizer23 ;
bSizer23 = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizer23 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_buttonSend = new wxButton ( this , wxID_BUTTONSEND , wxT ( " &Send " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonSend - > SetFont ( wxFont ( wxNORMAL_FONT - > GetPointSize ( ) , 70 , 90 , 90 , false , wxEmptyString ) ) ;
m_buttonSend - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer23 - > Add ( m_buttonSend , 0 , wxALL , 5 ) ;
m_buttonCancel = new wxButton ( this , wxID_CANCEL , wxT ( " Cancel " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonCancel - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer23 - > Add ( m_buttonCancel , 0 , wxALL , 5 ) ;
bSizer21 - > Add ( bSizer23 , 0 , wxEXPAND , 5 ) ;
this - > SetSizer ( bSizer21 ) ;
this - > Layout ( ) ;
// Connect Events
m_textCtrlAddress - > Connect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CSendDialogBase : : OnKeyDown ) , NULL , this ) ;
m_textCtrlAddress - > Connect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( CSendDialogBase : : OnTextAddress ) , NULL , this ) ;
m_buttonPaste - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendDialogBase : : OnButtonPaste ) , NULL , this ) ;
m_buttonAddress - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendDialogBase : : OnButtonAddressBook ) , NULL , this ) ;
m_textCtrlAmount - > Connect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CSendDialogBase : : OnKeyDown ) , NULL , this ) ;
m_textCtrlAmount - > Connect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( CSendDialogBase : : OnKillFocusAmount ) , NULL , this ) ;
m_textCtrlFrom - > Connect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CSendDialogBase : : OnKeyDown ) , NULL , this ) ;
m_textCtrlMessage - > Connect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CSendDialogBase : : OnKeyDown ) , NULL , this ) ;
m_buttonSend - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendDialogBase : : OnButtonSend ) , NULL , this ) ;
m_buttonCancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CSendDialogBase : : ~ CSendDialogBase ( )
{
// Disconnect Events
m_textCtrlAddress - > Disconnect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CSendDialogBase : : OnKeyDown ) , NULL , this ) ;
m_textCtrlAddress - > Disconnect ( wxEVT_COMMAND_TEXT_UPDATED , wxCommandEventHandler ( CSendDialogBase : : OnTextAddress ) , NULL , this ) ;
m_buttonPaste - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendDialogBase : : OnButtonPaste ) , NULL , this ) ;
m_buttonAddress - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendDialogBase : : OnButtonAddressBook ) , NULL , this ) ;
m_textCtrlAmount - > Disconnect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CSendDialogBase : : OnKeyDown ) , NULL , this ) ;
m_textCtrlAmount - > Disconnect ( wxEVT_KILL_FOCUS , wxFocusEventHandler ( CSendDialogBase : : OnKillFocusAmount ) , NULL , this ) ;
m_textCtrlFrom - > Disconnect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CSendDialogBase : : OnKeyDown ) , NULL , this ) ;
m_textCtrlMessage - > Disconnect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CSendDialogBase : : OnKeyDown ) , NULL , this ) ;
m_buttonSend - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendDialogBase : : OnButtonSend ) , NULL , this ) ;
m_buttonCancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CSendingDialogBase : : CSendingDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizer68 ;
bSizer68 = new wxBoxSizer ( wxVERTICAL ) ;
m_staticTextSending = new wxStaticText ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxSize ( - 1 , 14 ) , 0 ) ;
m_staticTextSending - > Wrap ( - 1 ) ;
bSizer68 - > Add ( m_staticTextSending , 0 , wxALIGN_CENTER_VERTICAL | wxEXPAND | wxTOP | wxRIGHT | wxLEFT , 8 ) ;
m_textCtrlStatus = new wxTextCtrl ( this , wxID_ANY , wxT ( " \n \n Connecting... " ) , wxDefaultPosition , wxDefaultSize , wxTE_CENTRE | wxTE_MULTILINE | wxTE_NO_VSCROLL | wxTE_READONLY | wxNO_BORDER ) ;
m_textCtrlStatus - > SetBackgroundColour ( wxSystemSettings : : GetColour ( wxSYS_COLOUR_BTNFACE ) ) ;
bSizer68 - > Add ( m_textCtrlStatus , 1 , wxEXPAND | wxRIGHT | wxLEFT , 10 ) ;
wxBoxSizer * bSizer69 ;
bSizer69 = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizer69 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_buttonOK = new wxButton ( this , wxID_ANY , wxT ( " OK " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonOK - > Enable ( false ) ;
m_buttonOK - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonOK , 0 , wxALL , 5 ) ;
m_buttonCancel = new wxButton ( this , wxID_CANCEL , wxT ( " Cancel " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonCancel - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonCancel , 0 , wxALL , 5 ) ;
bSizer68 - > Add ( bSizer69 , 0 , wxEXPAND , 5 ) ;
this - > SetSizer ( bSizer68 ) ;
this - > Layout ( ) ;
// Connect Events
this - > Connect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( CSendingDialogBase : : OnClose ) ) ;
this - > Connect ( wxEVT_PAINT , wxPaintEventHandler ( CSendingDialogBase : : OnPaint ) ) ;
m_buttonOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendingDialogBase : : OnButtonOK ) , NULL , this ) ;
m_buttonCancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendingDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CSendingDialogBase : : ~ CSendingDialogBase ( )
{
// Disconnect Events
this - > Disconnect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( CSendingDialogBase : : OnClose ) ) ;
this - > Disconnect ( wxEVT_PAINT , wxPaintEventHandler ( CSendingDialogBase : : OnPaint ) ) ;
m_buttonOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendingDialogBase : : OnButtonOK ) , NULL , this ) ;
m_buttonCancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CSendingDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CYourAddressDialogBase : : CYourAddressDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizer68 ;
bSizer68 = new wxBoxSizer ( wxVERTICAL ) ;
bSizer68 - > Add ( 0 , 5 , 0 , wxEXPAND , 5 ) ;
m_staticText45 = new wxStaticText ( this , wxID_ANY , wxT ( " These are your Bitcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you. The highlighted address is displayed in the main window. " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText45 - > Wrap ( 590 ) ;
bSizer68 - > Add ( m_staticText45 , 0 , wxALL , 5 ) ;
m_listCtrl = new wxListCtrl ( this , wxID_LISTCTRL , wxDefaultPosition , wxDefaultSize , wxLC_NO_SORT_HEADER | wxLC_REPORT | wxLC_SORT_ASCENDING ) ;
bSizer68 - > Add ( m_listCtrl , 1 , wxALL | wxEXPAND , 5 ) ;
wxBoxSizer * bSizer69 ;
bSizer69 = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizer69 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_buttonRename = new wxButton ( this , wxID_BUTTONRENAME , wxT ( " &Edit... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonRename - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonRename , 0 , wxALL , 5 ) ;
m_buttonNew = new wxButton ( this , wxID_BUTTONNEW , wxT ( " &New Address... " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonNew - > SetMinSize ( wxSize ( 110 , 25 ) ) ;
bSizer69 - > Add ( m_buttonNew , 0 , wxALL , 5 ) ;
m_buttonCopy = new wxButton ( this , wxID_BUTTONCOPY , wxT ( " &Copy to Clipboard " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonCopy - > SetMinSize ( wxSize ( 120 , 25 ) ) ;
bSizer69 - > Add ( m_buttonCopy , 0 , wxALL , 5 ) ;
m_buttonOK = new wxButton ( this , wxID_OK , wxT ( " OK " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonOK - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonOK , 0 , wxALL , 5 ) ;
m_buttonCancel = new wxButton ( this , wxID_CANCEL , wxT ( " Cancel " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonCancel - > Hide ( ) ;
m_buttonCancel - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonCancel , 0 , wxALL , 5 ) ;
bSizer68 - > Add ( bSizer69 , 0 , wxEXPAND , 5 ) ;
this - > SetSizer ( bSizer68 ) ;
this - > Layout ( ) ;
// Connect Events
this - > Connect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( CYourAddressDialogBase : : OnClose ) ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_END_LABEL_EDIT , wxListEventHandler ( CYourAddressDialogBase : : OnListEndLabelEdit ) , NULL , this ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CYourAddressDialogBase : : OnListItemActivated ) , NULL , this ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_ITEM_SELECTED , wxListEventHandler ( CYourAddressDialogBase : : OnListItemSelected ) , NULL , this ) ;
m_buttonRename - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonRename ) , NULL , this ) ;
m_buttonNew - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonNew ) , NULL , this ) ;
m_buttonCopy - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonCopy ) , NULL , this ) ;
m_buttonOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonOK ) , NULL , this ) ;
m_buttonCancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CYourAddressDialogBase : : ~ CYourAddressDialogBase ( )
{
// Disconnect Events
this - > Disconnect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( CYourAddressDialogBase : : OnClose ) ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_END_LABEL_EDIT , wxListEventHandler ( CYourAddressDialogBase : : OnListEndLabelEdit ) , NULL , this ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CYourAddressDialogBase : : OnListItemActivated ) , NULL , this ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_SELECTED , wxListEventHandler ( CYourAddressDialogBase : : OnListItemSelected ) , NULL , this ) ;
m_buttonRename - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonRename ) , NULL , this ) ;
m_buttonNew - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonNew ) , NULL , this ) ;
m_buttonCopy - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonCopy ) , NULL , this ) ;
m_buttonOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonOK ) , NULL , this ) ;
m_buttonCancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CYourAddressDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CAddressBookDialogBase : : CAddressBookDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizer68 ;
bSizer68 = new wxBoxSizer ( wxVERTICAL ) ;
bSizer68 - > Add ( 0 , 5 , 0 , wxEXPAND , 5 ) ;
m_staticText55 = new wxStaticText ( this , wxID_ANY , wxT ( " Bitcoin Address " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_staticText55 - > Wrap ( - 1 ) ;
m_staticText55 - > Hide ( ) ;
bSizer68 - > Add ( m_staticText55 , 0 , wxTOP | wxRIGHT | wxLEFT , 5 ) ;
m_listCtrl = new wxListCtrl ( this , wxID_LISTCTRL , wxDefaultPosition , wxDefaultSize , wxLC_NO_SORT_HEADER | wxLC_REPORT | wxLC_SORT_ASCENDING ) ;
bSizer68 - > Add ( m_listCtrl , 1 , wxALL | wxEXPAND , 5 ) ;
wxBoxSizer * bSizer69 ;
bSizer69 = new wxBoxSizer ( wxHORIZONTAL ) ;
bSizer69 - > Add ( 0 , 0 , 1 , wxEXPAND , 5 ) ;
m_buttonEdit = new wxButton ( this , wxID_BUTTONEDIT , wxT ( " &Edit... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonEdit - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonEdit , 0 , wxALL , 5 ) ;
m_buttonNew = new wxButton ( this , wxID_BUTTONNEW , wxT ( " &New Address... " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonNew - > SetMinSize ( wxSize ( 110 , 25 ) ) ;
bSizer69 - > Add ( m_buttonNew , 0 , wxALL , 5 ) ;
m_buttonDelete = new wxButton ( this , wxID_BUTTONDELETE , wxT ( " &Delete " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_buttonDelete - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonDelete , 0 , wxALL , 5 ) ;
m_buttonOK = new wxButton ( this , wxID_OK , wxT ( " OK " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonOK - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonOK , 0 , wxALL , 5 ) ;
m_buttonCancel = new wxButton ( this , wxID_CANCEL , wxT ( " Cancel " ) , wxDefaultPosition , wxSize ( - 1 , - 1 ) , 0 ) ;
m_buttonCancel - > SetMinSize ( wxSize ( 85 , 25 ) ) ;
bSizer69 - > Add ( m_buttonCancel , 0 , wxALL , 5 ) ;
bSizer68 - > Add ( bSizer69 , 0 , wxEXPAND , 5 ) ;
this - > SetSizer ( bSizer68 ) ;
this - > Layout ( ) ;
// Connect Events
this - > Connect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( CAddressBookDialogBase : : OnClose ) ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_END_LABEL_EDIT , wxListEventHandler ( CAddressBookDialogBase : : OnListEndLabelEdit ) , NULL , this ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CAddressBookDialogBase : : OnListItemActivated ) , NULL , this ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_ITEM_SELECTED , wxListEventHandler ( CAddressBookDialogBase : : OnListItemSelected ) , NULL , this ) ;
m_buttonEdit - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonEdit ) , NULL , this ) ;
m_buttonNew - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonNew ) , NULL , this ) ;
m_buttonDelete - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonDelete ) , NULL , this ) ;
m_buttonOK - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonOK ) , NULL , this ) ;
m_buttonCancel - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CAddressBookDialogBase : : ~ CAddressBookDialogBase ( )
{
// Disconnect Events
this - > Disconnect ( wxEVT_CLOSE_WINDOW , wxCloseEventHandler ( CAddressBookDialogBase : : OnClose ) ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_END_LABEL_EDIT , wxListEventHandler ( CAddressBookDialogBase : : OnListEndLabelEdit ) , NULL , this ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CAddressBookDialogBase : : OnListItemActivated ) , NULL , this ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_SELECTED , wxListEventHandler ( CAddressBookDialogBase : : OnListItemSelected ) , NULL , this ) ;
m_buttonEdit - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonEdit ) , NULL , this ) ;
m_buttonNew - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonNew ) , NULL , this ) ;
m_buttonDelete - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonDelete ) , NULL , this ) ;
m_buttonOK - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonOK ) , NULL , this ) ;
m_buttonCancel - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CAddressBookDialogBase : : OnButtonCancel ) , NULL , this ) ;
}
CProductsDialogBase : : CProductsDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxDialog ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
wxBoxSizer * bSizer22 ;
bSizer22 = new wxBoxSizer ( wxVERTICAL ) ;
wxBoxSizer * bSizer23 ;
bSizer23 = new wxBoxSizer ( wxHORIZONTAL ) ;
m_comboBoxCategory = new wxComboBox ( this , wxID_ANY , wxT ( " (Any Category) " ) , wxDefaultPosition , wxSize ( 150 , - 1 ) , 0 , NULL , 0 ) ;
m_comboBoxCategory - > Append ( wxT ( " (Any Category) " ) ) ;
bSizer23 - > Add ( m_comboBoxCategory , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_textCtrlSearch = new wxTextCtrl ( this , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer23 - > Add ( m_textCtrlSearch , 1 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_buttonSearch = new wxButton ( this , wxID_ANY , wxT ( " &Search " ) , wxDefaultPosition , wxDefaultSize , 0 ) ;
bSizer23 - > Add ( m_buttonSearch , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
bSizer22 - > Add ( bSizer23 , 0 , wxEXPAND | wxTOP | wxBOTTOM | wxRIGHT , 5 ) ;
m_listCtrl = new wxListCtrl ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxLC_NO_SORT_HEADER | wxLC_REPORT ) ;
bSizer22 - > Add ( m_listCtrl , 1 , wxALL | wxEXPAND , 5 ) ;
this - > SetSizer ( bSizer22 ) ;
this - > Layout ( ) ;
// Connect Events
m_comboBoxCategory - > Connect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( CProductsDialogBase : : OnCombobox ) , NULL , this ) ;
m_textCtrlSearch - > Connect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CProductsDialogBase : : OnKeyDown ) , NULL , this ) ;
m_buttonSearch - > Connect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CProductsDialogBase : : OnButtonSearch ) , NULL , this ) ;
m_listCtrl - > Connect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CProductsDialogBase : : OnListItemActivated ) , NULL , this ) ;
}
CProductsDialogBase : : ~ CProductsDialogBase ( )
{
// Disconnect Events
m_comboBoxCategory - > Disconnect ( wxEVT_COMMAND_COMBOBOX_SELECTED , wxCommandEventHandler ( CProductsDialogBase : : OnCombobox ) , NULL , this ) ;
m_textCtrlSearch - > Disconnect ( wxEVT_KEY_DOWN , wxKeyEventHandler ( CProductsDialogBase : : OnKeyDown ) , NULL , this ) ;
m_buttonSearch - > Disconnect ( wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEventHandler ( CProductsDialogBase : : OnButtonSearch ) , NULL , this ) ;
m_listCtrl - > Disconnect ( wxEVT_COMMAND_LIST_ITEM_ACTIVATED , wxListEventHandler ( CProductsDialogBase : : OnListItemActivated ) , NULL , this ) ;
}
CEditProductDialogBase : : CEditProductDialogBase ( wxWindow * parent , wxWindowID id , const wxString & title , const wxPoint & pos , const wxSize & size , long style ) : wxFrame ( parent , id , title , pos , size , style )
{
this - > SetSizeHints ( wxDefaultSize , wxDefaultSize ) ;
this - > SetBackgroundColour ( wxSystemSettings : : GetColour ( wxSYS_COLOUR_MENU ) ) ;
wxBoxSizer * bSizer20 ;
bSizer20 = new wxBoxSizer ( wxVERTICAL ) ;
m_scrolledWindow = new wxScrolledWindow ( this , wxID_ANY , wxDefaultPosition , wxDefaultSize , wxHSCROLL | wxTAB_TRAVERSAL | wxVSCROLL ) ;
m_scrolledWindow - > SetScrollRate ( 5 , 5 ) ;
m_scrolledWindow - > SetBackgroundColour ( wxSystemSettings : : GetColour ( wxSYS_COLOUR_WINDOW ) ) ;
wxBoxSizer * bSizer21 ;
bSizer21 = new wxBoxSizer ( wxVERTICAL ) ;
wxFlexGridSizer * fgSizer8 ;
fgSizer8 = new wxFlexGridSizer ( 0 , 2 , 0 , 0 ) ;
fgSizer8 - > AddGrowableCol ( 1 ) ;
fgSizer8 - > SetFlexibleDirection ( wxBOTH ) ;
fgSizer8 - > SetNonFlexibleGrowMode ( wxFLEX_GROWMODE_SPECIFIED ) ;
m_staticText106 = new wxStaticText ( m_scrolledWindow , wxID_ANY , wxT ( " Category " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_RIGHT ) ;
m_staticText106 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText106 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_comboBoxCategory = new wxComboBox ( m_scrolledWindow , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 , NULL , 0 ) ;
m_comboBoxCategory - > SetMinSize ( wxSize ( 180 , - 1 ) ) ;
fgSizer8 - > Add ( m_comboBoxCategory , 0 , wxALL | wxALIGN_CENTER_VERTICAL , 5 ) ;
m_staticText108 = new wxStaticText ( m_scrolledWindow , wxID_ANY , wxT ( " Title " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_RIGHT ) ;
m_staticText108 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText108 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_textCtrlTitle = new wxTextCtrl ( m_scrolledWindow , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
fgSizer8 - > Add ( m_textCtrlTitle , 1 , wxALL | wxALIGN_CENTER_VERTICAL | wxEXPAND , 5 ) ;
m_staticText107 = new wxStaticText ( m_scrolledWindow , wxID_ANY , wxT ( " Price " ) , wxDefaultPosition , wxDefaultSize , wxALIGN_RIGHT ) ;
m_staticText107 - > Wrap ( - 1 ) ;
fgSizer8 - > Add ( m_staticText107 , 0 , wxALIGN_CENTER_VERTICAL | wxALIGN_RIGHT | wxTOP | wxBOTTOM | wxLEFT , 5 ) ;
m_textCtrlPrice = new wxTextCtrl ( m_scrolledWindow , wxID_ANY , wxEmptyString , wxDefaultPosition , wxDefaultSize , 0 ) ;
m_textCtrlPrice - > SetMinSize ( wxSize ( 105 , - 1 ) ) ;
fgSizer8 -