Debian Codegraph @

cmd/gvedit/csettings.h

raw
1 /*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11 #pragma once
12
13 class MdiChild;
14 #include <QDialog>
15 #include <QString>
16 #include "ui_settings.h"
17
18 #include "config.h"
19
20 #include <gvc/gvc.h>
21
22 class CFrmSettings : public QDialog
23 {
24 Q_OBJECT
25 public:
26 CFrmSettings();
27 int runSettings(MdiChild* m);
28 int showSettings(MdiChild* m);
29 int drawGraph();
30 MdiChild* getActiveWindow();
31 QString graphData;
32 GVC_t* gvc;
33 private slots:
34 void outputSlot();
35 void addSlot();
36 void helpSlot();
37 void cancelSlot();
38 void okSlot();
39 void newSlot();
40 void openSlot();
41 void saveSlot();
42 void scopeChangedSlot(int);
43 private:
44 //Actions
45 Agraph_t* graph;
46 MdiChild* activeWindow;
47 QAction* outputAct;
48 QAction* addAct;
49 QAction* helpAct;
50 QAction* cancelAct;
51 QAction* okAct;
52 QAction* newAct;
53 QAction* openAct;
54 QAction* saveAct;
55 //METHODS
56 bool loadLayouts();
57 bool loadRenderers();
58 void refreshContent();
59 void saveContent();
60 void doPreview(const QString &);
61 void setActiveWindow(MdiChild* m);
62 bool loadGraph(MdiChild* m);
63 bool createLayout();
64 bool renderLayout();
65 };