Mercurial > ~dholland > hg > ag > index.cgi
comparison anagram/vaclgui/actionwin.cpp @ 0:13d2b8934445
Import AnaGram (near-)release tree into Mercurial.
author | David A. Holland |
---|---|
date | Sat, 22 Dec 2007 17:52:45 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13d2b8934445 |
---|---|
1 /* | |
2 * AnaGram, A System for Syntax Directed Programming | |
3 * Copyright 1997-2002 Parsifal Software. All Rights Reserved. | |
4 * See the file COPYING for license and usage terms. | |
5 * | |
6 * actionwin.cpp | |
7 */ | |
8 | |
9 #include <windows.h> | |
10 #include "port.h" | |
11 | |
12 #include "actionwin.hpp" | |
13 #include "vaclgui.hpp" | |
14 | |
15 //#define INCLUDE_LOGGING | |
16 #include "log.h" | |
17 | |
18 //ActionWindow *theActionWindow; | |
19 // | |
20 //IObjectWindow *openObjectWindow() { | |
21 // return theActionWindow = new ActionWindow(); | |
22 //} | |
23 // | |
24 //void closeObjectWindow() { | |
25 // theActionWindow->close(); | |
26 // delete theActionWindow; | |
27 // theActionWindow = NULL; | |
28 //} | |
29 | |
30 Boolean ActionWindow::dispatchHandlerEvent(IEvent &event) { | |
31 if (event.eventId() != WM_USER) return false; | |
32 LOGSECTION_OFF("AgAction::ActionWindow::dispatchHandlerEvent"); | |
33 | |
34 void *pk = (void *) event.parameter1().asLong(); | |
35 AgAction::Kernel *kernel = (AgAction::Kernel *) pk; | |
36 | |
37 LOGV((int) kernel); | |
38 AgActionDispatchFromGui(kernel); | |
39 event.setResult(true); | |
40 return true; | |
41 } | |
42 | |
43 void AgActionEnqueueInGui(AgAction::Kernel *kernel) { | |
44 IEventData param((void *)kernel); | |
45 pActionWindow->postEvent(WM_USER, param); | |
46 } |