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

Public Member Functions

QString icon () const
 
QKeySequence shortcut () const
 
 TagEditDlg (QWidget *const parent, TAlbum *const album, bool create=false)
 
QString title () const
 
 ~TagEditDlg () override
 

Static Public Member Functions

static AlbumList createTAlbum (TAlbum *const mainRootAlbum, const QString &tagStr, const QString &icon, const QKeySequence &ks, QMap< QString, QString > &errMap)
 
static void showtagsListCreationError (QWidget *const parent, const QMap< QString, QString > &errMap)
 
static bool tagCreate (QWidget *const parent, TAlbum *const album, QString &title, QString &icon, QKeySequence &ks)
 
static bool tagEdit (QWidget *const parent, TAlbum *const album, QString &title, QString &icon, QKeySequence &ks)
 

Constructor & Destructor Documentation

◆ TagEditDlg()

◆ ~TagEditDlg()

Digikam::TagEditDlg::~TagEditDlg ( )
override

Member Function Documentation

◆ createTAlbum()

AlbumList Digikam::TagEditDlg::createTAlbum ( TAlbum *const  mainRootAlbum,
const QString &  tagStr,
const QString &  icon,
const QKeySequence &  ks,
QMap< QString, QString > &  errMap 
)
static

Create a list of new Tag album using a list of tags hierarchies separated by ",". A hierarchy of tags is a string path of tags name separated by "/". If a hierarchy start by "/" or if mainRootAlbum is null, it will be created from root tag album, else it will be created from mainRootAlbum as parent album. 'errMap' is Map of TAlbum path and error message if tag creation failed. Return the list of created Albums.

References Digikam::AlbumManager::createTAlbum(), Digikam::TagsActionMngr::defaultManager(), Digikam::AlbumManager::findTAlbum(), icon(), Digikam::Album::id(), Digikam::AlbumManager::instance(), Digikam::Album::isRoot(), QT_SKIP_EMPTY_PARTS, Digikam::TAlbum::tagPath(), and Digikam::TagsActionMngr::updateTagShortcut().

Referenced by Digikam::TagModificationHelper::slotTagNew().

◆ icon()

QString Digikam::TagEditDlg::icon ( ) const

Referenced by createTAlbum(), tagCreate(), and tagEdit().

◆ shortcut()

QKeySequence Digikam::TagEditDlg::shortcut ( ) const

◆ showtagsListCreationError()

void Digikam::TagEditDlg::showtagsListCreationError ( QWidget *const  parent,
const QMap< QString, QString > &  errMap 
)
static

◆ tagCreate()

bool Digikam::TagEditDlg::tagCreate ( QWidget *const  parent,
TAlbum *const  album,
QString &  title,
QString &  icon,
QKeySequence &  ks 
)
static

◆ tagEdit()

bool Digikam::TagEditDlg::tagEdit ( QWidget *const  parent,
TAlbum *const  album,
QString &  title,
QString &  icon,
QKeySequence &  ks 
)
static

◆ title()

QString Digikam::TagEditDlg::title ( ) const

Referenced by tagCreate(), and tagEdit().


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