initGanttView

 

void TeslaManage::initGanttView()
{
    
    if (vcGanttObject ==NULL)
    {
        vcGanttObject = new VCGantt(this);
        ganttView = vcGanttObject->initGanttView(this->tesla_manage_ui.newEntryAction,
            this->tesla_manage_ui.removeEntryAction, this->tesla_manage_ui.zoomInAction, 
            this->tesla_manage_ui.zoomOutAction, this->tesla_manage_ui.zoomFitAction);

        this->tesla_manage_ui.ganttDockWidget->setWidget(ganttView);
    }
    

    connect(this->tesla_manage_ui.newEntryAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->addNewEntry()));
    connect(this->tesla_manage_ui.removeEntryAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->removeEntry()));
    connect(this->tesla_manage_ui.zoomInAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->zoomIn()));
    connect(this->tesla_manage_ui.zoomOutAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->zoomOut()));
    connect(this->tesla_manage_ui.zoomFitAction, SIGNAL(triggered()), this, SLOT(vcGanttObject->zoomFit()));

}

 

 

posted @ 2019-08-01 22:56  西北逍遥  阅读(516)  评论(0编辑  收藏  举报