Subversion Repositories Filer-Free

Compare Revisions

Ignore whitespace Rev 59 → Rev 60

/trunk/filer/application.cc
63,7 → 63,7
wimp_event_no event=wimp_poll(flags,&block,pollword);
 
// Handle the resulting event.
handle_event(event,block);
handle_event(event,block,pollword);
}
else
{
87,7 → 87,8
return 0;
}
 
void application::handle_event(wimp_event_no event,wimp_block& block)
void application::handle_event(wimp_event_no event,wimp_block& block,
int* pollword)
{
menu* m;
window* w;
145,6 → 146,9
m->handle_menu_selection(block.selection);
}
break;
case wimp_POLLWORD_NON_ZERO:
handle_pollword_non_zero(pollword);
break;
case wimp_USER_MESSAGE:
case wimp_USER_MESSAGE_RECORDED:
switch (block.message.action)
184,6 → 188,11
wimp_process_key(block.c);
}
 
void application::handle_pollword_non_zero(int* pollword)
{
*pollword=0;
}
 
void application::handle_user_message(wimp_event_no event,
wimp_message& message)
{}
/trunk/filer/application.h
80,8 → 80,10
/** Handle an event from the window manager.
* @param event the window manager event number
* @param the window manager event block
* @param pollword a pointer to the pollword, or 0 if none
*/
virtual void handle_event(wimp_event_no event,wimp_block& block);
virtual void handle_event(wimp_event_no event,wimp_block& block,
int* pollword);
 
/** Handle mouse click.
* @param block the mouse click event block
93,6 → 95,11
*/
virtual void handle_key_pressed(wimp_key& block);
 
/** Handle pollword non-zero.
* @param pollword a pointer to the pollword, or 0 if none
*/
virtual void handle_pollword_non_zero(int* pollword);
 
/** Handle user message.
* @param event the window manager event number
* @param the window manager event block