Qt Virtual Chart Table (QVCT)
CPointerPoint.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_CPOINTERPOINT_HPP
20 #define QVCT_CPOINTERPOINT_HPP
21 
22 // QT
23 #include <QPainter>
24 #include <QPointF>
25 
26 // QVCT
28 
29 
31 
36 {
37 
38  //------------------------------------------------------------------------------
39  // CONSTRUCTORS / DESTRUCTOR
40  //------------------------------------------------------------------------------
41 
42 public:
43  CPointerPoint( const QString& _rqsName );
44  virtual ~CPointerPoint() {};
45 
46 
47  //------------------------------------------------------------------------------
48  // METHODS: COverlayObject (implement/override)
49  //------------------------------------------------------------------------------
50 
51 public:
52  virtual COverlay* useOverlay() { return (COverlay*)QTreeWidgetItem::parent(); };
53 
54 public:
55  virtual void draw( const CChart* _poChart, QPainter* _pqPainter );
56  virtual void showDetail();
57  virtual void showEdit() {}; // NOTE: does not apply to pointer
58 
59 
60  //------------------------------------------------------------------------------
61  // METHODS: COverlayVisibility (override)
62  //------------------------------------------------------------------------------
63 
64 public:
65  virtual void toggleVisibility() { COverlayVisibility::toggleVisibility( false, false ); };
66 
67 protected:
69 };
70 
71 #endif // QVCT_CPOINTERPOINT_HPP
[UI] Chart (view)
Definition: CChart.hpp:44
Generic overlay point.
virtual void toggleVisibility(bool _bIncludeCourse, bool _bIncludeRouting)
Toggle the visibility status.
Generic overlay.
Definition: COverlay.hpp:45
[UI] Pointer overlay point (item)
virtual COverlay * useOverlay()
Returns this object's (base) overlay.
CPointerPoint(const QString &_rqsName)
virtual void toggleVisibility()
virtual void draw(const CChart *_poChart, QPainter *_pqPainter)
Draws this object (itself or its content)
virtual ~CPointerPoint()
virtual void showDetail()
Displays this object's details (in the appropriate widget/view)
virtual void showEdit()
Displays this object's edit widget/view.