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

SourceForge.net Logo
Project
Download
Mailing lists

 

         

probedelegate.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2006-2007 Alexei Makarenko
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 PROBE_DELEGATE_H
00012 #define PROBE_DELEGATE_H
00013 
00014 #include <QItemDelegate>
00015 
00016 namespace probe
00017 {
00018 
00019 class ProbeDelegate : public QItemDelegate
00020 {
00021     Q_OBJECT
00022 
00023 public:
00024     ProbeDelegate(QObject *parent = 0);
00025 
00026     void paint(QPainter *painter, const QStyleOptionViewItem &option,
00027                const QModelIndex &index) const;
00028 
00029     bool isOn() { return isOn_; };
00030     void turnOn() { isOn_=true; };
00031     void turnOff() { isOn_=false; };
00032 
00033 private:
00034     bool isOn_;
00035 };
00036 
00037 } //namespace
00038 
00039 #endif
 

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


Generated for Orca Robotics by  doxygen 1.4.5