class cTags renamed

master
Herwig Birke 7 years ago
parent 6894684cb4
commit d405b63508

@ -0,0 +1,14 @@
#include "ctoolboxlocation.h"
#include "ui_ctoolboxlocation.h"
cToolBoxLocation::cToolBoxLocation(QWidget *parent) :
QWidget(parent),
ui(new Ui::cToolBoxLocation)
{
ui->setupUi(this);
}
cToolBoxLocation::~cToolBoxLocation()
{
delete ui;
}

@ -0,0 +1,14 @@
#include "ctoolboxtag.h"
#include "ui_ctoolboxtag.h"
cToolBoxTag::cToolBoxTag(QWidget *parent) :
QWidget(parent),
ui(new Ui::cToolBoxTag)
{
ui->setupUi(this);
}
cToolBoxTag::~cToolBoxTag()
{
delete ui;
}

@ -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

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>cToolBoxTag</class>
<widget class="QWidget" name="cToolBoxTag">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTreeView" name="m_lpTagList">
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>
<property name="editTriggers">
<set>QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed</set>
</property>
<property name="alternatingRowColors">
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="m_lpAdd">
<property name="text">
<string>add</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="m_lpEdit">
<property name="text">
<string>edit</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="m_lpDelete">
<property name="text">
<string>delete</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
Loading…
Cancel
Save