class cTags renamed

This commit is contained in:
2019-03-11 13:51:35 +01:00
parent 6894684cb4
commit d405b63508
6 changed files with 255 additions and 0 deletions
+142
View File
@@ -0,0 +1,142 @@
/*!
\file ctoolboxtag.h
*/
#ifndef CTOOLBOXTAG_H
#define CTOOLBOXTAG_H
#include "ctag.h"
#include "cpicture.h"
#include <QWidget>
#include <QStandardItemModel>
#include <QItemSelection>
namespace Ui {
class cToolBoxTag;
}
/*!
\brief
\class cToolBoxTag ctoolboxtag.h "ctoolboxtag.h"
*/
class cToolBoxTag : public QWidget
{
Q_OBJECT
public:
/*!
\brief
\fn cToolBoxTag
\param parent
*/
explicit cToolBoxTag(QWidget *parent = nullptr);
/*!
\brief
\fn ~cToolBoxTag
*/
~cToolBoxTag();
/*!
\brief
\param lpLocationList
\fn setLocationList
*/
void setLocationList(cLocationList* lpLocationList);
/*!
\brief
\fn setPicture
\param pictureList
*/
void setPicture(cPictureList& pictureList);
private:
Ui::cToolBoxTag* ui; /*!< TODO: describe */
QStandardItemModel* m_lpLocationListModel; /*!< TODO: describe */
cPersonList* m_lpLocationList; /*!< TODO: describe */
cPictureList m_pictureList; /*!< TODO: describe */
bool m_bLoading; /*!< TODO: describe */
QAction* m_lpLocationAddAction; /*!< TODO: describe */
QAction* m_lpLocationEditAction; /*!< TODO: describe */
QAction* m_lpLocationDeleteAction; /*!< TODO: describe */
bool m_bEditing; /*!< TODO: describe */
/*!
\brief
\fn initUI
*/
void initUI();
/*!
\brief
\fn createActions
*/
void createActions();
private slots:
/*!
\brief
\fn onLocationSelected
\param selection
\param previous
*/
void onLocationSelected(const QItemSelection& selection, const QItemSelection& previous);
/*!
\brief
\fn locationChanged
\param topLeft
\param bottomright
\param roles
*/
void locationChanged(const QModelIndex& topLeft, const QModelIndex& bottomright, const QVector<int>& roles);
/*!
\brief
\fn onLocationAdd
*/
void onLocationAdd();
/*!
\brief
\fn onLocationEdit
*/
void onLocationEdit();
/*!
\brief
\fn onLocationDelete
*/
void onLocationDelete();
/*!
\brief
\fn onLocationViewContextMenu
\param pos
*/
void onLocationViewContextMenu(const QPoint& pos);
/*!
\brief
\fn onLocationChanged
\param lpItem
*/
void onLocationChanged(QStandardItem* lpItem);
};
#endif // CTOOLBOXTAG_H