cisst-saw
Loading...
Searching...
No Matches
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-2026 Johns Hopkins University (JHU), All Rights Reserved.
10
11--- begin cisst license - do not edit ---
12
13This software is provided "as is" under an open source license, with
14no warranty. The complete license can be found in license.txt and
15http://www.cisst.org/cisst/license.txt.
16
17--- end cisst license ---
18
19*/
20
21#ifndef _mtsQtCommandSelector_h
22#define _mtsQtCommandSelector_h
23
24#include <QTreeWidget>
25
27
28// Always include last
30
31class mtsQtCommandSelector : public QTreeWidget {
32 Q_OBJECT;
33
34public:
35 mtsQtCommandSelector(mtsManagerLocal* componentManager, QWidget* parent = 0);
36
37private slots:
38 void CurrentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
39 void ItemActivated(QTreeWidgetItem* item, int column);
40
41public slots:
42 void Refresh(void);
43
44signals:
45 void CommandSelected(QString command);
46
47private:
48 void BuildTree(mtsManagerLocal* componentManager);
49
50 mtsManagerLocal* LocalManager;
51};
52
53#endif
Definition mtsManagerLocal.h:52
mtsQtCommandSelector(mtsManagerLocal *componentManager, QWidget *parent=0)
void CommandSelected(QString command)
Rules of exporting.
Declaration of Local Component Manager.