kivio

KIvioLayerIface.cpp
1/* This file is part of the KDE project
2 Copyright (C) 2002 Laurent Montel <lmontel@mandrakesoft.com>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#include "KIvioLayerIface.h"
21
22#include "kivio_layer.h"
23
24#include <dcopclient.h>
25
26KIvioLayerIface::KIvioLayerIface( KivioLayer *layer_ )
27 : DCOPObject( )
28{
29 m_layer = layer_;
30}
31
32bool KIvioLayerIface::visible()
33{
34 return m_layer->visible();
35}
36
37void KIvioLayerIface::setVisible( bool f )
38{
39 m_layer->setVisible( f );
40}
41
42bool KIvioLayerIface::connectable()
43{
44 return m_layer->connectable();
45}
46
47void KIvioLayerIface::setConnectable( bool f )
48{
49 m_layer->setConnectable( f );
50}
51
52TQString KIvioLayerIface::name() const
53{
54 return m_layer->name();
55}
56
57void KIvioLayerIface::setName( const TQString &n )
58{
59 m_layer->setName( n );
60}