00001 /**************************************************************************** 00002 ** Form interface generated from reading ui file 'Qt/ModelManagerWizard.ui' 00003 ** 00004 ** WARNING! All changes made in this file will be lost! 00005 ****************************************************************************/ 00006 00007 #ifndef MODELMANAGERWIZARD_H 00008 #define MODELMANAGERWIZARD_H 00009 00010 #include <qvariant.h> 00011 #include <qdialog.h> 00012 #include <qscrollview.h> 00013 #include <map> 00014 #include "Component/ModelManager.H" 00015 #include "Component/ModelOptionDef.H" 00016 #include "Component/ParamMap.H" 00017 00018 class QVBoxLayout; 00019 class QHBoxLayout; 00020 class QGridLayout; 00021 class QSpacerItem; 00022 class QPushButton; 00023 class QLabel; 00024 class QListBox; 00025 class QListBoxItem; 00026 class QErrorMessage; 00027 class ModelManagerWizardItem; 00028 00029 class ModelManagerWizard : public QDialog 00030 { 00031 Q_OBJECT 00032 00033 public: 00034 ModelManagerWizard( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 ); 00035 ~ModelManagerWizard(); 00036 00037 QPushButton* cancelButton; 00038 QPushButton* nextButton; 00039 QPushButton* backButton; 00040 QPushButton* finishButton; 00041 QLabel* textLabel2; 00042 QListBox* listbox; 00043 00044 public slots: 00045 virtual void init( ModelManager & manager ); 00046 virtual void refreshOptions( void ); 00047 virtual void showFrame( QListBoxItem * item ); 00048 virtual void handleCancelButton( void ); 00049 virtual void handleBackButton( void ); 00050 virtual void handleNextButton( void ); 00051 virtual void handleFinishButton( void ); 00052 virtual void handleCheckBox( bool b ); 00053 virtual void handleLineEdit( void ); 00054 virtual void refreshAndSelect(QString sel, const ModelOptionDef* def); 00055 00056 protected: 00057 00058 protected slots: 00059 virtual void languageChange(); 00060 00061 private: 00062 QErrorMessage* errBox; 00063 QScrollView* currentSv; 00064 std::map<const ModelOptionCateg*, ModelManagerWizardItem> categs; 00065 std::map<const QWidget*, const ModelOptionDef*> itsWidgetOptions; 00066 ModelManager* mgr; 00067 ParamMap backupMap; 00068 00069 }; 00070 00071 #endif // MODELMANAGERWIZARD_H