[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)
|
if (_pDocMap)
|
||||||
{
|
{
|
||||||
_pDocMap->wrapActionDone();
|
_pDocMap->initWrapMap();
|
||||||
|
_pDocMap->wrapMap();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -541,7 +541,8 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||||||
|
|
||||||
if (_pDocMap)
|
if (_pDocMap)
|
||||||
{
|
{
|
||||||
_pDocMap->guiUpdate();
|
_pDocMap->wrapMap();
|
||||||
|
_pDocMap->scrollMap();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -72,18 +72,18 @@ void DocumentMap::initWrapMap()
|
|||||||
_pScintillaEditView->redraw(true);
|
_pScintillaEditView->redraw(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
void DocumentMap::guiUpdate()
|
void DocumentMap::guiUpdate()
|
||||||
{
|
{
|
||||||
if (_wrapUnwrapTriggered)
|
//if (_wrapUnwrapTriggered)
|
||||||
{
|
{
|
||||||
initWrapMap();
|
//initWrapMap();
|
||||||
wrapMap();
|
|
||||||
}
|
}
|
||||||
scrollMap();
|
|
||||||
_wrapUnwrapTriggered = false;
|
_wrapUnwrapTriggered = false;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
/*
|
/*
|
||||||
double ddd = (double)Xlength1/(double)Xlength2;
|
double ddd = (double)Xlength1/(double)Xlength2;
|
||||||
char dchar[256];
|
char dchar[256];
|
||||||
|
@ -108,18 +108,19 @@ public:
|
|||||||
void scrollMap(bool direction, moveMode whichMode);
|
void scrollMap(bool direction, moveMode whichMode);
|
||||||
void doMove();
|
void doMove();
|
||||||
void fold(int line, bool foldOrNot);
|
void fold(int line, bool foldOrNot);
|
||||||
|
|
||||||
void setMainEditorWrap(bool isWrap) {
|
void setMainEditorWrap(bool isWrap) {
|
||||||
_isMainEditorWrap = isWrap;
|
_isMainEditorWrap = isWrap;
|
||||||
};
|
};
|
||||||
bool isMainEditorWrap() const {
|
bool isMainEditorWrap() const {
|
||||||
return _isMainEditorWrap;
|
return _isMainEditorWrap;
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
void wrapActionDone() {
|
void wrapActionDone() {
|
||||||
_wrapUnwrapTriggered = true;
|
_wrapUnwrapTriggered = true;
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
void guiUpdate();
|
//void guiUpdate();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual BOOL CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
|
virtual BOOL CALLBACK run_dlgProc(UINT message, WPARAM wParam, LPARAM lParam);
|
||||||
@ -132,7 +133,7 @@ private:
|
|||||||
//HWND _glassHandle;
|
//HWND _glassHandle;
|
||||||
ViewZoneDlg _vzDlg;
|
ViewZoneDlg _vzDlg;
|
||||||
bool _isMainEditorWrap;
|
bool _isMainEditorWrap;
|
||||||
bool _wrapUnwrapTriggered;
|
//bool _wrapUnwrapTriggered;
|
||||||
|
|
||||||
// for needToRecomputeWith function
|
// for needToRecomputeWith function
|
||||||
int _displayZoom;
|
int _displayZoom;
|
||||||
|
Loading…
Reference in New Issue
Block a user