ConfigureEnvironments.h

00001 /* -- 2007-05-07 -- 
00002  *  ardev - an augmented reality library for robot developers
00003  *  Copyright 2005-2007 - Toby Collett (ardev _at_ plan9.net.nz)
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Lesser General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2.1 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00013  *  Lesser General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Lesser General Public
00016  *  License along with this library; if not, write to the Free Software
00017  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
00018  *
00019  */
00020  
00021 #ifndef _CONFIGUREENVIRONMENTS_H_
00022 #define _CONFIGUREENVIRONMENTS_H_
00023 
00024 #include "../ui/configureenvironments_base.h"
00025 
00026 class QScrollArea;
00027 class ObjectHandler;
00028 class QFrame;
00029 class QWidget;
00030 class aride_object;
00031 
00032 
00033 class ConfigureEnvironments : public QDialog, public Ui_ConfigureEnvironments
00034 {
00035         Q_OBJECT
00036         public:
00037                 ConfigureEnvironments(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0);
00038                 ~ConfigureEnvironments();
00039         
00040                 void RefreshEnvironmentList();
00041         public slots:
00042                 void RefreshObjects();
00043 
00044                 void onEnvironmentClick(QListWidgetItem * item);
00045                 void onMiscClick(QListWidgetItem * item);
00046                 void onPreProcessClick(QListWidgetItem * item);
00047                 void onSecondaryClick(QListWidgetItem * item);
00048                 void onOutputClick(const QString & type);
00049                 void onCameraClick(const QString & type);
00050                 void onCaptureClick(const QString & type);
00051                 void onAddMisc();
00052                 void onAddPreProcess();
00053                 void onAddSecondary();
00054                 
00055                 void onEnvListRightClick(const QPoint & point);
00056                 void onOtherListRightClick(QListWidgetItem * item, const QPoint & point);
00057                 void onMiscListRightClick(const QPoint & point);
00058                 void onPreProcessListRightClick(const QPoint & point);
00059                 void onSecondaryListRightClick(const QPoint & point);
00060                 
00061                 // slots for the context menus
00062                 void onAddEnvironment();
00063                 void onRemoveEnvironment();
00064                 void onRemoveObject();
00065                 
00066         protected:
00067                 QWidget * OutputDetails;
00068                 //QScrollArea * OutputDetailsView;      
00069 
00070                 QWidget * PreProcessDetails;
00071                 QScrollArea * PreProcessDetailsView;    
00072 
00073                 QWidget * CaptureDetails;
00074                 QScrollArea * CaptureDetailsView;       
00075 
00076                 QWidget * CameraDetails;
00077                 QScrollArea * CameraDetailsView;        
00078 
00079                 QWidget * SecondaryDetails;
00080                 QScrollArea * SecondaryDetailsView;     
00081                 
00082                 QWidget * MiscDetails;
00083                 QScrollArea * MiscDetailsView;  
00084                 
00085                 void onObjectClick(QWidget ** Details, QScrollArea * DetailsView, aride_object * object);
00086                 QListWidgetItem * ActiveItem;
00087 };
00088 
00089 #endif //_CONFIGUREENVIRONMENTS_H_

SourceForge.net Logo Generated on Sat May 12 15:25:43 2007 for ardev by doxygen 1.5.1