mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 15:54:17 +02:00
[NEW_FEDATURE] Implement VerticalFileSwitcher feature (in progress).
git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository/trunk@776 f5eea248-9336-0410-98b8-ebc06183d4e3
This commit is contained in:
parent
8bae5fcf0f
commit
4782e310b2
@ -4054,9 +4054,11 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask)
|
|||||||
bool subActive = (_subEditView.getCurrentBuffer() == buffer);
|
bool subActive = (_subEditView.getCurrentBuffer() == buffer);
|
||||||
|
|
||||||
//Only event that applies to non-active Buffers
|
//Only event that applies to non-active Buffers
|
||||||
if (mask & BufferChangeStatus) { //reload etc
|
if (mask & BufferChangeStatus)
|
||||||
|
{ //reload etc
|
||||||
bool didDialog = false;
|
bool didDialog = false;
|
||||||
switch(buffer->getStatus()) {
|
switch(buffer->getStatus())
|
||||||
|
{
|
||||||
case DOC_UNNAMED: //nothing todo
|
case DOC_UNNAMED: //nothing todo
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
@ -4188,6 +4190,10 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask)
|
|||||||
setDisplayFormat(buffer->getFormat());
|
setDisplayFormat(buffer->getFormat());
|
||||||
enableConvertMenuItems(buffer->getFormat());
|
enableConvertMenuItems(buffer->getFormat());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_pFileSwitcherPanel)
|
||||||
|
_pFileSwitcherPanel->setItemIconStatus((int)buffer);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Notepad_plus::notifyBufferActivated(BufferID bufid, int view)
|
void Notepad_plus::notifyBufferActivated(BufferID bufid, int view)
|
||||||
|
@ -847,8 +847,6 @@ void Notepad_plus::command(int id)
|
|||||||
{
|
{
|
||||||
Buffer * buf = _pEditView->getCurrentBuffer();
|
Buffer * buf = _pEditView->getCurrentBuffer();
|
||||||
buf->setUserReadOnly(!buf->getUserReadOnly());
|
buf->setUserReadOnly(!buf->getUserReadOnly());
|
||||||
if (_pFileSwitcherPanel)
|
|
||||||
_pFileSwitcherPanel->setItemIconStatus((int)buf);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -861,8 +859,6 @@ void Notepad_plus::command(int id)
|
|||||||
|
|
||||||
::SetFileAttributes(buf->getFullPathName(), dwFileAttribs);
|
::SetFileAttributes(buf->getFullPathName(), dwFileAttribs);
|
||||||
buf->setFileReadOnly(false);
|
buf->setFileReadOnly(false);
|
||||||
if (_pFileSwitcherPanel)
|
|
||||||
_pFileSwitcherPanel->setItemIconStatus((int)buf);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -82,9 +82,6 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
|||||||
}
|
}
|
||||||
bool isDirty = notification->nmhdr.code == SCN_SAVEPOINTLEFT;
|
bool isDirty = notification->nmhdr.code == SCN_SAVEPOINTLEFT;
|
||||||
buf->setDirty(isDirty);
|
buf->setDirty(isDirty);
|
||||||
if (_pFileSwitcherPanel)
|
|
||||||
_pFileSwitcherPanel->setItemIconStatus((int)buf);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user