cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsQtScaleAndSignalTool.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab: */
3 
4 /*
5 
6  Author(s): Praneeth Sadda
7  Created on: 2012-05-24
8 
9  (C) Copyright 2012 Johns Hopkins University (JHU), All Rights
10  Reserved.
11 
12 --- begin cisst license - do not edit ---
13 
14 This software is provided "as is" under an open source license, with
15 no warranty. The complete license can be found in license.txt and
16 http://www.cisst.org/cisst/license.txt.
17 
18 --- end cisst license ---
19 
20 */
21 
22 #ifndef _mtsQtScaleAndSignalTool_h
23 #define _mtsQtScaleAndSignalTool_h
24 
25 #include <QWidget>
26 #include <QTreeWidget>
27 
29 
31 
32 // Always include last
34 
36 {
37  Q_OBJECT;
38 
39 public:
40  mtsQtScaleAndSignalTool(mtsManagerGlobal * managerGlobal, vctPlot2DOpenGLQtWidget * visualizer, QWidget* parent = 0);
41 
42 public slots:
43  //void AddScale(/*Scale*/);
44  //void AddSignal(/*Signal*/);
45  //void RemoveScale(/*Scale*/);
46  //void RemoveSignal(/*Signal*/);
47  //void MoveSignal(/*Scale*/);
48 
49 private:
50  vctPlot2DOpenGLQtWidget * Visualizer;
51 };
52 
53 class mtsQtScaleEditor: public QTreeWidget
54 {
55  Q_OBJECT;
56 
57 public:
58  mtsQtScaleEditor(vctPlot2DOpenGLQtWidget * visualizer, QWidget* parent = 0);
59 
61 
62 private:
63  vctPlot2DOpenGLQtWidget * Visualizer;
64  int ScaleNameCounter;
65  QString CurrentScale;
66 
67  void BuildTree(vctPlot2DOpenGLQtWidget * visualizer);
68 
69 private slots:
70  void NewScale();
71  void DeleteScale();
72  void RenameScale();
73  void ShowContextMenu(const QPoint & point);
74 };
75 
76 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
Definition: mtsQtScaleAndSignalTool.h:53
Definition: mtsQtScaleAndSignalTool.h:35
mtsQtScaleEditor(vctPlot2DOpenGLQtWidget *visualizer, QWidget *parent=0)
Definition: vctPlot2DOpenGLQtWidget.h:29
Definition of the global managerPlease see mtsManagerGlobalInterface.h for detailed comments on metho...
Definition: mtsManagerGlobal.h:51
Rules of exporting.