26 #if defined (HAVE_CONFIG_H)
31 #include <QTextBrowser>
44 :
QWidget (
nullptr), m_browser (
nullptr)
46 construct (oct_qobj,
"https://octave.org",
"community-news.html", serial);
50 const QString& base_url,
const QString& page,
52 :
QWidget (parent), m_browser (nullptr)
54 construct (oct_qobj, base_url, page, serial);
58 const QString& base_url,
const QString& page,
66 QVBoxLayout *vlayout =
new QVBoxLayout;
71 setWindowTitle (tr (
"Octave Community News"));
76 resize (win_x/2, win_y/2);
77 move ((win_x - width ())/2, (win_y - height ())/2);
84 if (icon_set !=
"NONE")
90 setWindowIcon (QIcon (icon));
103 serial, connect_to_web);
105 reader->moveToThread (worker_thread);
110 connect (worker_thread, &QThread::started,
117 connect (worker_thread, &QThread::finished,
118 worker_thread, &QThread::deleteLater);
120 worker_thread->start ();
132 else if (isMinimized ())
Base class for Octave interfaces that use Qt.
resource_manager & get_resource_manager(void)
void display_news_signal(const QString &news)
gui_settings * get_settings(void) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
const QHash< QString, QString > dw_icon_set_names
const gui_pref dw_icon_set("DockWidgets/widget_icon_set", QVariant("NONE"))
const gui_pref nr_allow_connection("news/allow_web_connection", QVariant(false))
OCTGUI_API void get_screen_geometry(int &width, int &height)