Back to index

texmacs  1.0.7.15
composite_event.cpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : composite_event.cpp
00004 * DESCRIPTION: Events for modification of composite widgets
00005 * COPYRIGHT  : (C) 1999  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #include "Widkit/Event/composite_event.hpp"
00013 
00014 /******************************************************************************
00015 * Events for composite widgets
00016 ******************************************************************************/
00017 
00018 clean_event_rep::clean_event_rep ():
00019   event_rep (CLEAN_EVENT) {}
00020 clean_event_rep::operator tree () { return "clean_event"; }
00021 event emit_clean () {
00022   return tm_new<clean_event_rep> (); }
00023 
00024 insert_event_rep::insert_event_rep (string s2, wk_widget w2):
00025   event_rep (INSERT_EVENT), s (s2), w (w2) {}
00026 insert_event_rep::operator tree () {
00027   return tree (TUPLE, "insert_event", s); }
00028 event emit_insert (string s, wk_widget w) {
00029   return tm_new<insert_event_rep> (s, w); }
00030 
00031 remove_event_rep::remove_event_rep (string s2):
00032   event_rep (REMOVE_EVENT), s (s2) {}
00033 remove_event_rep::operator tree () {
00034   return tree (TUPLE, "remove_event", s); }
00035 event emit_remove (string s) {
00036   return tm_new<remove_event_rep> (s); }