02-05-2004 :
+ - wxbMainFrame : Corrected incorrect casting of thread event
+ functions (reported by Aristedes Maniatis)
- wxbRestorePanel : Corrected incorrect casting of event
functions (reported by Aristedes Maniatis)
wxbRestorePanel : Be sure of which job we just have run (not suppositions
as I'm doing now) : needs director modification.
+bacula-dir : Progress status when building tree.
+
bacula-dir : correct director to handle correctly + marked status
(In fact there is a bug in the director : If you mark a directory
(not a file), and then unmark it, its parents keep the "+" status.)
DEFINE_EVENT_TYPE(wxbTHREAD_EVENT)
+typedef void (wxEvtHandler::*wxThreadEventFunction)(wxbThreadEvent&);
+
+#define EVT_THREAD_EVENT(id, fn) \
+ DECLARE_EVENT_TABLE_ENTRY( \
+ wxbTHREAD_EVENT, id, wxID_ANY, \
+ (wxObjectEventFunction)(wxEventFunction)(wxThreadEventFunction)&fn, \
+ (wxObject *) NULL \
+ ),
+
// the event tables connect the wxWindows events with the functions (event
// handlers) which process them. It can be also done at run-time, but for the
// simple menu events like this the static method is much simpler.
EVT_MENU(Minimal_Quit, wxbMainFrame::OnQuit)
EVT_MENU(Minimal_About, wxbMainFrame::OnAbout)
EVT_TEXT_ENTER(TypeText, wxbMainFrame::OnEnter)
+ EVT_THREAD_EVENT(Thread, wxbMainFrame::OnPrint)
EVT_BUTTON(SendButton, wxbMainFrame::OnEnter)
- EVT_CUSTOM(wxbTHREAD_EVENT, Thread, wxbMainFrame::OnPrint)
END_EVENT_TABLE()
// ----------------------------------------------------------------------------