[ENHANCEMENT] Enhance doc map.

git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@881 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
Don Ho 2012-03-14 02:07:45 +00:00
parent 1d12661dbd
commit e05b1ad828
4 changed files with 15 additions and 12 deletions

View File

@ -1159,7 +1159,8 @@ void Notepad_plus::command(int id)
if (_pDocMap)
{
_pDocMap->wrapActionDone();
_pDocMap->initWrapMap();
_pDocMap->wrapMap();
}
break;
}

View File

@ -541,7 +541,8 @@ BOOL Notepad_plus::notify(SCNotification *notification)
if (_pDocMap)
{
_pDocMap->guiUpdate();
_pDocMap->wrapMap();
_pDocMap->scrollMap();
}
break;
}

View File

@ -72,18 +72,18 @@ void DocumentMap::initWrapMap()
_pScintillaEditView->redraw(true);
}
}
/*
void DocumentMap::guiUpdate()
{
if (_wrapUnwrapTriggered)
//if (_wrapUnwrapTriggered)
{
initWrapMap();
wrapMap();
}
scrollMap();
_wrapUnwrapTriggered = false;
//initWrapMap();
}
_wrapUnwrapTriggered = false;
}
*/
/*
double ddd = (double)Xlength1/(double)Xlength2;
char dchar[256];

View File

@ -108,18 +108,19 @@ public:
void scrollMap(bool direction, moveMode whichMode);
void doMove();
void fold(int line, bool foldOrNot);
void setMainEditorWrap(bool isWrap) {
_isMainEditorWrap = isWrap;
};
bool isMainEditorWrap() const {
return _isMainEditorWrap;
};
/*
void wrapActionDone() {
_wrapUnwrapTriggered = true;
};
void guiUpdate();
*/
//void guiUpdate();
protected:
virtual BOOL CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
@ -132,7 +133,7 @@ private:
//HWND _glassHandle;
ViewZoneDlg _vzDlg;
bool _isMainEditorWrap;
bool _wrapUnwrapTriggered;
//bool _wrapUnwrapTriggered;
// for needToRecomputeWith function
int _displayZoom;