Tulip 5.7.1
Large graphs analysis and drawing
Loading...
Searching...
No Matches
ViewActionsManager.h
1/*
2 *
3 * This file is part of Tulip (https://tulip.labri.fr)
4 *
5 * Authors: David Auber and the Tulip development Team
6 * from LaBRI, University of Bordeaux
7 *
8 * Tulip is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation, either version 3
11 * of the License, or (at your option) any later version.
12 *
13 * Tulip is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
17 *
18 */
19///@cond DOXYGEN_HIDDEN
20
21#ifndef VIEW_ACTIONS_MANAGER_H
22#define VIEW_ACTIONS_MANAGER_H
23
24#include <QMenu>
25#include <QAction>
26
27#include <tulip/View.h>
28#include <tulip/DataSet.h>
29#include <tulip/GlMainWidget.h>
30
31namespace tlp {
32class TLP_QT_SCOPE ViewActionsManager : public QObject {
33 Q_OBJECT
34
35 View *_view;
36 GlMainWidget *_glMainWidget;
37 bool _keepSizeRatio;
38 QAction *_centerViewAction;
39 QAction *_forceRedrawAction;
40 QAction *_advAntiAliasingAction;
41 QAction *_snapshotAction;
42
43public:
44 ViewActionsManager(View *view, GlMainWidget *widget, bool keepRatio);
45
46 // the function below must be called by the associated view
47 // when overloading the View class corresponding method
48 void fillContextMenu(QMenu *menu);
49
50protected slots:
51 void centerView();
52 void redraw();
53 void openSnapshotDialog();
54 void setAntiAliasing(bool);
55};
56} // namespace tlp
57
58#endif /* VIEW_ACTIONS_MANAGER_H */
59
60///@endcond