Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Properties | Public Slots | Public Member Functions | Protected Slots | Protected Member Functions
qSlicerExtensionsServerWidget Class Reference

#include <Base/QTGUI/qSlicerExtensionsServerWidget.h>

Inheritance diagram for qSlicerExtensionsServerWidget:
Inheritance graph
Collaboration diagram for qSlicerExtensionsServerWidget:
Collaboration graph

Public Types

typedef qSlicerWebWidget Superclass
 Superclass typedef. More...
- Public Types inherited from qSlicerWebWidget
typedef QWidget Superclass
 Superclass typedef. More...


bool browsingEnabled
- Properties inherited from qSlicerWebWidget
bool handleExternalUrlWithDesktopService
QStringList internalHosts
bool javaScriptConsoleMessageLoggingEnabled
QString url

Public Slots

void onExtensionCancelledScheduleForUninstall (const QString &extensionName)
void onExtensionInstalled (const QString &extensionName)
void onExtensionScheduledForUninstall (const QString &extensionName)
void onMessageLogged (const QString &text, ctkErrorLogLevel::LogLevels level)
void onSlicerRequirementsChanged ()
void refresh ()
 Refresh the web page associated with the widget. More...
void setBrowsingEnabled (bool state)
- Public Slots inherited from qSlicerWebWidget
void onDownloadFinished (QNetworkReply *reply)
void onDownloadProgress (qint64 bytesReceived, qint64 bytesTotal)
void onDownloadStarted (QNetworkReply *reply)
void setUrl (const QString &url)
 Convenience for setting the internal webView QUrl from a QString. More...
void printToPdf (const QString &filePath)
void printToPdf (const QString &filePath, const QPageLayout &pageLayout)

Public Member Functions

Q_INVOKABLE qSlicerExtensionsManagerModelextensionsManagerModel () const
bool isBrowsingEnabled () const
 qSlicerExtensionsServerWidget (QWidget *parent=nullptr)
 Constructor. More...
Q_INVOKABLE void setExtensionsManagerModel (qSlicerExtensionsManagerModel *model)
 ~qSlicerExtensionsServerWidget () override
 Destructor. More...
- Public Member Functions inherited from qSlicerWebWidget
Q_INVOKABLE QString evalJS (const QString &js)
bool handleExternalUrlWithDesktopService () const
 Return true if external URL should be open with desktop service. More...
QStringList internalHosts () const
 Set/Get internal host. More...
bool javaScriptConsoleMessageLoggingEnabled () const
 Return true if javascript console messages should be logged. More...
 qSlicerWebWidget (QWidget *parent=nullptr)
 Constructor. More...
void setHandleExternalUrlWithDesktopService (bool enable)
Q_INVOKABLE void setHtml (const QString &html, const QUrl &baseUrl=QUrl())
 Convenience for setting the internal webView html from a QString. More...
void setInternalHosts (const QStringList &hosts)
void setJavaScriptConsoleMessageLoggingEnabled (bool enable)
Q_INVOKABLE QString url ()
 Convenience for setting the internal webView QUrl from a QString. More...
Q_INVOKABLE QWebEngineView * webView ()
 Return a reference to the QWebView used internally. More...
 ~qSlicerWebWidget () override
 Destructor. More...

Protected Slots

void initJavascript () override
void onLoadFinished (bool ok) override
void onLoadStarted () override
- Protected Slots inherited from qSlicerWebWidget
void handleSslErrors (QNetworkReply *reply, const QList< QSslError > &errors)
virtual void initJavascript ()
virtual void onLoadFinished (bool ok)
virtual void onLoadProgress (int progress)
virtual void onLoadStarted ()

Protected Member Functions

bool acceptNavigationRequest (const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame) override
void changeEvent (QEvent *e) override
- Protected Member Functions inherited from qSlicerWebWidget
bool eventFilter (QObject *obj, QEvent *event) override
 qSlicerWebWidget (qSlicerWebWidgetPrivate *pimpl, QWidget *parent=nullptr)

Additional Inherited Members

- Signals inherited from qSlicerWebWidget
void evalResult (QString js, QString result)
 emitted with result of evalJS More...
void loadFinished (bool ok)
void loadProgress (int progress)
void loadStarted ()
 signal passed through from QWebEngineView More...
void pdfPrintingFinished (const QString &filePath, bool success)
 signal passed through from QWebEnginePage More...
- Protected Attributes inherited from qSlicerWebWidget
QScopedPointer< qSlicerWebWidgetPrivate > d_ptr

Detailed Description

Definition at line 34 of file qSlicerExtensionsServerWidget.h.

Member Typedef Documentation

◆ Superclass

Superclass typedef.

Definition at line 41 of file qSlicerExtensionsServerWidget.h.

Property Documentation

◆ browsingEnabled

bool qSlicerExtensionsServerWidget::browsingEnabled

Definition at line 38 of file qSlicerExtensionsServerWidget.h.

Constructor & Destructor Documentation

◆ qSlicerExtensionsServerWidget()

qSlicerExtensionsServerWidget::qSlicerExtensionsServerWidget ( QWidget *  parent = nullptr)


◆ ~qSlicerExtensionsServerWidget()

qSlicerExtensionsServerWidget::~qSlicerExtensionsServerWidget ( )


Member Function Documentation

◆ acceptNavigationRequest()

bool qSlicerExtensionsServerWidget::acceptNavigationRequest ( const QUrl &  url,
QWebEnginePage::NavigationType  type,
bool  isMainFrame 

Reimplemented from qSlicerWebWidget.

◆ changeEvent()

void qSlicerExtensionsServerWidget::changeEvent ( QEvent *  e)

◆ extensionsManagerModel()

Q_INVOKABLE qSlicerExtensionsManagerModel* qSlicerExtensionsServerWidget::extensionsManagerModel ( ) const

◆ initJavascript

void qSlicerExtensionsServerWidget::initJavascript ( )

◆ isBrowsingEnabled()

bool qSlicerExtensionsServerWidget::isBrowsingEnabled ( ) const

◆ onExtensionCancelledScheduleForUninstall

void qSlicerExtensionsServerWidget::onExtensionCancelledScheduleForUninstall ( const QString &  extensionName)

◆ onExtensionInstalled

void qSlicerExtensionsServerWidget::onExtensionInstalled ( const QString &  extensionName)

◆ onExtensionScheduledForUninstall

void qSlicerExtensionsServerWidget::onExtensionScheduledForUninstall ( const QString &  extensionName)

◆ onLoadFinished

void qSlicerExtensionsServerWidget::onLoadFinished ( bool  ok)

◆ onLoadStarted

void qSlicerExtensionsServerWidget::onLoadStarted ( )

◆ onMessageLogged

void qSlicerExtensionsServerWidget::onMessageLogged ( const QString &  text,
ctkErrorLogLevel::LogLevels  level 

◆ onSlicerRequirementsChanged

void qSlicerExtensionsServerWidget::onSlicerRequirementsChanged ( )

◆ refresh

void qSlicerExtensionsServerWidget::refresh ( )

Refresh the web page associated with the widget.

◆ setBrowsingEnabled

void qSlicerExtensionsServerWidget::setBrowsingEnabled ( bool  state)

◆ setExtensionsManagerModel()

Q_INVOKABLE void qSlicerExtensionsServerWidget::setExtensionsManagerModel ( qSlicerExtensionsManagerModel model)

The documentation for this class was generated from the following file: