Tulip  4.8.0
Better Visualization Through Research
 All Classes Files Functions Variables Enumerations Enumerator Properties Groups Pages
DocumentationNavigator.h
1 /**
2  *
3  * This file is part of Tulip (www.tulip-software.org)
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 
20 #ifndef DOCUMENTATIONNAVIGATOR_H
21 #define DOCUMENTATIONNAVIGATOR_H
22 
23 #include <QDialog>
24 #include <QTabWidget>
25 #include <QToolButton>
26 #include <QWebView>
27 
28 #include <tulip/tulipconf.h>
29 
30 class TLP_QT_SCOPE DocumentationNavigator : public QDialog {
31  Q_OBJECT
32 
33  QTabWidget* tabWidget;
34  QWebView* currentDocView;
35  QToolButton* backButton;
36  QToolButton* forwardButton;
37 
38 public:
39  explicit DocumentationNavigator();
40  static bool hasDocumentation();
41  static void showDocumentation(const char* docRelativePath = NULL,
42  const char* tabName = NULL);
43  void newDocTab(const char* docRelativePath, const char* tabName);
44  void connectTab();
45 
46 public slots:
47  void goBack();
48  void goForward();
49  void setCurrentDocView(int);
50  void updateButtons(bool ok = true);
51 };
52 
53 #endif // DOCUMENTATIONNAVIGATOR_H