BrowseRefs: Context menu enhancements
[TortoiseGit.git] / src / TortoiseProc / GoOffline.cpp
blobb6e30a8c6d097d2658fc88cdec1b4e32b4619662
1 // GoOffline.cpp : implementation file
2 //
4 #include "stdafx.h"
5 #include "TortoiseProc.h"
6 #include "GoOffline.h"
9 // CGoOffline dialog
11 IMPLEMENT_DYNAMIC(CGoOffline, CDialog)
13 CGoOffline::CGoOffline(CWnd* pParent /*=NULL*/)
14 : CDialog(CGoOffline::IDD, pParent)
15 , asDefault(false)
16 , selection(LogCache::CRepositoryInfo::online)
21 CGoOffline::~CGoOffline()
25 void CGoOffline::DoDataExchange(CDataExchange* pDX)
27 CDialog::DoDataExchange(pDX);
29 DDX_Check(pDX, IDC_ASDEFAULTOFFLINE, asDefault);
33 BEGIN_MESSAGE_MAP(CGoOffline, CDialog)
34 ON_BN_CLICKED(IDOK, &CGoOffline::OnBnClickedOk)
35 ON_BN_CLICKED(IDC_PERMANENTLYOFFLINE, &CGoOffline::OnBnClickedPermanentlyOffline)
36 ON_BN_CLICKED(IDCANCEL, &CGoOffline::OnBnClickedCancel)
37 END_MESSAGE_MAP()
40 // CGoOffline message handlers
42 void CGoOffline::OnBnClickedOk()
44 selection = LogCache::CRepositoryInfo::tempOffline;
46 OnOK();
49 void CGoOffline::OnBnClickedPermanentlyOffline()
51 selection = LogCache::CRepositoryInfo::offline;
53 OnOK();
56 void CGoOffline::OnBnClickedCancel()
58 selection = LogCache::CRepositoryInfo::online;
60 OnCancel();