[GME-commit]
GMESRC/GME/MgaUtil MgaUtil.rc,1.54,1.55 RegistryTree.h,1.3,1.4
RegistryTree.cpp,1.6,1.7 resource.h,1.35,1.36
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Wed Nov 1 17:45:30 CST 2006
Update of /project/gme-repository/GMESRC/GME/MgaUtil
In directory escher:/tmp/cvs-serv19297
Modified Files:
MgaUtil.rc RegistryTree.h RegistryTree.cpp resource.h
Log Message:
RemoveAll menuitem added for RegistryNodes.
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: RegistryTree.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/RegistryTree.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** RegistryTree.cpp 14 Jan 2005 18:09:42 -0000 1.6
--- RegistryTree.cpp 1 Nov 2006 17:45:28 -0000 1.7
***************
*** 5,9 ****
#include "mgautil.h"
#include "RegistryBrowserDlg.h"
!
#ifdef _DEBUG
#define new DEBUG_NEW
--- 5,9 ----
#include "mgautil.h"
#include "RegistryBrowserDlg.h"
! #include "resource.h"
#ifdef _DEBUG
#define new DEBUG_NEW
***************
*** 30,33 ****
--- 30,34 ----
ON_COMMAND(ID_CNTX_ADDNODE, OnCntxAddnode)
ON_COMMAND(ID_CNTX_CLEARNODE, OnCntxClearnode)
+ ON_COMMAND(ID_CNTX_REMOVEALL, OnCntxRemoveall)
ON_COMMAND(ID_CNTX_REMOVETREE, OnCntxRemovetree)
ON_NOTIFY_REFLECT(TVN_ENDLABELEDIT, OnEndlabeledit)
***************
*** 189,192 ****
--- 190,209 ----
dlg->m_imageMap.Lookup(IDI_ICON_REGUNDEF, imageNum);
SetItemImage(hItem, imageNum, imageNum);
+ AfxMessageBox("Inherited nodes will not be shown until you save the changes.\nClick on the OK button, and start the Registry Browser again to see them !", MB_ICONINFORMATION | MB_OK);
+ }
+ }
+
+ void CRegistryTree::OnCntxRemoveall()
+ {
+ if( AfxMessageBox("Would you like to delete all nodes?", MB_YESNO | MB_ICONWARNING) == IDYES)
+ {
+ HTREEITEM hNextItem, hItem = GetRootItem();
+ while ( hItem != NULL)
+ {
+ hNextItem = GetNextItem( hItem, TVGN_NEXT);
+ RemoveSubTree(hItem);
+ DeleteItem(hItem);
+ hItem = hNextItem;
+ }
AfxMessageBox("Inherited nodes will not be shown until you save the changes.\nClick on the OK button, and start the Registry Browser again to see them !", MB_ICONINFORMATION | MB_OK);
}
Index: MgaUtil.rc
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/MgaUtil.rc,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** MgaUtil.rc 8 Aug 2006 19:12:06 -0000 1.54
--- MgaUtil.rc 1 Nov 2006 17:45:28 -0000 1.55
***************
*** 906,909 ****
--- 906,910 ----
MENUITEM "Add Node", ID_CNTX_ADDNODE
MENUITEM "Clear Node", ID_CNTX_CLEARNODE
+ MENUITEM "Remove All", 32778
MENUITEM "Remove Tree", ID_CNTX_REMOVETREE
MENUITEM "Rename Node", ID_CNTX_RENAMENODE
Index: resource.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/resource.h,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** resource.h 8 Aug 2006 19:12:06 -0000 1.35
--- resource.h 1 Nov 2006 17:45:28 -0000 1.36
***************
*** 219,222 ****
--- 219,223 ----
#define ID_CNTX_REMOVETREE 32776
#define ID_CNTX_RENAMENODE 32777
+ #define ID_CNTX_REMOVEALL 32778
// Next default values for new objects
***************
*** 225,229 ****
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 2072
! #define _APS_NEXT_COMMAND_VALUE 32778
#define _APS_NEXT_CONTROL_VALUE 2280
#define _APS_NEXT_SYMED_VALUE 2091
--- 226,230 ----
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 2072
! #define _APS_NEXT_COMMAND_VALUE 32779
#define _APS_NEXT_CONTROL_VALUE 2280
#define _APS_NEXT_SYMED_VALUE 2091
Index: RegistryTree.h
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/MgaUtil/RegistryTree.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** RegistryTree.h 15 Mar 2001 19:03:00 -0000 1.3
--- RegistryTree.h 1 Nov 2006 17:45:28 -0000 1.4
***************
*** 44,47 ****
--- 44,48 ----
afx_msg void OnCntxAddnode();
afx_msg void OnCntxClearnode();
+ afx_msg void OnCntxRemoveall();
afx_msg void OnCntxRemovetree();
afx_msg void OnEndlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
More information about the GME-commit
mailing list