Changeset 29


Ignore:
Timestamp:
10/10/2007 10:33:46 AM (7 years ago)
Author:
lowjoel
Message:

-Silenced more unused variable warnings
-Standardize the header at the top of every source file

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/HotKeyDlg.cpp

    r26 r29  
    1 // HotKeyDlg.cpp : implementation file 
     1// HotKeyDlg.cpp 
     2// $Id$ 
    23// 
     4// Eraser. Secure data removal. For Windows. 
     5// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com). 
     6// Copyright © 2001-2006  Garrett Trant (support@heidi.ie). 
     7// Copyright © 2007 The Eraser Project 
     8// 
     9// This program is free software; you can redistribute it and/or 
     10// modify it under the terms of the GNU General Public License 
     11// as published by the Free Software Foundation; either version 2 
     12// of the License, or (at your option) any later version. 
     13// 
     14// This program is distributed in the hope that it will be useful, 
     15// but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17// GNU General Public License for more details. 
     18// 
     19// You should have received a copy of the GNU General Public License 
     20// along with this program; if not, write to the Free Software 
     21// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
     22// 02111-1307, USA. 
    323 
    424#include "stdafx.h" 
     
    2141    "E", 
    2242    "M", 
    23     "U" 
     43    "U" 
    2444}; 
    2545 
     
    3454    "Erase", 
    3555    "Eraser Secure Move", 
    36     "Erase Unused Space" 
     56    "Erase Unused Space" 
    3757}; 
    3858 
     
    5575    lvc.iSubItem    = 1; 
    5676    lcHKey.InsertColumn(1, &lvc); 
    57      
     77 
    5878    lcHKey.SetExtendedStyle(LVS_EX_HEADERDRAGDROP | LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES); 
    5979} 
     
    6888    CString strPath = _T(""); 
    6989    strPath.Format("%s\\%s", ERASER_REGISTRY_BASE, szAccelerKey); 
    70      
     90 
    7191    if (!no_registry) { 
    7292        if (!kReg.Open(HKEY_CURRENT_USER, strPath, FALSE)) 
     
    106126    CString strValueName=_T(""); 
    107127    CString strValue=_T(""); 
    108      
     128 
    109129    strPath.Format("%s\\%s", ERASER_REGISTRY_BASE, szAccelerKey); 
    110130    InitRegistry(); 
     
    150170void CHotKeyDlg::UpdateHotKeyList(CListCtrl& lcHKey) 
    151171{ 
    152      
    153172    lcHKey.SetRedraw(FALSE); 
    154      
     173 
    155174    LV_ITEM         lvi; 
    156175    POSITION        pos; 
    157176    CString         strKey = _T(""); 
    158177    CString         strCommand =_T(""); 
    159          
     178 
    160179    ZeroMemory(&lvi, sizeof(LV_ITEM)); 
    161180    try 
     
    166185        { 
    167186            m_arKeyValues.GetNextAssoc(pos,strCommand,strKey); 
    168                  
     187 
    169188            lvi.mask        = LVIF_TEXT ; 
    170189            lvi.iItem       = nItem; 
     
    172191            lvi.pszText     = strCommand.GetBuffer(strCommand.GetLength()); 
    173192            lvi.iItem       = lcHKey.InsertItem(&lvi); 
    174                                              
     193 
    175194            lvi.mask        = LVIF_TEXT; 
    176195            lvi.iSubItem    = 1; 
     
    224243IMPLEMENT_DYNAMIC(CHotKeyDlg, CDialog) 
    225244CHotKeyDlg::CHotKeyDlg(CWnd* pParent /*=NULL*/, int iValCnt) 
    226     : CDialog(CHotKeyDlg::IDD, pParent),m_arKeyValues(),m_lcHotKeys() 
     245: CDialog(CHotKeyDlg::IDD, pParent),m_arKeyValues(),m_lcHotKeys() 
    227246{    
    228247} 
     
    288307 
    289308    // TODO: Add your message handler code here 
    290     UpdateHotKeyList(m_lcHotKeys); 
     309    UpdateHotKeyList(m_lcHotKeys); 
    291310    GetDlgItem(IDCHANGE)->EnableWindow(FALSE); 
    292311} 
     
    298317    // TODO: Add your control notification handler code here 
    299318    if (m_lcHotKeys.GetFirstSelectedItemPosition() != NULL) 
    300         GetDlgItem(IDCHANGE)->EnableWindow(TRUE); 
     319        GetDlgItem(IDCHANGE)->EnableWindow(TRUE); 
    301320    else  
    302321        GetDlgItem(IDCHANGE)->EnableWindow(FALSE); 
     
    306325void CHotKeyDlg::OnBnClickedButtonOk() 
    307326{ 
    308     saveListToRegistry();    
     327    saveListToRegistry();    
    309328    this->OnOK(); 
    310329} 
  • trunk/HotKeyDlg.h

    r3 r29  
     1// HotKeyDlg.h 
     2// $Id$ 
     3// 
     4// Eraser. Secure data removal. For Windows. 
     5// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com). 
     6// Copyright © 2001-2006  Garrett Trant (support@heidi.ie). 
     7// Copyright © 2007 The Eraser Project 
     8// 
     9// This program is free software; you can redistribute it and/or 
     10// modify it under the terms of the GNU General Public License 
     11// as published by the Free Software Foundation; either version 2 
     12// of the License, or (at your option) any later version. 
     13// 
     14// This program is distributed in the hope that it will be useful, 
     15// but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17// GNU General Public License for more details. 
     18// 
     19// You should have received a copy of the GNU General Public License 
     20// along with this program; if not, write to the Free Software 
     21// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
     22// 02111-1307, USA. 
    123#pragma once 
    224 
  • trunk/HotKeyListCtrl.cpp

    r3 r29  
    1 // HotKeyListCtrl.cpp : implementation file 
     1// HotKeyListCtrl.cpp 
     2// $Id$ 
    23// 
     4// Eraser. Secure data removal. For Windows. 
     5// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com). 
     6// Copyright © 2001-2006  Garrett Trant (support@heidi.ie). 
     7// Copyright © 2007 The Eraser Project 
     8// 
     9// This program is free software; you can redistribute it and/or 
     10// modify it under the terms of the GNU General Public License 
     11// as published by the Free Software Foundation; either version 2 
     12// of the License, or (at your option) any later version. 
     13// 
     14// This program is distributed in the hope that it will be useful, 
     15// but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17// GNU General Public License for more details. 
     18// 
     19// You should have received a copy of the GNU General Public License 
     20// along with this program; if not, write to the Free Software 
     21// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
     22// 02111-1307, USA. 
    323 
    424#include "stdafx.h" 
     
    3151void CHotKeyListCtrl::OnLvnItemActivate(NMHDR *pNMHDR, LRESULT *pResult) 
    3252{ 
    33     LPNMITEMACTIVATE pNMIA = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR); 
    3453    // TODO: Add your control notification handler code here 
    3554    *pResult = 0; 
  • trunk/HotKeyListCtrl.h

    r3 r29  
     1// HotKeyListCtrl.h 
     2// $Id$ 
     3// 
     4// Eraser. Secure data removal. For Windows. 
     5// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com). 
     6// Copyright © 2001-2006  Garrett Trant (support@heidi.ie). 
     7// Copyright © 2007 The Eraser Project 
     8// 
     9// This program is free software; you can redistribute it and/or 
     10// modify it under the terms of the GNU General Public License 
     11// as published by the Free Software Foundation; either version 2 
     12// of the License, or (at your option) any later version. 
     13// 
     14// This program is distributed in the hope that it will be useful, 
     15// but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17// GNU General Public License for more details. 
     18// 
     19// You should have received a copy of the GNU General Public License 
     20// along with this program; if not, write to the Free Software 
     21// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
     22// 02111-1307, USA. 
    123#pragma once 
    2  
    3  
    4 // CHotKeyListCtrl 
    524 
    625class CHotKeyListCtrl : public CListCtrl 
  • trunk/KeyComboDlg.cpp

    r26 r29  
    1 // KeyComboDlg.cpp : implementation file 
     1// KeyComboDlg.cpp 
     2// $Id$ 
    23// 
     4// Eraser. Secure data removal. For Windows. 
     5// Copyright © 1997-2001  Sami Tolvanen (sami@tolvanen.com). 
     6// Copyright © 2001-2006  Garrett Trant (support@heidi.ie). 
     7// Copyright © 2007 The Eraser Project 
     8// 
     9// This program is free software; you can redistribute it and/or 
     10// modify it under the terms of the GNU General Public License 
     11// as published by the Free Software Foundation; either version 2 
     12// of the License, or (at your option) any later version. 
     13// 
     14// This program is distributed in the hope that it will be useful, 
     15// but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17// GNU General Public License for more details. 
     18// 
     19// You should have received a copy of the GNU General Public License 
     20// along with this program; if not, write to the Free Software 
     21// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
     22// 02111-1307, USA. 
    323 
    424#include "stdafx.h" 
     
    1333IMPLEMENT_DYNAMIC(CKeyComboDlg, CDialog) 
    1434CKeyComboDlg::CKeyComboDlg(CString wValue /* ="" */, CString strValName /* ="" */, CWnd* pParent /*=NULL*/) 
    15     : CDialog(CKeyComboDlg::IDD, pParent), m_strValue(wValue),m_strRegKey(strValName) 
     35: CDialog(CKeyComboDlg::IDD, pParent), m_strValue(wValue),m_strRegKey(strValName) 
    1636{ 
    1737} 
     
    4060{ 
    4161    CDialog::OnInitDialog(); 
    42      
     62 
    4363    m_eKey.SetLimitText(1); 
    4464    m_eKey.SetWindowText(m_strValue); 
    45      
     65 
    4666    // TODO:  Add extra initialization here 
    4767 
     
    80100    if (!strLine.IsEmpty()) 
    81101    { 
    82         CString strTmp(m_strRegKey.MakeUpper()); 
     102        CString strTmp(m_strRegKey.MakeUpper()); 
    83103        strLine.MakeUpper(); 
    84104        if (strTmp.Find(strLine[0]) ==-1 ) { 
Note: See TracChangeset for help on using the changeset viewer.