~ubuntu-branches/ubuntu/trusty/keepass2/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/use-installed-ico-files.patch/KeePass/Forms/DuplicationForm.cs

  • Committer: Package Import Robot
  • Author(s): Julian Taylor
  • Date: 2011-12-30 15:45:59 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20111230154559-3en1b9v90hswvs1w
Tags: 2.18+dfsg-1
* New upstream release
  - refresh patches
  - drop upstream applied patches:
    explicitly-PUT-for-webdav-writes.patch
    prefer-4.0-framework-if-available.patch
* add patch to improve autotype when dealing with multiple keyboard layouts
  - Thanks to amiryal for the patch
* disable initial autoupdate popup via patch
* update years in debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  KeePass Password Safe - The Open-Source Password Manager
 
3
  Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
 
4
 
 
5
  This program is free software; you can redistribute it and/or modify
 
6
  it under the terms of the GNU General Public License as published by
 
7
  the Free Software Foundation; either version 2 of the License, or
 
8
  (at your option) any later version.
 
9
 
 
10
  This program is distributed in the hope that it will be useful,
 
11
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
  GNU General Public License for more details.
 
14
 
 
15
  You should have received a copy of the GNU General Public License
 
16
  along with this program; if not, write to the Free Software
 
17
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
*/
 
19
 
 
20
using System;
 
21
using System.Collections.Generic;
 
22
using System.ComponentModel;
 
23
using System.Drawing;
 
24
using System.Text;
 
25
using System.Windows.Forms;
 
26
using System.Diagnostics;
 
27
 
 
28
using KeePass.App;
 
29
using KeePass.UI;
 
30
 
 
31
namespace KeePass.Forms
 
32
{
 
33
        public partial class DuplicationForm : Form
 
34
        {
 
35
                private bool m_bAppendCopy = true;
 
36
                public bool AppendCopyToTitles
 
37
                {
 
38
                        get { return m_bAppendCopy; }
 
39
                }
 
40
 
 
41
                private bool m_bFieldRefs = false;
 
42
                public bool ReplaceDataByFieldRefs
 
43
                {
 
44
                        get { return m_bFieldRefs; }
 
45
                }
 
46
 
 
47
                public DuplicationForm()
 
48
                {
 
49
                        InitializeComponent();
 
50
                        Program.Translation.ApplyTo(this);
 
51
                }
 
52
 
 
53
                private void OnFormLoad(object sender, EventArgs e)
 
54
                {
 
55
                        GlobalWindowManager.AddWindow(this);
 
56
 
 
57
                        this.Icon = Properties.Resources.KeePass;
 
58
 
 
59
                        FontUtil.AssignDefaultBold(m_cbAppendCopy);
 
60
                        FontUtil.AssignDefaultBold(m_cbFieldRefs);
 
61
 
 
62
                        m_cbAppendCopy.Checked = m_bAppendCopy;
 
63
                        m_cbFieldRefs.Checked = m_bFieldRefs;
 
64
                }
 
65
 
 
66
                private void OnFormClosed(object sender, FormClosedEventArgs e)
 
67
                {
 
68
                        GlobalWindowManager.RemoveWindow(this);
 
69
                }
 
70
 
 
71
                private void OnFieldRefsLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 
72
                {
 
73
                        AppHelp.ShowHelp(AppDefs.HelpTopics.FieldRefs, null);
 
74
                }
 
75
 
 
76
                private void OnBtnOK(object sender, EventArgs e)
 
77
                {
 
78
                        m_bAppendCopy = m_cbAppendCopy.Checked;
 
79
                        m_bFieldRefs = m_cbFieldRefs.Checked;
 
80
                }
 
81
        }
 
82
}