GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
webinfo.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2009 P. L. Lucas
4 Copyright (C) 2012-2013 Jacob Dawid
5 
6 This file is part of Octave.
7 
8 Octave is free software; you can redistribute it and/or modify it
9 under the terms of the GNU General Public License as published by the
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 for more details.
17 
18 You should have received a copy of the GNU General Public License
19 along with Octave; see the file COPYING. If not, see
20 <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 // Author: P. L. Lucas
25 // Author: 2012 Jacob Dawid <jacob.dawid@gmail.com>
26 
27 #include <QTextBrowser>
28 #include "parser.h"
29 #include <QStackedWidget>
30 #include <QTabBar>
31 #include <QPushButton>
32 #include <QLineEdit>
33 #include <QCheckBox>
34 #include <QToolButton>
35 
36 class webinfo : public QWidget
37 {
38  Q_OBJECT
39 public:
40  webinfo (QWidget *parent = 0);
41  void set_info_path (const QString& info_path);
42  void load_node (const QString& node_name);
43 
44  void load_ref (const QString &ref_name);
45 
46 public slots:
47  void link_clicked (const QUrl& link);
48  void current_tab_changed (int index);
49  void close_tab (int index);
50  void search ();
51  void zoom_in ();
52  void zoom_out ();
53 
54  void copyClipboard ();
55  void pasteClipboard ();
56 
57 private:
58  QTextBrowser *_text_browser;
59  QTabBar *_tab_bar;
60  QStackedWidget *_stacked_widget;
61  QLineEdit *_search_line_edit;
62  QCheckBox *_search_check_box;
63  QToolButton *_zoom_in_button;
64  QToolButton *_zoom_out_button;
65 
67  QFont _font_web;
68 
69  QTextBrowser *addNewTab (const QString& name);
70 };