/** * @file WorkflowConsole.h * @brief 工作流主控台 * @date 2014-11-24 * @author: hudongfang */ #ifndef WORKFLOWPARAMERS_H #define WORKFLOWPARAMERS_H #pragma warning( push ,0) #include #include #include #include "completertextedit.h" #include #include "OSGFramework.h" #include "Turtle_globle.h" #include "WorkflowWidget.h" #include "PaiModuleToolBarView.h" #include "ParameterEditor.h" #include "PaiPushButton.h" // #include "WorkflowPluginControl.h" // #include "PaiAction.h" // #include "ModuleParameter.h" // #include "WellLogWorkflowDataModel.h" #include #include // #include "ObjWellTrack.h" #pragma warning( pop ) BEGIN_OSGGRAPHICS_NAMESPACE; class CModuleConsole; using namespace pai; // using namespace pai::workflow; using namespace pai::graphics2d; using namespace pai::gui; // using namespace pai::module; class PAI_WORKFLOWVIEW_EXPORT CModuleParamers : public QMainWindow { Q_OBJECT public: CModuleParamers(CModuleConsole*pModuleConsole,QWidget *parent = 0); ~CModuleParamers(); void HideModuleTree(); void HideParameterEditor(); void HideMapArea(); /** * @brief 窗口关闭之前调用,做一些清理工作 */ virtual void closeEvent(QCloseEvent *event); void CModuleParamers::OpenOrClose(); void InitCardParamSettings(pai::workflow::CModuleInformation * amoduleInfo); CParameterEditor * CreatParamControlWidget(); public: QString GetCurrentSLFFileName(); void OnSetParameterOK(int stpar=0); // QVector GetWellTracks(); // CVecWindowDocument* GetWindowDocument(); bool GetCurrentZone(float &sdep,float &edep); void OnSetParameterToSlf(); signals: // void signalOpenParameterEditor(pai::workflow::CModuleInformation* ,bool); private slots: /** * @brief 双击模块,打开参数编辑面板 */ // void slotOpenParameterEditor(pai::workflow::CModuleInformation* pInfo, bool IsModuleReadOnly); void slotOnSetParameterOK(); void slotOnSTPAR(); void slotRun(); void slotRunCard(); void slotLoadParameterCard(); void slotSaveParameterCard(); void slotOnSetingParameterOK(); void slotOnSelectParameterOK(); void slotOnClearParameterOK(); //void slotSwitchFocus(); public slots: void slotRunCurrentZone(); void onCurrentLineHighLight(); void onLineHighLight(); private: public: CompleterTextEdit *GetEdtParamCard(){ return m_pEdtParamCard; } WorkflowWidget* m_PWorkflowWidget; CompleterTextEdit * m_pEdtParamCard; QTabWidget * m_TabWidget_Module; QTabWidget *m_TablWiget_Para; PaiPushButton * m_pBtnParamAllSelect; PaiPushButton * m_pBtnParamAllClear; PaiPushButton * m_pBtnParamSettingOK; QTreeWidget* m_pParamSettingList; // pai::CPaiWorkflowTemplateTree *m_pTemplateTree; /** * @brief 模块树加搜索工具条 */ CPaiModuleToolBarView* m_ModuleToolBarView; /** * @brief 参数编辑树 */ CParameterEditor * m_pParameterEditor; // CModuleConsole*m_pModuleConsole; pai::workflow::CModuleInformation* m_pCurrentModuleInfo; QScrollArea *m_pDialogLayout; PaiPushButton *m_pbtnRun; QString m_CurrentSLFFileName; }; /** * @brief 得到当前的workflowConsole */ END_OSGGRAPHICS_NAMESPACE using namespace pai::graphics; #endif // WORKFLOWCONSOLE_H