Fixed issue #4126: Capitalize the first letter in the Push dialog
[TortoiseGit.git] / src / TortoiseProc / SimplePrompt.h
blobe9284aff67a54c3886bf26271d984a4a980a691e
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2020, 2023 - TortoiseGit
4 // Copyright (C) 2003-2006 - Stefan Kueng
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software Foundation,
18 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #pragma once
22 #include "StandAloneDlg.h"
23 #include "resource.h"
25 /**
26 * \ingroup TortoiseProc
27 * Helper dialog to ask the user for authentication data.
29 class CSimplePrompt : public CStandAloneDialog
31 DECLARE_DYNAMIC(CSimplePrompt)
33 public:
34 CSimplePrompt(CWnd* pParent = nullptr);
35 virtual ~CSimplePrompt();
37 enum { IDD = IDD_SIMPLEPROMPT };
39 protected:
40 void DoDataExchange(CDataExchange* pDX) override;
41 BOOL OnInitDialog() override;
43 DECLARE_MESSAGE_MAP()
44 public:
45 CString m_sUsername;
46 CString m_sPassword;
47 CString m_sRealm;
48 BOOL m_bSaveAuthentication;
49 HWND m_hParentWnd;