~ubuntu-branches/ubuntu/hardy/texmacs/hardy

« back to all changes in this revision

Viewing changes to src/Window/Event/composite_event.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ralf Treinen
  • Date: 2004-04-19 20:34:00 UTC
  • Revision ID: james.westby@ubuntu.com-20040419203400-g4e34ih0315wcn8v
Tags: upstream-1.0.3-R2
ImportĀ upstreamĀ versionĀ 1.0.3-R2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/******************************************************************************
 
3
* MODULE     : composite_event.cpp
 
4
* DESCRIPTION: Events for modification of composite widgets
 
5
* COPYRIGHT  : (C) 1999  Joris van der Hoeven
 
6
*******************************************************************************
 
7
* This software falls under the GNU general public license and comes WITHOUT
 
8
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
 
9
* If you don't have this file, write to the Free Software Foundation, Inc.,
 
10
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
11
******************************************************************************/
 
12
 
 
13
#include "Event/composite_event.hpp"
 
14
 
 
15
/******************************************************************************
 
16
* Events for composite widgets
 
17
******************************************************************************/
 
18
 
 
19
clean_event_rep::clean_event_rep ():
 
20
  event_rep (CLEAN_EVENT) {}
 
21
clean_event_rep::operator tree () { return "clean_event"; }
 
22
event emit_clean () {
 
23
  return new clean_event_rep (); }
 
24
 
 
25
insert_event_rep::insert_event_rep (string s2, widget w2):
 
26
  event_rep (INSERT_EVENT), s (s2), w (w2) {}
 
27
insert_event_rep::operator tree () {
 
28
  return tree (TUPLE, "insert_event", s); }
 
29
event emit_insert (string s, widget w) {
 
30
  return new insert_event_rep (s, w); }
 
31
 
 
32
remove_event_rep::remove_event_rep (string s2):
 
33
  event_rep (REMOVE_EVENT), s (s2) {}
 
34
remove_event_rep::operator tree () {
 
35
  return tree (TUPLE, "remove_event", s); }
 
36
event emit_remove (string s) {
 
37
  return new remove_event_rep (s); }