GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
documentation-dock-widget.cc
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2011-2022 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if defined (HAVE_CONFIG_H)
27# include "config.h"
28#endif
29
31
32#include "help.h"
33
34namespace octave
35{
37 base_qobject& oct_qobj)
38 : octave_dock_widget ("DocumentationDockWidget", p, oct_qobj),
39 m_docs (new documentation (this, oct_qobj))
40 {
41 setWindowIcon (QIcon (":/actions/icons/logo.png"));
42 set_title (tr ("Documentation"));
43 setStatusTip (tr ("See the documentation for help."));
44
45 setWidget (m_docs);
46
47 if (! p)
48 make_window ();
49 }
50
52 {
54 }
55
57 {
60 }
61
63 {
65 }
66
68 {
70 }
71
73 {
74 m_docs->selectAll ();
75 }
76
78 {
79 // show the doc pane without focus for carrying on typing in the console
80 if (! isVisible ())
81 setVisible (true);
82
83 raise ();
84
86 }
87
89 {
91 }
92
94 {
96 }
97}
Base class for Octave interfaces that use Qt.
void notice_settings(const gui_settings *settings)
documentation_dock_widget(QWidget *parent, base_qobject &oct_qobj)
The documentation main class derived from QSplitter.
void load_ref(const QString &name=QString())
void notice_settings(const gui_settings *settings)
void registerDoc(const QString &name)
void unregisterDoc(const QString &name)
void set_title(const QString &)
void make_window(bool widget_was_dragged=false)
virtual void save_settings(void)
QString name