digiKam
Digikam::HTMLWidget Class Reference
+ Inheritance diagram for Digikam::HTMLWidget:

Signals

void selectionHasBeenMade (const Digikam::GeoCoordinates::Pair &coordinatesRect)
 
void selectionHasBeenMade (const Digikam::GeoCoordinates::Pair &coordinatesRect)
 
void signalHTMLEvents (const QStringList &events)
 
void signalHTMLEvents (const QStringList &events)
 
void signalJavaScriptReady ()
 
void signalJavaScriptReady ()
 

Public Member Functions

void centerOn (const qreal west, const qreal north, const qreal east, const qreal south, const bool useSaneZoomLevel=true)
 
void centerOn (const qreal west, const qreal north, const qreal east, const qreal south, const bool useSaneZoomLevel=true)
 
 HTMLWidget (QWidget *const parent=nullptr)
 
 HTMLWidget (QWidget *const parent=nullptr)
 
void loadInitialHTML (const QString &initialHTML)
 
void loadInitialHTML (const QString &initialHTML)
 
void mouseModeChanged (const GeoMouseModes mouseMode)
 
void mouseModeChanged (const GeoMouseModes mouseMode)
 
void removeSelectionRectangle ()
 
void removeSelectionRectangle ()
 
QVariant runScript (const QString &scriptCode, bool async=true)
 Wrapper around executeScript to catch more errors. More...
 
QVariant runScript (const QString &scriptCode, bool async=true)
 
bool runScript2Coordinates (const QString &scriptCode, GeoCoordinates *const coordinates)
 Execute a script which returns coordinates and parse these. More...
 
bool runScript2Coordinates (const QString &scriptCode, GeoCoordinates *const coordinates)
 
void setSelectionRectangle (const GeoCoordinates::Pair &searchCoordinates)
 
void setSelectionRectangle (const GeoCoordinates::Pair &searchCoordinates)
 
void setSharedGeoIfaceObject (GeoIfaceSharedData *const sharedData)
 
void setSharedGeoIfaceObject (GeoIfaceSharedData *const sharedData)
 
 ~HTMLWidget ()
 
 ~HTMLWidget () override
 

Protected Slots

void progress (int progress)
 
void progress (int progress)
 
void slotHTMLCompleted (bool ok)
 
void slotHTMLCompleted (bool ok)
 
void slotScanForJSMessages (const QString &message)
 

Protected Member Functions

bool eventFilter (QObject *, QEvent *) override
 
bool eventFilter (QObject *object, QEvent *event) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void mousePressEvent (QMouseEvent *e) override
 
void mouseReleaseEvent (QMouseEvent *e) override
 

Constructor & Destructor Documentation

◆ HTMLWidget() [1/2]

Digikam::HTMLWidget::HTMLWidget ( QWidget *const  parent = nullptr)
explicit

◆ ~HTMLWidget() [1/2]

Digikam::HTMLWidget::~HTMLWidget ( )
override

◆ HTMLWidget() [2/2]

Digikam::HTMLWidget::HTMLWidget ( QWidget *const  parent = nullptr)
explicit

◆ ~HTMLWidget() [2/2]

Digikam::HTMLWidget::~HTMLWidget ( )

Member Function Documentation

◆ centerOn() [1/2]

void Digikam::HTMLWidget::centerOn ( const qreal  west,
const qreal  north,
const qreal  east,
const qreal  south,
const bool  useSaneZoomLevel = true 
)

References runScript().

◆ centerOn() [2/2]

void Digikam::HTMLWidget::centerOn ( const qreal  west,
const qreal  north,
const qreal  east,
const qreal  south,
const bool  useSaneZoomLevel = true 
)

◆ eventFilter() [1/2]

bool Digikam::HTMLWidget::eventFilter ( QObject *  object,
QEvent *  event 
)
overrideprotected

◆ eventFilter() [2/2]

bool Digikam::HTMLWidget::eventFilter ( QObject *  object,
QEvent *  event 
)
overrideprotected

◆ loadInitialHTML() [1/2]

void Digikam::HTMLWidget::loadInitialHTML ( const QString &  initialHTML)

◆ loadInitialHTML() [2/2]

void Digikam::HTMLWidget::loadInitialHTML ( const QString &  initialHTML)

◆ mouseModeChanged() [1/2]

void Digikam::HTMLWidget::mouseModeChanged ( const GeoMouseModes  mouseMode)

