2
/******************************************************************************
3
* MODULE : composite_widget.cpp
4
* DESCRIPTION: abstract composite widgets accept events for
5
* modifying the composite structure of a widget.
6
* COPYRIGHT : (C) 1999 Joris van der Hoeven
7
*******************************************************************************
8
* This software falls under the GNU general public license and comes WITHOUT
9
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
10
* If you don't have this file, write to the Free Software Foundation, Inc.,
11
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
12
******************************************************************************/
14
#include "Widget/layout.hpp"
15
#include "Widget/composite_widget.hpp"
17
/******************************************************************************
18
* Routines for abstract composite widgets
19
******************************************************************************/
21
composite_widget_rep::composite_widget_rep (display dis, gravity grav):
22
basic_widget_rep (dis, grav) {}
23
composite_widget_rep::composite_widget_rep (display dis, array<widget> a,
25
basic_widget_rep (dis, a, grav) {}
26
composite_widget_rep::composite_widget_rep (display dis, array<widget> a,
27
array<string> name, gravity grav):
28
basic_widget_rep (dis, a, name, grav) {}
31
composite_widget_rep::handle_clean (clean_event ev) { (void) ev;
37
composite_widget_rep::handle_insert (insert_event ev) {
43
composite_widget_rep::handle_remove (remove_event ev) {
46
if (name[i] == ev->s) {
47
for (j=i; j<n-1; j++) {
58
composite_widget_rep::handle (event ev) {
70
return basic_widget_rep::handle (ev);