void CAttributeDlg::OnTimer(UINT_PTR nIDEvent)
{
    if (m_migrator->GetActiveMigrationCount() == 0)
    {
        KillTimer(0);
        GetIMainFrame()->Send_RefreshRepositoryWindow(m_attribute->GetModule());
        GetIMainFrame()->SyncTOC(m_attribute->GetQualifiedLabel(), m_attribute->GetType());
    }
}
 void PostSelectRibbon()
 {
     unsigned n = m_tabbedChildWindow.GetTabCtrl().GetCurSel();
     switch(n)
     {
     case 0:
         GetIMainFrame()->PostSelectRibbon(RIBBON_HOME);
         break;
     case 1:
         GetIMainFrame()->PostSelectRibbon(RIBBON_COMPARE);
         break;
     default:
         GetIMainFrame()->PostSelectRibbon(RIBBON_HOME);
         break;
     }
 }
void CAttributeDlg::OnEclGotoSyncToc(UINT /*uNotifyCode*/, int /*nID*/, HWND /*hWnd*/)
{
    CString message;
    GetWordAtCurPos(message);
    if (message[0])
        GetIMainFrame()->SyncTOC(message, CreateIAttributeECLType(), m_attribute->GetModuleQualifiedLabel());
}
void CAttributeDlg::OnEclGoto(UINT /*uNotifyCode*/, int /*nID*/, HWND /*hWnd*/)
{
    CString message;
    GetWordAtCurPos(message);
    if (message[0])
        GetIMainFrame()->OpenAttribute(message, m_attribute->GetType(), m_attribute->GetModuleQualifiedLabel());
}
    void OnSetFocus(HWND /*hWndOther*/)
    {
        //SetMsgHandled(false);
        CWindow activeWnd = m_tabbedChildWindow.GetActiveView();
        if (activeWnd.IsWindow() && activeWnd.IsWindowVisible())
            activeWnd.SetFocus();

        int syncRepository = GetIConfig(QUERYBUILDER_CFG)->Get(GLOBAL_SYNCREPOSITORY);
        if (syncRepository)
            GetIMainFrame()->SyncTOC(m_dlgview.GetAttribute());
    }
Example #6
0
void CBookmarksView::OpenAttribute(std::_tstring line, int column, std::_tstring module, std::_tstring attribute, std::_tstring attributeType)
{
    std::_tstring attrType(attributeType);
    IAttributeType *type = CreateIAttributeType(attrType);

    int row = boost::lexical_cast<int>(line);
    std::wstring m(module);
    std::wstring a(attribute);

    GetIMainFrame()->OpenAttribute(m, a, type, row, column);
}
 void SetSyntax(Dali::CEclExceptionVector * errors)
 {
     BOOL bHandled = false;
     m_dlgview.OnSubmitDone(0, (WPARAM)Dali::WUActionCheck, (LPARAM)errors, bHandled);
     GetIMainFrame()->Send_RefreshSyntax(&m_dlgview.GetView(), m_dlgview.GetView().SyntaxGetCurrent());
 }
 void SetSyntax(const CSyntaxErrorVector & errors)
 {
     m_dlgview.SetSyntax(errors);
     GetIMainFrame()->Send_RefreshSyntax(&m_dlgview.GetView(), m_dlgview.GetView().SyntaxGetCurrent());
     PostMessage(WM_COMMAND, ID_ECL_NEXTERROR);
 }
CBookmarksFrame *CAttributeDlg::GetBookmarksFrame() {
    return (CBookmarksFrame *)GetIMainFrame()->m_Bookmarks;
}
void CAttributeDlg::OnEclSyncToc(UINT /*uNotifyCode*/, int /*nID*/, HWND /*hWnd*/)
{
    GetIMainFrame()->SyncTOC(m_attribute->GetQualifiedLabel(), m_attribute->GetType());
}