KDStateMachineEditor  1.1.0
A framework for creating Qt State Machine metacode using a graphical user interface
gvutils.h
1 /*
2  gvutils.cpp
3 
4  This file is part of the KDAB State Machine Editor Library.
5 
6  Copyright (C) 2010-2016 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com.
7  All rights reserved.
8  Author: Kevin Funk <kevin.funk@kdab.com>
9 
10  Licensees holding valid commercial KDAB State Machine Editor Lbrary
11  licenses may use this file in accordance with the KDAB State Machine Editor
12  Library License Agreement provided with the Software.
13 
14  This file may be distributed and/or modified under the terms of the
15  GNU Lesser General Public License version 2.1 as published by the
16  Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
17 
18  This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
19  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 
21  Contact info@kdab.com if any conditions of this licensing are not
22  clear to you.
23 */
24 
25 #ifndef KDSME_LAYOUT_GVUTILS_H
26 #define KDSME_LAYOUT_GVUTILS_H
27 
28 #include <graphviz/types.h>
29 
30 #include <QString>
31 
32 namespace KDSME {
33 
34 namespace GVUtils {
35 
37 #ifdef WITH_CGRAPH
38 extern Agraph_t *_agopen(const QString &name, Agdesc_t kind, Agdisc_t *disc);
39 #else
40 extern Agraph_t *_agopen(const QString &name, int kind);
41 #endif
42 
44 QString _agget(void *object, const QString &attr, const QString &alt = QString());
45 
46 Agsym_t *_agnodeattr(Agraph_t *object, const QString &attr,
47  const QString &alt = QString());
48 Agsym_t *_agedgeattr(Agraph_t *object, const QString &attr,
49  const QString &alt = QString());
50 
51 int _gvLayout(GVC_t *gvc, graph_t *g, const char *engine);
52 
53 #ifdef WITH_CGRAPH
54 void* _agbindrec(void* obj, const char* name, unsigned int size, int move_to_front);
55 #endif
56 
57 Agnode_t *_agnode(Agraph_t *graph, const QString &attr, bool create = true);
58 Agedge_t *_agedge(Agraph_t *graph, Agnode_t *tail, Agnode_t *head,
59  const QString &name = QString(), bool create = true);
60 Agraph_t *_agsubg(Agraph_t *graph, const QString &attr, bool create = true);
61 
63 int _agset(void *object, const QString &attr, const QString &value);
64 
65 }
66 
67 }
68 
69 #endif
Definition: abstractexporter.h:33

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
https://github.com/KDAB/KDStateMachineEditor