digiKam
Digikam::RGWidget Class Reference

The RGWidget class represents the main widget for reverse geocoding. More...

+ Inheritance diagram for Digikam::RGWidget:

Signals

void signalProgressChanged (const int currentProgress)
 
void signalProgressSetup (const int maxProgress, const QString &progressText)
 
void signalSetUIEnabled (const bool enabledState)
 
void signalSetUIEnabled (const bool enabledState, QObject *const cancelObject, const QString &cancelSlot)
 
void signalUndoCommand (GPSUndoCommand *undoCommand)
 

Public Member Functions

void readSettingsFromGroup (const KConfigGroup *const group)
 
 RGWidget (GPSItemModel *const imageModel, QItemSelectionModel *const selectionModel, QAbstractItemModel *externTagModel, QWidget *const parent=nullptr)
 
void saveSettingsToGroup (KConfigGroup *const group)
 
void setUIEnabled (const bool state)
 
 ~RGWidget () override
 

Protected Member Functions

bool eventFilter (QObject *watched, QEvent *event) override
 

Detailed Description

The RGWidget class represents the main widget for reverse geocoding.

Constructor & Destructor Documentation

◆ RGWidget()

Digikam::RGWidget::RGWidget ( GPSItemModel *const  imageModel,
QItemSelectionModel *const  selectionModel,
QAbstractItemModel *  externTagModel,
QWidget *const  parent = nullptr 
)
explicit

Constructor

Parameters
imageModelimage model
selectionModelimage selection model
parentThe parent object

References Digikam::DMetadata::countryCodeMap().

◆ ~RGWidget()

Digikam::RGWidget::~RGWidget ( )
override

Destructor

Member Function Documentation

◆ eventFilter()

bool Digikam::RGWidget::eventFilter ( QObject *  watched,
QEvent *  event 
)
overrideprotected

Here are filtered the events.

References Digikam::TypeSpacer.

◆ readSettingsFromGroup()

void Digikam::RGWidget::readSettingsFromGroup ( const KConfigGroup *const  group)

Restores the settings of widgets contained in reverse geocoding widget.

Parameters
groupHere are stored the settings.

References Digikam::TagData::tagName, Digikam::TagData::tagType, Digikam::TypeChild, Digikam::TypeNewChild, and Digikam::TypeSpacer.

◆ saveSettingsToGroup()

void Digikam::RGWidget::saveSettingsToGroup ( KConfigGroup *const  group)

Saves the settings of widgets contained in reverse geocoding widget.

Parameters
groupHere are stored the settings.

References Digikam::TypeNewChild, and Digikam::TypeSpacer.

◆ setUIEnabled()

void Digikam::RGWidget::setUIEnabled ( const bool  state)

Sets whether the containing widgets are enabled or disabled.

Parameters
stateIf true, the controls are enabled.

◆ signalProgressChanged

void Digikam::RGWidget::signalProgressChanged ( const int  currentProgress)
signal

Counts how many images were processed.

Parameters
currentProgressThe number of processed images.

◆ signalProgressSetup

void Digikam::RGWidget::signalProgressSetup ( const int  maxProgress,
const QString &  progressText 
)
signal

Update the progress bar.

◆ signalSetUIEnabled [1/2]

void Digikam::RGWidget::signalSetUIEnabled ( const bool  enabledState)
signal

This signal emits when containing widgets need to be enabled or disabled.

Parameters
enabledStateIf true, the containing widgets will be enabled. Else, they will be disabled.

◆ signalSetUIEnabled [2/2]

void Digikam::RGWidget::signalSetUIEnabled ( const bool  enabledState,
QObject *const  cancelObject,
const QString &  cancelSlot 
)
signal

◆ signalUndoCommand

void Digikam::RGWidget::signalUndoCommand ( GPSUndoCommand undoCommand)
signal

Sends the needed data to Undo/Redo Widget.

Parameters
undoCommandHolds the data that will be used for undo or redo actions

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