This class makes it possible to get and set the category field (order number) for rollups in the RollupOrder.cfg file.
More...
|
| static UtilExport void * | operator new (size_t size) |
| | Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown.
|
| static UtilExport void * | operator new (size_t size, const std::nothrow_t &e) |
| | Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned.
|
| static UtilExport void * | operator new (size_t size, const char *filename, int line) |
| | New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
|
| static UtilExport void * | operator new (size_t size, int block_type, const char *filename, int line) |
| | New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown.
|
| static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, const char *filename, int line) |
| | New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned.
|
| static UtilExport void * | operator new (size_t size, unsigned long flags) |
| | New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown.
|
| static UtilExport void * | operator new (size_t size, const std::nothrow_t &e, unsigned long flags) |
| | New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned.
|
| static UtilExport void * | operator new[] (size_t size) |
| | New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
|
| static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e) |
| | New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
|
| static UtilExport void * | operator new[] (size_t size, const char *filename, int line) |
| | New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
|
| static UtilExport void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
| | New operator used to allocate arrays of objects.
|
| static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line) |
| | New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
|
| static UtilExport void * | operator new[] (size_t size, unsigned long flags) |
| | New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown.
|
| static UtilExport void * | operator new[] (size_t size, const std::nothrow_t &e, unsigned long flags) |
| | New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned.
|
| static UtilExport void | operator delete (void *ptr) |
| | Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e) |
| | Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen.
|
| static UtilExport void | operator delete (void *ptr, const char *filename, int line) |
| | Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void | operator delete (void *ptr, int block_type, const char *filename, int line) |
| | Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
| | Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
|
| static UtilExport void | operator delete (void *ptr, unsigned long flags) |
| | Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void | operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags) |
| | Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen.
|
| static UtilExport void | operator delete[] (void *ptr) |
| | Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e) |
| | Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen.
|
| static UtilExport void | operator delete[] (void *ptr, const char *filename, int line) |
| | Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void | operator delete[] (void *ptr, int block_type, const char *filename, int line) |
| | Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line) |
| | Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen.
|
| static UtilExport void | operator delete[] (void *ptr, unsigned long flags) |
| | Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void | operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags) |
| | Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown.
|
| static UtilExport void * | operator new (size_t size, void *placement_ptr) |
| | Placement new operator.
|
| static UtilExport void | operator delete (void *ptr, void *placement_ptr) |
| | Placement delete operator.
|
| static UtilExport void * | aligned_malloc (size_t size, size_t alignment) |
| | Allocates memory on a specified alignment boundary.
|
| static UtilExport void * | aligned_realloc (void *ptr, size_t size, size_t alignment) |
| | Reallocates memory on a specified alignment boundary.
|
| static UtilExport void | aligned_free (void *ptr) |
| | Frees a block of memory that was allocated with aligned_malloc/aligned_realloc.
|
This class makes it possible to get and set the category field (order number) for rollups in the RollupOrder.cfg file.
Normally a developer would use this class in order to store the order of rollout panels as a result of a custom handled Drag and Drop operation (see IRollupWindow::HandleRollupCallback and IRollupCallback::HandleDrop). First it is necessary to loop through all rollup panels and update the category field in the ICatRegistry like this:
void TaskRollupManager::UpdateCats()
{
for(int i = 0; i < GetNumPanels(); i++)
{
if(GetEditObjClassID(sid, cid))
{
}
}
}
virtual void UpdateCat(SClass_ID sid, Class_ID cid, const MCHAR *title, int category, const bool *open=nullptr, const MCHAR *context=nullptr)=0
This method updates (sets) the category (order field) for the given SuperClass ID,...
class IRollupPanel : public InterfaceServer
Definition custcont.h:1782
virtual int GetCategory()=0
virtual HWND GetTitleWnd()=0
virtual ICatRegistry * GetCatReg()=0
This method returns a pointer to the category registry.
IRollupSettings * GetIRollupSettings()
Definition irollupsettings.h:148
ulong SClass_ID
Definition maxtypes.h:124
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition strbasic.h:42
UtilExport MSTR GetWindowText(HWND hDlg, int nIDDlgItem)
Returns an window's text as a MSTR.
After that the ICatRegistry has to be saved with GetIRollupSettings()->GetCatReg()->Save();
In order to reset the rollup order, one has to call ICatRegistry::DeleteList() for a given SClassID and ClassID. The structure of the RollupOrder.cfg file (and thus CatRegistry) can be seen as a list of items that represent the rollup order for each particular group. A group is identified by a SClassID and a ClassID.
In 3dsMax we can have different possibilities to store the order of rollups. In the Create and Modify Panel we want to store the order of rollups for the currently edited object, which can be an object, or a modifier. Thus the ClassID and SClassID of the group is the one of the currently edited object. For the Display panel however, we want the rollups to be the same no matter which object is currently selected. To do this, we create a dummy ClassID which represents the display panel and store the rollup orders under this dummy ClassID. This ClassID is identified by the method IRollupCallback::GetEditObjClassID.
- Note
- No ClassDesc has to exist for a dummy ClassID. The RollupOrder.cfg file will indicate "No ClassName" in case a dummy class id is used.
- See also
- IRollupSettings, IRollupWindow, IRollupCallback