Fix typos
[TortoiseGit.git] / src / TortoiseMerge / GotoLineDlg.h
blobc4d2370e3366d8d537584e507062294f51e58c71
1 // TortoiseGitMerge - a Diff/Patch program
3 // Copyright (C) 2023 - TortoiseGit
4 // Copyright (C) 2011, 2013, 2020 - TortoiseSVN
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
21 #include <afxwin.h>
22 #include "StandAloneDlg.h"
24 // CGotoLineDlg dialog
26 class CGotoLineDlg : public CStandAloneDialog
28 DECLARE_DYNAMIC(CGotoLineDlg)
30 public:
31 CGotoLineDlg(CWnd* pParent = nullptr); // standard constructor
32 virtual ~CGotoLineDlg();
34 int GetLineNumber() const {return m_nLine;}
35 void SetLabel(const CString& label) { m_sLabel = label; }
36 void SetLimits(int low, int high) { m_nLow = low; m_nHigh = high; }
38 // Dialog Data
39 enum { IDD = IDD_GOTO };
41 protected:
42 void DoDataExchange(CDataExchange* pDX) override; // DDX/DDV support
43 BOOL OnInitDialog() override;
44 void OnOK() override;
46 DECLARE_MESSAGE_MAP()
47 private:
48 int m_nLine = 0;
49 int m_nLow = -1;
50 int m_nHigh = -1;
51 CString m_sLabel;
52 CEdit m_cNumber;