ConfigureDisplaylist.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 class QScrollArea;
00022 class ObjectHandler;
00023 class QFrame;
00024 class aride_object;
00025 class aride_displaylist_node;
00026 class QTreeWidgetItem;
00027  
00028 #ifndef _CONFIGUREDISPLAYLIST_H_
00029 #define _CONFIGUREDISPLAYLIST_H_
00030 
00031 #include "../ui/configuredisplaylist_base.h"
00032 
00033 class ConfigureDisplaylist : public QDialog, public Ui_ConfigureDisplayList
00034 {
00035         Q_OBJECT
00036         public:
00037                 ConfigureDisplaylist(QWidget* parent = 0, const char* name = 0, Qt::WFlags fl = 0 );
00038                 virtual ~ConfigureDisplaylist();
00039                 void ExternalNameChange(const QString & OldName, const QString & NewName);      
00040         protected:
00041                 QWidget * Details;
00042                 QScrollArea * DetailsView;      
00043                 QTreeWidgetItem * ActiveItem;
00044                         
00045                 void BuildDisplayList(QTreeWidgetItem* ParentItem, aride_displaylist_node * ParentNode);
00046         
00047         public slots:
00048                 void RefreshDisplayLists();
00049                 void onObjectClick(QTreeWidgetItem * item);
00050                 void onObjectRightClick(const QPoint & pos);
00051                 
00052                 // for handling the context menu
00053                 void onAddDisplayList();
00054                 void onAddObject(QAction *);
00055                 void onRemoveDisplayList();
00056                 void onRemoveObject();
00057 };
00058 
00059 #endif //_CONFIGUREDISPLAYLIST_H_

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