00001 /* -*- mode: c++ -*- */ 00002 00014 #ifndef _FileOpenEvent_H_ 00015 #define _FileOpenEvent_H_ 00016 00017 #include "libqthippo.h" 00018 00019 #if QT_VERSION < 0x040000 00020 #else 00021 //Added by the Qt porting tool: 00022 #include <QtCore/QCustomEvent> 00023 #endif 00024 00025 00026 #include <qevent.h> 00027 00028 namespace hippodraw { 00029 00044 const int OpenEventType = QEvent::User + 116; 00045 00046 class MDL_QTHIPPOPLOT_API FileOpenEvent : public QCustomEvent 00047 { 00048 00049 private: 00050 00053 QString m_file_name; 00054 00057 FileOpenEvent ( const FileOpenEvent & ); 00058 00059 public: 00060 00063 FileOpenEvent ( const QString & filename ); 00064 00067 virtual ~FileOpenEvent (); 00068 00071 QString file () const; 00072 00073 }; 00074 00075 } // namespace hippodraw 00076 00077 #endif // _FileOpenEvent_H_