annotate libgui/src/community-news.cc @ 31646:c6d54dd31a7e stable

maint: Use macros to begin/end C++ namespaces. * BaseControl.cc, BaseControl.h, ButtonControl.cc, ButtonControl.h, ButtonGroup.cc, ButtonGroup.h, Canvas.cc, Canvas.h, CheckBoxControl.cc, CheckBoxControl.h, Container.cc, Container.h, ContextMenu.cc, ContextMenu.h, EditControl.cc, EditControl.h, Figure.cc, Figure.h, FigureWindow.cc, FigureWindow.h, GLCanvas.cc, GLCanvas.h, GenericEventNotify.h, KeyMap.cc, KeyMap.h, ListBoxControl.cc, ListBoxControl.h, Logger.cc, Logger.h, Menu.cc, Menu.h, MenuContainer.h, Object.cc, Object.h, ObjectProxy.cc, ObjectProxy.h, Panel.cc, Panel.h, PopupMenuControl.cc, PopupMenuControl.h, PushButtonControl.cc, PushButtonControl.h, PushTool.cc, PushTool.h, QtHandlesUtils.cc, QtHandlesUtils.h, RadioButtonControl.cc, RadioButtonControl.h, SliderControl.cc, SliderControl.h, Table.cc, Table.h, TextControl.cc, TextControl.h, TextEdit.cc, TextEdit.h, ToggleButtonControl.cc, ToggleButtonControl.h, ToggleTool.cc, ToggleTool.h, ToolBar.cc, ToolBar.h, ToolBarButton.cc, ToolBarButton.h, annotation-dialog.cc, annotation-dialog.h, gl-select.cc, gl-select.h, qopengl-functions.h, qt-graphics-toolkit.cc, qt-graphics-toolkit.h, QTerminal.h, color-picker.cc, color-picker.h, command-widget.cc, command-widget.h, community-news.cc, community-news.h, dialog.cc, dialog.h, documentation-bookmarks.cc, documentation-bookmarks.h, documentation-dock-widget.cc, documentation-dock-widget.h, documentation.cc, documentation.h, dw-main-window.cc, dw-main-window.h, external-editor-interface.cc, external-editor-interface.h, files-dock-widget.cc, files-dock-widget.h, find-files-dialog.cc, find-files-dialog.h, find-files-model.cc, find-files-model.h, graphics-init.cc, graphics-init.h, gui-settings.cc, gui-settings.h, gui-utils.cc, gui-utils.h, history-dock-widget.cc, history-dock-widget.h, interpreter-qobject.cc, interpreter-qobject.h, led-indicator.cc, led-indicator.h, file-editor-interface.h, file-editor-tab.cc, file-editor-tab.h, file-editor.cc, file-editor.h, find-dialog.cc, find-dialog.h, marker.cc, marker.h, octave-qscintilla.cc, octave-qscintilla.h, octave-txt-lexer.cc, octave-txt-lexer.h, main-window.cc, main-window.h, news-reader.cc, news-reader.h, octave-dock-widget.cc, octave-dock-widget.h, octave-qobject.cc, octave-qobject.h, qt-application.cc, qt-application.h, qt-interpreter-events.cc, qt-interpreter-events.h, qt-utils.h, release-notes.cc, release-notes.h, resource-manager.cc, resource-manager.h, set-path-dialog.cc, set-path-dialog.h, set-path-model.cc, set-path-model.h, settings-dialog.cc, settings-dialog.h, shortcut-manager.cc, shortcut-manager.h, tab-bar.cc, tab-bar.h, terminal-dock-widget.cc, terminal-dock-widget.h, variable-editor-model.cc, variable-editor-model.h, variable-editor.cc, variable-editor.h, welcome-wizard.cc, welcome-wizard.h, workspace-model.cc, workspace-model.h, workspace-view.cc, workspace-view.h: Use new macros to begin/end C++ namespaces.
author John W. Eaton <jwe@octave.org>
date Tue, 06 Dec 2022 14:37:51 -0500
parents 04601f6c47f4
children 431f80aba37a 29d734430e5f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29835
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 ////////////////////////////////////////////////////////////////////////
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 //
30564
796f54d4ddbf update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 29835
diff changeset
3 // Copyright (C) 2011-2022 The Octave Project Developers
29835
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 //
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 // See the file COPYRIGHT.md in the top-level directory of this
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 // distribution or <https://octave.org/copyright/>.
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 //
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 // This file is part of Octave.
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 //
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 // Octave is free software: you can redistribute it and/or modify it
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 // under the terms of the GNU General Public License as published by
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 // the Free Software Foundation, either version 3 of the License, or
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 // (at your option) any later version.
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 //
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 // Octave is distributed in the hope that it will be useful, but
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 // GNU General Public License for more details.
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 //
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 // You should have received a copy of the GNU General Public License
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 // along with Octave; see the file COPYING. If not, see
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 // <https://www.gnu.org/licenses/>.
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 //
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 ////////////////////////////////////////////////////////////////////////
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 #if defined (HAVE_CONFIG_H)
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 # include "config.h"
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
28 #endif
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
29
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
30 #include <QLayout>
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
31 #include <QTextBrowser>
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
32 #include <QThread>
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
33
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
34 #include "community-news.h"
30690
e2c8c852399e replace use of depreciated QDesktopWidget in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30564
diff changeset
35 #include "gui-utils.h"
30964
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
36 #include "gui-preferences-dw.h"
29835
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
37 #include "gui-preferences-nr.h"
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
38 #include "news-reader.h"
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
39 #include "octave-qobject.h"
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
40
31646
c6d54dd31a7e maint: Use macros to begin/end C++ namespaces.
John W. Eaton <jwe@octave.org>
parents: 30964
diff changeset
41 OCTAVE_BEGIN_NAMESPACE(octave)
c6d54dd31a7e maint: Use macros to begin/end C++ namespaces.
John W. Eaton <jwe@octave.org>
parents: 30964
diff changeset
42
29835
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
43 community_news::community_news (base_qobject& oct_qobj, int serial)
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
44 : QWidget (nullptr), m_browser (nullptr)
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
45 {
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
46 construct (oct_qobj, "https://octave.org", "community-news.html", serial);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
47 }
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
48
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
49 community_news::community_news (base_qobject& oct_qobj, QWidget *parent,
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
50 const QString& base_url, const QString& page,
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
51 int serial)
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
52 : QWidget (parent), m_browser (nullptr)
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
53 {
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
54 construct (oct_qobj, base_url, page, serial);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
55 }
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
56
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
57 void community_news::construct (base_qobject& oct_qobj,
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
58 const QString& base_url, const QString& page,
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
59 int serial)
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
60 {
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
61 m_browser = new QTextBrowser (this);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
62
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
63 m_browser->setObjectName ("OctaveNews");
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
64 m_browser->setOpenExternalLinks (true);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
65
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
66 QVBoxLayout *vlayout = new QVBoxLayout;
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
67
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
68 vlayout->addWidget (m_browser);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
69
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
70 setLayout (vlayout);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
71 setWindowTitle (tr ("Octave Community News"));
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
72
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
73 int win_x, win_y;
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
74 get_screen_geometry (win_x, win_y);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
75
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
76 resize (win_x/2, win_y/2);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
77 move ((win_x - width ())/2, (win_y - height ())/2);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
78
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
79 resource_manager& rmgr = oct_qobj.get_resource_manager ();
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
80 gui_settings *settings = rmgr.get_settings ();
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
81
30964
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
82 QString icon;
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
83 QString icon_set = settings->value (dw_icon_set).toString ();
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
84 if (icon_set != "NONE")
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
85 // No extra icon for Community news, take the one of the release notes
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
86 icon = dw_icon_set_names[icon_set] + "ReleaseWidget.png";
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
87 else
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
88 icon = dw_icon_set_names[icon_set];
04601f6c47f4 fix broken icon path after new icon structure in GUI
Torsten Lilge <ttl-octave@mailbox.org>
parents: 30690
diff changeset
89
29835
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
90 setWindowIcon (QIcon (icon));
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
91
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
92 // FIXME: This is a news reader preference, so shouldn't it be used
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
93 // in the news_reader object?
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
94
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
95 bool connect_to_web
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
96 = (settings
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
97 ? settings->value (nr_allow_connection).toBool ()
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
98 : true);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
99
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
100 QThread *worker_thread = new QThread;
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
101
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
102 news_reader *reader = new news_reader (oct_qobj, base_url, page,
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
103 serial, connect_to_web);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
104
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
105 reader->moveToThread (worker_thread);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
106
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
107 connect (reader, &news_reader::display_news_signal,
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
108 this, &community_news::set_news);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
109
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
110 connect (worker_thread, &QThread::started,
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
111 reader, &news_reader::process);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
112
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
113 connect (reader, &news_reader::finished, worker_thread, &QThread::quit);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
114
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
115 connect (reader, &news_reader::finished, reader, &news_reader::deleteLater);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
116
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
117 connect (worker_thread, &QThread::finished,
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
118 worker_thread, &QThread::deleteLater);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
119
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
120 worker_thread->start ();
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
121 }
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
122
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
123 void community_news::set_news (const QString& news)
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
124 {
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
125 m_browser->setHtml (news);
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
126 }
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
127
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
128 void community_news::display (void)
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
129 {
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
130 if (! isVisible ())
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
131 show ();
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
132 else if (isMinimized ())
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
133 showNormal ();
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
134
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
135 raise ();
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
136 activateWindow ();
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
137 }
a946d742fb97 allow community news window to be opened from command line
John W. Eaton <jwe@octave.org>
parents:
diff changeset
138
31646
c6d54dd31a7e maint: Use macros to begin/end C++ namespaces.
John W. Eaton <jwe@octave.org>
parents: 30964
diff changeset
139 OCTAVE_END_NAMESPACE(octave)