cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsQtCommandSelector.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-14
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 _mtsQtCommandSelector_h
23 #define _mtsQtCommandSelector_h
24 
25 #include <QTreeWidget>
26 
28 
29 // Always include last
31 
32 class mtsQtCommandSelector : public QTreeWidget {
33  Q_OBJECT;
34 
35 public:
36  mtsQtCommandSelector(mtsManagerGlobal* globalComponentManager, QWidget* parent = 0);
37 
38 private slots:
39  void CurrentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
40  void ItemActivated(QTreeWidgetItem* item, int column);
41 
42 public slots:
43  void Refresh(void);
44 
45 signals:
46  void CommandSelected(QString command);
47 
48 private:
49  void BuildTree(mtsManagerGlobal* globalComponentManager);
50 
51  mtsManagerGlobal* GlobalManager;
52 };
53 
54 #endif
mtsQtCommandSelector(mtsManagerGlobal *globalComponentManager, QWidget *parent=0)
Definition: mtsQtCommandSelector.h:32
void CommandSelected(QString command)
Definition of the global managerPlease see mtsManagerGlobalInterface.h for detailed comments on metho...
Definition: mtsManagerGlobal.h:51
Rules of exporting.