GNU Octave  4.2.1
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-2016 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 #if ! defined (octave_webinfo_h)
28 #define octave_webinfo_h 1
29 
30 #include <QTextBrowser>
31 #include "parser.h"
32 #include <QStackedWidget>
33 #include <QTabBar>
34 #include <QPushButton>
35 #include <QLineEdit>
36 #include <QCheckBox>
37 #include <QToolButton>
38 
39 class webinfo : public QWidget
40 {
41  Q_OBJECT
42 public:
43  webinfo (QWidget *parent = 0);
44  bool set_info_path (const QString& info_path);
45  void load_node (const QString& node_name);
46 
47  void load_ref (const QString &ref_name);
48 
49 public slots:
50  void link_clicked (const QUrl& link);
51  void current_tab_changed (int index);
52  void close_tab (int index);
53  void search ();
54  void zoom_in ();
55  void zoom_out ();
56 
57  void copyClipboard ();
58  void pasteClipboard ();
59  void selectAll ();
60 
61 private:
62  QTextBrowser *_text_browser;
63  QTabBar *_tab_bar;
64  QStackedWidget *_stacked_widget;
66  QCheckBox *_search_check_box;
67  QToolButton *_zoom_in_button;
68  QToolButton *_zoom_out_button;
69 
71  QFont _font_web;
72 
73  QTextBrowser *addNewTab (const QString& name);
74 };
75 
76 #endif
void selectAll()
Definition: webinfo.cc:292
QTabBar * _tab_bar
Definition: webinfo.h:63
void load_ref(const QString &ref_name)
Definition: webinfo.cc:225
void zoom_out()
Definition: webinfo.cc:270
QCheckBox * _search_check_box
Definition: webinfo.h:66
QTextBrowser * addNewTab(const QString &name)
Definition: webinfo.cc:180
void pasteClipboard()
Definition: webinfo.cc:305
bool set_info_path(const QString &info_path)
Definition: webinfo.cc:116
void link_clicked(const QUrl &link)
Definition: webinfo.cc:156
QTextBrowser * _text_browser
Definition: webinfo.h:62
QFont _font_web
Definition: webinfo.h:71
QStackedWidget * _stacked_widget
Definition: webinfo.h:64
This class gets nodes and searchs inside of 'info files'.
Definition: parser.h:52
static octave_idx_type link(octave_idx_type s, octave_idx_type t, octave_idx_type *pp)
Definition: colamd.cc:105
QToolButton * _zoom_out_button
Definition: webinfo.h:68
void zoom_in()
Definition: webinfo.cc:263
OCTAVE_EXPORT octave_value_list any number nd example oindent prints the prompt xample Pick a any number!nd example oindent and waits for the user to enter a value The string entered by the user is evaluated as an so it may be a literal a variable name
Definition: input.cc:871
void copyClipboard()
Definition: webinfo.cc:277
QLineEdit * _search_line_edit
Definition: webinfo.h:65
void load_node(const QString &node_name)
Definition: webinfo.cc:128
void current_tab_changed(int index)
Definition: webinfo.cc:166
void search()
Definition: webinfo.cc:243
void close_tab(int index)
Definition: webinfo.cc:211
parser _parser
Definition: webinfo.h:70
webinfo(QWidget *parent=0)
Definition: webinfo.cc:43
QToolButton * _zoom_in_button
Definition: webinfo.h:67