diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-11 14:20:11 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-11 14:20:11 (GMT) |
commit | 7d70285c867812be9ff23b3bec7c8e79548d2e69 (patch) | |
tree | 67d0499ad38b48c23651cc2a7801baa990f98fd3 /Source | |
parent | 8e15a1ede734f8422b0ba33c7e5c4ec2d384ce25 (diff) | |
download | CMake-7d70285c867812be9ff23b3bec7c8e79548d2e69.zip CMake-7d70285c867812be9ff23b3bec7c8e79548d2e69.tar.gz CMake-7d70285c867812be9ff23b3bec7c8e79548d2e69.tar.bz2 |
ENH: add IGNORE option for cache values
Diffstat (limited to 'Source')
-rw-r--r-- | Source/MFCDialog/CMakeSetup.rc | 4 | ||||
-rw-r--r-- | Source/MFCDialog/PropertyList.cpp | 15 | ||||
-rw-r--r-- | Source/MFCDialog/PropertyList.h | 1 | ||||
-rw-r--r-- | Source/MFCDialog/resource.h | 16 |
4 files changed, 18 insertions, 18 deletions
diff --git a/Source/MFCDialog/CMakeSetup.rc b/Source/MFCDialog/CMakeSetup.rc index 3b668a5..b2ca68a 100644 --- a/Source/MFCDialog/CMakeSetup.rc +++ b/Source/MFCDialog/CMakeSetup.rc @@ -106,8 +106,8 @@ BEGIN RTEXT "Where is the source code:",IDC_STATIC,6,7,86,9 RTEXT "Where to build the binaries:",IDC_STATIC,5,27,90,9 GROUPBOX "Cache Values",IDC_FRAME,9,44,406,140 - LTEXT "Right click on a cache value for additional options and help.\nPress Configure to update and display new values in red.\nPress OK to generate selected build files and exit.", - IDC_MouseHelpCaption,114,190,197,27 + LTEXT "Right click on a cache value for additional options (delete, ignore, and help).\nPress Configure to update and display new values in red.\nPress OK to generate selected build files and exit.", + IDC_MouseHelpCaption,102,190,228,27 LTEXT "Static",IDC_CMAKE_VERSION,3,227,92,13,SS_CENTERIMAGE PUSHBUTTON "OK",IDC_OK,156,223,51,15 COMBOBOX IDC_Generator,311,7,103,50,CBS_DROPDOWN | CBS_SORT | diff --git a/Source/MFCDialog/PropertyList.cpp b/Source/MFCDialog/PropertyList.cpp index a114100..7aa9df3 100644 --- a/Source/MFCDialog/PropertyList.cpp +++ b/Source/MFCDialog/PropertyList.cpp @@ -50,6 +50,7 @@ BEGIN_MESSAGE_MAP(CPropertyList, CListBox) ON_BN_CLICKED(IDC_PROPCHECKBOXCTRL, OnCheckBox) ON_COMMAND(42, OnDelete) ON_COMMAND(43, OnHelp) + ON_COMMAND(44, OnIgnore) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// @@ -607,6 +608,7 @@ void CPropertyList::OnRButtonUp( UINT nFlags, CPoint point ) BOOL loc; m_curSel = ItemFromPoint(point,loc); menu.CreatePopupMenu(); + menu.AppendMenu(MF_STRING | MF_ENABLED, 44, "Ignore Cache Entry"); menu.AppendMenu(MF_STRING | MF_ENABLED, 42, "Delete Cache Entry"); menu.AppendMenu(MF_STRING | MF_ENABLED, 43, "Help For Cache Entry"); menu.TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, @@ -629,6 +631,19 @@ void CPropertyList::RemoveProperty(const char* name) } } +void CPropertyList::OnIgnore() +{ + if(m_curSel == -1 || this->GetCount() <= 0) + { + return; + } + CPropertyItem* pItem = (CPropertyItem*) GetItemDataPtr(m_curSel); + pItem->m_curValue = "IGNORE"; + InvalidateList(); +} + + + void CPropertyList::OnDelete() { if(m_curSel == -1 || this->GetCount() <= 0) diff --git a/Source/MFCDialog/PropertyList.h b/Source/MFCDialog/PropertyList.h index 48e1374..5cda18c 100644 --- a/Source/MFCDialog/PropertyList.h +++ b/Source/MFCDialog/PropertyList.h @@ -122,6 +122,7 @@ protected: afx_msg void OnKillfocusEditBox(); afx_msg void OnChangeEditBox(); afx_msg void OnButton(); + afx_msg void OnIgnore(); afx_msg void OnDelete(); afx_msg void OnHelp(); afx_msg void OnCheckBox(); diff --git a/Source/MFCDialog/resource.h b/Source/MFCDialog/resource.h index f9dd87c..d581f29 100644 --- a/Source/MFCDialog/resource.h +++ b/Source/MFCDialog/resource.h @@ -1,19 +1,3 @@ -/*========================================================================= - - Program: Insight Segmentation & Registration Toolkit - Module: $RCSfile$ - Language: C++ - Date: $Date$ - Version: $Revision$ - - Copyright (c) 2002 Insight Consortium. All rights reserved. - See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. - - This software is distributed WITHOUT ANY WARRANTY; without even - the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR - PURPOSE. See the above copyright notices for more information. - -=========================================================================*/ //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by CMakeSetup.rc |