#!/usr/bin/perl -w #=============================================================================== # gen_event_sensitive #------------------------------------------------------------------------------- # This program translates an event type definition file into a collection # of eiffel classes. # The definition file has one like per definition like this: # name: TYPE description of when event is triggered. #------------------------------------------------------------------------------- # Date: $Date$ # Revision: $Revision$ #=============================================================================== $need_gtk_imp = "no"; while (<>) { # Grep for lines starting --|AS: if ((/^class/) || (/^deferred class/)) { ($klass = <>) =~ s/[ \n]*//g; $_ = $klass; tr/[A-Z]/[a-z]/; $klass_lower = $_; open (IF_FILE, ">" . "${klass_lower}_action_sequences.e"); print IF_FILE <" . "../../implementation/implementation_interface/events/${klass_lower}_action_sequences_i.e"); print I_FILE <" . "../../implementation/mswin/events/${klass_lower}_action_sequences_imp.e"); print W_IMP_FILE <" . "../../implementation/gtk/events/${klass_lower}_action_sequences_imp.e"); print G_IMP_FILE <" . "../../implementation/gtk/events/${klass_lower}_action_sequences_imp.e.tmp"); while () { if (/_PLACE_HOLDER_/) { if ($need_gtk_imp eq "yes") { print G_IMP_TMP "EV_ANY_IMP undefine dispose, destroy end\n"; } } else { print G_IMP_TMP; } } close(G_IMP_FILE); close(G_IMP_TMP); rename "../../implementation/gtk/events/${klass_lower}_action_sequences_imp.e.tmp", "../../implementation/gtk/events/${klass_lower}_action_sequences_imp.e"; #=============================================================================== # CVS log #=============================================================================== # # $Log$ # Revision 1.2 2001/06/07 23:08:18 rogers # Merged DEVEL branch into Main trunc. # # Revision 1.1.2.11 2000/09/05 23:43:22 oconnor # oops # # Revision 1.1.2.10 2000/09/05 23:24:47 oconnor # commented out signals by id stuff pending EV_ANY_IMP support # # Revision 1.1.2.9 2000/09/05 22:53:25 oconnor # used ids, not strings to connect to GTK signals # # Revision 1.1.2.8 2000/08/30 16:10:25 oconnor # undefine destroy when inheriting EV_ANY_IMP # # Revision 1.1.2.7 2000/08/10 17:55:19 oconnor # fixed perl warning # # Revision 1.1.2.6 2000/08/10 17:42:58 oconnor # output cosmetics # # Revision 1.1.2.5 2000/08/09 20:58:45 oconnor # use ev_clone instead of clone as per instructions from manus # # Revision 1.1.2.4 2000/08/08 20:38:24 rogers # Added redefinition of clone to defunct clone, and an export to {NONE} # of this feature, so it is added correctly into any generated class texts. # # Revision 1.1.2.3 2000/07/31 18:37:16 king # Updated internal export clause # # Revision 1.1.2.2 2000/07/26 01:17:52 oconnor # cosmetics # # Revision 1.1.2.1 2000/07/23 21:15:49 oconnor # initial # #=============================================================================== # End of CVS log #===============================================================================