Files
o3de/Code/Tools/Standalone/Source/Driller/Annotations/AnnotationsHeaderView_Events.hxx
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

66 lines
1.9 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#ifndef ANNOTATION_HEADER_VIEW_EVENTS_HXX
#define ANNOTATION_HEADER_VIEW_EVENTS_HXX
#if !defined(Q_MOC_RUN)
#include <AzCore/base.h>
#include <AzCore/Memory/SystemAllocator.h>
#include <QtWidgets/QWidget>
#include <Source/Driller/DrillerNetworkMessages.h>
#include "Source/Driller/DrillerDataTypes.h"
#endif
namespace Charts
{
class Axis;
}
namespace Driller
{
class AnnotationsProvider;
class AnnotationsDataView_Events;
class Annotation;
/** This version of the annotations header view sits above the per-frame events widget (near the bottom of hte main view).
* Its job is to show annotations that happen within a single frame (on an event-by-event basis!)
* It can actually work on any track thats willing to provide it with an axis.
*/
class AnnotationHeaderView_Events : public QWidget
{
Q_OBJECT;
public:
AZ_CLASS_ALLOCATOR(AnnotationHeaderView_Events,AZ::SystemAllocator,0);
AnnotationHeaderView_Events(QWidget* parent = NULL, Qt::WindowFlags flags = Qt::WindowFlags());
virtual ~AnnotationHeaderView_Events(void);
void AttachToAxis(AnnotationsProvider* ptrAnnotations, Charts::Axis *target);
signals:
void InformOfMouseOverAnnotation(const Annotation& annotation);
void InformOfClickAnnotation(const Annotation& annotation);
public slots:
void RefreshView();
void ControllerSizeChanged(QSize newSize);
void OnScrubberFrameUpdate(FrameNumberType newFrame);
private:
AnnotationsProvider *m_ptrAnnotations;
AnnotationsDataView_Events *m_ptrDataView;
virtual QSize sizeHint() const;
};
}
#endif // ANNOTATION_HEADER_VIEW_HXX