[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:
parent
1d12661dbd
commit
e05b1ad828
@ -1159,7 +1159,8 @@ void Notepad_plus::command(int id)
|
||||
|
||||
if (_pDocMap)
|
||||
{
|
||||
_pDocMap->wrapActionDone();
|
||||
_pDocMap->initWrapMap();
|
||||
_pDocMap->wrapMap();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -541,7 +541,8 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
||||
|
||||
if (_pDocMap)
|
||||
{
|
||||
_pDocMap->guiUpdate();
|
||||
_pDocMap->wrapMap();
|
||||
_pDocMap->scrollMap();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -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];
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user