elementinspector.h

Go to the documentation of this file.
00001 /*  -*- c++ -*-  (for Emacs)
00002  *
00003  *  elementinspector.h
00004  *  Nodal
00005  *
00006  *  Imported into Nodal by Aidan Lane on Thu Feb 24 2005.
00007  *  Modifications Copyright (c) 2005 CEMA, Monash University. All rights reserved.
00008  *
00009  *  Original file:
00010  *
00011  *    nodeinspector.h
00012  *    EverGreen
00013  *
00014  *    Created by Aidan Lane on Wed Jul 14 2004.
00015  *    Copyright (c) 2004 Aidan Lane. All rights reserved.
00016  *
00017  *  This program is free software; you can redistribute it and/or modify
00018  *  it under the terms of the GNU General Public License as published by
00019  *  the Free Software Foundation; either version 2 of the License, or
00020  *  (at your option) any later version.
00021  *
00022  *  This program is distributed in the hope that it will be useful,
00023  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00024  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00025  *  GNU General Public License for more details.
00026  *
00027  *  You should have received a copy of the GNU General Public License
00028  *  along with this program; if not, write to the Free Software
00029  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00030  */
00031 
00032 
00033 #ifndef ELEMENTINSPECTOR_H
00034 #define ELEMENTINSPECTOR_H
00035 
00036 
00037 #include <QDialog>
00038 #include "MvcDiagram/abstractdiagramview.h"
00039 
00040 
00041 class ElementInspector : public QDialog, public AbstractDiagramView {
00042 
00043   Q_OBJECT
00044 
00045 public:
00046   ElementInspector( QWidget* parent = 0, Qt::WindowFlags flags = 0 );
00047 
00048 
00049 signals:
00050   void visibilityToggled();  
00051 
00052 
00053 protected:
00054   void showEvent( QShowEvent* e );
00055   void hideEvent( QHideEvent* e );
00056 
00057   inline virtual void customEvent( QEvent* e ) {
00058     VEvent* ve = dynamic_cast<VEvent*>(e); // slow :-(
00059     if ( ve != 0 ) dispatchEvent(ve);
00060   }
00061 
00062   void elementSelectionChangedEvent( VElementSelectionChangedEvent* );
00063 
00064 
00065 private:
00066   void setupUi();
00067 };
00068 
00069 
00070 #endif // ! ELEMENTINSPECTOR_H

Generated on Mon Jul 30 09:46:50 2007 for Digest by  doxygen 1.5.2