Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[994dbc]: EditDlg.h Maximize Restore History

Download this file

EditDlg.h    119 lines (100 with data), 3.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
* Copyright (c) 2003-2007 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
// EditDlg.h
//-----------------------------------------------------------------------------
#pragma once
#include "PWDialog.h"
#include "ControlExtns.h"
#include "ExtThread.h"
#include "corelib/ItemData.h"
class CItemData;
class CEditDlg : public CPWDialog
{
public:
// default constructor
CEditDlg(CItemData *ci, CWnd* pParent = NULL);
virtual ~CEditDlg();
enum { IDD = IDD_EDIT };
CMyString m_defusername, m_username, m_aliases, m_base;
bool m_Edit_IsReadOnly;
int m_numaliases;
enum CItemData::EntryType m_original_entrytype;
int m_ibasedata;
uuid_array_t m_base_uuid;
void ShowPassword();
void HidePassword();
void ShowNotes();
void HideNotes();
private:
CItemData *m_ci; // The entry being edited
CMyString m_title;
CMyString m_group;
CMyString m_realpassword, m_oldRealPassword;
CMyString m_password, m_password2;
CMyString m_notes, m_realnotes;
CMyString m_URL;
CMyString m_autotype;
CMyString m_locCTime;
CMyString m_locPMTime, m_locATime, m_locLTime, m_locRMTime;
time_t m_tttLTime;
bool m_bIsModified;
// Password History related stuff
size_t m_NumPWHistory;
size_t m_MaxPWHistory;
BOOL m_SavePWHistory;
PWHistList m_PWHistList;
CMyString m_PWHistory;
bool m_isPwHidden, m_isNotesHidden;
// Are we showing more or less details?
bool m_isExpanded;
// following two are not directly derived from CItemData
CMyString m_oldlocLTime;
int m_oldMaxPWHistory;
void ResizeDialog();
void UpdateHistory();
CComboBoxExtn m_ex_group;
CEditExtn m_ex_password;
CEditExtn m_ex_password2;
CEditExtn m_ex_username;
CEditExtn m_ex_title;
CEditExtn m_ex_URL;
CEditExtn m_ex_autotype;
CEditExtn *m_pex_notes;
static CMyString HIDDEN_NOTES;
static CString CS_SHOW, CS_HIDE, CS_ON, CS_OFF;
CExtThread *m_thread; // worker thread
static UINT ExternalEditorThread(LPVOID me);
TCHAR m_szTempName[MAX_PATH + 1];
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
afx_msg void OnShowPassword();
virtual void OnOK();
virtual BOOL OnInitDialog();
afx_msg void OnRandom();
afx_msg void OnHelp();
afx_msg void OnPasskeySetfocus();
afx_msg void OnPasskeyKillfocus();
afx_msg LRESULT OnCallExternalEditor(WPARAM, LPARAM);
afx_msg LRESULT OnExternalEditorEnded(WPARAM, LPARAM);
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedOk();
afx_msg void OnBnClickedMore();
afx_msg void OnBnClickViewAliases();
afx_msg void OnBnClickedClearLTime();
afx_msg void OnBnClickedSetLTime();
afx_msg void OnBnClickedPwhist();
CButton m_MoreLessBtn;
CButton m_ViewAliasesBtn;
afx_msg void OnEnSetfocusNotes();
afx_msg void OnEnKillfocusNotes();
};
//-----------------------------------------------------------------------------
// Local variables:
// mode: c++
// End: