6#ifndef SWIFT_GUI_VIEWS_VIEWDBOBJECTS_H
7#define SWIFT_GUI_VIEWS_VIEWDBOBJECTS_H
121 QFrame *m_frame =
nullptr;
typename T::ContainerType ContainerType
Model container type.
typename T::KeyType KeyType
Model DB key type.
void customMenu(swift::gui::menus::CMenuActions &menuActions)
Method creating the menu.
void selectObjects(const ContainerType &selectedObjects)
Select by DB keys.
COrderableViewWithDbObjects(QWidget *parent=nullptr)
Constructor.
void orderToLineEdit()
Order to line edit.
void orderToTop()
Order to top.
typename T::ObjectType ObjectType
Model container element type.
void freezeCurrentOrder()
Current order set as order.
void moveSelectedItems(int order)
Move selected items.
void orderToBottom()
Order to bottom.
ContainerType selectedObjects() const
Selected objects.
CViewBase(QWidget *parent, ModelClass *model=nullptr)
Constructor.
const ContainerType & container() const
Access to container.
int removeDbKeys(const QSet< KeyType > &keys)
Remove keys.
typename T::ObjectType ObjectType
Model container element type.
typename T::KeyType KeyType
Model DB key type.
ObjectType oldestObject() const
Get oldets object.
int replaceOrAddObjectsByKey(const ContainerType &container)
Update or insert data (based on DB key).
void selectObjects(const ContainerType &selectedObjects)
Select by DB keys.
typename T::ContainerType ContainerType
Model container type.
bool selectDbKey(const KeyType &key)
Select given DB key.
int selectDbKeys(const QSet< KeyType > &keys)
Select given DB keys.
CViewWithDbObjects(QWidget *parent=nullptr)
Constructor.
ObjectType latestObject() const
Get latest object.
QSet< KeyType > selectedDbKeys() const
Get selected DB keys.
void customMenu(swift::gui::menus::CMenuActions &menuActions)
Method creating the menu.
Views, mainly QTableView.
QObject * parent() const const