GNU Octave  4.0.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-2015 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@cybercatalyst.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  bool 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  void selectAll ();
57 
58 private:
59  QTextBrowser *_text_browser;
60  QTabBar *_tab_bar;
61  QStackedWidget *_stacked_widget;
63  QCheckBox *_search_check_box;
64  QToolButton *_zoom_in_button;
65  QToolButton *_zoom_out_button;
66 
68  QFont _font_web;
69 
70  QTextBrowser *addNewTab (const QString& name);
71 };
void selectAll()
Definition: webinfo.cc:288
QTabBar * _tab_bar
Definition: webinfo.h:60
void load_ref(const QString &ref_name)
Definition: webinfo.cc:224
void zoom_out()
Definition: webinfo.cc:266
QCheckBox * _search_check_box
Definition: webinfo.h:63
QTextBrowser * addNewTab(const QString &name)
Definition: webinfo.cc:179
void pasteClipboard()
Definition: webinfo.cc:302
bool set_info_path(const QString &info_path)
Definition: webinfo.cc:115
void link_clicked(const QUrl &link)
Definition: webinfo.cc:155
QTextBrowser * _text_browser
Definition: webinfo.h:59
QFont _font_web
Definition: webinfo.h:68
QStackedWidget * _stacked_widget
Definition: webinfo.h:61
This class gets nodes and searchs inside of 'info files'.
Definition: parser.h:49
static octave_idx_type link(octave_idx_type s, octave_idx_type t, octave_idx_type *pp)
Definition: colamd.cc:104
QToolButton * _zoom_out_button
Definition: webinfo.h:65
void zoom_in()
Definition: webinfo.cc:259
void copyClipboard()
Definition: webinfo.cc:273
QLineEdit * _search_line_edit
Definition: webinfo.h:62
void load_node(const QString &node_name)
Definition: webinfo.cc:127
void current_tab_changed(int index)
Definition: webinfo.cc:165
void search()
Definition: webinfo.cc:242
void close_tab(int index)
Definition: webinfo.cc:210
parser _parser
Definition: webinfo.h:67
webinfo(QWidget *parent=0)
Definition: webinfo.cc:43
QToolButton * _zoom_in_button
Definition: webinfo.h:64