#include "camtypes.h"
#include "ccolbar.h"
#include "colcomp.h"
#include "colcontx.h"
#include "coldlog.h"
#include "colormgr.h"
#include "lineattr.h"
#include "newcol.h"
#include "nodeblnd.h"
#include "objchge.h"
#include "opimgset.h"
#include "fillramp.h"
#include "colmsg.h"
#include "ophist.h"
Go to the source code of this file.
Functions | |
CC_IMPLEMENT_DYNAMIC (ColourChangingMsg, Msg) CC_IMPLEMENT_DYNAMIC(ColourManager | |
MessageHandler | CC_IMPLEMENT_DYNCREATE (OpHideColours, UndoableOperation) CC_IMPLEMENT_DYNCREATE(ActionHideColours |
MessageHandler Action | CC_IMPLEMENT_DYNCREATE (OpColourChange, UndoableOperation) CC_IMPLEMENT_DYNCREATE(ActionColourChange |
Document * | SetCurrentDoc (void) |
The ColourBar works exclusively on the SELECTED Doc. Thus, on entry to any of its routines which call routines outside this file (ccolbar.cpp), it must ensure that CurrentDoc is equal to SelectedDoc. This local macro inline does this, and returns the old setting of CurrentDoc so that the caller can restore the previous CurrentDoc on exit. | |
void | RestoreCurrentDoc (Document *OldCurrentDoc) |
The ColourBar works exclusively on the SELECTED Doc. After calling SetCurrentDoc on entry to a routine, you should call RestoreCurrentDoc on exit to restore the old current document./. |
|
|
|
|
|
|
|
The ColourBar works exclusively on the SELECTED Doc. After calling SetCurrentDoc on entry to a routine, you should call RestoreCurrentDoc on exit to restore the old current document./.
Definition at line 690 of file colormgr.cpp. 00691 { 00692 if (OldCurrentDoc != NULL) 00693 OldCurrentDoc->SetCurrent(); 00694 }
|
|
The ColourBar works exclusively on the SELECTED Doc. Thus, on entry to any of its routines which call routines outside this file (ccolbar.cpp), it must ensure that CurrentDoc is equal to SelectedDoc. This local macro inline does this, and returns the old setting of CurrentDoc so that the caller can restore the previous CurrentDoc on exit.
Definition at line 658 of file colormgr.cpp. 00659 { 00660 Document *OldCurrentDoc = Document::GetCurrent(); 00661 Document *NewCurrentDoc = Document::GetSelected(); 00662 00663 if (NewCurrentDoc != NULL && NewCurrentDoc != OldCurrentDoc) 00664 NewCurrentDoc->SetCurrent(); 00665 00666 return(OldCurrentDoc); 00667 }
|