[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:
Don Ho 2011-06-16 23:51:58 +00:00
parent 8bae5fcf0f
commit 4782e310b2
3 changed files with 8 additions and 9 deletions

View File

@ -4054,9 +4054,11 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask)
bool subActive = (_subEditView.getCurrentBuffer() == buffer);
//Only event that applies to non-active Buffers
if (mask & BufferChangeStatus) { //reload etc
if (mask & BufferChangeStatus)
{ //reload etc
bool didDialog = false;
switch(buffer->getStatus()) {
switch(buffer->getStatus())
{
case DOC_UNNAMED: //nothing todo
{
break;
@ -4188,6 +4190,10 @@ void Notepad_plus::notifyBufferChanged(Buffer * buffer, int mask)
setDisplayFormat(buffer->getFormat());
enableConvertMenuItems(buffer->getFormat());
}
if (_pFileSwitcherPanel)
_pFileSwitcherPanel->setItemIconStatus((int)buffer);
}
void Notepad_plus::notifyBufferActivated(BufferID bufid, int view)

View File

@ -847,8 +847,6 @@ void Notepad_plus::command(int id)
{
Buffer * buf = _pEditView->getCurrentBuffer();
buf->setUserReadOnly(!buf->getUserReadOnly());
if (_pFileSwitcherPanel)
_pFileSwitcherPanel->setItemIconStatus((int)buf);
}
break;
@ -861,8 +859,6 @@ void Notepad_plus::command(int id)
::SetFileAttributes(buf->getFullPathName(), dwFileAttribs);
buf->setFileReadOnly(false);
if (_pFileSwitcherPanel)
_pFileSwitcherPanel->setItemIconStatus((int)buf);
}
break;

View File

@ -82,9 +82,6 @@ BOOL Notepad_plus::notify(SCNotification *notification)
}
bool isDirty = notification->nmhdr.code == SCN_SAVEPOINTLEFT;
buf->setDirty(isDirty);
if (_pFileSwitcherPanel)
_pFileSwitcherPanel->setItemIconStatus((int)buf);
break;
}