INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
ocmview.h00001 /* 00002 * Orca-Robotics Project: Components for robotics 00003 * http://orca-robotics.sf.net/ 00004 * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp 00005 * 00006 * This copy of Orca is licensed to you under the terms described in 00007 * the LICENSE file included in this distribution. 00008 * 00009 */ 00010 00011 #ifndef ORCA_OCM_VIEW_H 00012 #define ORCA_OCM_VIEW_H 00013 00014 #include <QTreeView> 00015 #include <QModelIndex> 00016 00017 namespace orcaqcm 00018 { 00019 00024 class OcmView : public QTreeView 00025 { 00026 Q_OBJECT 00027 00028 public: 00029 OcmView( QWidget *parent = 0 ); 00030 00031 public slots: 00032 void toggleDisconnected(); 00033 void toggleStandard(); 00034 00035 void reviewVisibility( const QModelIndex & ind ); 00036 00037 void showLevelOne(); 00038 void showLevelTwo(); 00039 void showLevelThree(); 00040 void showLevelFour(); 00041 00042 protected slots: 00043 virtual void dataChanged ( const QModelIndex & topLeft, 00044 const QModelIndex & bottomRight ); 00045 00046 protected: 00047 00048 virtual bool isToBeHidden( const QModelIndex & ind ); 00049 00050 private: 00051 void expand( const QModelIndex & ind, const int depth ); 00052 00053 bool isHideDisconnected_; 00054 bool isHideStandard_; 00055 }; 00056 00057 } // namespace 00058 00059 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)