swift
viewtimestampobjects.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (C) 2018 swift Project Community / Contributors
2 // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
3 
5 
6 #ifndef SWIFT_GUI_VIEWS_VIEWTIMESTAMPOBJECTS_H
7 #define SWIFT_GUI_VIEWS_VIEWTIMESTAMPOBJECTS_H
8 
9 #include "gui/views/viewbase.h"
10 
11 namespace swift::gui
12 {
13  namespace menus
14  {
15  class CMenuActions;
16  }
17  namespace views
18  {
20  template <class T>
22  {
23  public:
25  using ModelClass = T;
26 
28  using ContainerType = typename T::ContainerType;
29 
31  using ObjectType = typename T::ObjectType;
32 
34  void push_frontKeepLatestAdjustedFirst(const ObjectType &object, int max);
35 
36  protected:
38  explicit CViewWithTimestampWithOffsetObjects(QWidget *parent = nullptr);
39  };
40  } // namespace views
41 } // namespace swift::gui
42 #endif // SWIFT_GUI_VIEWS_VIEWTIMESTAMPOBJECTS_H
Base class for views.
Definition: viewbase.h:648
typename T::ObjectType ObjectType
Model container element type.
Definition: viewbase.h:660
typename T::ContainerType ContainerType
Model container type.
Definition: viewbase.h:657
Base class for views timestamp offset objects.
void push_frontKeepLatestAdjustedFirst(const ObjectType &object, int max)
Insert as first element by keeping maxElements and the latest first.
CViewWithTimestampWithOffsetObjects(QWidget *parent=nullptr)
Constructor.
GUI related classes.