vdrawselection.h
1/* This file is part of the KDE project
2 Copyright (C) 2002, The Karbon Developers
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#ifndef __VDRAWSELECTION_H__
21#define __VDRAWSELECTION_H__
22
23#include "vgroup.h"
24#include "vvisitor.h"
25#include <koffice_export.h>
30class KARBONBASE_EXPORT VDrawSelection : public VVisitor
31{
32public:
33 VDrawSelection( const VObjectList& selection, VPainter *painter, bool nodeediting = false, uint nodeSize = 2 )
34 : m_selection( selection ), m_painter( painter ), m_nodeediting( nodeediting ), m_nodeSize( nodeSize ) {}
35
36 virtual void visitVPath( VPath& composite );
37
38private:
39 VObjectList m_selection;
40 VPainter *m_painter;
41 bool m_nodeediting;
42 uint m_nodeSize;
43};
44
45#endif
46
Helper class to draw the outline of a composite path, including (?) optionally its bezier helper line...
A composite path consists of one or many subpaths.
Definition vcomposite.h:48
The abstract visitor class.
Definition vvisitor.h:51
virtual void visitVPath(VPath &composite)
Visit method for a VPath.
Definition vvisitor.cpp:74