Mercurial > hg > octave-nkf
comparison gui/src/documentation-dockwidget.cc @ 15055:48ae6a7c69c1 gui
Integrated texinfo browser from QtOctave.
* documentation-dockwidget.cc: Added new dock widget for the documentation.
* documentation-dockwidget.h: Added new dock widget for the documentation.
* bookmark.png: New icon file.
* question.png: New icon file.
* star.png: New icon file.
* stop.png: New icon file.
* zoom-in.png: New icon file.
* zoom-out.png: New icon file.
* parser.cc: Added file from QtOctave, refactored code.
* parser.h: Added file from QtOctave, refactored code.
* webinfo.cc: Added file from QtOctave, refactored code.
* webinfo.h: Added file from QtOctave, refactored code.
* main-window.cc: Added menu entries to handle documentation and integrated new documentation dock widget.
* main-window.h: Including header for documentation dock widget and added member variable.
* resource.qrc: Added icon entries for new icon files.
* src.pro: Added file entries for new file added to the project.
author | Jacob Dawid <jacob.dawid@gmail.com> |
---|---|
date | Mon, 30 Jul 2012 19:27:14 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15053:6889217b9d78 | 15055:48ae6a7c69c1 |
---|---|
1 /* OctaveGUI - A graphical user interface for Octave | |
2 * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) | |
3 * | |
4 * This program is free software: you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as | |
6 * published by the Free Software Foundation, either version 3 of the | |
7 * License, or (at your option) any later version. | |
8 * | |
9 * This program is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License | |
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 */ | |
17 | |
18 #include "documentation-dockwidget.h" | |
19 | |
20 documentation_dock_widget::documentation_dock_widget (QWidget *parent) | |
21 : QDockWidget (parent) | |
22 { | |
23 setObjectName ("DocumentationDockWidget"); | |
24 setWindowTitle (tr ("Documentation")); | |
25 | |
26 connect (this, SIGNAL (visibilityChanged (bool)), | |
27 this, SLOT (handle_visibility_changed (bool))); | |
28 | |
29 _webinfo = new webinfo (this); | |
30 setWidget (_webinfo); | |
31 } | |
32 | |
33 void | |
34 documentation_dock_widget::handle_visibility_changed (bool visible) | |
35 { | |
36 if (visible) | |
37 emit active_changed (true); | |
38 } | |
39 | |
40 void | |
41 documentation_dock_widget::closeEvent (QCloseEvent *event) | |
42 { | |
43 emit active_changed (false); | |
44 QDockWidget::closeEvent (event); | |
45 } |