UIThreadCall, ThreadSafeMessageBox
This commit is contained in:
22
ui.h
22
ui.h
@@ -5,19 +5,10 @@
|
||||
|
||||
|
||||
|
||||
DECLARE_EVENT_TYPE(wxEVT_CROSSTHREADCALL, -1)
|
||||
DECLARE_EVENT_TYPE(wxEVT_UITHREADCALL, -1)
|
||||
DECLARE_EVENT_TYPE(wxEVT_REPLY1, -1)
|
||||
DECLARE_EVENT_TYPE(wxEVT_REPLY2, -1)
|
||||
DECLARE_EVENT_TYPE(wxEVT_REPLY3, -1)
|
||||
DECLARE_EVENT_TYPE(wxEVT_TABLEADDED, -1)
|
||||
DECLARE_EVENT_TYPE(wxEVT_TABLEUPDATED, -1)
|
||||
DECLARE_EVENT_TYPE(wxEVT_TABLEDELETED, -1)
|
||||
|
||||
enum
|
||||
{
|
||||
UICALL_ADDORDER = 1,
|
||||
UICALL_UPDATEORDER,
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -33,9 +24,10 @@ extern int fMinimizeOnClose;
|
||||
|
||||
extern void HandleCtrlA(wxKeyEvent& event);
|
||||
extern string FormatTxStatus(const CWalletTx& wtx);
|
||||
extern void CrossThreadCall(int nID, void* pdata);
|
||||
extern void UIThreadCall(boost::function<void ()>);
|
||||
extern void MainFrameRepaint();
|
||||
extern void Shutdown(void* parg);
|
||||
extern int ThreadSafeMessageBox(const string& message, const string& caption="Message", int style=wxOK, wxWindow* parent=NULL, int x=-1, int y=-1);
|
||||
|
||||
|
||||
|
||||
@@ -85,7 +77,7 @@ public:
|
||||
unsigned int nListViewUpdated;
|
||||
bool fRefresh;
|
||||
|
||||
void OnCrossThreadCall(wxCommandEvent& event);
|
||||
void OnUIThreadCall(wxCommandEvent& event);
|
||||
int GetSortIndex(const string& strSort);
|
||||
void InsertLine(bool fNew, int nIndex, uint256 hashKey, string strSort, const wxString& str1, const wxString& str2, const wxString& str3, const wxString& str4, const wxString& str5);
|
||||
bool DeleteLine(uint256 hashKey);
|
||||
@@ -473,9 +465,3 @@ public:
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user