![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2003 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: saveDatabaseHandler.h,v $ $Revision: 1.7 $ $State: Exp $ 00007 *******************************************************************************/ 00008 00011 00012 #ifndef SAVEDATABASEHANDLER_H_ 00013 #define SAVEDATABASEHANDLER_H_ 00014 00015 #include "tmEventHandler/fileDialogHandler.h" 00016 #include "tmqt/eventSignaller.h" 00017 00020 #include "terrainEventHandler/terrainEventHandlerDefines.h" 00021 class DT_DLL_terrainEventHandler DtSaveDatabaseHandler : public DtFileDialogHandler 00022 { 00023 Q_OBJECT 00024 00025 public: 00026 00028 DtSaveDatabaseHandler(); 00029 00031 virtual ~DtSaveDatabaseHandler(); 00032 00033 public: 00035 static DtEventHandler* create(DtEventController* owner, void* usr); 00036 00037 protected: 00038 virtual bool userDefinedAction(DtUserDefinedType iAction, void* usr); 00039 00042 virtual QString createFilterList(); 00043 virtual void initFileDialog(QFileDialog* fd); 00044 00045 virtual bool saveDatabase(QString filename); 00046 virtual bool completeOpen(); 00047 virtual const char* eventSignalName() { return DtFileSaveDatatabaseWidgetEvent; }; 00048 }; 00049 00050 #endif //SAVEDATABASEHANDLER_H_ 00051 00052