orca-robotics


INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

REPOSITORY
Interfaces
Components
Libraries
Utilities
Software Map

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard
Wiki
login/pass: orca/orca

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

selectableelementwidget.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2008 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 ORCAQGUI_SELECTABLEELEMENTWIDGET_H
00012 #define ORCAQGUI_SELECTABLEELEMENTWIDGET_H
00013 
00014 #include <QSplitter>
00015 #include <hydroiceutil/jobqueue.h>
00016 #include <orcaice/context.h>
00017 #include <orcaqguielementmodelview/guielementmodel.h>
00018 #include <orcaqguielementmodelview/guielementview.h>
00019 #include <orcacm/orcacm.h>
00020 #include <orcaqcm/orcaqcm.h>
00021 #include "platformfocuscombo.h"
00022 
00023 class QTreeView;
00024 class QItemDelegate;
00025 class QTimer;
00026 
00027 namespace orcaqgui {
00028 
00041 class SelectableElementWidget : public QSplitter
00042 {
00043     Q_OBJECT
00044 
00045 public: 
00046 
00048     SelectableElementWidget( hydroqgui::PlatformFocusManager &platformFocusManager,
00049                              hydroiceutil::JobQueue             &jobQueue,
00050                              const orcaice::Context          &context,
00051                              orcaqgemv::GuiElementModel      *guiElementModel,
00052                              QMainWindow                     &mainWindow,
00053                              int                              regRefreshPeriodSec=-1,
00054                              QWidget                         *parent=NULL );
00055 
00056 private slots:
00057 
00058     void updateRegistryView();
00059     void reloadRegistryView();
00060 
00061 private: 
00062 
00063     // registry
00064     orcaqcm::OcmModel           *regModel_;
00065     QTreeView                   *regView_;
00066     QItemDelegate               *regDelegate_;
00067 
00068     // gui element list
00069     orcaqgemv::GuiElementView              *elemView_;
00070 
00071     // display
00072     QWidget                     *displayView_;
00073 
00074     QTimer* regTimer_;
00075     QTimer* displayTimer_;
00076     std::vector<std::string>    supportedInterfaces_;
00077 
00078     // platform focus box
00079     PlatformFocusCombo *platformFocusCombo_;
00080     
00081     int displayRefreshTime_;
00082 
00083     hydroiceutil::JobQueue    &jobQueue_;
00084     orcaice::Context        context_;
00085 
00086 };
00087 
00088 }
00089 
00090 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5