Qt Virtual Chart Table (QVCT)
COverlayContainer.hpp
Go to the documentation of this file.
1 // INDENTING (emacs/vi): -*- mode:c++; tab-width:2; c-basic-offset:2; intent-tabs-mode:nil; -*- ex: set tabstop=2 expandtab:
2 
3 /*
4  * Qt Virtual Chart Table (QVCT)
5  * Copyright (C) 2012 Cedric Dufour <http://cedric.dufour.name>
6  * Author: Cedric Dufour <http://cedric.dufour.name>
7  *
8  * The Qt Virtual Chart Table (QVCT) is free software:
9  * you can redistribute it and/or modify it under the terms of the GNU General
10  * Public License as published by the Free Software Foundation, Version 3.
11  *
12  * The Qt Virtual Chart Table (QVCT) is distributed in the hope
13  * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
14  * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  * See the GNU General Public License for more details.
17  */
18 
19 #ifndef QVCT_COVERLAYCONTAINER_HPP
20 #define QVCT_COVERLAYCONTAINER_HPP
21 
22 // QT
23 #include <QObject>
24 
25 // QVCT
27 class COverlayPoint;
28 
29 
31 
38 {
39  // Q_OBJECT // required for 'tr' support
40 
41  //------------------------------------------------------------------------------
42  // CONSTRUCTORS / DESTRUCTOR
43  //------------------------------------------------------------------------------
44 
45 protected:
46  COverlayContainer( COverlayObject::EType _eType, const QString& _rqsName );
47  virtual ~COverlayContainer() {};
48 
49 
50  //------------------------------------------------------------------------------
51  // METHODS
52  //------------------------------------------------------------------------------
53 
54  // OTHER
55 public:
57  virtual COverlayPoint* matchScrPosition( const CChart* _poChart, const QPointF& _rqPointFScrPosition ) const = 0;
58 
59 };
60 
61 #endif // QVCT_COVERLAYCONTAINER_HPP
[UI] Chart (view)
Definition: CChart.hpp:44
Generic overlay container.
COverlayContainer(COverlayObject::EType _eType, const QString &_rqsName)
virtual COverlayPoint * matchScrPosition(const CChart *_poChart, const QPointF &_rqPointFScrPosition) const =0
Returns the overlay container's point that (first) matches the given screen position (0 if none is fo...
Generic overlay object.
EType
Overlay object type.
Generic overlay point.