◆ mouseModeChanged() [2/2]

void Digikam::HTMLWidget::mouseModeChanged ( const GeoMouseModes  mouseMode)

◆ mouseMoveEvent()

void Digikam::HTMLWidget::mouseMoveEvent ( QMouseEvent *  e)
overrideprotected

◆ mousePressEvent()

void Digikam::HTMLWidget::mousePressEvent ( QMouseEvent *  e)
overrideprotected

◆ mouseReleaseEvent()

void Digikam::HTMLWidget::mouseReleaseEvent ( QMouseEvent *  e)
overrideprotected

◆ progress [1/2]

void Digikam::HTMLWidget::progress ( int  progress)
protectedslot

Referenced by HTMLWidget().

◆ progress [2/2]

void Digikam::HTMLWidget::progress ( int  progress)
protectedslot

◆ removeSelectionRectangle() [1/2]

void Digikam::HTMLWidget::removeSelectionRectangle ( )

References runScript().

◆ removeSelectionRectangle() [2/2]

void Digikam::HTMLWidget::removeSelectionRectangle ( )

◆ runScript() [1/2]

QVariant Digikam::HTMLWidget::runScript ( const QString &  scriptCode,
bool  async = true 
)

Wrapper around executeScript to catch more errors.

References GEOIFACE_ASSERT.

Referenced by centerOn(), eventFilter(), mouseModeChanged(), removeSelectionRectangle(), runScript2Coordinates(), and setSelectionRectangle().

◆ runScript() [2/2]

QVariant Digikam::HTMLWidget::runScript ( const QString &  scriptCode,
bool  async = true 
)

◆ runScript2Coordinates() [1/2]

bool Digikam::HTMLWidget::runScript2Coordinates ( const QString &  scriptCode,
GeoCoordinates *const  coordinates 
)

Execute a script which returns coordinates and parse these.

References Digikam::GeoIfaceHelperParseLatLonString(), and runScript().

Referenced by eventFilter().

◆ runScript2Coordinates() [2/2]

bool Digikam::HTMLWidget::runScript2Coordinates ( const QString &  scriptCode,
GeoCoordinates *const  coordinates 
)

◆ selectionHasBeenMade [1/2]

void Digikam::HTMLWidget::selectionHasBeenMade ( const Digikam::GeoCoordinates::Pair coordinatesRect)
signal

Referenced by eventFilter().

◆ selectionHasBeenMade [2/2]

void Digikam::HTMLWidget::selectionHasBeenMade ( const Digikam::GeoCoordinates::Pair coordinatesRect)
signal

◆ setSelectionRectangle() [1/2]

void Digikam::HTMLWidget::setSelectionRectangle ( const GeoCoordinates::Pair searchCoordinates)

References runScript().

◆ setSelectionRectangle() [2/2]

void Digikam::HTMLWidget::setSelectionRectangle ( const GeoCoordinates::Pair searchCoordinates)

◆ setSharedGeoIfaceObject() [1/2]

void Digikam::HTMLWidget::setSharedGeoIfaceObject ( GeoIfaceSharedData *const  sharedData)

◆ setSharedGeoIfaceObject() [2/2]

void Digikam::HTMLWidget::setSharedGeoIfaceObject ( GeoIfaceSharedData *const  sharedData)

◆ signalHTMLEvents [1/2]

void Digikam::HTMLWidget::signalHTMLEvents ( const QStringList &  events)
signal

Referenced by HTMLWidget().

◆ signalHTMLEvents [2/2]

void Digikam::HTMLWidget::signalHTMLEvents ( const QStringList &  events)
signal

◆ signalJavaScriptReady [1/2]

void Digikam::HTMLWidget::signalJavaScriptReady ( )
signal

Referenced by slotHTMLCompleted().

◆ signalJavaScriptReady [2/2]

void Digikam::HTMLWidget::signalJavaScriptReady ( )
signal

◆ slotHTMLCompleted [1/2]

void Digikam::HTMLWidget::slotHTMLCompleted ( bool  ok)
protectedslot

References signalJavaScriptReady().

Referenced by HTMLWidget().

◆ slotHTMLCompleted [2/2]

void Digikam::HTMLWidget::slotHTMLCompleted ( bool  ok)
protectedslot

◆ slotScanForJSMessages

void Digikam::HTMLWidget::slotScanForJSMessages ( const QString &  message)
protectedslot

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