Mercurial > octave
diff libgui/src/documentation-dock-widget.cc @ 24733:e15d53d2de1e
move more GUI classse inside octave namespace
* documentation-dock-widget.h, documentation-dock-widget.cc,
files-dock-widget.h, files-dock-widget.cc, find-files-dialog.h,
find-files-dialog.cc, find-files-model.h, find-files-model.cc,
history-dock-widget.h, history-dock-widget.cc, terminal-dock-widget.h,
terminal-dock-widget.cc: Move classes inside octave namespace.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 11 Feb 2018 09:20:36 -0500 |
parents | ea1c88bd4430 |
children | ba5af45bbfc4 |
line wrap: on
line diff
--- a/libgui/src/documentation-dock-widget.cc Sat Feb 10 23:32:04 2018 -0500 +++ b/libgui/src/documentation-dock-widget.cc Sun Feb 11 09:20:36 2018 -0500 @@ -29,65 +29,62 @@ #include "help.h" #include "interpreter-private.h" -documentation_dock_widget::documentation_dock_widget (QWidget *p) - : octave_dock_widget (p) +namespace octave { - setObjectName ("DocumentationDockWidget"); - setWindowIcon (QIcon (":/actions/icons/logo.png")); - set_title (tr ("Documentation")); - setStatusTip (tr ("See the documentation for help.")); + documentation_dock_widget::documentation_dock_widget (QWidget *p) + : octave_dock_widget (p) + { + setObjectName ("DocumentationDockWidget"); + setWindowIcon (QIcon (":/actions/icons/logo.png")); + set_title (tr ("Documentation")); + setStatusTip (tr ("See the documentation for help.")); - m_webinfo = new octave::webinfo (this); - setWidget (m_webinfo); - setFocusProxy (m_webinfo); + m_webinfo = new octave::webinfo (this); + setWidget (m_webinfo); + setFocusProxy (m_webinfo); - connect (p, SIGNAL (show_doc_signal (const QString&)), - this, SLOT (showDoc (const QString&))); -} + connect (p, SIGNAL (show_doc_signal (const QString&)), + this, SLOT (showDoc (const QString&))); + } -void -documentation_dock_widget::notice_settings (const QSettings *settings) -{ - m_webinfo->notice_settings (settings); -} + void documentation_dock_widget::notice_settings (const QSettings *settings) + { + m_webinfo->notice_settings (settings); + } -void -documentation_dock_widget::load_info_file (void) -{ - octave::help_system& help_sys - = octave::__get_help_system__ ("doc widget: load_info_file"); + void documentation_dock_widget::load_info_file (void) + { + octave::help_system& help_sys + = octave::__get_help_system__ ("doc widget: load_info_file"); - QString info_file = QString::fromStdString (help_sys.info_file ()); + QString info_file = QString::fromStdString (help_sys.info_file ()); - m_webinfo->load_info_file (info_file); -} + m_webinfo->load_info_file (info_file); + } -void -documentation_dock_widget::copyClipboard (void) -{ - m_webinfo->copyClipboard (); -} + void documentation_dock_widget::copyClipboard (void) + { + m_webinfo->copyClipboard (); + } -void -documentation_dock_widget::pasteClipboard (void) -{ - m_webinfo->pasteClipboard (); -} + void documentation_dock_widget::pasteClipboard (void) + { + m_webinfo->pasteClipboard (); + } -void -documentation_dock_widget::selectAll (void) -{ - m_webinfo->selectAll (); -} + void documentation_dock_widget::selectAll (void) + { + m_webinfo->selectAll (); + } -void -documentation_dock_widget::showDoc (const QString& name) -{ - // show the doc pane without focus for carrying on typing in the console - if (! isVisible ()) - setVisible (true); + void documentation_dock_widget::showDoc (const QString& name) + { + // show the doc pane without focus for carrying on typing in the console + if (! isVisible ()) + setVisible (true); - raise (); + raise (); - m_webinfo->load_ref (name); + m_webinfo->load_ref (name); + } }