ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvCustomViewpointsToolbar.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <QPixmap>
11 #include <QPointer>
12 #include <QToolBar>
13 
14 #include "CVAppCommon.h"
15 
20 class QAction;
21 
23  Q_OBJECT
24  typedef QToolBar Superclass;
25 
26 public:
27  ecvCustomViewpointsToolbar(const QString& title, QWidget* parentObject = 0)
28  : Superclass(title, parentObject), BasePixmap(64, 64) {
29  this->constructor();
30  }
31  ecvCustomViewpointsToolbar(QWidget* parentObject = 0)
32  : Superclass(parentObject), BasePixmap(64, 64) {
33  this->constructor();
34  }
35  ~ecvCustomViewpointsToolbar() override = default;
36 
37 protected slots:
38 
44 
50 
57 
62 
68 
74 
79 
80 private:
81  Q_DISABLE_COPY(ecvCustomViewpointsToolbar)
82  void constructor();
83 
84  QPointer<QAction> PlusAction;
85  QPointer<QAction> ConfigAction;
86  QPixmap BasePixmap;
87  QPixmap PlusPixmap;
88  QPixmap ConfigPixmap;
89  QVector<QPointer<QAction>> ViewpointActions;
90 };
#define CVAPPCOMMON_LIB_API
Definition: CVAppCommon.h:15
#define slots
ecvCustomViewpointsToolbar(const QString &title, QWidget *parentObject=0)
void addCurrentViewpointToCustomViewpoints()
ecvCustomViewpointsToolbar(QWidget *parentObject=0)
~ecvCustomViewpointsToolbar() override=default