Short Description: Aggregated Account Item multiple-Account context submenus Bug Number: n/a Release notes (y/n): no For Release Nums: 6.1 Implemented dynamic multiple-Account context menus for Aggregated Account Items. The two-level context menu for an Aggregated Account Menu is this: //===================================================================== // Edit Account >> (one item for each Account) // Open Account >> (one item for each Account) // ------------------- // Display Group Membership >> (list of display groups for the item) //===================================================================== ------------------ AccountGfxItem.hpp AccountGfxItem.cpp ------------------ Make the "smarter" Account name tooltip text available to also the dynamic Aggregated Account Item context menus. This includes the Account's parent Aggregegate Object Element Object name, like this: "element^account". static QString acctToolTip (const Account*); (This is an enhancement of the original Qt3 Accounting View implementation). ------------------ AcctRowGfxItem.cpp ------------------ When "redirecting" a context menu account for an Account Item, pass the Account Item of SimObjGfxItem::showAcctContextMenu(). ----------------- SimObjGfxItem.hpp SimObjGfxItem.cpp ----------------- Implementation of dynamic multiple-Account context submenus for showing the "Edit Account" and "Open Account" dialogs: void showAcctContextMenu (AccountGfxItem*, const QPoint& screenPos); void editSelectAcctTriggered(); void openSelectAcctTriggered(); In the dynamically built submenus, the index of the Account within the WorkspaceGfxScene's AccountGfxItem* _objSceneCtxAcctItem which corresponds to each submenu item's Account is encoded in the QVariant "data" of the item (a QAction). --------------------- WorkspaceGfxScene.hpp WorkspaceGfxScene.cpp --------------------- New support for Account Graphics Item context menu, which now can refer to more than one Account (in case of Account Item aggregation): // Context-Operation Account AccountGfxItem* _objSceneCtxAcctItem; AccountGfxItem* getObjSceneCtxAcctItem() const { return (_objSceneCtxAcctItem); } void setObjSceneCtxAcctItem (AccountGfxItem*);